diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 2089b0e..521fad3 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -34632,7 +34632,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "select * from PackLog"; @@ -34647,36 +34647,45 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_PL_acquireOtherItems"; + this._commandCollection[2].CommandText = "dbo.stp_PL_acquireItems"; this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OtherItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Device", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_PL_acquirePaint"; + this._commandCollection[3].CommandText = "dbo.stp_PL_acquireOtherItems"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OtherItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Device", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_PL_closeCart"; + this._commandCollection[4].CommandText = "dbo.stp_PL_acquirePaint"; this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Device", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; - this._commandCollection[5].CommandText = "dbo.stp_PLog_getByCart"; + this._commandCollection[5].CommandText = "dbo.stp_PL_closeCart"; this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[6].Connection = this.Connection; + this._commandCollection[6].CommandText = "dbo.stp_PLog_getByCart"; + this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -34708,7 +34717,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.PackLogDataTable getByCartId(global::System.Nullable CartID) { - this.Adapter.SelectCommand = this.CommandCollection[5]; + this.Adapter.SelectCommand = this.CommandCollection[6]; if ((CartID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(CartID.Value)); } @@ -34763,8 +34772,54 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int acquireOtherItems(global::System.Nullable OtherItemID, global::System.Nullable CartID, global::System.Nullable MaxNum, string Device, string UserName) { + public virtual int acquireItems(global::System.Nullable ItemID, global::System.Nullable CartID, string Device, string UserName) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((ItemID.HasValue == true)) { + command.Parameters[1].Value = ((int)(ItemID.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((CartID.HasValue == true)) { + command.Parameters[2].Value = ((int)(CartID.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Device == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Device)); + } + if ((UserName == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(UserName)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int acquireOtherItems(global::System.Nullable OtherItemID, global::System.Nullable CartID, global::System.Nullable MaxNum, string Device, string UserName) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((OtherItemID.HasValue == true)) { command.Parameters[1].Value = ((int)(OtherItemID.Value)); } @@ -34816,7 +34871,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int acquirePaint(global::System.Nullable BinID, global::System.Nullable CartID, global::System.Nullable MaxNum, string Device, string UserName) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((BinID.HasValue == true)) { command.Parameters[1].Value = ((int)(BinID.Value)); } @@ -34868,7 +34923,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int closeCart(global::System.Nullable CartID) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; if ((CartID.HasValue == true)) { command.Parameters[1].Value = ((int)(CartID.Value)); } diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index e1d9d37..8f21041 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -2620,6 +2620,20 @@ FROM v_PackListDet + + + + dbo.stp_PL_acquireItems + + + + + + + + + + @@ -2974,7 +2988,7 @@ FROM v_OKIB - + @@ -3024,7 +3038,7 @@ FROM v_OKIB - + @@ -3049,7 +3063,7 @@ FROM v_OKIB - + @@ -3104,7 +3118,7 @@ FROM v_OKIB - + @@ -3177,7 +3191,7 @@ FROM v_OKIB - + @@ -3185,7 +3199,7 @@ FROM v_OKIB - + @@ -3254,7 +3268,7 @@ FROM v_OKIB - + @@ -3287,7 +3301,7 @@ FROM v_OKIB - + @@ -3328,7 +3342,7 @@ FROM v_OKIB - + @@ -3347,7 +3361,7 @@ FROM v_OKIB - + @@ -3371,7 +3385,7 @@ FROM v_OKIB - + @@ -3379,7 +3393,7 @@ FROM v_OKIB - + @@ -3396,7 +3410,7 @@ FROM v_OKIB - + @@ -3405,7 +3419,7 @@ FROM v_OKIB - + @@ -3436,7 +3450,7 @@ FROM v_OKIB - + @@ -3444,7 +3458,7 @@ FROM v_OKIB - + @@ -3460,7 +3474,7 @@ FROM v_OKIB - + @@ -3468,7 +3482,7 @@ FROM v_OKIB - + @@ -3496,7 +3510,7 @@ FROM v_OKIB - + @@ -3532,7 +3546,7 @@ FROM v_OKIB - + @@ -3548,7 +3562,7 @@ FROM v_OKIB - + @@ -3558,7 +3572,7 @@ FROM v_OKIB - + @@ -3575,7 +3589,7 @@ FROM v_OKIB - + @@ -3588,7 +3602,7 @@ FROM v_OKIB - + @@ -3637,7 +3651,7 @@ FROM v_OKIB - + @@ -3666,7 +3680,7 @@ FROM v_OKIB - + @@ -3708,7 +3722,7 @@ FROM v_OKIB - + @@ -3817,7 +3831,7 @@ FROM v_OKIB - + @@ -3880,7 +3894,7 @@ FROM v_OKIB - + @@ -3925,7 +3939,7 @@ FROM v_OKIB - + @@ -3951,7 +3965,7 @@ FROM v_OKIB - + @@ -4044,7 +4058,7 @@ FROM v_OKIB - + @@ -4107,7 +4121,7 @@ FROM v_OKIB - + @@ -4166,7 +4180,7 @@ FROM v_OKIB - + @@ -4215,7 +4229,7 @@ FROM v_OKIB - + @@ -4373,18 +4387,18 @@ FROM v_OKIB - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 1ba117b..09adb00 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + diff --git a/NKC_WF/WebUserControls/cmp_KS_Items.ascx b/NKC_WF/WebUserControls/cmp_KS_Items.ascx index d40022b..ccd5eef 100644 --- a/NKC_WF/WebUserControls/cmp_KS_Items.ascx +++ b/NKC_WF/WebUserControls/cmp_KS_Items.ascx @@ -3,23 +3,21 @@ <%@ Register Src="~/WebUserControls/cmp_KS_currCart.ascx" TagPrefix="uc1" TagName="cmp_KS_currCart" %> <%@ Register Src="~/WebUserControls/cmp_KS_currItm.ascx" TagPrefix="uc1" TagName="cmp_KS_currItm" %> - - - -
-
- <%: traduci("ItemNeedsSecOp") %> - <%: traduci("ItemNeedsPaint") %> +
+ <%: traduci("ItemNeedsSecOp") %> +
+
+ <%: traduci("ItemNeedsPaint") %>
<%: traduci("ConfirmItemKitOk") %> @@ -30,7 +28,7 @@
- <%: traduci("AddItem") %> + <%: traduci("AddItem") %>
diff --git a/NKC_WF/WebUserControls/cmp_KS_Items.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_Items.ascx.cs index ae6b33f..7976b89 100644 --- a/NKC_WF/WebUserControls/cmp_KS_Items.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_KS_Items.ascx.cs @@ -1,4 +1,5 @@ using AppData; +using SteamWare; using System; using System.Collections.Generic; using System.Linq; @@ -156,23 +157,22 @@ namespace NKC_WF.WebUserControls // controllo visualizazione in base ai dati presenti cmp_KS_currItm.Visible = itemOk; cmp_KS_currCart.Visible = showBtns; -#if false - if (showBtns) - { - cmp_KS_OkibBin.Visible = false; - } - else - { - cmp_KS_OkibBin.Visible = binOk; - } -#endif // se ho item e cart --> mostro buttons calcolati! lbtAddItem.Visible = false; - if (showBtns) + if (showBtns && ItemValid) { // verifico SE item e cart corrispondono x mostrare button - - // FIXME TODO + var tabCarts = DataLayer.man.taCR.getByItemID(ItemID); + if (tabCarts != null) + { + if (tabCarts.Count == 1) + { + if (tabCarts[0].CartID == CartID) + { + lbtAddItem.Visible = true; + } + } + } } } public void doUpdate() @@ -185,18 +185,18 @@ namespace NKC_WF.WebUserControls protected void lbtConfItemValid_Click(object sender, EventArgs e) { ItemValid = true; + checkItemValidated(); } protected void lbtCancelItemValid_Click(object sender, EventArgs e) { ItemValid = false; + checkItemValidated(); } protected void lbtAddItem_Click(object sender, EventArgs e) { -#if false - DataLayer.man.taPLog.acquirePaint(BinID, CartID, 1, currIpAddress(), user_std.UtSn.userNameAD); -#endif + DataLayer.man.taPLog.acquireItems(ItemID, CartID, currIpAddress(), user_std.UtSn.userNameAD); // resetto CartID = 0; ItemID = 0; diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx index 870c5e5..8134dbf 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx @@ -25,6 +25,7 @@ +
@@ -41,7 +42,6 @@
-
diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs index 18eaf57..f6cfcd6 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs @@ -104,6 +104,15 @@ namespace NKC_WF.WebUserControls /// protected global::NKC_WF.WebUserControls.cmp_KS_Cart cmp_KS_Cart; + /// + /// Controllo cmp_KS_Items. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_KS_Items cmp_KS_Items; + /// /// Controllo divItemDet. /// @@ -149,15 +158,6 @@ namespace NKC_WF.WebUserControls /// protected global::System.Web.UI.WebControls.Label lblItemDtmx; - /// - /// Controllo cmp_KS_Items. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::NKC_WF.WebUserControls.cmp_KS_Items cmp_KS_Items; - /// /// Controllo divError. /// diff --git a/NKC_WF/site/MachineUnload.aspx b/NKC_WF/site/MachineUnload.aspx index 907077e..a7a8c2f 100644 --- a/NKC_WF/site/MachineUnload.aspx +++ b/NKC_WF/site/MachineUnload.aspx @@ -8,48 +8,47 @@ - - - - - -
-
-

<%: traduci("MachineUnload") %> (<%: hfBatchID.Value %>)

-
- +
+
+

<%: traduci("MachineUnload") %> (<%: hfBatchID.Value %>)

+
+ + + + + + + +
+
+ - - + + + +
+
+ + + + + + +
+
+ + + -
-
- - - - - -
-
- - - - - -
-
- - - - - -
-
-
+ + + + +
- - +
+
diff --git a/NKC_WF/site/MachineUnload.aspx.cs b/NKC_WF/site/MachineUnload.aspx.cs index 2b09799..317553d 100644 --- a/NKC_WF/site/MachineUnload.aspx.cs +++ b/NKC_WF/site/MachineUnload.aspx.cs @@ -13,6 +13,7 @@ namespace NKC_WF doUpdate(); } } + /// /// BatchId corrente... /// @@ -81,16 +82,26 @@ namespace NKC_WF } } - protected void timerStats_Tick(object sender, EventArgs e) - { - cmp_MU_stats.doUpdate(); - cmp_MU_bins.doUpdate(); - cmp_MU_carts.doUpdate(); - } - protected void timerSvg_Tick(object sender, EventArgs e) { - doUpdate(); + // in base al num di sec dell'ora decido cosa aggiornare... + int secondi = DateTime.Now.Second; + // ogni 10 generale + if (secondi % 10 == 0) + { + doUpdate(); + } + // ogni 5 stats + else if (secondi % 5 == 0) + { + cmp_MU_stats.doUpdate(); + } + // ogni 2 sec bin/cart + else if (secondi % 2 == 0) + { + cmp_MU_carts.doUpdate(); + cmp_MU_bins.doUpdate(); + } } } } \ No newline at end of file diff --git a/NKC_WF/site/MachineUnload.aspx.designer.cs b/NKC_WF/site/MachineUnload.aspx.designer.cs index 52e51c4..cb5ee38 100644 --- a/NKC_WF/site/MachineUnload.aspx.designer.cs +++ b/NKC_WF/site/MachineUnload.aspx.designer.cs @@ -15,13 +15,13 @@ namespace NKC_WF { /// - /// Controllo UpdatePanel2. + /// Controllo upnlStats. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.UpdatePanel UpdatePanel2; + protected global::System.Web.UI.UpdatePanel upnlStats; /// /// Controllo hfBatchID. @@ -41,24 +41,6 @@ namespace NKC_WF /// protected global::System.Web.UI.WebControls.HiddenField hfSheetID; - /// - /// Controllo timerSvg. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.Timer timerSvg; - - /// - /// Controllo upnlStats. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.UpdatePanel upnlStats; - /// /// Controllo cmp_MU_stats. /// @@ -68,15 +50,6 @@ namespace NKC_WF /// protected global::NKC_WF.WebUserControls.cmp_MU_stats cmp_MU_stats; - /// - /// Controllo timerStats. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.Timer timerStats; - /// /// Controllo upnlBins. /// @@ -104,6 +77,15 @@ namespace NKC_WF /// protected global::System.Web.UI.UpdatePanel upnlDrawings; + /// + /// Controllo timerSvg. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.Timer timerSvg; + /// /// Controllo cmp_MU_svgViewer. /// @@ -131,6 +113,15 @@ namespace NKC_WF /// protected global::NKC_WF.WebUserControls.cmp_MU_carts cmp_MU_carts; + /// + /// Controllo upnlSuggest. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.UpdatePanel upnlSuggest; + /// /// Controllo cmp_MU_suggestions. ///