refresh progetto SMART x licenze
This commit is contained in:
@@ -56,44 +56,38 @@
|
||||
<div class="row small pt-3 pb-0">
|
||||
<div class="col-6 py-0">
|
||||
<address>
|
||||
<strong>Sede Operativa</strong><br />
|
||||
<strong>Sede Legale ed Operativa</strong><br />
|
||||
via Nazionale, 93<br />
|
||||
24068 Seriate - BG<br />
|
||||
<abbr title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></abbr>
|
||||
<a href="mailto:info@steamware.net">info@steamware.net</a><br />
|
||||
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
|
||||
035.218124<br />
|
||||
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
|
||||
035.290178<br />
|
||||
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
|
||||
035.460560
|
||||
ITALIA<br />
|
||||
<br />
|
||||
<abbr title="P.Iva">VAT:03985390164</abbr>
|
||||
</address>
|
||||
</div>
|
||||
<div class="col-6 py-0">
|
||||
<address>
|
||||
<strong>Sede Legale</strong><br />
|
||||
via Briolo Fuori, 27<br />
|
||||
24015 San Giovanni Bianco
|
||||
Bergamo - ITALY<br />
|
||||
<abbr title="P.Iva">VAT:</abbr>
|
||||
03274190168<br />
|
||||
<strong>Contatti</strong><br />
|
||||
<abbr title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></abbr>
|
||||
<a href="mailto:info@steamware.net">info@egalware.com</a><br />
|
||||
<abbr title="pec"><i class="fa fa-envelope" aria-hidden="true"></i></abbr>
|
||||
steamware@pec.it<br />
|
||||
<abbr title="SDI">SDI:</abbr>
|
||||
M5UXCR1<br />
|
||||
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
|
||||
+39 035.460560<br />
|
||||
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
|
||||
+39 035.290178<br />
|
||||
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
|
||||
+39 035.218124
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row small pb-2 px-0">
|
||||
<div class="col text-center">
|
||||
<a href="https://www.steamware.net" target="_blank" class="btn btn-block btn-primary"><i class="fa fa-globe" aria-hidden="true"></i> www.steamware.net
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer small">
|
||||
Key:
|
||||
<asp:Label runat="server" ID="lblAuthKey" Font-Size="0.6em" />
|
||||
<a href="https://www.egalware.com" target="_blank" class="btn btn-block btn-primary"><i class="fa fa-globe" aria-hidden="true"></i> www.egalware.com
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,83 +6,91 @@ using System.Web.UI;
|
||||
|
||||
namespace GPW_Smart.WebUserControls
|
||||
{
|
||||
public partial class cmp_info : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class cmp_info : System.Web.UI.UserControl
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
lblInstallation.Text = licenzeGPW.installazione;
|
||||
lblApplication.Text = licenzeGPW.applicazione;
|
||||
lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb);
|
||||
lblNumLic.ToolTip = "licenze valide (licenze su db)";
|
||||
lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString();
|
||||
lblAuthKey.Text = licenzeGPW.authKey;
|
||||
}
|
||||
}
|
||||
#region Public Properties
|
||||
|
||||
public string cssCheckClass
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (licenzeGPW.scadenzaLicenza >= DateTime.Now)
|
||||
public string cognomeNome
|
||||
{
|
||||
answ = "border-success";
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("cognomeNome");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
public string copyRight
|
||||
{
|
||||
answ = "border-danger";
|
||||
get
|
||||
{
|
||||
return string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight"));
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
public string hashEmail
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("hashEmail");
|
||||
}
|
||||
}
|
||||
public string email
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("email");
|
||||
}
|
||||
}
|
||||
public string cognomeNome
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("cognomeNome");
|
||||
}
|
||||
}
|
||||
public string IP
|
||||
{
|
||||
get
|
||||
{
|
||||
return Request.UserHostName;
|
||||
}
|
||||
}
|
||||
public string cssCheckClass
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (licenzeGPW.scadenzaLicenza >= DateTime.Now)
|
||||
{
|
||||
answ = "border-success";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "border-danger";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
public string versione
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
}
|
||||
public string email
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("email");
|
||||
}
|
||||
}
|
||||
|
||||
public string hashEmail
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("hashEmail");
|
||||
}
|
||||
}
|
||||
|
||||
public string IP
|
||||
{
|
||||
get
|
||||
{
|
||||
return Request.UserHostName;
|
||||
}
|
||||
}
|
||||
|
||||
public string versione
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
lblInstallation.Text = licenzeGPW.installazione;
|
||||
lblApplication.Text = licenzeGPW.applicazione;
|
||||
lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb);
|
||||
lblNumLic.ToolTip = "licenze valide (licenze su db)";
|
||||
lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
public string copyRight
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
+27
-34
@@ -1,60 +1,53 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Smart.WebUserControls {
|
||||
|
||||
|
||||
public partial class cmp_info {
|
||||
|
||||
namespace GPW_Smart.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_info
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblInstallation.
|
||||
/// lblInstallation control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblInstallation;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblApplication.
|
||||
/// lblApplication control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblApplication;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumLic.
|
||||
/// lblNumLic control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumLic;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblExpiryDate.
|
||||
/// lblExpiryDate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblExpiryDate;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblAuthKey.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblAuthKey;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
ToolTip="Ore caricate a commessa / ore lavorate da timbrature" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 alert alert-danger text-center " id="divAlertLic" runat="server">
|
||||
<b><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Attenzione: licenza non valida, impossibile aggiunta record progetti</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-5">
|
||||
<div class="col">
|
||||
|
||||
@@ -9,6 +9,15 @@ namespace GPW.WebUserControls
|
||||
{
|
||||
public partial class mod_commAttivita : System.Web.UI.UserControl
|
||||
{
|
||||
#region Private Properties
|
||||
|
||||
private bool checkLicOk
|
||||
{
|
||||
get => licenzeGPW.checkLicenze && licenzeGPW.checkPayload;
|
||||
}
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
/// <summary>
|
||||
@@ -31,15 +40,34 @@ namespace GPW.WebUserControls
|
||||
/// </summary>
|
||||
protected string rhProjByIF { get; set; }
|
||||
|
||||
protected bool userEnabled
|
||||
{
|
||||
get => (DataProxy.currDipIsActive && DataProxy.currDipHasPayloadActive);
|
||||
}
|
||||
protected bool userEnabled { get; set; } = false;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// idxDipendente in sessione
|
||||
/// </summary>
|
||||
public static int idxDipendenteCurr
|
||||
{
|
||||
get
|
||||
{
|
||||
int idx = 0;
|
||||
try
|
||||
{
|
||||
idx = memLayer.ML.IntSessionObj("IdxDipendente");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return idx;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxDipendente", value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// data riferimento (selezionata) da session
|
||||
/// </summary>
|
||||
@@ -167,7 +195,7 @@ namespace GPW.WebUserControls
|
||||
{
|
||||
int maxErrMinus = memLayer.ML.confReadInt("maxErrMinus");
|
||||
int maxErrPlus = memLayer.ML.confReadInt("maxErrPlus");
|
||||
DS_Applicazione.v_logCommUtRow rigaLog = DataProxy.DP.taLCU.getByIdxDipDate(memLayer.ML.IntSessionObj("idxDipendente"), dataRif, dataRif.AddDays(1), maxErrMinus, maxErrPlus)[0];
|
||||
DS_Applicazione.v_logCommUtRow rigaLog = DataProxy.DP.taLCU.getByIdxDipDate(idxDipendenteCurr, dataRif, dataRif.AddDays(1), maxErrMinus, maxErrPlus)[0];
|
||||
lblTotOreRA.Text = string.Format("<b>{0:0.##}</b> / <b>{1:0.##}</b> h", rigaLog.h_com, rigaLog.h_lav);
|
||||
}
|
||||
catch
|
||||
@@ -177,7 +205,9 @@ namespace GPW.WebUserControls
|
||||
memLayer.ML.setSessionVal("dataFromRA", dataRif.Date);
|
||||
memLayer.ML.setSessionVal("dataToRA", dataRif.AddDays(1).Date);
|
||||
// controllo aggiunta da licenza
|
||||
lnkCreateNew.Visible = userEnabled;
|
||||
var licOk = userEnabled;
|
||||
lnkCreateNew.Visible = licOk;
|
||||
divAlertLic.Visible = !licOk;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
@@ -262,6 +292,7 @@ namespace GPW.WebUserControls
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
userEnabled = DataProxy.currDipIsActive && checkLicOk && DataProxy.currDipHasPayloadActive;
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// controllo se ho una data selezionata da URL
|
||||
|
||||
@@ -41,6 +41,15 @@ namespace GPW.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTotOreRA;
|
||||
|
||||
/// <summary>
|
||||
/// divAlertLic control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divAlertLic;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user