Migliorato cambio studio
git-svn-id: svn://10.65.10.50/branches/R_10_00@23050 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
240f2e8cf5
commit
b130191aae
@ -1479,7 +1479,7 @@ bool TMenu_application::test_programs()
|
||||
|
||||
bool TMenu_application::dongle_update_needed() const
|
||||
{
|
||||
bool ok = TApplication::test_assistance_year();
|
||||
bool ok = TApplication::test_assistance_year(false);
|
||||
|
||||
if (ok)
|
||||
{
|
||||
@ -1873,15 +1873,22 @@ bool TMenu_application::choose_study()
|
||||
TStudy_mask m;
|
||||
bool ok = m.run() == K_ENTER;
|
||||
if (ok)
|
||||
{
|
||||
long ditta = prefix().get_codditta();
|
||||
{
|
||||
TPrefix& p = prefix();
|
||||
long ditta = p.get_codditta();
|
||||
if (ditta > 0)
|
||||
ini_set_int(CONFIG_STUDIO, "Main", "Firm", ditta);
|
||||
ini_set_int(CONFIG_STUDIO, "Main", "Firm", ditta); // memorizza ditta corrente
|
||||
|
||||
ok = prefix().set_studio(m.get(DLG_USER));
|
||||
ok = p.set_studio(m.get(DLG_USER));
|
||||
if (ok)
|
||||
{
|
||||
ditta = ini_get_int(CONFIG_STUDIO, "Main", "Firm", 0);
|
||||
ditta = ini_get_int(CONFIG_STUDIO, "Main", "Firm", 0); // recupera ditta corrente
|
||||
if (ditta <= 0)
|
||||
{
|
||||
TPointer_array ditte;
|
||||
if (p.firms(ditte) > 0)
|
||||
ditta = ditte.get_long(0);
|
||||
}
|
||||
_menu.set_firm(ditta);
|
||||
deconnect_user();
|
||||
ok = check_user();
|
||||
|
@ -944,7 +944,7 @@ bool TAttivazione_moduli::test_assistance_year() const
|
||||
|
||||
bool TAttivazione_moduli::dongle_update_needed() const
|
||||
{
|
||||
bool ok = TApplication::test_assistance_year();
|
||||
bool ok = TApplication::test_assistance_year(false);
|
||||
if (ok)
|
||||
{
|
||||
Tdninst dninst;
|
||||
@ -967,13 +967,13 @@ bool TAttivazione_moduli::create()
|
||||
if (!ok)
|
||||
{
|
||||
ok = update_assistance_year();
|
||||
if (ok && TApplication::test_assistance_year())
|
||||
if (ok && TApplication::test_assistance_year(false))
|
||||
return false; // Aggiornamento automatico riuscito!
|
||||
}
|
||||
|
||||
if (d.hardware() == _dongle_network)
|
||||
{
|
||||
if (yesno_box(TR("Questo programma non puo' essere utilizzato in quanto e' in funzione il server di autorizzazioni.\n"
|
||||
if (yesno_box(TR("Questo programma non puo' essere utilizzato in quanto è in funzione il server di autorizzazioni.\n"
|
||||
"Si desidera connettersi al server per effettuare le operazioni di attivazione?")))
|
||||
{
|
||||
TString server = ini_get_string(CONFIG_INSTALL, "Server", "Dongle");
|
||||
|
@ -96,19 +96,19 @@ TOOLBAR "topbar" 0 0 0 2
|
||||
|
||||
BUTTON S_CREATEZIP 22 2
|
||||
BEGIN
|
||||
PROMPT 1 1 "Crea &Versione"
|
||||
PROMPT 1 1 "Versione"
|
||||
PICTURE TOOL_ELABORA
|
||||
END
|
||||
|
||||
BUTTON S_CREATEPATCH 22 2
|
||||
BEGIN
|
||||
PROMPT 2 1 "Crea &Patch"
|
||||
PICTURE TOOL_NEWREC
|
||||
PROMPT 2 1 "Patch"
|
||||
PICTURE TOOL_PACK
|
||||
END
|
||||
|
||||
BUTTON S_TESTPATCH 22 2
|
||||
BEGIN
|
||||
PROMPT 3 1 "&Patch Obsolete"
|
||||
PROMPT 3 1 "Obsolete"
|
||||
PICTURE TOOL_DELREC
|
||||
END
|
||||
|
||||
|
@ -79,9 +79,9 @@ static int compare_modules(const TObject** o1, const TObject** o2)
|
||||
int res = 0;
|
||||
for (int i = 2; i < 5 && res == 0; i++)
|
||||
{
|
||||
TString16 s1 = ts1.get(i);
|
||||
const char* s2 = ts2.get(i);
|
||||
res = s1.compare(s2);
|
||||
const TFixed_string s1 = ts1.get(i);
|
||||
const TFixed_string s2 = ts2.get(i);
|
||||
res = s1.compare(s2, -1, true);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
@ -1459,7 +1459,7 @@ bool TInstaller_mask::path_handler(TMask_field& fld, KEY key)
|
||||
if (key == K_TAB && fld.focusdirty())
|
||||
{
|
||||
TFilename path = fld.get();
|
||||
if (path.not_empty())
|
||||
if (path.full())
|
||||
{
|
||||
if (path.len() == 2 && isalpha(path[0]) && path[1] == ':')
|
||||
{
|
||||
@ -1879,13 +1879,16 @@ TInstaller_mask::TInstaller_mask()
|
||||
//decide quale e' il percorso di installazione
|
||||
//ha un cd o un disco di rete -> si aggiorna da questo...
|
||||
if (path.exist())
|
||||
autoload();
|
||||
{
|
||||
if (efield(F_PATH).active() || _station_type == 3) // Per i client è obbligatorio installare da disco
|
||||
autoload();
|
||||
}
|
||||
else //senno' cerca su internet se trova un path internet completo e la connessione funzionante
|
||||
{
|
||||
if (_station_type != 3 && webpath.find("//") > 0)
|
||||
{
|
||||
set(F_TYPE, "1", 0x1);
|
||||
autoload();
|
||||
//autoload(); // Niente autoload!
|
||||
}
|
||||
}
|
||||
|
||||
@ -1926,7 +1929,7 @@ bool TInstaller::test_assistance_year() const
|
||||
|
||||
bool TInstaller::create()
|
||||
{
|
||||
if (!TApplication::test_assistance_year())
|
||||
if (!TApplication::test_assistance_year(true))
|
||||
{
|
||||
TExternal_app attivazione("ba1 -4");
|
||||
attivazione.run();
|
||||
@ -1948,7 +1951,7 @@ bool TInstaller::create()
|
||||
else //se e' standalone o server...
|
||||
{
|
||||
if (user() != ::dongle().administrator())
|
||||
return error_box(TR("Solo l'utente amministratore puo' aggiornare questa postazione!"));
|
||||
return error_box(TR("Solo l'amministratore puo' aggiornare questa postazione!"));
|
||||
}
|
||||
|
||||
return TSkeleton_application::create();
|
||||
|
@ -1123,6 +1123,7 @@ bool Tdninst_manager::create()
|
||||
const TString& host = get_hostname();
|
||||
if (n != 8453 && n != 8517 && !is_power_station() &&
|
||||
host.compare("nbkgiardini", -1, true) != 0 &&
|
||||
host.compare("pccopw7", -1, true) != 0 &&
|
||||
host.compare("pcpiccolow7", -1, true) != 0)
|
||||
return error_box(FR("Postazione %s non abilitata"), (const char*)host);
|
||||
|
||||
|
@ -1167,7 +1167,7 @@ void TQuery_mask::global_reset()
|
||||
_is_dirty = _sql_dirty = false;
|
||||
}
|
||||
|
||||
// Caica l'intera query
|
||||
// Carica l'intera query
|
||||
bool TQuery_mask::load_query()
|
||||
{
|
||||
TFilename path; get_qry_path(path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user