From 6b601235649dcfee998130cd96b5dacae95efebe Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 20 Aug 2020 17:21:23 +0200 Subject: [PATCH] COmpoletata pagina MissingInAction --- AppData/DS_App.Designer.cs | 83 +++++++++----- AppData/DS_App.xsd | 105 ++++++++++-------- AppData/DS_App.xss | 2 +- NKC_WF/WebUserControls/cmp_partMIA.ascx | 23 +++- NKC_WF/WebUserControls/cmp_partMIA.ascx.cs | 54 ++++++++- .../cmp_partMIA.ascx.designer.cs | 27 +++++ NKC_WF/site/MachineUnload.aspx | 10 +- NKC_WF/site/MachineUnload.aspx.cs | 20 +++- NKC_WF/site/MachineUnload.aspx.designer.cs | 9 ++ NKC_WF/site/PartMIA.aspx | 26 +++-- NKC_WF/site/PartMIA.aspx.cs | 70 +++++++++++- NKC_WF/site/PartMIA.aspx.designer.cs | 27 +++++ 12 files changed, 363 insertions(+), 93 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 848d217..57d931b 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -27044,7 +27044,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [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[16]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[17]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\n FROM dbo.ItemList"; @@ -27097,60 +27097,66 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maxStatus", 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_IL_getNeedReValid"; + this._commandCollection[8].CommandText = "dbo.stp_IL_getMissingByBatch"; 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("@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_IL_getNeedValid"; + this._commandCollection[9].CommandText = "dbo.stp_IL_getNeedReValid"; 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[10] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[10].Connection = this.Connection; - this._commandCollection[10].CommandText = "dbo.stp_IL_getUnValid"; + this._commandCollection[10].CommandText = "dbo.stp_IL_getNeedValid"; 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[11] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[11].Connection = this.Connection; - this._commandCollection[11].CommandText = "dbo.stp_IL_updateCadPath"; + this._commandCollection[11].CommandText = "dbo.stp_IL_getUnValid"; 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("@BasePath", global::System.Data.SqlDbType.NVarChar, 500, 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("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ForceAll", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 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_IL_updateFromNesting"; + this._commandCollection[12].CommandText = "dbo.stp_IL_updateCadPath"; 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("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PdfFilePath", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BasePath", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].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[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ForceAll", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 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_IL_updateSheetStatus"; + this._commandCollection[13].CommandText = "dbo.stp_IL_updateFromNesting"; 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[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SheetID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PdfFilePath", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 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_IL_updateSheetStatusPU"; + this._commandCollection[14].CommandText = "dbo.stp_IL_updateSheetStatus"; 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[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SheetID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[15].Connection = this.Connection; - this._commandCollection[15].CommandText = "dbo.stp_IL_updateStatus"; + this._commandCollection[15].CommandText = "dbo.stp_IL_updateSheetStatusPU"; 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("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SheetID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[16].Connection = this.Connection; + this._commandCollection[16].CommandText = "dbo.stp_IL_updateStatus"; + 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("@ItemID", 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("@StatusID", 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("@PlaceCod", 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()] @@ -27324,8 +27330,14 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [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.ItemListDataTable getNeedRevalid() { + public virtual DS_App.ItemListDataTable getMissingByBatch(global::System.Nullable BatchID) { this.Adapter.SelectCommand = this.CommandCollection[8]; + if ((BatchID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } DS_App.ItemListDataTable dataTable = new DS_App.ItemListDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -27335,7 +27347,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [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.ItemListDataTable getNeedValid() { + public virtual DS_App.ItemListDataTable getNeedRevalid() { this.Adapter.SelectCommand = this.CommandCollection[9]; DS_App.ItemListDataTable dataTable = new DS_App.ItemListDataTable(); this.Adapter.Fill(dataTable); @@ -27346,13 +27358,24 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [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.ItemListDataTable getUnValid() { + public virtual DS_App.ItemListDataTable getNeedValid() { this.Adapter.SelectCommand = this.CommandCollection[10]; DS_App.ItemListDataTable dataTable = new DS_App.ItemListDataTable(); 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.ItemListDataTable getUnValid() { + this.Adapter.SelectCommand = this.CommandCollection[11]; + DS_App.ItemListDataTable dataTable = new DS_App.ItemListDataTable(); + 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")] @@ -27787,7 +27810,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateCadPath(string BasePath, global::System.Nullable BatchID, global::System.Nullable ForceAll) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12]; if ((BasePath == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -27827,7 +27850,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateFromNesting(global::System.Nullable ItemID, global::System.Nullable MatID, string PostProcList, string ProcessesReq, string PdfFilePath) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[13]; if ((ItemID.HasValue == true)) { command.Parameters[1].Value = ((int)(ItemID.Value)); } @@ -27879,7 +27902,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateSheetStatus(global::System.Nullable SheetID, global::System.Nullable StatusID, string PlaceCod) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[13]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[14]; if ((SheetID.HasValue == true)) { command.Parameters[1].Value = ((int)(SheetID.Value)); } @@ -27919,7 +27942,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateSheetStatusPU(global::System.Nullable SheetID, string PlaceCod) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[14]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[15]; if ((SheetID.HasValue == true)) { command.Parameters[1].Value = ((int)(SheetID.Value)); } @@ -27953,7 +27976,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ [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 ItemID, global::System.Nullable StatusID, string PlaceCod) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[15]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[16]; if ((ItemID.HasValue == true)) { command.Parameters[1].Value = ((int)(ItemID.Value)); } diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 08dacba..1a91cdb 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -983,6 +983,17 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ + + + + dbo.stp_IL_getMissingByBatch + + + + + + + @@ -3000,7 +3011,7 @@ FROM v_OKIB - + @@ -3050,7 +3061,7 @@ FROM v_OKIB - + @@ -3075,7 +3086,7 @@ FROM v_OKIB - + @@ -3130,7 +3141,7 @@ FROM v_OKIB - + @@ -3203,7 +3214,7 @@ FROM v_OKIB - + @@ -3211,7 +3222,7 @@ FROM v_OKIB - + @@ -3280,7 +3291,7 @@ FROM v_OKIB - + @@ -3313,7 +3324,7 @@ FROM v_OKIB - + @@ -3354,7 +3365,7 @@ FROM v_OKIB - + @@ -3373,7 +3384,7 @@ FROM v_OKIB - + @@ -3404,7 +3415,7 @@ FROM v_OKIB - + @@ -3412,7 +3423,7 @@ FROM v_OKIB - + @@ -3429,7 +3440,7 @@ FROM v_OKIB - + @@ -3438,7 +3449,7 @@ FROM v_OKIB - + @@ -3469,7 +3480,7 @@ FROM v_OKIB - + @@ -3477,7 +3488,7 @@ FROM v_OKIB - + @@ -3493,7 +3504,7 @@ FROM v_OKIB - + @@ -3501,7 +3512,7 @@ FROM v_OKIB - + @@ -3529,7 +3540,7 @@ FROM v_OKIB - + @@ -3565,7 +3576,7 @@ FROM v_OKIB - + @@ -3581,7 +3592,7 @@ FROM v_OKIB - + @@ -3591,7 +3602,7 @@ FROM v_OKIB - + @@ -3608,7 +3619,7 @@ FROM v_OKIB - + @@ -3621,7 +3632,7 @@ FROM v_OKIB - + @@ -3670,7 +3681,7 @@ FROM v_OKIB - + @@ -3699,7 +3710,7 @@ FROM v_OKIB - + @@ -3741,7 +3752,7 @@ FROM v_OKIB - + @@ -3850,7 +3861,7 @@ FROM v_OKIB - + @@ -3913,7 +3924,7 @@ FROM v_OKIB - + @@ -3958,7 +3969,7 @@ FROM v_OKIB - + @@ -3984,7 +3995,7 @@ FROM v_OKIB - + @@ -4077,7 +4088,7 @@ FROM v_OKIB - + @@ -4140,7 +4151,7 @@ FROM v_OKIB - + @@ -4199,7 +4210,7 @@ FROM v_OKIB - + @@ -4248,7 +4259,7 @@ FROM v_OKIB - + @@ -4407,18 +4418,18 @@ FROM v_OKIB - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index c4fdd0e..17aca0e 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/NKC_WF/WebUserControls/cmp_partMIA.ascx b/NKC_WF/WebUserControls/cmp_partMIA.ascx index 1e424af..55f3414 100644 --- a/NKC_WF/WebUserControls/cmp_partMIA.ascx +++ b/NKC_WF/WebUserControls/cmp_partMIA.ascx @@ -1,4 +1,25 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_partMIA.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_partMIA" %> -Elenco parts missing in action \ No newline at end of file + + + + <%: traduci("NoRecord") %> + + + + + + + + + + + + + + + + + + diff --git a/NKC_WF/WebUserControls/cmp_partMIA.ascx.cs b/NKC_WF/WebUserControls/cmp_partMIA.ascx.cs index dfc9daa..f3f051b 100644 --- a/NKC_WF/WebUserControls/cmp_partMIA.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_partMIA.ascx.cs @@ -7,11 +7,63 @@ using System.Web.UI.WebControls; namespace NKC_WF.WebUserControls { - public partial class cmp_partMIA : System.Web.UI.UserControl + public partial class cmp_partMIA : BaseUserControl { protected void Page_Load(object sender, EventArgs e) { } + /// + /// BatchId corrente... + /// + public int BatchId + { + set + { + hfBatchID.Value = value.ToString(); + doUpdate(); + } + get + { + int answ = 0; + int.TryParse(hfBatchID.Value, out answ); + return answ; + } + } + /// + /// Calcola css da statusID + /// + /// + /// + public string cssByStatus(object _statusID) + { + string answ = "text-secondary"; + int statusID = 0; + int.TryParse(_statusID.ToString(), out statusID); + switch (statusID) + { + case 1: + answ = "text-dark"; + break; + case 2: + answ = "text-warning"; + break; + case 3: + answ = "text-success"; + break; + case 4: + answ = "text-info"; + break; + default: + answ = "text-danger"; + break; + } + return answ; + } + + public void doUpdate() + { + grView.DataBind(); + } } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_partMIA.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_partMIA.ascx.designer.cs index ad92fdb..2ecbff4 100644 --- a/NKC_WF/WebUserControls/cmp_partMIA.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_partMIA.ascx.designer.cs @@ -13,5 +13,32 @@ namespace NKC_WF.WebUserControls public partial class cmp_partMIA { + + /// + /// Controllo grView. + /// + /// + /// 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.GridView grView; + + /// + /// Controllo ods. + /// + /// + /// 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.ObjectDataSource ods; + + /// + /// 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; } } diff --git a/NKC_WF/site/MachineUnload.aspx b/NKC_WF/site/MachineUnload.aspx index 3e19e52..7b91151 100644 --- a/NKC_WF/site/MachineUnload.aspx +++ b/NKC_WF/site/MachineUnload.aspx @@ -11,7 +11,15 @@
-

<%: traduci("MachineUnload") %> (<%: hfBatchID.Value %>)

+
+
+
+

<%: traduci("MachineUnload") %> (<%: hfBatchID.Value %>)

+
+
+ <%: traduci("PartMIA") %> +
+
diff --git a/NKC_WF/site/MachineUnload.aspx.cs b/NKC_WF/site/MachineUnload.aspx.cs index 54445d6..cb8ce72 100644 --- a/NKC_WF/site/MachineUnload.aspx.cs +++ b/NKC_WF/site/MachineUnload.aspx.cs @@ -89,6 +89,8 @@ namespace NKC_WF upnlDrawings.Update(); upnlTitle.Update(); } + // definisco se mostrare PartMIA + hlPartMIA.Visible = showPartMIA; } /// /// Imposta dati correnti (Bunk / Sheet) indicando SE fare update @@ -135,7 +137,11 @@ namespace NKC_WF } return needUpdate; } - + /// + /// Main SVG timer + /// + /// + /// protected void timerSvg_Tick(object sender, EventArgs e) { // in base al num di sec dell'ora decido cosa aggiornare... @@ -208,5 +214,17 @@ namespace NKC_WF } memLayer.ML.setRCntI(redProdReq); } + /// + /// Verifica se sia da mostrare pagina MissingInAction + /// + public bool showPartMIA + { + get + { + bool answ = false; + + return answ; + } + } } } \ 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 655bc4e..51e3ec9 100644 --- a/NKC_WF/site/MachineUnload.aspx.designer.cs +++ b/NKC_WF/site/MachineUnload.aspx.designer.cs @@ -23,6 +23,15 @@ namespace NKC_WF /// protected global::System.Web.UI.UpdatePanel upnlTitle; + /// + /// Controllo hlPartMIA. + /// + /// + /// 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.HyperLink hlPartMIA; + /// /// Controllo upnlStats. /// diff --git a/NKC_WF/site/PartMIA.aspx b/NKC_WF/site/PartMIA.aspx index e3b5d92..d22b2f5 100644 --- a/NKC_WF/site/PartMIA.aspx +++ b/NKC_WF/site/PartMIA.aspx @@ -3,16 +3,22 @@ <%@ Register Src="~/WebUserControls/cmp_partMIA.ascx" TagPrefix="uc1" TagName="cmp_partMIA" %> -
-
-

<%: traduci("PartMIA") %>

-
-
-
-
- + + + +
+
+

<%: traduci("PartMIA") %> (<%: hfBatchID.Value %>)

+ +
+
+
+
+ +
+
-
-
+ + diff --git a/NKC_WF/site/PartMIA.aspx.cs b/NKC_WF/site/PartMIA.aspx.cs index c3fee94..96db537 100644 --- a/NKC_WF/site/PartMIA.aspx.cs +++ b/NKC_WF/site/PartMIA.aspx.cs @@ -1,4 +1,5 @@ -using System; +using AppData; +using System; using System.Collections.Generic; using System.Linq; using System.Web; @@ -9,13 +10,80 @@ namespace NKC_WF.site { public partial class PartMIA : BasePage { + /// + /// Codice macchina (HARD CODED x ora) + /// + protected string machine = "WRK001"; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ((SiteContent)this.Master).showSearch = false; + doUpdate(); } } + + /// + /// BatchId corrente... + /// + public int BatchId + { + set + { + hfBatchID.Value = value.ToString(); + cmp_partMIA.BatchId = BatchId; + } + get + { + int answ = 0; + int.TryParse(hfBatchID.Value, out answ); + return answ; + } + } + protected int savedBatchId + { + get + { + return ComLib.getCurrBatchId(machine); + } + } + + /// + /// Aggiorna componente principale e child components + /// + private void doUpdate() + { + bool needUpdate = false; + // recupero bunk corrente... + DS_App.StackListRow currBunk = ComLib.getCurrBunk(); + if (currBunk != null) + { + bool chgBtLocal = BatchId != currBunk.BatchID; + bool chgBtCache = savedBatchId != currBunk.BatchID; + if (chgBtLocal || chgBtCache) + { + BatchId = currBunk.BatchID; + needUpdate = true; + } + } + else + { + BatchId = 0; + ComLib.setCurrBunkId(machine, 0); + ComLib.man.resetSheetUnload(0); + } + cmp_partMIA.doUpdate(); + } + /// + /// Main timer + /// + /// + /// + protected void timerMain_Tick(object sender, EventArgs e) + { + // ora faccio verifiche + doUpdate(); + } } } \ No newline at end of file diff --git a/NKC_WF/site/PartMIA.aspx.designer.cs b/NKC_WF/site/PartMIA.aspx.designer.cs index 3cd2fb4..1de7d4e 100644 --- a/NKC_WF/site/PartMIA.aspx.designer.cs +++ b/NKC_WF/site/PartMIA.aspx.designer.cs @@ -14,6 +14,33 @@ namespace NKC_WF.site public partial class PartMIA { + /// + /// 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 timerMain. + /// + /// + /// 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 timerMain; + + /// + /// 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 divBatchList. ///