Ancora update riassegnazione icenze
This commit is contained in:
@@ -103,7 +103,14 @@ namespace GPW_Admin.WebUserControls
|
||||
// solo se già attivo
|
||||
if (isAttivo)
|
||||
{
|
||||
answ = !canRemove(attivo, dtAssunzione, dtCessazione);
|
||||
// refresh licenze
|
||||
licenzeGPW.RefreshActInfo().ConfigureAwait(false);
|
||||
// verifico se ci sia licenza locale..
|
||||
if (!licenzeGPW.checkActivation(CodImpiego).Result)
|
||||
{
|
||||
// verifica sia sbloccabile la licenza (online)
|
||||
answ = !licenzeGPW.checkActivationUnlocked(CodImpiego).Result;
|
||||
}
|
||||
}
|
||||
|
||||
return answ;
|
||||
@@ -131,7 +138,7 @@ namespace GPW_Admin.WebUserControls
|
||||
if (tabDip != null && tabDip.Rows.Count == 1)
|
||||
{
|
||||
// verifica sia sbloccabile la licenza (online)
|
||||
answ = licenzeGPW.checkActivation(CodImpiego).Result;
|
||||
answ = licenzeGPW.checkActivationUnlocked(CodImpiego).Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -169,6 +176,9 @@ namespace GPW_Admin.WebUserControls
|
||||
bool fatto = licenzeGPW.tryActivation(CodImpiego).Result;
|
||||
if (fatto)
|
||||
{
|
||||
bool step1 = licenzeGPW.RefreshAppInfo().Result;
|
||||
bool step2 = licenzeGPW.RefreshActInfo().Result;
|
||||
bool step3 = licenzeGPW.RefreshLicInfo().Result;
|
||||
raiseReset();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user