update integrazione controllo licenze (ancora test x payload)
This commit is contained in:
@@ -32,6 +32,18 @@ namespace GPW_Admin
|
||||
|
||||
#endregion Public Events
|
||||
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// controllo stato licenze!
|
||||
/// </summary>
|
||||
public bool chkLicOk
|
||||
{
|
||||
get => (licenzeGPW.checkLicenze && licenzeGPW.checkPayload);
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -10,5 +10,9 @@
|
||||
{
|
||||
"outputFile": "Content/Site.css",
|
||||
"inputFile": "Content/Site.less"
|
||||
},
|
||||
{
|
||||
"outputFile": "Content/font.css",
|
||||
"inputFile": "Content/font.less"
|
||||
}
|
||||
]
|
||||
@@ -60,6 +60,32 @@ namespace GPW_data
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifica se il payload delle licenze attivate sia valido (con server online)
|
||||
/// </summary>
|
||||
public static bool checkPayload
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
|
||||
// FIXME TODO !!!
|
||||
|
||||
//bool answ = false;
|
||||
//try
|
||||
//{
|
||||
// answ = utentiAttivi <= licenzeAttive;
|
||||
// if (!answ && memLayer.ML.confReadInt("_logLevel") > 5)
|
||||
// {
|
||||
// logger.lg.scriviLog(string.Format("WARNING licenze: utenti attivi {0} / licenziati {1}", utentiAttivi, licenzeAttive), tipoLog.WARNING);
|
||||
// }
|
||||
//}
|
||||
//catch
|
||||
//{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// nome installazione sw
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user