FIX: img logo sx WRKLOG e reload barcode a 120sec
This commit is contained in:
Generated
+21
-19
@@ -1,24 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Barcode {
|
||||
|
||||
|
||||
public partial class Barcode {
|
||||
|
||||
/// <summary>
|
||||
/// mod_bCodeTimb1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW.WebUserControls.mod_bCodeTimb mod_bCodeTimb1;
|
||||
}
|
||||
namespace GPW_Barcode
|
||||
{
|
||||
|
||||
|
||||
public partial class Barcode
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_bCodeTimb1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GPW.WebUserControls.mod_bCodeTimb mod_bCodeTimb1;
|
||||
}
|
||||
}
|
||||
|
||||
+13
-13
@@ -66,7 +66,7 @@
|
||||
<!--Timeout vari-->
|
||||
<add key="intUpdatePagina_ms" value="120000" />
|
||||
<add key="intUpdateFooter_ms" value="1000" />
|
||||
<add key="maxRefreshToReload" value="30" />
|
||||
<add key="maxRefreshToReload" value="120" />
|
||||
<!--Gestione Barcode-->
|
||||
<add key="secTimeoutBCode" value="8" />
|
||||
<add key="prefComandi" value="CMD" />
|
||||
@@ -135,18 +135,18 @@
|
||||
</connectionStrings>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
|
||||
@@ -10,82 +10,82 @@ using System.Configuration;
|
||||
|
||||
namespace GPW.WebUserControls
|
||||
{
|
||||
public partial class mod_menuBottomFullBCode : System.Web.UI.UserControl
|
||||
public partial class mod_menuBottomFullBCode : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
contatorePag = 0;
|
||||
// sistemo le stringhe...
|
||||
//lblApp.Text = string.Format("<b>{0}</b> v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev"));
|
||||
lblApp.Text = string.Format("<b>{0}</b> v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
lblCopyRight.Text = string.Format("<b>{0}</b>", ConfigurationManager.AppSettings.Get("copyRight"));
|
||||
setClock();
|
||||
setTimer();
|
||||
}
|
||||
if (licenzeGPW.checkLicenze)
|
||||
{
|
||||
pnlCheck.CssClass = "btnVerdeGrad ui-corner-all shadowBox";
|
||||
}
|
||||
else
|
||||
{
|
||||
pnlCheck.CssClass = "btnRossoGrad ui-corner-all shadowBox";
|
||||
//lblWarning.Text = "Attenzione: numero licenze superato! MR attiva.";
|
||||
lblWarning.Visible = true;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il tempo di scadenza del timer x il refresh della pagina per refresh orario mostrato
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdateFooter_ms");
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
setClock();
|
||||
}
|
||||
protected int contatorePag
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("numChiamatePaginaBCode");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("numChiamatePaginaBCode", value);
|
||||
}
|
||||
}
|
||||
private void setClock()
|
||||
{
|
||||
// controllo numero di "ri-chiamate": ogni tot (std = 100, 100sec di default quindi) ricarico pagina
|
||||
if (contatorePag < memLayer.ML.confReadInt("maxRefreshToReload"))
|
||||
{
|
||||
contatorePag++;
|
||||
}
|
||||
else
|
||||
{
|
||||
contatorePag = 0;
|
||||
Response.Redirect("Barcode.aspx");
|
||||
}
|
||||
|
||||
string postazione_IP = Request.UserHostName;
|
||||
lblDateTime.Text = DateTime.Now.ToString("HH:mm:ss");
|
||||
lblInfo.Text = "";
|
||||
try
|
||||
{
|
||||
lblInfo.Text += string.Format("{0}", dnsUtils.DetermineCompName(postazione_IP));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
lblInfo.Text += string.Format(" ({0})", postazione_IP);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
contatorePag = 0;
|
||||
// sistemo le stringhe...
|
||||
//lblApp.Text = string.Format("<b>{0}</b> v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev"));
|
||||
lblApp.Text = string.Format("<b>{0}</b> v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
lblCopyRight.Text = string.Format("<b>{0}</b>", ConfigurationManager.AppSettings.Get("copyRight"));
|
||||
setClock();
|
||||
setTimer();
|
||||
}
|
||||
if (licenzeGPW.checkLicenze)
|
||||
{
|
||||
pnlCheck.CssClass = "btnVerdeGrad ui-corner-all shadowBox";
|
||||
}
|
||||
else
|
||||
{
|
||||
pnlCheck.CssClass = "btnRossoGrad ui-corner-all shadowBox";
|
||||
//lblWarning.Text = "Attenzione: numero licenze superato! MR attiva.";
|
||||
lblWarning.Visible = true;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il tempo di scadenza del timer x il refresh della pagina per refresh orario mostrato
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdateFooter_ms");
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
setClock();
|
||||
}
|
||||
protected int contatorePag
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("numChiamatePaginaBCode");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("numChiamatePaginaBCode", value);
|
||||
}
|
||||
}
|
||||
private void setClock()
|
||||
{
|
||||
// controllo numero di "ri-chiamate": ogni tot (std = 100, 100sec di default quindi) ricarico pagina
|
||||
if (contatorePag < memLayer.ML.confReadInt("maxRefreshToReload"))
|
||||
{
|
||||
contatorePag++;
|
||||
}
|
||||
else
|
||||
{
|
||||
contatorePag = 0;
|
||||
Response.Redirect("Barcode.aspx");
|
||||
}
|
||||
|
||||
string postazione_IP = Request.UserHostName;
|
||||
lblDateTime.Text = DateTime.Now.ToString("HH:mm:ss");
|
||||
lblInfo.Text = "";
|
||||
try
|
||||
{
|
||||
lblInfo.Text += string.Format("{0}", dnsUtils.DetermineCompName(postazione_IP));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
lblInfo.Text += string.Format(" ({0})", postazione_IP);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,28 +7,28 @@
|
||||
<div class="fullPageHeader" style="padding: 2px 4px 2px; background-color: #333; text-align: center; margin: auto; min-height: 32px;">
|
||||
<div class="row mt-1 text-light">
|
||||
<div class="col-3 text-left">
|
||||
<img src="../images/LogoHighResWhite.png" class="img-fluid" width="96" />
|
||||
<img src="images/LogoHighResWhite.png" class="img-fluid" width="96" />
|
||||
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<asp:UpdateProgress ID="updtTop" runat="server" DisplayAfter="10" DynamicLayout="false">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<asp:Image ID="ProgressBar" ImageUrl="~/images/ajax-loader.gif" runat="server" />
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
<asp:UpdateProgress ID="updtTop" runat="server" DisplayAfter="10" DynamicLayout="false">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<asp:Image ID="ProgressBar" ImageUrl="~/images/ajax-loader.gif" runat="server" />
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<asp:LinkButton runat="server" ID="lbHome" OnClick="lbHome_Click" Visible="false" CssClass="text-light"><i style="font-size: 2em;" class="fa fa-home"></i></asp:LinkButton>
|
||||
<asp:Label runat="server" ID="lblCurrentPage" Text="..." Font-Size="20pt" />
|
||||
<asp:LinkButton runat="server" ID="lbHome" OnClick="lbHome_Click" Visible="false" CssClass="text-light"><i style="font-size: 2em;" class="fa fa-home"></i></asp:LinkButton>
|
||||
<asp:Label runat="server" ID="lblCurrentPage" Text="..." Font-Size="20pt" />
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<uc1:mod_reportUtenteAD ID="mod_reportUtenteAD1" runat="server" />
|
||||
<uc1:mod_reportUtenteAD ID="mod_reportUtenteAD1" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+5
-1
@@ -361,9 +361,9 @@ namespace GPW_data
|
||||
public bool dailyDuties()
|
||||
{
|
||||
bool answ = false;
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5) logger.lg.scriviLog("Richiesto Check Daily Duties", tipoLog.INFO);
|
||||
if (memLayer.ML.confReadBool("enableDailyCheck"))
|
||||
{
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5) logger.lg.scriviLog("Richiesto Check Daily Duties", tipoLog.INFO);
|
||||
int firstHour2Check = memLayer.ML.confReadInt("firstHour2Check");
|
||||
// controllo sfasato di x ore come da we.config se ci sia già stato il check quotidiano anomalie (con relative email)
|
||||
if (DataProxy.DP.taRE.getByDataEv("checkAnomalie", DateTime.Now.AddHours(-firstHour2Check).Date).Rows.Count == 0)
|
||||
@@ -374,6 +374,10 @@ namespace GPW_data
|
||||
DataProxy.DP.taRE.Insert(DateTime.Now.AddHours(-firstHour2Check), "dailyDuties", "-");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5) logger.lg.scriviLog("DISABILITATO Check Daily Duties", tipoLog.INFO);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user