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/AppData/DS_Report.Designer.cs b/AppData/DS_Report.Designer.cs index 9dac20d..376a550 100644 --- a/AppData/DS_Report.Designer.cs +++ b/AppData/DS_Report.Designer.cs @@ -38,6 +38,8 @@ namespace AppData { private stp_prt_BunkGroupDataTable tablestp_prt_BunkGroup; + private stp_prt_OtherPartDataTable tablestp_prt_OtherPart; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -87,6 +89,9 @@ namespace AppData { if ((ds.Tables["stp_prt_BunkGroup"] != null)) { base.Tables.Add(new stp_prt_BunkGroupDataTable(ds.Tables["stp_prt_BunkGroup"])); } + if ((ds.Tables["stp_prt_OtherPart"] != null)) { + base.Tables.Add(new stp_prt_OtherPartDataTable(ds.Tables["stp_prt_OtherPart"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -175,6 +180,16 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_prt_OtherPartDataTable stp_prt_OtherPart { + get { + return this.tablestp_prt_OtherPart; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -263,6 +278,9 @@ namespace AppData { if ((ds.Tables["stp_prt_BunkGroup"] != null)) { base.Tables.Add(new stp_prt_BunkGroupDataTable(ds.Tables["stp_prt_BunkGroup"])); } + if ((ds.Tables["stp_prt_OtherPart"] != null)) { + base.Tables.Add(new stp_prt_OtherPartDataTable(ds.Tables["stp_prt_OtherPart"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -338,6 +356,12 @@ namespace AppData { this.tablestp_prt_BunkGroup.InitVars(); } } + this.tablestp_prt_OtherPart = ((stp_prt_OtherPartDataTable)(base.Tables["stp_prt_OtherPart"])); + if ((initTable == true)) { + if ((this.tablestp_prt_OtherPart != null)) { + this.tablestp_prt_OtherPart.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -362,6 +386,8 @@ namespace AppData { base.Tables.Add(this.tablestp_prt_Cart); this.tablestp_prt_BunkGroup = new stp_prt_BunkGroupDataTable(); base.Tables.Add(this.tablestp_prt_BunkGroup); + this.tablestp_prt_OtherPart = new stp_prt_OtherPartDataTable(); + base.Tables.Add(this.tablestp_prt_OtherPart); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -406,6 +432,12 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializestp_prt_OtherPart() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -482,6 +514,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void stp_prt_BunkGroupRowChangeEventHandler(object sender, stp_prt_BunkGroupRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void stp_prt_OtherPartRowChangeEventHandler(object sender, stp_prt_OtherPartRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2992,6 +3027,363 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_prt_OtherPartDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnOtherItemID; + + private global::System.Data.DataColumn columnOtherItemExtCode; + + private global::System.Data.DataColumn columnOtherItemDesc; + + private global::System.Data.DataColumn columnOtherItemDtmx; + + private global::System.Data.DataColumn columnOtherItemType; + + private global::System.Data.DataColumn columnOtherItemNote; + + private global::System.Data.DataColumn columnQRCodeBaseUrl; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartDataTable() { + this.TableName = "stp_prt_OtherPart"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal stp_prt_OtherPartDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected stp_prt_OtherPartDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemIDColumn { + get { + return this.columnOtherItemID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemExtCodeColumn { + get { + return this.columnOtherItemExtCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemDescColumn { + get { + return this.columnOtherItemDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemDtmxColumn { + get { + return this.columnOtherItemDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemTypeColumn { + get { + return this.columnOtherItemType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemNoteColumn { + get { + return this.columnOtherItemNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn QRCodeBaseUrlColumn { + get { + return this.columnQRCodeBaseUrl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartRow this[int index] { + get { + return ((stp_prt_OtherPartRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event stp_prt_OtherPartRowChangeEventHandler stp_prt_OtherPartRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event stp_prt_OtherPartRowChangeEventHandler stp_prt_OtherPartRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event stp_prt_OtherPartRowChangeEventHandler stp_prt_OtherPartRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event stp_prt_OtherPartRowChangeEventHandler stp_prt_OtherPartRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Addstp_prt_OtherPartRow(stp_prt_OtherPartRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartRow Addstp_prt_OtherPartRow(string OtherItemExtCode, string OtherItemDesc, string OtherItemDtmx, string OtherItemType, string OtherItemNote, string QRCodeBaseUrl) { + stp_prt_OtherPartRow rowstp_prt_OtherPartRow = ((stp_prt_OtherPartRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + OtherItemExtCode, + OtherItemDesc, + OtherItemDtmx, + OtherItemType, + OtherItemNote, + QRCodeBaseUrl}; + rowstp_prt_OtherPartRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_prt_OtherPartRow); + return rowstp_prt_OtherPartRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartRow FindByOtherItemID(int OtherItemID) { + return ((stp_prt_OtherPartRow)(this.Rows.Find(new object[] { + OtherItemID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_prt_OtherPartDataTable cln = ((stp_prt_OtherPartDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_prt_OtherPartDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnOtherItemID = base.Columns["OtherItemID"]; + this.columnOtherItemExtCode = base.Columns["OtherItemExtCode"]; + this.columnOtherItemDesc = base.Columns["OtherItemDesc"]; + this.columnOtherItemDtmx = base.Columns["OtherItemDtmx"]; + this.columnOtherItemType = base.Columns["OtherItemType"]; + this.columnOtherItemNote = base.Columns["OtherItemNote"]; + this.columnQRCodeBaseUrl = base.Columns["QRCodeBaseUrl"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnOtherItemID = new global::System.Data.DataColumn("OtherItemID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemID); + this.columnOtherItemExtCode = new global::System.Data.DataColumn("OtherItemExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemExtCode); + this.columnOtherItemDesc = new global::System.Data.DataColumn("OtherItemDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemDesc); + this.columnOtherItemDtmx = new global::System.Data.DataColumn("OtherItemDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemDtmx); + this.columnOtherItemType = new global::System.Data.DataColumn("OtherItemType", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemType); + this.columnOtherItemNote = new global::System.Data.DataColumn("OtherItemNote", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemNote); + this.columnQRCodeBaseUrl = new global::System.Data.DataColumn("QRCodeBaseUrl", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQRCodeBaseUrl); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnOtherItemID}, true)); + this.columnOtherItemID.AutoIncrement = true; + this.columnOtherItemID.AutoIncrementSeed = -1; + this.columnOtherItemID.AutoIncrementStep = -1; + this.columnOtherItemID.AllowDBNull = false; + this.columnOtherItemID.ReadOnly = true; + this.columnOtherItemID.Unique = true; + this.columnOtherItemExtCode.AllowDBNull = false; + this.columnOtherItemExtCode.MaxLength = 250; + this.columnOtherItemDesc.AllowDBNull = false; + this.columnOtherItemDesc.MaxLength = 500; + this.columnOtherItemDtmx.MaxLength = 50; + this.columnOtherItemType.AllowDBNull = false; + this.columnOtherItemType.MaxLength = 50; + this.columnOtherItemNote.AllowDBNull = false; + this.columnOtherItemNote.MaxLength = 500; + this.columnQRCodeBaseUrl.ReadOnly = true; + this.columnQRCodeBaseUrl.MaxLength = 400; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartRow Newstp_prt_OtherPartRow() { + return ((stp_prt_OtherPartRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_prt_OtherPartRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_prt_OtherPartRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_prt_OtherPartRowChanged != null)) { + this.stp_prt_OtherPartRowChanged(this, new stp_prt_OtherPartRowChangeEvent(((stp_prt_OtherPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_prt_OtherPartRowChanging != null)) { + this.stp_prt_OtherPartRowChanging(this, new stp_prt_OtherPartRowChangeEvent(((stp_prt_OtherPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_prt_OtherPartRowDeleted != null)) { + this.stp_prt_OtherPartRowDeleted(this, new stp_prt_OtherPartRowChangeEvent(((stp_prt_OtherPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_prt_OtherPartRowDeleting != null)) { + this.stp_prt_OtherPartRowDeleting(this, new stp_prt_OtherPartRowChangeEvent(((stp_prt_OtherPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Removestp_prt_OtherPartRow(stp_prt_OtherPartRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Report ds = new DS_Report(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "stp_prt_OtherPartDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -4244,6 +4636,134 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_prt_OtherPartRow : global::System.Data.DataRow { + + private stp_prt_OtherPartDataTable tablestp_prt_OtherPart; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal stp_prt_OtherPartRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_prt_OtherPart = ((stp_prt_OtherPartDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OtherItemID { + get { + return ((int)(this[this.tablestp_prt_OtherPart.OtherItemIDColumn])); + } + set { + this[this.tablestp_prt_OtherPart.OtherItemIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemExtCode { + get { + return ((string)(this[this.tablestp_prt_OtherPart.OtherItemExtCodeColumn])); + } + set { + this[this.tablestp_prt_OtherPart.OtherItemExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemDesc { + get { + return ((string)(this[this.tablestp_prt_OtherPart.OtherItemDescColumn])); + } + set { + this[this.tablestp_prt_OtherPart.OtherItemDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemDtmx { + get { + try { + return ((string)(this[this.tablestp_prt_OtherPart.OtherItemDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OtherItemDtmx\' nella tabella \'stp_prt_OtherPart\' è DBNul" + + "l.", e); + } + } + set { + this[this.tablestp_prt_OtherPart.OtherItemDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemType { + get { + return ((string)(this[this.tablestp_prt_OtherPart.OtherItemTypeColumn])); + } + set { + this[this.tablestp_prt_OtherPart.OtherItemTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemNote { + get { + return ((string)(this[this.tablestp_prt_OtherPart.OtherItemNoteColumn])); + } + set { + this[this.tablestp_prt_OtherPart.OtherItemNoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string QRCodeBaseUrl { + get { + try { + return ((string)(this[this.tablestp_prt_OtherPart.QRCodeBaseUrlColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'QRCodeBaseUrl\' nella tabella \'stp_prt_OtherPart\' è DBNul" + + "l.", e); + } + } + set { + this[this.tablestp_prt_OtherPart.QRCodeBaseUrlColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOtherItemDtmxNull() { + return this.IsNull(this.tablestp_prt_OtherPart.OtherItemDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOtherItemDtmxNull() { + this[this.tablestp_prt_OtherPart.OtherItemDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsQRCodeBaseUrlNull() { + return this.IsNull(this.tablestp_prt_OtherPart.QRCodeBaseUrlColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetQRCodeBaseUrlNull() { + this[this.tablestp_prt_OtherPart.QRCodeBaseUrlColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -4481,6 +5001,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class stp_prt_OtherPartRowChangeEvent : global::System.EventArgs { + + private stp_prt_OtherPartRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartRowChangeEvent(stp_prt_OtherPartRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace AppData.DS_ReportTableAdapters { @@ -6662,6 +7216,206 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class stp_prt_OtherPartTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public stp_prt_OtherPartTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "stp_prt_OtherPart"; + tableMapping.ColumnMappings.Add("OtherItemID", "OtherItemID"); + tableMapping.ColumnMappings.Add("OtherItemExtCode", "OtherItemExtCode"); + tableMapping.ColumnMappings.Add("OtherItemDesc", "OtherItemDesc"); + tableMapping.ColumnMappings.Add("OtherItemDtmx", "OtherItemDtmx"); + tableMapping.ColumnMappings.Add("OtherItemType", "OtherItemType"); + tableMapping.ColumnMappings.Add("OtherItemNote", "OtherItemNote"); + tableMapping.ColumnMappings.Add("QRCodeBaseUrl", "QRCodeBaseUrl"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::AppData.Properties.Settings.Default.Sauder_NKCConnectionString; + } + + [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[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "prt.stp_prt_OtherPart"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OtherItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QRCodeBaseUrl", global::System.Data.SqlDbType.NVarChar, 400, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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.Fill, true)] + public virtual int Fill(DS_Report.stp_prt_OtherPartDataTable dataTable, global::System.Nullable OtherItemID, string QRCodeBaseUrl) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((OtherItemID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(OtherItemID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((QRCodeBaseUrl == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(QRCodeBaseUrl)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Report.stp_prt_OtherPartDataTable GetData(global::System.Nullable OtherItemID, string QRCodeBaseUrl) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((OtherItemID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(OtherItemID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((QRCodeBaseUrl == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(QRCodeBaseUrl)); + } + DS_Report.stp_prt_OtherPartDataTable dataTable = new DS_Report.stp_prt_OtherPartDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/AppData/DS_Report.xsd b/AppData/DS_Report.xsd index 7195839..6978255 100644 --- a/AppData/DS_Report.xsd +++ b/AppData/DS_Report.xsd @@ -397,6 +397,32 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione + + + + + + prt.stp_prt_OtherPart + + + + + + + + + + + + + + + + + + + + @@ -405,7 +431,7 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + @@ -437,7 +463,7 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + @@ -469,7 +495,7 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + @@ -496,7 +522,7 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + @@ -562,7 +588,7 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + @@ -590,7 +616,7 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + @@ -628,7 +654,7 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + @@ -674,6 +700,55 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -696,5 +771,9 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione + + + + \ No newline at end of file diff --git a/AppData/DS_Report.xss b/AppData/DS_Report.xss index 5732339..a6debca 100644 --- a/AppData/DS_Report.xss +++ b/AppData/DS_Report.xss @@ -6,13 +6,14 @@ --> - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index 92de00c..ff8bca9 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -46,6 +46,7 @@ namespace AppData public DS_ReportTableAdapters.stp_prt_BunkListTableAdapter taRepBunkList; public DS_ReportTableAdapters.stp_prt_CartTableAdapter taRepCart; public DS_ReportTableAdapters.stp_prt_PartTableAdapter taRepPart; + public DS_ReportTableAdapters.stp_prt_OtherPartTableAdapter taRepOtherPart; public DataLayer() { @@ -95,6 +96,7 @@ namespace AppData taRepBunkList.Connection.ConnectionString = connString; taRepCart.Connection.ConnectionString = connString; taRepPart.Connection.ConnectionString = connString; + taRepOtherPart.Connection.ConnectionString = connString; } private void initTA() { @@ -136,6 +138,7 @@ namespace AppData taRepBunkList = new DS_ReportTableAdapters.stp_prt_BunkListTableAdapter(); taRepCart = new DS_ReportTableAdapters.stp_prt_CartTableAdapter(); taRepPart = new DS_ReportTableAdapters.stp_prt_PartTableAdapter(); + taRepOtherPart = new DS_ReportTableAdapters.stp_prt_OtherPartTableAdapter(); } #endregion @@ -309,6 +312,11 @@ namespace AppData var tabPart = taIL.getByKey(intIdx); answ = tabPart.Count > 0; break; + case tipoDocumento.docOtherPart: + int.TryParse(keyParam, out intIdx); + var tabOtherPart = taOtItem.getByKey(intIdx); + answ = tabOtherPart.Count > 0; + break; case tipoDocumento.docStack: int.TryParse(keyParam, out intIdx); var tabStack = taSTL.getByKey(intIdx); diff --git a/AppData/reportPrinter.cs b/AppData/reportPrinter.cs index 3792543..75a13d8 100644 --- a/AppData/reportPrinter.cs +++ b/AppData/reportPrinter.cs @@ -228,6 +228,10 @@ namespace AppData report.ReportPath = string.Format(@"{0}\Part.rdlc", repoBasePath); report.DataSources.Add(new ReportDataSource(memLayer.ML.cdv("ReportDS_DocPart"), caricaDati(tipoReport, keyParam))); break; + case reportRichiesto.otherPart: + report.ReportPath = string.Format(@"{0}\OtherPart.rdlc", repoBasePath); + report.DataSources.Add(new ReportDataSource(memLayer.ML.cdv("ReportDS_DocOtherPart"), caricaDati(tipoReport, keyParam))); + break; } deviceInfo = deviceInfoParam.xmlParam; doEmfPrint(printerName, report, deviceInfo); @@ -394,6 +398,10 @@ namespace AppData tipo = "DocPart"; report = reportRichiesto.part; break; + case tipoDocumento.docOtherPart: + tipo = "DocOtherPart"; + report = reportRichiesto.otherPart; + break; case tipoDocumento.docStack: tipo = "DocStack"; report = reportRichiesto.bunkGroup; diff --git a/Jenkinsfile b/Jenkinsfile index 6532e2a..da4dbcd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=349']) { + withEnv(['NEXT_BUILD_NUMBER=351']) { // env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.versionNumberBeta = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') @@ -20,7 +20,7 @@ pipeline { } script { currentBuild.displayName = "${env.versionNumber}" - if (env.BRANCH_NAME == "develop" || env.BRANCH_NAME.contains("DEMO")) { + if (env.BRANCH_NAME == "develop" || env.BRANCH_NAME.contains("DEMO") || env.BRANCH_NAME.contains("report")) { currentBuild.description = "TEST ${env.versionNumber}" } else { diff --git a/NKC_SDK/Enums.cs b/NKC_SDK/Enums.cs index d34134e..83bdf8d 100644 --- a/NKC_SDK/Enums.cs +++ b/NKC_SDK/Enums.cs @@ -243,7 +243,8 @@ bunkList, cart, offline, - part + part, + otherPart } /// /// tipologia di DOCUMENTO gestito in stampa... @@ -263,7 +264,7 @@ /// docCart, /// - /// Docuemtno per singolo ITEM: + /// Documento per singolo ITEM: /// - QR code /// - num cart/bin /// - T/P/* (se va fatto qualcosa di speciale) @@ -271,6 +272,13 @@ /// docPart, /// + /// Documento per singolo OtherItem: + /// - QR code + /// - cod originale + /// - descrizione + /// + docOtherPart, + /// /// doc per STACK /// docStack, diff --git a/NKC_WF/Controllers/PrintQueueController.cs b/NKC_WF/Controllers/PrintQueueController.cs index a67a271..21b9058 100644 --- a/NKC_WF/Controllers/PrintQueueController.cs +++ b/NKC_WF/Controllers/PrintQueueController.cs @@ -102,6 +102,11 @@ namespace NKC_WF.Controllers tab = (DataTable)DLMan.taRepPart.GetData(intIdx, qrCodeBaseUrl); answ.Add(memLayer.ML.cdv("ReportDS_DocPart"), tab); break; + case reportRichiesto.otherPart: + int.TryParse(keyParam, out intIdx); + tab = (DataTable)DLMan.taRepOtherPart.GetData(intIdx, qrCodeBaseUrl); + answ.Add(memLayer.ML.cdv("ReportDS_DocOtherPart"), tab); + break; default: break; } @@ -142,6 +147,9 @@ namespace NKC_WF.Controllers case "docPart": report = reportRichiesto.part; break; + case "docOtherPart": + report = reportRichiesto.otherPart; + break; case "docOffline": report = reportRichiesto.offline; break; diff --git a/NKC_WF/Controllers/PrintQueueLenController.cs b/NKC_WF/Controllers/PrintQueueLenController.cs index 6f46fe0..11bc9a2 100644 --- a/NKC_WF/Controllers/PrintQueueLenController.cs +++ b/NKC_WF/Controllers/PrintQueueLenController.cs @@ -55,102 +55,7 @@ namespace NKC_WF.Controllers } return answ; } - /// - /// Carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...) e restituisce Dictionary [nome RDS / tab RDS] - /// - /// - /// cod UDC - /// tabella dati - private Dictionary caricaDati(reportRichiesto tipoReport, string keyParam) - { - int intIdx = 0; - Dictionary answ = new Dictionary(); - DataTable tab = new DataTable(); - // FIXME TODO... - string qrCodeBaseUrl = ""; - string imagePath = ""; //"http://seriate.steamware.net:8083/NKC/PartsImg/"; - switch (tipoReport) - { - case reportRichiesto.binPost: - int.TryParse(keyParam, out intIdx); - tab = (DataTable)DLMan.taRepBin.GetData(intIdx, true, imagePath, qrCodeBaseUrl); - answ.Add(memLayer.ML.cdv("ReportDS_DocBin"), tab); - break; - case reportRichiesto.binPre: - int.TryParse(keyParam, out intIdx); - tab = (DataTable)DLMan.taRepBin.GetData(intIdx, false, imagePath, qrCodeBaseUrl); - answ.Add(memLayer.ML.cdv("ReportDS_DocBin"), tab); - break; - case reportRichiesto.bunkGroup: - int.TryParse(keyParam, out intIdx); - tab = (DataTable)DLMan.taRepBunkGroup.GetData(intIdx, qrCodeBaseUrl); - answ.Add(memLayer.ML.cdv("ReportDS_DocBunkGroup"), tab); - break; - case reportRichiesto.bunkList: - int.TryParse(keyParam, out intIdx); - tab = (DataTable)DLMan.taRepBunkList.GetData(intIdx, qrCodeBaseUrl); - answ.Add(memLayer.ML.cdv("ReportDS_DocBunkList"), tab); - break; - case reportRichiesto.cart: - int.TryParse(keyParam, out intIdx); - tab = (DataTable)DLMan.taRepCart.GetData(intIdx, qrCodeBaseUrl); - answ.Add(memLayer.ML.cdv("ReportDS_DocCart"), tab); - break; - case reportRichiesto.offline: - case reportRichiesto.part: - int.TryParse(keyParam, out intIdx); - tab = (DataTable)DLMan.taRepPart.GetData(intIdx, qrCodeBaseUrl); - answ.Add(memLayer.ML.cdv("ReportDS_DocPart"), tab); - break; - default: - break; - } - tab.Dispose(); - return answ; - } - - /// - /// Calcola report da tipo + nome coda... - /// - /// - /// - /// - protected reportRichiesto reportByTipo(string tipo, string queueName) - { - reportRichiesto report = reportRichiesto.bunkGroup; - switch (tipo) - { - case "docStack": - if (queueName == "queueBunkDetail") - { - report = reportRichiesto.bunkList; - } - else - { - report = reportRichiesto.bunkGroup; - } - break; - case "docBinPre": - report = reportRichiesto.binPre; - break; - case "docBinPost": - report = reportRichiesto.binPost; - break; - case "docCart": - report = reportRichiesto.cart; - break; - case "docPart": - report = reportRichiesto.part; - break; - case "docOffline": - report = reportRichiesto.offline; - break; - default: - break; - } - return report; - } - + #endregion #region REST api call diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 1a59f33..9bb4a6a 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -433,6 +433,7 @@ + @@ -497,6 +498,7 @@ + @@ -602,6 +604,9 @@ Always + + Always + @@ -923,6 +928,13 @@ PaintingSmart.aspx + + PartMIA.aspx + ASPXCodeBehind + + + PartMIA.aspx + PartValidation.aspx ASPXCodeBehind @@ -1420,6 +1432,13 @@ cmp_paint_bins.ascx + + cmp_partMIA.ascx + ASPXCodeBehind + + + cmp_partMIA.ascx + cmp_scrapList.ascx ASPXCodeBehind diff --git a/NKC_WF/Reports/OtherPart.rdlc b/NKC_WF/Reports/OtherPart.rdlc new file mode 100644 index 0000000..0eef0d8 --- /dev/null +++ b/NKC_WF/Reports/OtherPart.rdlc @@ -0,0 +1,270 @@ + + + + + + + + + 3.9in + + + + + 1.9in + + + + + + + true + + + + + =First(Fields!OtherItemExtCode.Value) + + + + + + + Destination + 0.73025cm + 3.7cm + 0.425in + 2.44331in + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + External + =Replace(Fields!QRCodeBaseUrl.Value.ToString(),"QRCODEVALUE",Fields!OtherItemDtmx.Value.ToString()) + +' la stringa nel Campo è https://qrcode.steamware.net/HOME/QR_site/JSON?val={'baseUrl':'{0}','parameters':\['QRCODEVALUE'\]} +' dove la \ prima della [ serve perchè è una stringa quindi si trasforma poi in +' https://qrcode.steamware.net/HOME/QR_site/JSON?val={'baseUrl':'{0}','parameters':['QRCODEVALUE']} + + +'https://qrcode.steamware.net/HOME/QR_site/JSON?val={'baseUrl':'http://10.74.82.219/StockMan/STEA/Items/Details/{0}?StockItemID={0}','parameters':['VARIABILE']} + FitProportional + 0.2875in + 0.1in + 1.3in + 1.3in + 1 + + + + + + true + + + + + =First(Fields!OtherItemDesc.Value) + + + + + + + Destination + 1.98614cm + 3.66183cm + 0.80556in + 2.44331in + 2 + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + true + + 0.5pt + + + Gray + + 0.5pt + + + Gray + + 0.5pt + + + Gray + + 0.5pt + + + Gray + + 0.5pt + + + + + + + + + + + + + + + + + + + + =Fields!OtherItemID.Value + + + Output + true + + + + stp_prt_OtherPart + + End + + 1.9in + 3.9in + + + + 1.9in +