Fiox refresh machine LOAD
This commit is contained in:
@@ -5,21 +5,17 @@
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container2 px-1 textBig">
|
||||
<asp:Timer ID="timerLoad" runat="server" Interval="2000" OnTick="timerLoad_Tick"></asp:Timer>
|
||||
<div class="card text-center" style="width: 100%;">
|
||||
<h4 class="card-header p-1 bg-secondary text-light"><%: traduci("MachineLoad") %></h4>
|
||||
<div class="card-body py-1">
|
||||
<asp:UpdatePanel runat="server" ID="upnlBCode" UpdateMode="Conditional" ChildrenAsTriggers="true">
|
||||
<ContentTemplate>
|
||||
<asp:Timer ID="timerLoad" runat="server" Interval="2000" OnTick="timerLoad_Tick"></asp:Timer>
|
||||
<div class="row">
|
||||
<div class="col-12 mb-2">
|
||||
<uc1:cmp_stackLoading runat="server" ID="cmp_stackLoading" enableBCode="false" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel runat="server" ID="upnlLoad" UpdateMode="Always">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<uc1:cmp_ML_ShDet runat="server" ID="cmp_ML_ShDet" StatusReqStart="0" StatusReqEnd="0" />
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace NKC_WF
|
||||
|
||||
private void forceRefresh()
|
||||
{
|
||||
cmp_stackLoading.doUpdate();
|
||||
cmp_ML_ShDet.BatchId = cmp_stackLoading.BatchIdCurr;
|
||||
cmp_ML_ShDet1.BatchId = cmp_stackLoading.BatchIdCurr;
|
||||
cmp_ML_ShDet2.BatchId = cmp_stackLoading.BatchIdCurr;
|
||||
|
||||
Generated
+9
-18
@@ -14,15 +14,6 @@ namespace NKC_WF
|
||||
public partial class MachineLoad
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo timerLoad.
|
||||
/// </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.Timer timerLoad;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo upnlBCode.
|
||||
/// </summary>
|
||||
@@ -32,6 +23,15 @@ namespace NKC_WF
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel upnlBCode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo timerLoad.
|
||||
/// </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.Timer timerLoad;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_stackLoading.
|
||||
/// </summary>
|
||||
@@ -41,15 +41,6 @@ namespace NKC_WF
|
||||
/// </remarks>
|
||||
protected global::NKC_WF.WebUserControls.cmp_stackLoading cmp_stackLoading;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo upnlLoad.
|
||||
/// </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.UpdatePanel upnlLoad;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_ML_ShDet.
|
||||
/// </summary>
|
||||
|
||||
@@ -4,19 +4,20 @@
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container px-1">
|
||||
<div class="card text-center" style="width: 100%;">
|
||||
<h4 class="card-header p-1 bg-secondary text-light"><%: traduci("MachineLoad") %></h4>
|
||||
<div class="card-body py-1">
|
||||
<asp:UpdatePanel runat="server" ID="upnlBCode" UpdateMode="Conditional" ChildrenAsTriggers="true">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-12 mb-2">
|
||||
<uc1:cmp_stackLoading runat="server" ID="cmp_stackLoading" enableBCode="true" />
|
||||
<div class="card text-center" style="width: 100%;">
|
||||
<h4 class="card-header p-1 bg-secondary text-light"><%: traduci("MachineLoad") %></h4>
|
||||
<div class="card-body py-1">
|
||||
<asp:UpdatePanel runat="server" ID="upnlBCode" UpdateMode="Conditional" ChildrenAsTriggers="true">
|
||||
<ContentTemplate>
|
||||
<asp:Timer ID="timerLoad" runat="server" Interval="30000" OnTick="timerLoad_Tick"></asp:Timer>
|
||||
<div class="row">
|
||||
<div class="col-12 mb-2">
|
||||
<uc1:cmp_stackLoading runat="server" ID="cmp_stackLoading" enableBCode="true" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -16,18 +16,17 @@ namespace NKC_WF.site
|
||||
((SiteMaster)this.Master).showSearch = false;
|
||||
forceRefresh();
|
||||
}
|
||||
cmp_stackLoading.eh_doRefresh += Cmp_stackLoading_eh_doRefresh;
|
||||
}
|
||||
|
||||
private void Cmp_stackLoading_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
forceRefresh();
|
||||
}
|
||||
|
||||
private void forceRefresh()
|
||||
{
|
||||
|
||||
cmp_stackLoading.doUpdate();
|
||||
}
|
||||
|
||||
protected void timerLoad_Tick(object sender, EventArgs e)
|
||||
{
|
||||
forceRefresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
@@ -23,6 +23,15 @@ namespace NKC_WF.site
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel upnlBCode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo timerLoad.
|
||||
/// </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.Timer timerLoad;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_stackLoading.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user