diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index ed4ed72..8844af3 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -30000,7 +30000,7 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki [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[4]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM KitList"; @@ -30024,6 +30024,12 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki 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("@KitID", 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[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_KL_updateCartForBin"; + 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("@CartDtmx", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -30245,6 +30251,34 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki public virtual int Update(int OrdID, int BatchID, int CartID, string KitExtCode, int Original_KitID, int Original_OrdID, int Original_BatchID, int Original_CartID, string Original_KitExtCode) { return this.Update(OrdID, BatchID, CartID, KitExtCode, Original_KitID, Original_OrdID, Original_BatchID, Original_CartID, Original_KitExtCode, Original_KitID); } + + [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 updateCartForBin(string CartDtmx) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((CartDtmx == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CartDtmx)); + } + 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; + } } /// diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 5ac9949..e8119a3 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -1583,6 +1583,17 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki + + + + dbo.stp_KL_updateCartForBin + + + + + + + @@ -2967,7 +2978,7 @@ FROM v_OKIB - + @@ -3017,7 +3028,7 @@ FROM v_OKIB - + @@ -3042,7 +3053,7 @@ FROM v_OKIB - + @@ -3097,7 +3108,7 @@ FROM v_OKIB - + @@ -3170,7 +3181,7 @@ FROM v_OKIB - + @@ -3178,7 +3189,7 @@ FROM v_OKIB - + @@ -3247,7 +3258,7 @@ FROM v_OKIB - + @@ -3280,7 +3291,7 @@ FROM v_OKIB - + @@ -3321,7 +3332,7 @@ FROM v_OKIB - + @@ -3340,7 +3351,7 @@ FROM v_OKIB - + @@ -3364,7 +3375,7 @@ FROM v_OKIB - + @@ -3372,7 +3383,7 @@ FROM v_OKIB - + @@ -3389,7 +3400,7 @@ FROM v_OKIB - + @@ -3398,7 +3409,7 @@ FROM v_OKIB - + @@ -3429,7 +3440,7 @@ FROM v_OKIB - + @@ -3437,7 +3448,7 @@ FROM v_OKIB - + @@ -3453,7 +3464,7 @@ FROM v_OKIB - + @@ -3461,7 +3472,7 @@ FROM v_OKIB - + @@ -3489,7 +3500,7 @@ FROM v_OKIB - + @@ -3525,7 +3536,7 @@ FROM v_OKIB - + @@ -3541,7 +3552,7 @@ FROM v_OKIB - + @@ -3551,7 +3562,7 @@ FROM v_OKIB - + @@ -3568,7 +3579,7 @@ FROM v_OKIB - + @@ -3581,7 +3592,7 @@ FROM v_OKIB - + @@ -3631,7 +3642,7 @@ FROM v_OKIB - + @@ -3660,7 +3671,7 @@ FROM v_OKIB - + @@ -3702,7 +3713,7 @@ FROM v_OKIB - + @@ -3811,7 +3822,7 @@ FROM v_OKIB - + @@ -3874,7 +3885,7 @@ FROM v_OKIB - + @@ -3919,7 +3930,7 @@ FROM v_OKIB - + @@ -3946,7 +3957,7 @@ FROM v_OKIB - + @@ -4039,7 +4050,7 @@ FROM v_OKIB - + @@ -4102,7 +4113,7 @@ FROM v_OKIB - + @@ -4161,7 +4172,7 @@ FROM v_OKIB - + @@ -4211,7 +4222,7 @@ FROM v_OKIB - + @@ -4368,18 +4379,18 @@ FROM v_OKIB - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 3028c59..38afcca 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. --> - + @@ -17,7 +17,7 @@ - + @@ -82,12 +82,12 @@ - 788 - 122 + 823 + 68 861 - 122 + 68 @@ -106,12 +106,12 @@ - 699 + 707 340 - 699 - 313 + 707 + 278 @@ -119,11 +119,11 @@ 550 - 151 + 97 - 604 - 151 + 612 + 97 diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index cffc385..56d0d63 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -327,6 +327,8 @@ namespace NKC_WF.WebUserControls DataLayer.man.taPLog.acquireCart(rawData, currIpAddress(), user_std.UtSn.userNameAD); displInfo($"OK: CART acquired {rawData} - item confirmed", true); lastObject = ""; + // eseguo comando x spostare i PAINT nel cart corretto... + DataLayer.man.taKL.updateCartForBin(rawData); } else {