Patch level :10.0 851
Files correlati : Ricompilazione Demo : [ ] Commento : Corretto il problema dellì'aggiornamento automatico dell'anno di assistenza della chiave con il dninst. La patch va direttamente in release. git-svn-id: svn://10.65.10.50/branches/R_10_00@21280 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8a2527fbbd
commit
8f4a636bd1
@ -85,6 +85,7 @@ protected:
|
|||||||
void add_to_preferred();
|
void add_to_preferred();
|
||||||
void manage_preferred();
|
void manage_preferred();
|
||||||
|
|
||||||
|
bool dongle_update_needed() const;
|
||||||
bool test_programs();
|
bool test_programs();
|
||||||
bool copy_setup(const TString& remote_path);
|
bool copy_setup(const TString& remote_path);
|
||||||
|
|
||||||
@ -1474,6 +1475,20 @@ bool TMenu_application::test_programs()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TMenu_application::dongle_update_needed() const
|
||||||
|
{
|
||||||
|
bool ok = TApplication::test_assistance_year();
|
||||||
|
if (ok)
|
||||||
|
{
|
||||||
|
Tdninst dninst;
|
||||||
|
const int dninst_year = dninst.assist_year();
|
||||||
|
const int dongle_year = dongle().year_assist();
|
||||||
|
ok = dninst_year <= dongle_year;
|
||||||
|
}
|
||||||
|
|
||||||
|
return !ok;
|
||||||
|
}
|
||||||
|
|
||||||
bool TMenu_application::user_create()
|
bool TMenu_application::user_create()
|
||||||
{
|
{
|
||||||
disable_menu_item(M_FILE_PRINT); // Questa voce di menu non serve per ora
|
disable_menu_item(M_FILE_PRINT); // Questa voce di menu non serve per ora
|
||||||
@ -1488,7 +1503,7 @@ bool TMenu_application::user_create()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!TApplication::test_assistance_year())
|
if (dongle_update_needed())
|
||||||
{
|
{
|
||||||
TExternal_app app("ba1 -4");
|
TExternal_app app("ba1 -4");
|
||||||
app.run();
|
app.run();
|
||||||
|
@ -241,6 +241,7 @@ protected:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool new_module_requested();
|
bool new_module_requested();
|
||||||
|
bool dongle_update_needed() const;
|
||||||
|
|
||||||
void print_request();
|
void print_request();
|
||||||
void print_answer();
|
void print_answer();
|
||||||
@ -907,8 +908,20 @@ void TAttivazione_moduli::print()
|
|||||||
|
|
||||||
// Questo programma non deve bloccarsi per l'anno di assistenza!
|
// Questo programma non deve bloccarsi per l'anno di assistenza!
|
||||||
bool TAttivazione_moduli::test_assistance_year() const
|
bool TAttivazione_moduli::test_assistance_year() const
|
||||||
|
{ return true; }
|
||||||
|
|
||||||
|
bool TAttivazione_moduli::dongle_update_needed() const
|
||||||
{
|
{
|
||||||
return true;
|
bool ok = TApplication::test_assistance_year();
|
||||||
|
if (ok)
|
||||||
|
{
|
||||||
|
Tdninst dninst;
|
||||||
|
const int dninst_year = dninst.assist_year();
|
||||||
|
const int dongle_year = dongle().year_assist();
|
||||||
|
ok = dninst_year <= dongle_year;
|
||||||
|
}
|
||||||
|
|
||||||
|
return !ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TAttivazione_moduli::create()
|
bool TAttivazione_moduli::create()
|
||||||
@ -926,7 +939,7 @@ bool TAttivazione_moduli::create()
|
|||||||
return error_box(TR("Questo programma non puo' funzionare mentre e' in funzione il server di autorizzazioni"));
|
return error_box(TR("Questo programma non puo' funzionare mentre e' in funzione il server di autorizzazioni"));
|
||||||
}
|
}
|
||||||
|
|
||||||
ok = TApplication::test_assistance_year();
|
ok = !dongle_update_needed();
|
||||||
if (!ok)
|
if (!ok)
|
||||||
{
|
{
|
||||||
ok = update_assistance_year();
|
ok = update_assistance_year();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user