Modifica volante dell'icona del program manager una volta selezionato
l'utente nel login git-svn-id: svn://10.65.10.50/trunk@1482 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
1b5f41d682
commit
207f1d316b
33
ba/ba0.cpp
33
ba/ba0.cpp
@ -1,6 +1,7 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <colors.h>
|
#include <colors.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
|
#include <golem.h>
|
||||||
#include <mask.h>
|
#include <mask.h>
|
||||||
#include <isam.h>
|
#include <isam.h>
|
||||||
#include <prefix.h>
|
#include <prefix.h>
|
||||||
@ -445,16 +446,17 @@ bool TMenu_application::check_user()
|
|||||||
{
|
{
|
||||||
TMask m("ba0100a");
|
TMask m("ba0100a");
|
||||||
TLocalisamfile users(LF_USER);
|
TLocalisamfile users(LF_USER);
|
||||||
TString16 utente, pwd;
|
TString16 utente(user()), pwd;
|
||||||
// TString16 utente(user()), pwd;
|
|
||||||
|
|
||||||
|
|
||||||
bool ok = FALSE;
|
bool ok = FALSE;
|
||||||
for (int i = 0 ; i < 3 && !ok; i++)
|
for (int i = 0 ; i < 3 && !ok; i++)
|
||||||
{
|
{
|
||||||
// m.set(F_USER, utente);
|
if (utente.not_empty() && utente != "PRASSI")
|
||||||
// if (utente.not_empty())
|
{
|
||||||
// m.first_focus(F_PASSWORD);
|
m.set(F_USER, utente);
|
||||||
|
m.first_focus(F_PASSWORD);
|
||||||
|
}
|
||||||
|
|
||||||
if (m.run() == K_ESC)
|
if (m.run() == K_ESC)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -511,7 +513,21 @@ bool TMenu_application::check_user()
|
|||||||
else users.read(_isequal, _unlock);
|
else users.read(_isequal, _unlock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if XVT_OS == XVT_OS_WIN
|
||||||
|
if (ok && utente != "PRASSI")
|
||||||
|
{
|
||||||
|
TDDE dde;
|
||||||
|
if (dde.initiate("PROGMAN", "PROGMAN"))
|
||||||
|
{
|
||||||
|
dde.execute("[ReplaceItem(PR.A.S.S.I.)]");
|
||||||
|
TString80 cmd("[AddItem(");
|
||||||
|
cmd << argv(0) << " /u" << utente << ",PR.A.S.S.I.)]";
|
||||||
|
dde.execute(cmd);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -580,8 +596,7 @@ bool TMenu_application::menu(MENU_TAG)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const TString16 module(cmd2name(option));
|
const TString16 module(cmd2name(option));
|
||||||
|
if (get_firm() == 0 && module.compare("cg", 2, TRUE) == 0) // Chiede ditta se necessario
|
||||||
if (get_firm() == 0 && module.left(2) == "cg") // Chiede ditta se necessario
|
|
||||||
set_firm();
|
set_firm();
|
||||||
prefix().set(NULL); // Chiude prefix
|
prefix().set(NULL); // Chiude prefix
|
||||||
TExternal_app a(option);
|
TExternal_app a(option);
|
||||||
|
@ -66,7 +66,6 @@ STRING 106 50
|
|||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 1 5 "Espr. "
|
PROMPT 1 5 "Espr. "
|
||||||
FLAGS "U"
|
FLAGS "U"
|
||||||
CHECKTYPE REQUIRED
|
|
||||||
END
|
END
|
||||||
|
|
||||||
BUTTON DLG_OK 10 2
|
BUTTON DLG_OK 10 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user