Fix gesitone ODL con controllo ogni 10" pezzi

- aggiunto timer dtTimerOdlInt a 10'000ms
This commit is contained in:
Samuele Locatelli
2022-09-28 18:10:17 +02:00
parent 39f6cdd1f3
commit 09de731c88
4 changed files with 78 additions and 50 deletions
+1
View File
@@ -12,6 +12,7 @@ namespace MoonProTablet
{
mod_confProd1.eh_newVal -= mod_confProd1_eh_newVal;
mod_confProd1.eh_reset -= mod_confProd1_eh_reset;
mod_confProd1.eh_doUpdate -= Mod_confProd1_eh_doUpdate; ;
base.Dispose();
}
+4 -2
View File
@@ -30,7 +30,7 @@
<asp:LinkButton runat="server" ID="lbtFixOdl" OnClick="lbtFixOdl_Click" CssClass="btn btn-warning btn-block"><i class="fa fa-check"></i> Fix ODL</asp:LinkButton>
</div>
</div>
<uc1:cmp_SlaveMachine runat="server" id="cmp_SlaveMachine" />
<uc1:cmp_SlaveMachine runat="server" ID="cmp_SlaveMachine" />
<uc2:mod_ODL ID="mod_ODL1" runat="server" />
</div>
<div class="col-12 col-md-4 col-lg-3 col-xl-2">
@@ -38,4 +38,6 @@
</div>
</div>
</div>
</asp:Content>
<!-- timer refresh dettaglio macchina: 10 sec, 10'000 ms -->
<asp:Timer ID="dtTimerOdlInt" runat="server" Interval="10000" OnTick="Timer1_Tick"></asp:Timer>
</asp:Content>
+20 -4
View File
@@ -220,16 +220,32 @@ namespace MoonProTablet
{
if (!Page.IsPostBack)
{
dtTimerOdlInt.Interval = memLayer.ML.CRI("dtTimerOdlInt");
checkAll();
if (isMulti)
{
mod_dettMacchina1.doUpdate();
}
mod_dettMacchina1.doUpdate();
}
fixDisplaySlave();
mod_ODL1.eh_reqUpdate += Mod_ODL1_eh_reqUpdate;
}
public override void Dispose()
{
mod_ODL1.eh_reqUpdate -= Mod_ODL1_eh_reqUpdate;
base.Dispose();
}
/// <summary>
/// timeout scaduto
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Timer1_Tick(object sender, EventArgs e)
{
// effettuo verifica attrezzabilità ODL
checkAll();
mod_dettMacchina1.doUpdate();
}
#endregion Protected Methods
}
}
+53 -44
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <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 MoonProTablet
@@ -15,120 +15,129 @@ namespace MoonProTablet
{
/// <summary>
/// Controllo mod_dettMacchina1.
/// mod_dettMacchina1 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::MoonProTablet.WebUserControls.mod_dettMacchina mod_dettMacchina1;
/// <summary>
/// Controllo divSelMacc.
/// divSelMacc 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.HtmlControls.HtmlGenericControl divSelMacc;
/// <summary>
/// Controllo ddlSubMacc.
/// ddlSubMacc 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.DropDownList ddlSubMacc;
/// <summary>
/// Controllo ods.
/// ods 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.ObjectDataSource ods;
/// <summary>
/// Controllo divWarn.
/// divWarn 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.HtmlControls.HtmlGenericControl divWarn;
/// <summary>
/// Controllo lblWarningHead.
/// lblWarningHead 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 lblWarningHead;
/// <summary>
/// Controllo lblWarningBody.
/// lblWarningBody 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 lblWarningBody;
/// <summary>
/// Controllo lblNumPz2Conf.
/// lblNumPz2Conf 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 lblNumPz2Conf;
/// <summary>
/// Controllo divPz2Conf.
/// divPz2Conf 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.HtmlControls.HtmlGenericControl divPz2Conf;
/// <summary>
/// Controllo lbtFixOdl.
/// lbtFixOdl 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.LinkButton lbtFixOdl;
/// <summary>
/// Controllo cmp_SlaveMachine.
/// cmp_SlaveMachine 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::MoonProTablet.WebUserControls.cmp_SlaveMachine cmp_SlaveMachine;
/// <summary>
/// Controllo mod_ODL1.
/// mod_ODL1 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::MoonProTablet.WebUserControls.mod_ODL mod_ODL1;
/// <summary>
/// Controllo mod_directLinks.
/// mod_directLinks 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::MoonProTablet.WebUserControls.mod_directLinks mod_directLinks;
/// <summary>
/// dtTimerOdlInt control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.Timer dtTimerOdlInt;
}
}