From b709dfe3f50a7f108b631112d2606f95e54c2cb2 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 15 Jul 2020 14:30:11 +0200 Subject: [PATCH] nuovo metodo selezione next bunk --- AppData/DS_App.Designer.cs | 11 ++--------- AppData/DS_App.xsd | 5 ++--- AppData/DS_App.xss | 8 ++++---- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 637ed3f..fe63964 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -18432,10 +18432,9 @@ namespace AppData.DS_AppTableAdapters { 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[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6].Connection = this.Connection; - this._commandCollection[6].CommandText = "dbo.stp_Stacks_getNextByBatch"; + 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("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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"; @@ -18559,14 +18558,8 @@ 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 getNextByBatch(global::System.Nullable BatchID) { + public virtual DS_App.StackListDataTable getNext() { this.Adapter.SelectCommand = this.CommandCollection[6]; - if ((BatchID.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } 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 e517ab1..6bdf531 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -370,13 +370,12 @@ FROM v_StackList - + - dbo.stp_Stacks_getNextByBatch + dbo.stp_Stacks_getNext - diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index d925c90..53a9e36 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,10 +4,10 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - + + @@ -27,7 +27,7 @@ - +