diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index ed4ed72..1ac7f41 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -10022,8 +10022,6 @@ namespace AppData { private global::System.Data.DataColumn columnCartID; - private global::System.Data.DataColumn columnBatchID; - private global::System.Data.DataColumn columnOrdID; private global::System.Data.DataColumn columnCartIndex; @@ -10101,14 +10099,6 @@ namespace AppData { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn BatchIDColumn { - get { - return this.columnBatchID; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn OrdIDColumn { @@ -10292,7 +10282,6 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public CartOnKitRow AddCartOnKitRow( int CartID, - int BatchID, int OrdID, int CartIndex, string CartDtmx, @@ -10314,7 +10303,6 @@ namespace AppData { CartOnKitRow rowCartOnKitRow = ((CartOnKitRow)(this.NewRow())); object[] columnValuesArray = new object[] { CartID, - BatchID, OrdID, CartIndex, CartDtmx, @@ -10363,7 +10351,6 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] internal void InitVars() { this.columnCartID = base.Columns["CartID"]; - this.columnBatchID = base.Columns["BatchID"]; this.columnOrdID = base.Columns["OrdID"]; this.columnCartIndex = base.Columns["CartIndex"]; this.columnCartDtmx = base.Columns["CartDtmx"]; @@ -10389,8 +10376,6 @@ namespace AppData { private void InitClass() { this.columnCartID = new global::System.Data.DataColumn("CartID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCartID); - this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBatchID); this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnOrdID); this.columnCartIndex = new global::System.Data.DataColumn("CartIndex", typeof(int), null, global::System.Data.MappingType.Element); @@ -10431,7 +10416,6 @@ namespace AppData { this.columnCartID}, true)); this.columnCartID.AllowDBNull = false; this.columnCartID.Unique = true; - this.columnBatchID.AllowDBNull = false; this.columnCartIndex.AllowDBNull = false; this.columnCartDtmx.ReadOnly = true; this.columnCartDtmx.MaxLength = 10; @@ -12842,14 +12826,12 @@ namespace AppData { [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class PackCheckDataTable : global::System.Data.TypedTableBase { - private global::System.Data.DataColumn columnBatchID; + private global::System.Data.DataColumn columnCartID; private global::System.Data.DataColumn columnBatchName; private global::System.Data.DataColumn columnOrdID; - private global::System.Data.DataColumn columnCartID; - private global::System.Data.DataColumn columnCartDtmx; private global::System.Data.DataColumn columnNumTot; @@ -12895,9 +12877,9 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn BatchIDColumn { + public global::System.Data.DataColumn CartIDColumn { get { - return this.columnBatchID; + return this.columnCartID; } } @@ -12917,14 +12899,6 @@ namespace AppData { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn CartIDColumn { - get { - return this.columnCartID; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn CartDtmxColumn { @@ -13002,13 +12976,12 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public PackCheckRow AddPackCheckRow(int BatchID, string BatchName, int OrdID, string CartDtmx, int NumTot, int NumProd, int NumKit, int NumPenalty) { + public PackCheckRow AddPackCheckRow(string BatchName, int OrdID, string CartDtmx, int NumTot, int NumProd, int NumKit, int NumPenalty) { PackCheckRow rowPackCheckRow = ((PackCheckRow)(this.NewRow())); object[] columnValuesArray = new object[] { - BatchID, + null, BatchName, OrdID, - null, CartDtmx, NumTot, NumProd, @@ -13036,10 +13009,9 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] internal void InitVars() { - this.columnBatchID = base.Columns["BatchID"]; + this.columnCartID = base.Columns["CartID"]; this.columnBatchName = base.Columns["BatchName"]; this.columnOrdID = base.Columns["OrdID"]; - this.columnCartID = base.Columns["CartID"]; this.columnCartDtmx = base.Columns["CartDtmx"]; this.columnNumTot = base.Columns["NumTot"]; this.columnNumProd = base.Columns["NumProd"]; @@ -13050,14 +13022,12 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitClass() { - this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBatchID); + this.columnCartID = new global::System.Data.DataColumn("CartID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartID); this.columnBatchName = new global::System.Data.DataColumn("BatchName", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnBatchName); this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnOrdID); - this.columnCartID = new global::System.Data.DataColumn("CartID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCartID); this.columnCartDtmx = new global::System.Data.DataColumn("CartDtmx", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCartDtmx); this.columnNumTot = new global::System.Data.DataColumn("NumTot", typeof(int), null, global::System.Data.MappingType.Element); @@ -13070,13 +13040,13 @@ namespace AppData { base.Columns.Add(this.columnNumPenalty); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnCartID}, false)); - this.columnBatchName.AllowDBNull = false; - this.columnBatchName.MaxLength = 50; this.columnCartID.AutoIncrement = true; this.columnCartID.AutoIncrementSeed = -1; this.columnCartID.AutoIncrementStep = -1; this.columnCartID.ReadOnly = true; this.columnCartID.Unique = true; + this.columnBatchName.AllowDBNull = false; + this.columnBatchName.MaxLength = 50; this.columnCartDtmx.ReadOnly = true; this.columnCartDtmx.MaxLength = 10; this.columnNumTot.ReadOnly = true; @@ -19485,17 +19455,6 @@ namespace AppData { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int BatchID { - get { - return ((int)(this[this.tableCartOnKit.BatchIDColumn])); - } - set { - this[this.tableCartOnKit.BatchIDColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int OrdID { @@ -20989,17 +20948,17 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int BatchID { + public int CartID { get { try { - return ((int)(this[this.tablePackCheck.BatchIDColumn])); + return ((int)(this[this.tablePackCheck.CartIDColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'BatchID\' nella tabella \'PackCheck\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartID\' nella tabella \'PackCheck\' è DBNull.", e); } } set { - this[this.tablePackCheck.BatchIDColumn] = value; + this[this.tablePackCheck.CartIDColumn] = value; } } @@ -21030,22 +20989,6 @@ namespace AppData { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int CartID { - get { - try { - return ((int)(this[this.tablePackCheck.CartIDColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartID\' nella tabella \'PackCheck\' è DBNull.", e); - } - } - set { - this[this.tablePackCheck.CartIDColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public string CartDtmx { @@ -21128,14 +21071,14 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsBatchIDNull() { - return this.IsNull(this.tablePackCheck.BatchIDColumn); + public bool IsCartIDNull() { + return this.IsNull(this.tablePackCheck.CartIDColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetBatchIDNull() { - this[this.tablePackCheck.BatchIDColumn] = global::System.Convert.DBNull; + public void SetCartIDNull() { + this[this.tablePackCheck.CartIDColumn] = global::System.Convert.DBNull; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -21150,18 +21093,6 @@ namespace AppData { this[this.tablePackCheck.OrdIDColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsCartIDNull() { - return this.IsNull(this.tablePackCheck.CartIDColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetCartIDNull() { - this[this.tablePackCheck.CartIDColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsCartDtmxNull() { @@ -30000,7 +29931,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 +29955,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 +30182,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; + } } /// @@ -33498,7 +33463,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "CartOnKit"; tableMapping.ColumnMappings.Add("CartID", "CartID"); - tableMapping.ColumnMappings.Add("BatchID", "BatchID"); tableMapping.ColumnMappings.Add("OrdID", "OrdID"); tableMapping.ColumnMappings.Add("CartIndex", "CartIndex"); tableMapping.ColumnMappings.Add("CartDtmx", "CartDtmx"); @@ -33533,7 +33497,10 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_CartKitDetail"; + this._commandCollection[0].CommandText = "SELECT OrdID, CartID, CartIndex, CartDtmx, CreationDate, KittingStart, KittingEnd" + + ", TotItem, TotItemCart, TotItemBinReq, NumPzBinAvail, NumPzWaiting, OtherQtyReq," + + " OtherQtyCur, OtherQtyWait, OrderExtCode, DestPlant, ModelCode, KitQty FROM v_Ca" + + "rtKitDetail"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; } @@ -35071,10 +35038,9 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "PackCheck"; - tableMapping.ColumnMappings.Add("BatchID", "BatchID"); + tableMapping.ColumnMappings.Add("CartID", "CartID"); tableMapping.ColumnMappings.Add("BatchName", "BatchName"); tableMapping.ColumnMappings.Add("OrdID", "OrdID"); - tableMapping.ColumnMappings.Add("CartID", "CartID"); tableMapping.ColumnMappings.Add("CartDtmx", "CartDtmx"); tableMapping.ColumnMappings.Add("NumTot", "NumTot"); tableMapping.ColumnMappings.Add("NumProd", "NumProd"); diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 5ac9949..67ad89e 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 + + + + + + + @@ -2312,8 +2323,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - SELECT * -FROM v_CartKitDetail + SELECT OrdID, CartID, CartIndex, CartDtmx, CreationDate, KittingStart, KittingEnd, TotItem, TotItemCart, TotItemBinReq, NumPzBinAvail, NumPzWaiting, OtherQtyReq, OtherQtyCur, OtherQtyWait, OrderExtCode, DestPlant, ModelCode, KitQty FROM v_CartKitDetail @@ -2321,7 +2331,6 @@ FROM v_CartKitDetail - @@ -2680,10 +2689,9 @@ FROM v_PackListDet - + - @@ -3585,7 +3593,6 @@ FROM v_OKIB - @@ -3922,7 +3929,7 @@ FROM v_OKIB - + @@ -3931,7 +3938,6 @@ FROM v_OKIB - diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 3028c59..093e140 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 @@ - + @@ -35,7 +35,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/Jenkinsfile b/Jenkinsfile index f25b09a..71eecc8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=296']) { + withEnv(['NEXT_BUILD_NUMBER=298']) { // env.versionNumber = VersionNumber(versionNumberString : '0.10.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '0.10.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.versionNumberBeta = VersionNumber(versionNumberString : '0.10.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') diff --git a/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx.cs b/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx.cs index 9ff42bc..a08be3d 100644 --- a/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx.cs @@ -164,6 +164,10 @@ namespace NKC_WF.WebUserControls tryImport(false); } processValidation(); + if(imported) + { + raiseReset(); + } } } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_kitting.ascx.cs b/NKC_WF/WebUserControls/cmp_kitting.ascx.cs index 4778704..12dcdc9 100644 --- a/NKC_WF/WebUserControls/cmp_kitting.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kitting.ascx.cs @@ -8,5 +8,11 @@ namespace NKC_WF.WebUserControls { } + + public void doUpdate() + { + cmp_kittingBin.doUpdate(); + cmp_kittingCart.doUpdate(); + } } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_kittingBin.ascx b/NKC_WF/WebUserControls/cmp_kittingBin.ascx index 36217ad..d3b56da 100644 --- a/NKC_WF/WebUserControls/cmp_kittingBin.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingBin.ascx @@ -42,10 +42,8 @@
Qty:
-
- / - - +
+ /
diff --git a/NKC_WF/WebUserControls/cmp_kittingBin.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingBin.ascx.cs index 067eb8a..8e68db6 100644 --- a/NKC_WF/WebUserControls/cmp_kittingBin.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingBin.ascx.cs @@ -8,5 +8,10 @@ namespace NKC_WF.WebUserControls { } + + public void doUpdate() + { + repBins.DataBind(); + } } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs index bcd5447..84dde93 100644 --- a/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs @@ -34,5 +34,10 @@ namespace NKC_WF.WebUserControls } return answ; } + + public void doUpdate() + { + repCarts.DataBind(); + } } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index cffc385..62f40bb 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -282,7 +282,7 @@ namespace NKC_WF.WebUserControls var tabLog = DataLayer.man.taPLog.getByCartId(codeInt); if (tabLog.Count > 0) { - // verifico se sia completo -_> reset... altrimenti lascio così... + // verifico se sia completo --> reset... altrimenti lascio così... var tabCOK = DataLayer.man.taCOK.GetData(); // cerco se sia "green" numWait + numReady + numOtherWait = 0 var tabGreen = tabCOK.Where(x => (x.NumPzWaiting + x.NumPzBinAvail + x.OtherQtyWait == 0) && x.CartDtmx == rawData).ToList(); @@ -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 { diff --git a/NKC_WF/site/KitRequestImporter.aspx b/NKC_WF/site/KitRequestImporter.aspx index c48428a..51afd0e 100644 --- a/NKC_WF/site/KitRequestImporter.aspx +++ b/NKC_WF/site/KitRequestImporter.aspx @@ -17,13 +17,20 @@
-
- -
-
- -
+ + +
+
+ +
+
+ +
+ +
+
+
diff --git a/NKC_WF/site/KitRequestImporter.aspx.cs b/NKC_WF/site/KitRequestImporter.aspx.cs index a51cc5b..5e78b13 100644 --- a/NKC_WF/site/KitRequestImporter.aspx.cs +++ b/NKC_WF/site/KitRequestImporter.aspx.cs @@ -20,15 +20,20 @@ namespace NKC_WF { if (!Page.IsPostBack) { - ((SiteMaster)this.Master).showSearch = false; doUpdate(); cmp_kitImpCheck.Visible = false; } cmp_kitImpCheck.eh_doRefresh += Cmp_kitImpCheck_eh_doRefresh; + cmp_kitImpCheck.eh_doReset += cmp_kitImpCheck_eh_doReset; cmp_fileUpload.eh_doRefresh += Cmp_fileUpload_eh_doRefresh; cmp_fileUpload.eh_FileUploaded += Cmp_fileUpload_eh_FileUploaded; } + private void cmp_kitImpCheck_eh_doReset(object sender, EventArgs e) + { + Response.Redirect(Request.RawUrl); + } + private void Cmp_kitImpCheck_eh_doRefresh(object sender, EventArgs e) { doUpdate(); @@ -74,5 +79,9 @@ namespace NKC_WF { cmp_kitList.doUpdate(); } + protected void Timer1_Tick(object sender, EventArgs e) + { + doUpdate(); + } } } \ No newline at end of file diff --git a/NKC_WF/site/KitRequestImporter.aspx.designer.cs b/NKC_WF/site/KitRequestImporter.aspx.designer.cs index 49490d6..372ffe6 100644 --- a/NKC_WF/site/KitRequestImporter.aspx.designer.cs +++ b/NKC_WF/site/KitRequestImporter.aspx.designer.cs @@ -11,43 +11,61 @@ namespace NKC_WF { - public partial class KitRequestImporter - { + public partial class KitRequestImporter + { - /// - /// Controllo cmp_fileUpload. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::NKC_WF.WebUserContols.cmp_fileUpload cmp_fileUpload; + /// + /// Controllo cmp_fileUpload. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserContols.cmp_fileUpload cmp_fileUpload; - /// - /// Controllo cmp_kitImpCheck. - /// - /// - /// 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_kitImpCheck cmp_kitImpCheck; + /// + /// Controllo UpdatePanel1. + /// + /// + /// 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 UpdatePanel1; - /// - /// Controllo divKitList. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divKitList; + /// + /// Controllo cmp_kitImpCheck. + /// + /// + /// 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_kitImpCheck cmp_kitImpCheck; - /// - /// Controllo cmp_kitList. - /// - /// - /// 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_kitList cmp_kitList; - } + /// + /// Controllo divKitList. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divKitList; + + /// + /// Controllo cmp_kitList. + /// + /// + /// 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_kitList cmp_kitList; + + /// + /// Controllo Timer1. + /// + /// + /// 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 Timer1; + } } diff --git a/NKC_WF/site/Kitting.aspx b/NKC_WF/site/Kitting.aspx index 3f604ee..b3a30dc 100644 --- a/NKC_WF/site/Kitting.aspx +++ b/NKC_WF/site/Kitting.aspx @@ -6,8 +6,13 @@ -
- - -
+ + + +
+ + +
+
+
diff --git a/NKC_WF/site/Kitting.aspx.cs b/NKC_WF/site/Kitting.aspx.cs index 0f0c419..870cbb0 100644 --- a/NKC_WF/site/Kitting.aspx.cs +++ b/NKC_WF/site/Kitting.aspx.cs @@ -12,5 +12,11 @@ namespace NKC_WF.site ((SiteMaster)this.Master).showSearch = false; } } + + protected void timerKitting_Tick(object sender, EventArgs e) + { + cmp_kitRunning.doUpdate(); + cmp_kitting.doUpdate(); + } } } \ No newline at end of file diff --git a/NKC_WF/site/Kitting.aspx.designer.cs b/NKC_WF/site/Kitting.aspx.designer.cs index 4f517a0..c2cbc7b 100644 --- a/NKC_WF/site/Kitting.aspx.designer.cs +++ b/NKC_WF/site/Kitting.aspx.designer.cs @@ -14,6 +14,24 @@ namespace NKC_WF.site public partial class Kitting { + /// + /// Controllo timerKitting. + /// + /// + /// 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 timerKitting; + + /// + /// Controllo UpdatePanel2. + /// + /// + /// 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; + /// /// Controllo cmp_kitRunning. /// diff --git a/NKC_WF/site/MachineLoad.aspx b/NKC_WF/site/MachineLoad.aspx index 96f4987..06b73eb 100644 --- a/NKC_WF/site/MachineLoad.aspx +++ b/NKC_WF/site/MachineLoad.aspx @@ -4,26 +4,37 @@ <%@ Register Src="~/WebUserControls/cmp_ML_ShDet.ascx" TagPrefix="uc1" TagName="cmp_ML_ShDet" %> -
-

<%: traduci("MachineLoad") %>

-
-
-
- + +
+

<%: traduci("MachineLoad") %>

+
+ + +
+
+ +
+
+
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
-
- -
-
- -
-
- -
-
- -
-
-
diff --git a/NKC_WF/site/MachineLoad.aspx.cs b/NKC_WF/site/MachineLoad.aspx.cs index 1f5a2fe..d253933 100644 --- a/NKC_WF/site/MachineLoad.aspx.cs +++ b/NKC_WF/site/MachineLoad.aspx.cs @@ -9,8 +9,8 @@ namespace NKC_WF if (!Page.IsPostBack) { ((SiteContent)this.Master).showSearch = false; + forceRefresh(); } - forceRefresh(); cmp_stackLoading.eh_doRefresh += Cmp_stackLoading_eh_doRefresh; } @@ -25,11 +25,15 @@ namespace NKC_WF cmp_ML_ShDet1.BatchId = cmp_stackLoading.BatchIdCurr; cmp_ML_ShDet2.BatchId = cmp_stackLoading.BatchIdCurr; cmp_ML_ShDet3.BatchId = cmp_stackLoading.BatchIdCurr; - // refresh vari! cmp_ML_ShDet.doUpdate(); cmp_ML_ShDet1.doUpdate(); cmp_ML_ShDet2.doUpdate(); cmp_ML_ShDet3.doUpdate(); } + + protected void timerLoad_Tick(object sender, EventArgs e) + { + forceRefresh(); + } } } \ No newline at end of file diff --git a/NKC_WF/site/MachineLoad.aspx.designer.cs b/NKC_WF/site/MachineLoad.aspx.designer.cs index 660d75f..1a4afa6 100644 --- a/NKC_WF/site/MachineLoad.aspx.designer.cs +++ b/NKC_WF/site/MachineLoad.aspx.designer.cs @@ -7,11 +7,31 @@ // //------------------------------------------------------------------------------ -namespace NKC_WF { - - - public partial class MachineLoad { - +namespace NKC_WF +{ + + + public partial class MachineLoad + { + + /// + /// Controllo timerLoad. + /// + /// + /// 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 timerLoad; + + /// + /// Controllo upnlBCode. + /// + /// + /// 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 upnlBCode; + /// /// Controllo cmp_stackLoading. /// @@ -20,7 +40,16 @@ namespace NKC_WF { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::NKC_WF.WebUserControls.cmp_stackLoading cmp_stackLoading; - + + /// + /// Controllo upnlLoad. + /// + /// + /// 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 upnlLoad; + /// /// Controllo cmp_ML_ShDet. /// @@ -29,7 +58,7 @@ namespace NKC_WF { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::NKC_WF.WebUserControls.cmp_ML_ShDet cmp_ML_ShDet; - + /// /// Controllo cmp_ML_ShDet1. /// @@ -38,7 +67,7 @@ namespace NKC_WF { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::NKC_WF.WebUserControls.cmp_ML_ShDet cmp_ML_ShDet1; - + /// /// Controllo cmp_ML_ShDet2. /// @@ -47,7 +76,7 @@ namespace NKC_WF { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::NKC_WF.WebUserControls.cmp_ML_ShDet cmp_ML_ShDet2; - + /// /// Controllo cmp_ML_ShDet3. /// diff --git a/NKC_WF/site/MachineUnload.aspx b/NKC_WF/site/MachineUnload.aspx index b34281d..424cf71 100644 --- a/NKC_WF/site/MachineUnload.aspx +++ b/NKC_WF/site/MachineUnload.aspx @@ -8,30 +8,48 @@ - - - - -
-
-

<%: 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 1882ceb..2b09799 100644 --- a/NKC_WF/site/MachineUnload.aspx.cs +++ b/NKC_WF/site/MachineUnload.aspx.cs @@ -80,5 +80,17 @@ namespace NKC_WF BatchId = 0; } } + + 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(); + } } } \ 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 e8749b5..a39e413 100644 --- a/NKC_WF/site/MachineUnload.aspx.designer.cs +++ b/NKC_WF/site/MachineUnload.aspx.designer.cs @@ -11,79 +11,133 @@ namespace NKC_WF { - public partial class MachineUnload - { + public partial class MachineUnload + { - /// - /// Controllo hfBatchID. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.HiddenField hfBatchID; + /// + /// Controllo hfBatchID. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfBatchID; - /// - /// Controllo hfSheetID. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.HiddenField hfSheetID; + /// + /// Controllo hfSheetID. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfSheetID; - /// - /// Controllo upnlDrawings. - /// - /// - /// 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 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_stats. - /// - /// - /// 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_MU_stats cmp_MU_stats; + /// + /// Controllo UpdatePanel2. + /// + /// + /// 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; - /// - /// Controllo cmp_MU_bins. - /// - /// - /// 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_MU_bins cmp_MU_bins; + /// + /// 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_svgViewer. - /// - /// - /// 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_MU_svgViewer cmp_MU_svgViewer; + /// + /// Controllo cmp_MU_stats. + /// + /// + /// 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_MU_stats cmp_MU_stats; - /// - /// Controllo cmp_MU_carts. - /// - /// - /// 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_MU_carts cmp_MU_carts; + /// + /// 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 cmp_MU_suggestions. - /// - /// - /// 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_MU_suggestions cmp_MU_suggestions; - } + /// + /// Controllo upnlBins. + /// + /// + /// 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 upnlBins; + + /// + /// Controllo cmp_MU_bins. + /// + /// + /// 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_MU_bins cmp_MU_bins; + + /// + /// Controllo upnlDrawings. + /// + /// + /// 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 upnlDrawings; + + /// + /// Controllo cmp_MU_svgViewer. + /// + /// + /// 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_MU_svgViewer cmp_MU_svgViewer; + + /// + /// Controllo upnlCarts. + /// + /// + /// 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 upnlCarts; + + /// + /// Controllo cmp_MU_carts. + /// + /// + /// 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_MU_carts cmp_MU_carts; + + /// + /// Controllo cmp_MU_suggestions. + /// + /// + /// 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_MU_suggestions cmp_MU_suggestions; + } } diff --git a/NKC_WF/site/OrderManager.aspx b/NKC_WF/site/OrderManager.aspx index 7f40fdf..1d4b935 100644 --- a/NKC_WF/site/OrderManager.aspx +++ b/NKC_WF/site/OrderManager.aspx @@ -11,7 +11,7 @@
-
+
diff --git a/NKC_WF/site/OrderManager.aspx.cs b/NKC_WF/site/OrderManager.aspx.cs index da10962..1d810f8 100644 --- a/NKC_WF/site/OrderManager.aspx.cs +++ b/NKC_WF/site/OrderManager.aspx.cs @@ -163,7 +163,8 @@ namespace NKC_WF catch { } } - doUpdate(); + Response.Redirect(Request.RawUrl); + //doUpdate(); } /// /// Effettua validazione dati