diff --git a/AppData/ComLib.cs b/AppData/ComLib.cs index 9b77ca5..91861b8 100644 --- a/AppData/ComLib.cs +++ b/AppData/ComLib.cs @@ -214,10 +214,10 @@ namespace AppData answ = traduci("StackDone"); break; case BatchPosition.Current: - answ = traduci("StackCurrent"); + answ = traduci("BatchCurrent"); break; case BatchPosition.Completed: - answ = traduci("StackCompleted"); + answ = traduci("BatchCompleted"); break; default: break; diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 60c3540..9684f40 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -17543,7 +17543,7 @@ namespace AppData.DS_AppTableAdapters { [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[22]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[23]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_BatchList"; @@ -17582,100 +17582,106 @@ namespace AppData.DS_AppTableAdapters { this._commandCollection[5].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[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6].Connection = this.Connection; - this._commandCollection[6].CommandText = "dbo.stp_Batch_fixSched"; + this._commandCollection[6].CommandText = "dbo.stp_Batch_fixRedoSheetOnEnd"; 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_Batch_getByKey"; + this._commandCollection[7].CommandText = "dbo.stp_Batch_fixSched"; this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[7].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[7].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[8] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[8].Connection = this.Connection; - this._commandCollection[8].CommandText = "dbo.stp_Batch_getByMaxPosition"; + this._commandCollection[8].CommandText = "dbo.stp_Batch_getByKey"; this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Position", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].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[9] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[9].Connection = this.Connection; - this._commandCollection[9].CommandText = "dbo.stp_Batch_getByStatus"; + this._commandCollection[9].CommandText = "dbo.stp_Batch_getByMaxPosition"; this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchVal", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartValid", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Position", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[10].Connection = this.Connection; - this._commandCollection[10].CommandText = "dbo.stp_Batch_getCurrentByMachine"; + this._commandCollection[10].CommandText = "dbo.stp_Batch_getByStatus"; this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[10].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[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPosition", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchVal", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartValid", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[11].Connection = this.Connection; - this._commandCollection[11].CommandText = "dbo.stp_Batch_getLastByTakt"; + this._commandCollection[11].CommandText = "dbo.stp_Batch_getCurrentByMachine"; this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[11].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[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Takt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPosition", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[12].Connection = this.Connection; - this._commandCollection[12].CommandText = "dbo.stp_Batch_getNextAvailable"; + this._commandCollection[12].CommandText = "dbo.stp_Batch_getLastByTakt"; this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[12].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[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Takt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[13] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[13].Connection = this.Connection; - this._commandCollection[13].CommandText = "dbo.stp_Batch_getRunning"; + this._commandCollection[13].CommandText = "dbo.stp_Batch_getNextAvailable"; this._commandCollection[13].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[13].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[14] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[14].Connection = this.Connection; - this._commandCollection[14].CommandText = "dbo.stp_Batch_getSched"; + this._commandCollection[14].CommandText = "dbo.stp_Batch_getRunning"; this._commandCollection[14].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[14].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[15] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[15].Connection = this.Connection; - this._commandCollection[15].CommandText = "dbo.stp_Batch_redoPartValid"; + this._commandCollection[15].CommandText = "dbo.stp_Batch_getSched"; this._commandCollection[15].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[15].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[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Takt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[16].Connection = this.Connection; - this._commandCollection[16].CommandText = "dbo.stp_Batch_resetAllNesting"; + this._commandCollection[16].CommandText = "dbo.stp_Batch_redoPartValid"; this._commandCollection[16].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[16].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[16].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[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Takt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[17] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[17].Connection = this.Connection; - this._commandCollection[17].CommandText = "dbo.stp_Batch_resetPartUnValid"; + this._commandCollection[17].CommandText = "dbo.stp_Batch_resetAllNesting"; this._commandCollection[17].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[17].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[17].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[18] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[18].Connection = this.Connection; - this._commandCollection[18].CommandText = "dbo.stp_zzz_resetProdCall"; + this._commandCollection[18].CommandText = "dbo.stp_Batch_resetPartUnValid"; this._commandCollection[18].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[18].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[19] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[19].Connection = this.Connection; - this._commandCollection[19].CommandText = "dbo.stp_Batch_resetTree"; + this._commandCollection[19].CommandText = "dbo.stp_zzz_resetProdCall"; this._commandCollection[19].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[19].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[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[20].Connection = this.Connection; - this._commandCollection[20].CommandText = "dbo.stp_Batch_updateSchedPrior"; + this._commandCollection[20].CommandText = "dbo.stp_Batch_resetTree"; this._commandCollection[20].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[20].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[20].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[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SchedPrio", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[21] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[21].Connection = this.Connection; - this._commandCollection[21].CommandText = "dbo.stp_Batch_updateStatus"; + this._commandCollection[21].CommandText = "dbo.stp_Batch_updateSchedPrior"; this._commandCollection[21].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[21].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[21].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[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EnvNum", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalTime", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SchedPrio", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[22].Connection = this.Connection; + this._commandCollection[22].CommandText = "dbo.stp_Batch_updateStatus"; + this._commandCollection[22].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[22].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[22].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[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EnvNum", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalTime", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17707,7 +17713,7 @@ namespace AppData.DS_AppTableAdapters { [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.BatchListDataTable getByKey(global::System.Nullable BatchID) { - this.Adapter.SelectCommand = this.CommandCollection[7]; + this.Adapter.SelectCommand = this.CommandCollection[8]; if ((BatchID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value)); } @@ -17724,7 +17730,7 @@ namespace AppData.DS_AppTableAdapters { [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.BatchListDataTable getByMaxPosition(global::System.Nullable Position) { - this.Adapter.SelectCommand = this.CommandCollection[8]; + this.Adapter.SelectCommand = this.CommandCollection[9]; if ((Position.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Position.Value)); } @@ -17741,7 +17747,7 @@ namespace AppData.DS_AppTableAdapters { [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.BatchListDataTable getByStatus(global::System.Nullable Status, string SearchVal, global::System.Nullable PartValid) { - this.Adapter.SelectCommand = this.CommandCollection[9]; + this.Adapter.SelectCommand = this.CommandCollection[10]; if ((Status.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Status.Value)); } @@ -17770,7 +17776,7 @@ namespace AppData.DS_AppTableAdapters { [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.BatchListDataTable getCurrentByMachine(string CodPosition) { - this.Adapter.SelectCommand = this.CommandCollection[10]; + this.Adapter.SelectCommand = this.CommandCollection[11]; if ((CodPosition == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17787,7 +17793,7 @@ namespace AppData.DS_AppTableAdapters { [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.BatchListDataTable getLastByTakt(string Takt) { - this.Adapter.SelectCommand = this.CommandCollection[11]; + this.Adapter.SelectCommand = this.CommandCollection[12]; if ((Takt == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17804,17 +17810,6 @@ namespace AppData.DS_AppTableAdapters { [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.BatchListDataTable getNextAvailable() { - this.Adapter.SelectCommand = this.CommandCollection[12]; - DS_App.BatchListDataTable dataTable = new DS_App.BatchListDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [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")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_App.BatchListDataTable getRunning() { this.Adapter.SelectCommand = this.CommandCollection[13]; DS_App.BatchListDataTable dataTable = new DS_App.BatchListDataTable(); this.Adapter.Fill(dataTable); @@ -17825,13 +17820,24 @@ 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.BatchListDataTable getSched() { + public virtual DS_App.BatchListDataTable getRunning() { this.Adapter.SelectCommand = this.CommandCollection[14]; DS_App.BatchListDataTable dataTable = new DS_App.BatchListDataTable(); this.Adapter.Fill(dataTable); return dataTable; } + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_App.BatchListDataTable getSched() { + this.Adapter.SelectCommand = this.CommandCollection[15]; + DS_App.BatchListDataTable dataTable = new DS_App.BatchListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [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")] @@ -17987,8 +17993,36 @@ namespace AppData.DS_AppTableAdapters { [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 fixSched() { + public virtual int fixRedoSheetOnEnd(global::System.Nullable BatchID) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6]; + if ((BatchID.HasValue == true)) { + command.Parameters[1].Value = ((int)(BatchID.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + 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 fixSched() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -18010,7 +18044,7 @@ 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")] public virtual int redoPartValid(string Takt) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[15]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[16]; if ((Takt == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18038,7 +18072,7 @@ 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")] public virtual int resetNesting(global::System.Nullable BatchID) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[16]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17]; if ((BatchID.HasValue == true)) { command.Parameters[1].Value = ((int)(BatchID.Value)); } @@ -18066,28 +18100,6 @@ 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")] public virtual int resetPartUnValid() { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17]; - 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 resetProdCall() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18]; global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) @@ -18109,8 +18121,30 @@ namespace AppData.DS_AppTableAdapters { [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 resetTree(global::System.Nullable Original_BatchID) { + public virtual int resetProdCall() { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19]; + 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 resetTree(global::System.Nullable Original_BatchID) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; if ((Original_BatchID.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_BatchID.Value)); } @@ -18138,7 +18172,7 @@ 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")] public virtual int updateSchedPrior(global::System.Nullable BatchID, global::System.Nullable SchedPrio) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21]; if ((BatchID.HasValue == true)) { command.Parameters[1].Value = ((int)(BatchID.Value)); } @@ -18172,7 +18206,7 @@ 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")] public virtual int updateStatus(global::System.Nullable BatchID, global::System.Nullable Status, string EnvNum, global::System.Nullable TotalTime) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[22]; if ((BatchID.HasValue == true)) { command.Parameters[1].Value = ((int)(BatchID.Value)); } diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index e1363e1..3feb59e 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -88,7 +88,7 @@ FROM v_BatchList - + dbo.stp_Batch_fixRedoSheet @@ -99,7 +99,18 @@ FROM v_BatchList - + + + + dbo.stp_Batch_fixRedoSheetOnEnd + + + + + + + + dbo.stp_Batch_fixSched @@ -196,7 +207,7 @@ FROM v_BatchList - + dbo.stp_Batch_redoPartValid @@ -207,7 +218,7 @@ FROM v_BatchList - + dbo.stp_Batch_resetAllNesting @@ -218,7 +229,7 @@ FROM v_BatchList - + dbo.stp_Batch_resetPartUnValid @@ -228,7 +239,7 @@ FROM v_BatchList - + dbo.stp_zzz_resetProdCall @@ -238,7 +249,7 @@ FROM v_BatchList - + dbo.stp_Batch_resetTree @@ -249,7 +260,7 @@ FROM v_BatchList - + dbo.stp_Batch_updateSchedPrior @@ -261,7 +272,7 @@ FROM v_BatchList - + dbo.stp_Batch_updateStatus @@ -2439,7 +2450,7 @@ FROM v_CartKitDetail - + @@ -2489,7 +2500,7 @@ FROM v_CartKitDetail - + @@ -2514,7 +2525,7 @@ FROM v_CartKitDetail - + @@ -2569,7 +2580,7 @@ FROM v_CartKitDetail - + @@ -2642,7 +2653,7 @@ FROM v_CartKitDetail - + @@ -2650,7 +2661,7 @@ FROM v_CartKitDetail - + @@ -2719,7 +2730,7 @@ FROM v_CartKitDetail - + @@ -2752,7 +2763,7 @@ FROM v_CartKitDetail - + @@ -2793,7 +2804,7 @@ FROM v_CartKitDetail - + @@ -2812,7 +2823,7 @@ FROM v_CartKitDetail - + @@ -2836,7 +2847,7 @@ FROM v_CartKitDetail - + @@ -2844,7 +2855,7 @@ FROM v_CartKitDetail - + @@ -2861,7 +2872,7 @@ FROM v_CartKitDetail - + @@ -2870,7 +2881,7 @@ FROM v_CartKitDetail - + @@ -2901,7 +2912,7 @@ FROM v_CartKitDetail - + @@ -2909,7 +2920,7 @@ FROM v_CartKitDetail - + @@ -2925,7 +2936,7 @@ FROM v_CartKitDetail - + @@ -2933,7 +2944,7 @@ FROM v_CartKitDetail - + @@ -2961,7 +2972,7 @@ FROM v_CartKitDetail - + @@ -2997,7 +3008,7 @@ FROM v_CartKitDetail - + @@ -3013,7 +3024,7 @@ FROM v_CartKitDetail - + @@ -3023,7 +3034,7 @@ FROM v_CartKitDetail - + @@ -3040,7 +3051,7 @@ FROM v_CartKitDetail - + @@ -3053,7 +3064,7 @@ FROM v_CartKitDetail - + @@ -3103,7 +3114,7 @@ FROM v_CartKitDetail - + @@ -3129,7 +3140,7 @@ FROM v_CartKitDetail - + @@ -3171,7 +3182,7 @@ FROM v_CartKitDetail - + @@ -3388,18 +3399,18 @@ FROM v_CartKitDetail - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index babefcc..48081cf 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/Jenkinsfile b/Jenkinsfile index 9be3301..c08ea6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=276']) { + withEnv(['NEXT_BUILD_NUMBER=277']) { // env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.versionNumberBeta = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') diff --git a/NKC_WF/Controllers/SheetController.cs b/NKC_WF/Controllers/SheetController.cs index 7297223..f9fdebf 100644 --- a/NKC_WF/Controllers/SheetController.cs +++ b/NKC_WF/Controllers/SheetController.cs @@ -71,7 +71,7 @@ namespace NKC_WF.Controllers /// Effettua la chiamata di update x SINGOLO foglio /// /// Oggetto con Elenco fogli da aggiornare - // PUT: api/Bunk/5 + // PUT: api/Sheet/5 [HttpPut] public void Put(SheetWorkList sheetUpdated) { diff --git a/NKC_WF/WebUserControls/cmp_orderRunning.ascx b/NKC_WF/WebUserControls/cmp_orderRunning.ascx index a90cc15..99edb21 100644 --- a/NKC_WF/WebUserControls/cmp_orderRunning.ascx +++ b/NKC_WF/WebUserControls/cmp_orderRunning.ascx @@ -7,7 +7,7 @@ - <%# traduci("NoRunnningOrders") %> + <%# traduci("NoRunningOrders") %> diff --git a/NKC_WF/WebUserControls/cmp_stackList.ascx.cs b/NKC_WF/WebUserControls/cmp_stackList.ascx.cs index aa0848f..1e21d0d 100644 --- a/NKC_WF/WebUserControls/cmp_stackList.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_stackList.ascx.cs @@ -7,120 +7,123 @@ using System.Web.UI.WebControls; namespace NKC_WF.WebUserControls { - public partial class cmp_stackList : BaseUserControl - { - protected void Page_Load(object sender, EventArgs e) + public partial class cmp_stackList : BaseUserControl { - if (!Page.IsPostBack) - { - checkVisibility(); - } - } - - private void checkVisibility() - { - divSelected.Visible = StackIdSel > 0; - grView.Visible = !divSelected.Visible; - // imposto css titolo... - string titleClass = "row"; - if (divSelected.Visible) - { - titleClass += " table-info"; - } - divTitle.Attributes.Remove("class"); - divTitle.Attributes.Add("class", titleClass); - } - public int BatchId - { - set - { - hfBatchId.Value = value.ToString(); - grView.DataBind(); - } - get - { - int answ = 0; - int.TryParse(hfBatchId.Value, out answ); - return answ; - } - } - protected void grView_SelectedIndexChanged(object sender, EventArgs e) - { - checkVisibility(); - raiseEvent(); - } - /// - /// comando reset - /// - /// - /// - protected void lbtReset_Click(object sender, EventArgs e) - { - resetSelezione(); - } - - public void resetSelezione() - { - lblStack.Text = ""; - grView.SelectedIndex = -1; - grView.DataBind(); - checkVisibility(); - raiseEvent(); - } - /// - /// StackId selezionato - /// - public int StackIdSel - { - get - { - int answ = 0; - try + protected void Page_Load(object sender, EventArgs e) { - int.TryParse(grView.SelectedValue.ToString(), out answ); + if (!Page.IsPostBack) + { + checkVisibility(); + } } - catch - { } - return answ; - } - } - protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) - { - // recupero argomento = Takt... - try - { - string stack = e.CommandArgument.ToString(); - lblStack.Text = stack; - } - catch - { } - } - /// - /// Calcola il css x il blocco dato la condizione del num di sheets totali e preparati - /// - /// - /// - /// - public string cssByPrepared(object _numSheets, object _numPrepared) - { - string answ = "table-secondary border border-secondary border-thick rounded"; - int numSheets = 0; - int numPrepared = 0; - int.TryParse(_numSheets.ToString(), out numSheets); - int.TryParse(_numPrepared.ToString(), out numPrepared); - if (numPrepared > 0) - { - if (numPrepared == numSheets) + private void checkVisibility() { - answ = "table-success border border-success border-thick rounded"; + divSelected.Visible = StackIdSel > 0; + grView.Visible = !divSelected.Visible; + // imposto css titolo... + string titleClass = "row"; + if (divSelected.Visible) + { + titleClass += " table-info"; + } + divTitle.Attributes.Remove("class"); + divTitle.Attributes.Add("class", titleClass); } - else + public int BatchId { - answ = "table-primary flashColor rounded"; + set + { + hfBatchId.Value = value.ToString(); + grView.DataBind(); + } + get + { + int answ = 0; + int.TryParse(hfBatchId.Value, out answ); + return answ; + } + } + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + checkVisibility(); + raiseEvent(); + } + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + public void resetSelezione() + { + lblStack.Text = ""; + grView.SelectedIndex = -1; + grView.DataBind(); + checkVisibility(); + raiseEvent(); + } + /// + /// StackId selezionato + /// + public int StackIdSel + { + get + { + int answ = 0; + try + { + if (grView.SelectedValue != null) + { + int.TryParse(grView.SelectedValue.ToString(), out answ); + } + } + catch + { } + return answ; + } + } + + protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) + { + // recupero argomento = Takt... + try + { + string stack = e.CommandArgument.ToString(); + lblStack.Text = stack; + } + catch + { } + } + /// + /// Calcola il css x il blocco dato la condizione del num di sheets totali e preparati + /// + /// + /// + /// + public string cssByPrepared(object _numSheets, object _numPrepared) + { + string answ = "table-secondary border border-secondary border-thick rounded"; + int numSheets = 0; + int numPrepared = 0; + int.TryParse(_numSheets.ToString(), out numSheets); + int.TryParse(_numPrepared.ToString(), out numPrepared); + if (numPrepared > 0) + { + if (numPrepared == numSheets) + { + answ = "table-success border border-success border-thick rounded"; + } + else + { + answ = "table-primary flashColor rounded"; + } + } + return answ; } - } - return answ; } - } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs index 11545d7..7908706 100644 --- a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs @@ -119,37 +119,46 @@ namespace NKC_WF.WebUserControls // controllo sia quello RICHIESTO if (decoData.codeInt == cmp_stackNextloading.StackIdReq) { - // verifico SE i BUNKS correnti siano tutti stati completati (NumSheet == NumWorking) - if (currentBunkPrinted) + // controllo se il bunk richiesto sia stato caricato coi materiali... + if (!isBunkFilled(decoData.codeInt)) { - cmp_barcode.showOutput("badge badge-success", $"BUNK OK, {decoData.rawData}"); - ComLib.taktMLCurrStack = decoData.code; - // processo DB e salvo che lo stack è stato caricato in MACHINE LOAD - int stackId = 0; - try - { - var tabStacks = DataLayer.man.taSTL.getByDtmx(decoData.rawData); - if (tabStack.Count == 1) - { - stackId = tabStack[0].StackID; - } - } - catch - { } - // SE HO uno stackId valido (>0)... - if (stackId > 0) - { - DataLayer.man.taSTL.updatePos(stackId, 5); - // controllo status del bunk nel suo insieme... - ComLib.updateBatchPositionByBunk(stackId); - doRaiseEv = true; - } + cmp_barcode.showOutput("badge badge-danger", $"NEXT BUNK NOT PREPARED, {decoData.rawData}"); + doRaiseEv = true; } - // altrimenti segnalo NON pronto x caricare prossimo else { - cmp_barcode.showOutput("badge badge-danger", $"PREV BUNK NOT COMPLETED, {decoData.rawData}"); - doRaiseEv = true; + // verifico SE i BUNKS correnti siano tutti stati completati (NumSheet == NumWorking) + if (currentBunkPrinted) + { + cmp_barcode.showOutput("badge badge-success", $"BUNK OK, {decoData.rawData}"); + ComLib.taktMLCurrStack = decoData.code; + // processo DB e salvo che lo stack è stato caricato in MACHINE LOAD + int stackId = 0; + try + { + var tabStacks = DataLayer.man.taSTL.getByDtmx(decoData.rawData); + if (tabStack.Count == 1) + { + stackId = tabStack[0].StackID; + } + } + catch + { } + // SE HO uno stackId valido (>0)... + if (stackId > 0) + { + DataLayer.man.taSTL.updatePos(stackId, 5); + // controllo status del bunk nel suo insieme... + ComLib.updateBatchPositionByBunk(stackId); + doRaiseEv = true; + } + } + // altrimenti segnalo NON pronto x caricare prossimo + else + { + cmp_barcode.showOutput("badge badge-danger", $"PREV BUNK NOT COMPLETED, {decoData.rawData}"); + doRaiseEv = true; + } } } else @@ -220,6 +229,20 @@ namespace NKC_WF.WebUserControls return answ; } } + /// + /// verifica se il bunk sia stato completato come caricamento dei fogli richiesti) + /// + protected bool isBunkFilled(int BunkId) + { + bool answ = false; + // leggo i dati del bunk... + var currBunk = DataLayer.man.taSTL.getByKey(BunkId); + if (currBunk.Count == 1) + { + answ = currBunk[0].Position == 4; + } + return answ; + } protected void checkVisibility() { diff --git a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx index 4d60c40..7a2088e 100644 --- a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx +++ b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx @@ -3,97 +3,110 @@ - -
-
- NO CURRENT BUNK -
-
- ...waiting -
-
-
- - - +
-
- PREVIOUS BUNK: - - (/2) -
-
- CURRENT BUNK: - - (/2) -
-
-
-
- sheets: -
-
- printed: -
-
- worked: -
-
- To Redo: -
-
-
-
- Items: - -
-
- Items: - -
+
+ NO CURRENT BUNK +
+
+ ...waiting +
-
-
-
+ + + + +
+
+ PREVIOUS BUNK: + + (/2) +
+
+ CURRENT BUNK: + + (/2) +
+
+
+
+ sheets: +
+
+ printed: + +
+
+ worked: + +
+
+ To Redo: + +
+
+
+
+ Items: + +
+
+ Items: + +
+
+
+
+
-<%: traduci("CollectRedo") %> +
+
+ <%: traduci("CollectRedo") %> +
+
- -
-
- NEXT BUNK: - - (/2) -
-
- sheets: | printed: - | worked: - -
-
- Items: - -
-
-
- -
-
- NO NEXT BUNK -
-
- BATCH complete -
-
-
+ +
+
+ NEXT BUNK: + + (/2) +
+
+ sheets: | printed: + | worked: + +
+
+ Items: + +
+
+
+ +
+
+ NO NEXT BUNK +
+
+ BATCH complete +
+
+
- - - + + + - - - + + + +
+
+ <%: traduci("CollectRedoOnEnd") %> +
+
+ diff --git a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.cs b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.cs index 4a5a446..0fc2712 100644 --- a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.cs @@ -20,6 +20,7 @@ namespace NKC_WF.WebUserControls numRedo += item.NumSheetsToRedo; } lbtCollectRedo.Visible = numRedo > 0; + lbtCollectRedoOnEnd.Visible = numRedo > 0; } public int BatchId @@ -54,7 +55,7 @@ namespace NKC_WF.WebUserControls } } /// - /// Effettua steps x gestire Redo Sheets + /// Effettua steps x gestire Redo Sheets PRIMA POSSIBILE /// /// /// @@ -62,6 +63,21 @@ namespace NKC_WF.WebUserControls { // chiamo stored x sistemare DataLayer.man.taBL.fixRedoSheet(BatchId); + doUpdate(); } + + /// + /// Effettua steps x gestire Redo Sheets ALLA FINE + /// + /// + /// + protected void lbtCollectRedoOnEnd_Click(object sender, EventArgs e) + { + // chiamo stored x sistemare + DataLayer.man.taBL.fixRedoSheetOnEnd(BatchId); + doUpdate(); + } + + } } \ 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 3c75949..444cd3a 100644 --- a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx.designer.cs @@ -67,5 +67,14 @@ namespace NKC_WF.WebUserControls /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsNext; + + /// + /// Controllo lbtCollectRedoOnEnd. + /// + /// + /// 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.LinkButton lbtCollectRedoOnEnd; } } diff --git a/NKC_WF/WebUserControls/cmp_taktList.ascx b/NKC_WF/WebUserControls/cmp_taktList.ascx index a79a4ee..6947c24 100644 --- a/NKC_WF/WebUserControls/cmp_taktList.ascx +++ b/NKC_WF/WebUserControls/cmp_taktList.ascx @@ -61,7 +61,7 @@ - + diff --git a/NKC_WF/WebUserControls/cmp_taktList.ascx.cs b/NKC_WF/WebUserControls/cmp_taktList.ascx.cs index 2f0da53..821e4c6 100644 --- a/NKC_WF/WebUserControls/cmp_taktList.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_taktList.ascx.cs @@ -8,159 +8,162 @@ using System.Web.UI.WebControls; namespace NKC_WF.WebUserControls { - public partial class cmp_taktList : BaseUserControl - { - protected void Page_Load(object sender, EventArgs e) + public partial class cmp_taktList : BaseUserControl { - if (!Page.IsPostBack) - { - checkVisibility(); - } - } - - private void checkVisibility() - { - divSelected.Visible = BatchIdSel > 0; - grView.Visible = !divSelected.Visible; - // imposto css titolo... - string titleClass = "row"; - if (divSelected.Visible) - { - titleClass += " table-primary"; - } - divTitle.Attributes.Remove("class"); - divTitle.Attributes.Add("class", titleClass); - } - - /// - /// Codice CSS in base a status... - /// - /// - /// - public string cssByStatus(object _status) - { - string answ = "text-muted"; - int status = -1; - int.TryParse(_status.ToString(), out status); - switch (status) - { - case 1: - answ = "font-weight-bold text-info"; - break; - case 2: - answ = "font-weight-bold text-primary"; - break; - case 3: - answ = "font-weight-bold text-warning"; - break; - case 4: - answ = "font-weight-bold text-danger"; - break; - case 5: - answ = "font-weight-bold text-success"; - break; - case 6: - answ = "font-weight-bold text-secondary"; - break; - default: - break; - } - return answ; - } - /// - /// Converte il codice stato in effettivo campo - /// - /// - /// - public string BStatus(object _status) - { - string answ = ComLib.BatchStatusDescr(_status); - return answ; - } - /// - /// Converte il codice POSITION di un BATCH in traduzione - /// - /// - /// - public string BatchPositionStatus(object _status) - { - string answ = ComLib.PositionStatusDescr(_status); - return answ; - } - /// - /// comando reset - /// - /// - /// - protected void lbtReset_Click(object sender, EventArgs e) - { - resetSelezione(); - } - - private void resetSelezione() - { - lblTakt.Text = ""; - grView.SelectedIndex = -1; - grView.DataBind(); - checkVisibility(); - raiseReset(); - } - /// - /// BatchId selezionato - /// - public int BatchIdSel - { - get - { - int answ = 0; - try + protected void Page_Load(object sender, EventArgs e) { - int.TryParse(grView.SelectedValue.ToString(), out answ); + if (!Page.IsPostBack) + { + checkVisibility(); + } } - catch - { } - return answ; - } - } - protected void grView_SelectedIndexChanged(object sender, EventArgs e) - { - checkVisibility(); - raiseEvent(); - } - protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) - { - // recupero argomento = Takt... - try - { - string takt = e.CommandArgument.ToString(); - lblTakt.Text = takt; - } - catch - { } + private void checkVisibility() + { + divSelected.Visible = BatchIdSel > 0; + grView.Visible = !divSelected.Visible; + // imposto css titolo... + string titleClass = "row"; + if (divSelected.Visible) + { + titleClass += " table-primary"; + } + divTitle.Attributes.Remove("class"); + divTitle.Attributes.Add("class", titleClass); + } + + /// + /// Codice CSS in base a status... + /// + /// + /// + public string cssByStatus(object _status) + { + string answ = "text-muted"; + int status = -1; + int.TryParse(_status.ToString(), out status); + switch (status) + { + case 1: + answ = "font-weight-bold text-info"; + break; + case 2: + answ = "font-weight-bold text-primary"; + break; + case 3: + answ = "font-weight-bold text-warning"; + break; + case 4: + answ = "font-weight-bold text-danger"; + break; + case 5: + answ = "font-weight-bold text-success"; + break; + case 6: + answ = "font-weight-bold text-secondary"; + break; + default: + break; + } + return answ; + } + /// + /// Converte il codice stato in effettivo campo + /// + /// + /// + public string BStatus(object _status) + { + string answ = ComLib.BatchStatusDescr(_status); + return answ; + } + /// + /// Converte il codice POSITION di un BATCH in traduzione + /// + /// + /// + public string BatchPositionStatus(object _status) + { + string answ = ComLib.PositionStatusDescr(_status); + return answ; + } + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + private void resetSelezione() + { + lblTakt.Text = ""; + grView.SelectedIndex = -1; + grView.DataBind(); + checkVisibility(); + raiseReset(); + } + /// + /// BatchId selezionato + /// + public int BatchIdSel + { + get + { + int answ = 0; + try + { + if (grView.SelectedValue != null) + { + int.TryParse(grView.SelectedValue.ToString(), out answ); + } + } + catch + { } + return answ; + } + } + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + checkVisibility(); + raiseEvent(); + } + + protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) + { + // recupero argomento = Takt... + try + { + string takt = e.CommandArgument.ToString(); + lblTakt.Text = takt; + } + catch + { } + } + /// + /// Calcola il css x il blocco dato la positioj (logica) del TAKT + /// + /// + /// + public string cssByPosition(object _Position) + { + string answ = "table-secondary border border-secondary border-thick rounded"; + int Position = 0; + int.TryParse(_Position.ToString(), out Position); + switch (Position) + { + case 1: + answ = "table-primary flashColor rounded"; + break; + case 2: + answ = "table-success border border-success border-thick rounded"; + break; + default: + break; + } + return answ; + } } - /// - /// Calcola il css x il blocco dato la positioj (logica) del TAKT - /// - /// - /// - public string cssByPosition(object _Position) - { - string answ = "table-secondary border border-secondary border-thick rounded"; - int Position = 0; - int.TryParse(_Position.ToString(), out Position); - switch (Position) - { - case 1: - answ = "table-primary flashColor rounded"; - break; - case 2: - answ = "table-success border border-success border-thick rounded"; - break; - default: - break; - } - return answ; - } - } } \ No newline at end of file