From a9ecb260fb9a9fff935ae716dfc5bdf33c0c9c7f Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 14 Jul 2021 08:30:42 +0200 Subject: [PATCH] FIx next bunk da posizione macchina! --- AppData/DS_App.Designer.cs | 9 +++- AppData/DS_App.xsd | 1 + .../WebUserControls/cmp_stackNextloading.ascx | 37 +++++++------ .../cmp_stackNextloading.ascx.designer.cs | 52 +++++++++---------- 4 files changed, 55 insertions(+), 44 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 7081945..5429784 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -28916,6 +28916,7 @@ namespace AppData.DS_AppTableAdapters { this._commandCollection[6].CommandText = "dbo.stp_Stacks_getNext"; 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("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[7].Connection = this.Connection; this._commandCollection[7].CommandText = "dbo.stp_Stacks_insert"; @@ -29039,8 +29040,14 @@ namespace AppData.DS_AppTableAdapters { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_App.StackListDataTable getNext() { + public virtual DS_App.StackListDataTable getNext(string PlaceCod) { this.Adapter.SelectCommand = this.CommandCollection[6]; + if ((PlaceCod == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(PlaceCod)); + } DS_App.StackListDataTable dataTable = new DS_App.StackListDataTable(); this.Adapter.Fill(dataTable); return dataTable; diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 13bdaa4..7b778c2 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -438,6 +438,7 @@ FROM v_StackList dbo.stp_Stacks_getNext + diff --git a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx index 9e57969..0cd68db 100644 --- a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx +++ b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx @@ -9,7 +9,7 @@ <%: traduci("NoCurrentBunk") %>
- <%: traduci("Waiting") %> + <%: traduci("Waiting") %>
@@ -18,40 +18,40 @@
- <%: traduci("Previous") %> <%: traduci("Bunk") %> + <%: traduci("Previous") %> <%: traduci("Bunk") %> ()
- <%: traduci("Current") %> <%: traduci("Bunk") %> + <%: traduci("Current") %> <%: traduci("Bunk") %> ()
- <%: traduci("Sheets") %> + <%: traduci("Sheets") %>
- <%: traduci("Printed") %> + <%: traduci("Printed") %>
- <%: traduci("Worked") %> + <%: traduci("Worked") %>
- <%: traduci("ToRedo") %> + <%: traduci("ToRedo") %>
- <%: traduci("Items") %> + <%: traduci("Items") %>
- <%: traduci("Items") %> + <%: traduci("Items") %>
@@ -68,17 +68,17 @@
- <%: traduci("Next") %> # <%: traduci("Bunk") %> + <%: traduci("Next") %> # <%: traduci("Bunk") %> ()
- <%: traduci("Sheets") %> | printed: + <%: traduci("Sheets") %> | printed: | worked:
- <%: traduci("Items") %> + <%: traduci("Items") %>
@@ -86,10 +86,10 @@
- <%: traduci("NoNextBunk") %> + <%: traduci("NoNextBunk") %>
- <%: traduci("BatchComplete") %> + <%: traduci("BatchComplete") %>
@@ -99,10 +99,13 @@ - + + + + +
<%: traduci("CollectRedoOnEnd") %>
-
- + \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.designer.cs index 444cd3a..ba5e43b 100644 --- a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// 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. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace NKC_WF.WebUserControls @@ -15,65 +15,65 @@ namespace NKC_WF.WebUserControls { /// - /// Controllo hfBatchID. + /// hfBatchID control. /// /// - /// 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. /// protected global::System.Web.UI.WebControls.HiddenField hfBatchID; /// - /// Controllo grViewCurrent. + /// grViewCurrent control. /// /// - /// 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. /// protected global::System.Web.UI.WebControls.GridView grViewCurrent; /// - /// Controllo lbtCollectRedo. + /// lbtCollectRedo control. /// /// - /// 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. /// protected global::System.Web.UI.WebControls.LinkButton lbtCollectRedo; /// - /// Controllo frmViewNext. + /// frmViewNext control. /// /// - /// 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. /// protected global::System.Web.UI.WebControls.FormView frmViewNext; /// - /// Controllo odsCurr. + /// odsCurr control. /// /// - /// 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. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsCurr; /// - /// Controllo odsNext. + /// odsNext control. /// /// - /// 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. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsNext; /// - /// Controllo lbtCollectRedoOnEnd. + /// lbtCollectRedoOnEnd control. /// /// - /// 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. /// protected global::System.Web.UI.WebControls.LinkButton lbtCollectRedoOnEnd; }