From 72fab19cdcae1003b26b1369e73535a2e06af9dd Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 29 Aug 2019 15:36:38 +0200 Subject: [PATCH] Refresh x aggiornamento tabelle --- AppData/DS_App.Designer.cs | 8824 +++++++++-------- AppData/DS_App.xsd | 1158 ++- AppData/DS_App.xss | 72 +- AppData/DataLayer.cs | 16 +- AppData/Properties/Settings.Designer.cs | 11 + AppData/Properties/Settings.settings | 8 + AppData/app.config | 7 +- .../WebUserControls/cmp_stackBuilding.ascx.cs | 4 +- 8 files changed, 5081 insertions(+), 5019 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 9c3c368..73659f8 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -26,23 +26,23 @@ namespace AppData { private BatchListDataTable tableBatchList; - private MaterialsDataTable tableMaterials; + private StackListDataTable tableStackList; - private ItemListDataTable tableItemList; + private SheetListDataTable tableSheetList; private OrderListDataTable tableOrderList; private BatchReqListDataTable tableBatchReqList; - private StackListDataTable tableStackList; + private ItemListDataTable tableItemList; - private SheetListDataTable tableSheetList; + private MaterialsDataTable tableMaterials; - private global::System.Data.DataRelation relationFK_ItemList_Materials1; + private global::System.Data.DataRelation relationFK_BatchReqList_OrderList; private global::System.Data.DataRelation relationFK_ItemList_OrderList1; - private global::System.Data.DataRelation relationFK_BatchReqList_OrderList; + private global::System.Data.DataRelation relationFK_ItemList_Materials1; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -75,11 +75,11 @@ namespace AppData { if ((ds.Tables["BatchList"] != null)) { base.Tables.Add(new BatchListDataTable(ds.Tables["BatchList"])); } - if ((ds.Tables["Materials"] != null)) { - base.Tables.Add(new MaterialsDataTable(ds.Tables["Materials"])); + if ((ds.Tables["StackList"] != null)) { + base.Tables.Add(new StackListDataTable(ds.Tables["StackList"])); } - if ((ds.Tables["ItemList"] != null)) { - base.Tables.Add(new ItemListDataTable(ds.Tables["ItemList"])); + if ((ds.Tables["SheetList"] != null)) { + base.Tables.Add(new SheetListDataTable(ds.Tables["SheetList"])); } if ((ds.Tables["OrderList"] != null)) { base.Tables.Add(new OrderListDataTable(ds.Tables["OrderList"])); @@ -87,11 +87,11 @@ namespace AppData { if ((ds.Tables["BatchReqList"] != null)) { base.Tables.Add(new BatchReqListDataTable(ds.Tables["BatchReqList"])); } - if ((ds.Tables["StackList"] != null)) { - base.Tables.Add(new StackListDataTable(ds.Tables["StackList"])); + if ((ds.Tables["ItemList"] != null)) { + base.Tables.Add(new ItemListDataTable(ds.Tables["ItemList"])); } - if ((ds.Tables["SheetList"] != null)) { - base.Tables.Add(new SheetListDataTable(ds.Tables["SheetList"])); + if ((ds.Tables["Materials"] != null)) { + base.Tables.Add(new MaterialsDataTable(ds.Tables["Materials"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; @@ -125,9 +125,9 @@ namespace AppData { [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 MaterialsDataTable Materials { + public StackListDataTable StackList { get { - return this.tableMaterials; + return this.tableStackList; } } @@ -135,9 +135,9 @@ namespace AppData { [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 ItemListDataTable ItemList { + public SheetListDataTable SheetList { get { - return this.tableItemList; + return this.tableSheetList; } } @@ -165,9 +165,9 @@ namespace AppData { [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 StackListDataTable StackList { + public ItemListDataTable ItemList { get { - return this.tableStackList; + return this.tableItemList; } } @@ -175,9 +175,9 @@ namespace AppData { [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 SheetListDataTable SheetList { + public MaterialsDataTable Materials { get { - return this.tableSheetList; + return this.tableMaterials; } } @@ -251,11 +251,11 @@ namespace AppData { if ((ds.Tables["BatchList"] != null)) { base.Tables.Add(new BatchListDataTable(ds.Tables["BatchList"])); } - if ((ds.Tables["Materials"] != null)) { - base.Tables.Add(new MaterialsDataTable(ds.Tables["Materials"])); + if ((ds.Tables["StackList"] != null)) { + base.Tables.Add(new StackListDataTable(ds.Tables["StackList"])); } - if ((ds.Tables["ItemList"] != null)) { - base.Tables.Add(new ItemListDataTable(ds.Tables["ItemList"])); + if ((ds.Tables["SheetList"] != null)) { + base.Tables.Add(new SheetListDataTable(ds.Tables["SheetList"])); } if ((ds.Tables["OrderList"] != null)) { base.Tables.Add(new OrderListDataTable(ds.Tables["OrderList"])); @@ -263,11 +263,11 @@ namespace AppData { if ((ds.Tables["BatchReqList"] != null)) { base.Tables.Add(new BatchReqListDataTable(ds.Tables["BatchReqList"])); } - if ((ds.Tables["StackList"] != null)) { - base.Tables.Add(new StackListDataTable(ds.Tables["StackList"])); + if ((ds.Tables["ItemList"] != null)) { + base.Tables.Add(new ItemListDataTable(ds.Tables["ItemList"])); } - if ((ds.Tables["SheetList"] != null)) { - base.Tables.Add(new SheetListDataTable(ds.Tables["SheetList"])); + if ((ds.Tables["Materials"] != null)) { + base.Tables.Add(new MaterialsDataTable(ds.Tables["Materials"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; @@ -308,16 +308,16 @@ namespace AppData { this.tableBatchList.InitVars(); } } - this.tableMaterials = ((MaterialsDataTable)(base.Tables["Materials"])); + this.tableStackList = ((StackListDataTable)(base.Tables["StackList"])); if ((initTable == true)) { - if ((this.tableMaterials != null)) { - this.tableMaterials.InitVars(); + if ((this.tableStackList != null)) { + this.tableStackList.InitVars(); } } - this.tableItemList = ((ItemListDataTable)(base.Tables["ItemList"])); + this.tableSheetList = ((SheetListDataTable)(base.Tables["SheetList"])); if ((initTable == true)) { - if ((this.tableItemList != null)) { - this.tableItemList.InitVars(); + if ((this.tableSheetList != null)) { + this.tableSheetList.InitVars(); } } this.tableOrderList = ((OrderListDataTable)(base.Tables["OrderList"])); @@ -332,21 +332,21 @@ namespace AppData { this.tableBatchReqList.InitVars(); } } - this.tableStackList = ((StackListDataTable)(base.Tables["StackList"])); + this.tableItemList = ((ItemListDataTable)(base.Tables["ItemList"])); if ((initTable == true)) { - if ((this.tableStackList != null)) { - this.tableStackList.InitVars(); + if ((this.tableItemList != null)) { + this.tableItemList.InitVars(); } } - this.tableSheetList = ((SheetListDataTable)(base.Tables["SheetList"])); + this.tableMaterials = ((MaterialsDataTable)(base.Tables["Materials"])); if ((initTable == true)) { - if ((this.tableSheetList != null)) { - this.tableSheetList.InitVars(); + if ((this.tableMaterials != null)) { + this.tableMaterials.InitVars(); } } - this.relationFK_ItemList_Materials1 = this.Relations["FK_ItemList_Materials1"]; - this.relationFK_ItemList_OrderList1 = this.Relations["FK_ItemList_OrderList1"]; this.relationFK_BatchReqList_OrderList = this.Relations["FK_BatchReqList_OrderList"]; + this.relationFK_ItemList_OrderList1 = this.Relations["FK_ItemList_OrderList1"]; + this.relationFK_ItemList_Materials1 = this.Relations["FK_ItemList_Materials1"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -359,30 +359,30 @@ namespace AppData { this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableBatchList = new BatchListDataTable(); base.Tables.Add(this.tableBatchList); - this.tableMaterials = new MaterialsDataTable(); - base.Tables.Add(this.tableMaterials); - this.tableItemList = new ItemListDataTable(); - base.Tables.Add(this.tableItemList); - this.tableOrderList = new OrderListDataTable(); - base.Tables.Add(this.tableOrderList); - this.tableBatchReqList = new BatchReqListDataTable(); - base.Tables.Add(this.tableBatchReqList); this.tableStackList = new StackListDataTable(); base.Tables.Add(this.tableStackList); this.tableSheetList = new SheetListDataTable(); base.Tables.Add(this.tableSheetList); + this.tableOrderList = new OrderListDataTable(); + base.Tables.Add(this.tableOrderList); + this.tableBatchReqList = new BatchReqListDataTable(); + base.Tables.Add(this.tableBatchReqList); + this.tableItemList = new ItemListDataTable(); + base.Tables.Add(this.tableItemList); + this.tableMaterials = new MaterialsDataTable(); + base.Tables.Add(this.tableMaterials); + this.relationFK_BatchReqList_OrderList = new global::System.Data.DataRelation("FK_BatchReqList_OrderList", new global::System.Data.DataColumn[] { + this.tableOrderList.OrdIDColumn}, new global::System.Data.DataColumn[] { + this.tableBatchReqList.OrdIDColumn}, false); + this.Relations.Add(this.relationFK_BatchReqList_OrderList); + this.relationFK_ItemList_OrderList1 = new global::System.Data.DataRelation("FK_ItemList_OrderList1", new global::System.Data.DataColumn[] { + this.tableOrderList.OrdIDColumn}, new global::System.Data.DataColumn[] { + this.tableItemList.OrdIDColumn}, false); + this.Relations.Add(this.relationFK_ItemList_OrderList1); this.relationFK_ItemList_Materials1 = new global::System.Data.DataRelation("FK_ItemList_Materials1", new global::System.Data.DataColumn[] { this.tableMaterials.MatIDColumn}, new global::System.Data.DataColumn[] { this.tableItemList.MatIDColumn}, false); this.Relations.Add(this.relationFK_ItemList_Materials1); - this.relationFK_ItemList_OrderList1 = new global::System.Data.DataRelation("FK_ItemList_OrderList1", new global::System.Data.DataColumn[] { - this.tableOrderList.OrdCodColumn}, new global::System.Data.DataColumn[] { - this.tableItemList.OrdCodColumn}, false); - this.Relations.Add(this.relationFK_ItemList_OrderList1); - this.relationFK_BatchReqList_OrderList = new global::System.Data.DataRelation("FK_BatchReqList_OrderList", new global::System.Data.DataColumn[] { - this.tableOrderList.OrdCodColumn}, new global::System.Data.DataColumn[] { - this.tableBatchReqList.OrdCodColumn}, false); - this.Relations.Add(this.relationFK_BatchReqList_OrderList); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -393,13 +393,13 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeMaterials() { + private bool ShouldSerializeStackList() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeItemList() { + private bool ShouldSerializeSheetList() { return false; } @@ -417,13 +417,13 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeStackList() { + private bool ShouldSerializeItemList() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeSheetList() { + private bool ShouldSerializeMaterials() { return false; } @@ -486,10 +486,10 @@ namespace AppData { public delegate void BatchListRowChangeEventHandler(object sender, BatchListRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void MaterialsRowChangeEventHandler(object sender, MaterialsRowChangeEvent e); + public delegate void StackListRowChangeEventHandler(object sender, StackListRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void ItemListRowChangeEventHandler(object sender, ItemListRowChangeEvent e); + public delegate void SheetListRowChangeEventHandler(object sender, SheetListRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void OrderListRowChangeEventHandler(object sender, OrderListRowChangeEvent e); @@ -498,10 +498,10 @@ namespace AppData { public delegate void BatchReqListRowChangeEventHandler(object sender, BatchReqListRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void StackListRowChangeEventHandler(object sender, StackListRowChangeEvent e); + public delegate void ItemListRowChangeEventHandler(object sender, ItemListRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void SheetListRowChangeEventHandler(object sender, SheetListRowChangeEvent e); + public delegate void MaterialsRowChangeEventHandler(object sender, MaterialsRowChangeEvent e); /// ///Represents the strongly named DataTable class. @@ -959,1541 +959,6 @@ namespace AppData { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class MaterialsDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnMatID; - - private global::System.Data.DataColumn columnMaterExtCode; - - private global::System.Data.DataColumn columnMaterDesc; - - private global::System.Data.DataColumn columnApprovDate; - - private global::System.Data.DataColumn columnApprovUser; - - private global::System.Data.DataColumn columnL_mm; - - private global::System.Data.DataColumn columnW_mm; - - private global::System.Data.DataColumn columnT_mm; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MaterialsDataTable() { - this.TableName = "Materials"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MaterialsDataTable(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 MaterialsDataTable(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 MatIDColumn { - get { - return this.columnMatID; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn MaterExtCodeColumn { - get { - return this.columnMaterExtCode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn MaterDescColumn { - get { - return this.columnMaterDesc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ApprovDateColumn { - get { - return this.columnApprovDate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ApprovUserColumn { - get { - return this.columnApprovUser; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn L_mmColumn { - get { - return this.columnL_mm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn W_mmColumn { - get { - return this.columnW_mm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn T_mmColumn { - get { - return this.columnT_mm; - } - } - - [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 MaterialsRow this[int index] { - get { - return ((MaterialsRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MaterialsRowChangeEventHandler MaterialsRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MaterialsRowChangeEventHandler MaterialsRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MaterialsRowChangeEventHandler MaterialsRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MaterialsRowChangeEventHandler MaterialsRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddMaterialsRow(MaterialsRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MaterialsRow AddMaterialsRow(string MaterExtCode, string MaterDesc, System.DateTime ApprovDate, string ApprovUser, decimal L_mm, decimal W_mm, decimal T_mm) { - MaterialsRow rowMaterialsRow = ((MaterialsRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - MaterExtCode, - MaterDesc, - ApprovDate, - ApprovUser, - L_mm, - W_mm, - T_mm}; - rowMaterialsRow.ItemArray = columnValuesArray; - this.Rows.Add(rowMaterialsRow); - return rowMaterialsRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MaterialsRow FindByMatID(int MatID) { - return ((MaterialsRow)(this.Rows.Find(new object[] { - MatID}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - MaterialsDataTable cln = ((MaterialsDataTable)(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 MaterialsDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnMatID = base.Columns["MatID"]; - this.columnMaterExtCode = base.Columns["MaterExtCode"]; - this.columnMaterDesc = base.Columns["MaterDesc"]; - this.columnApprovDate = base.Columns["ApprovDate"]; - this.columnApprovUser = base.Columns["ApprovUser"]; - this.columnL_mm = base.Columns["L_mm"]; - this.columnW_mm = base.Columns["W_mm"]; - this.columnT_mm = base.Columns["T_mm"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnMatID = new global::System.Data.DataColumn("MatID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMatID); - this.columnMaterExtCode = new global::System.Data.DataColumn("MaterExtCode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMaterExtCode); - this.columnMaterDesc = new global::System.Data.DataColumn("MaterDesc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMaterDesc); - this.columnApprovDate = new global::System.Data.DataColumn("ApprovDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnApprovDate); - this.columnApprovUser = new global::System.Data.DataColumn("ApprovUser", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnApprovUser); - this.columnL_mm = new global::System.Data.DataColumn("L_mm", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnL_mm); - this.columnW_mm = new global::System.Data.DataColumn("W_mm", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnW_mm); - this.columnT_mm = new global::System.Data.DataColumn("T_mm", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnT_mm); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnMatID}, true)); - this.columnMatID.AutoIncrement = true; - this.columnMatID.AutoIncrementSeed = -1; - this.columnMatID.AutoIncrementStep = -1; - this.columnMatID.AllowDBNull = false; - this.columnMatID.ReadOnly = true; - this.columnMatID.Unique = true; - this.columnMaterExtCode.AllowDBNull = false; - this.columnMaterExtCode.MaxLength = 250; - this.columnMaterDesc.AllowDBNull = false; - this.columnMaterDesc.MaxLength = 500; - this.columnApprovDate.AllowDBNull = false; - this.columnApprovUser.AllowDBNull = false; - this.columnApprovUser.MaxLength = 50; - this.columnL_mm.AllowDBNull = false; - this.columnW_mm.AllowDBNull = false; - this.columnT_mm.AllowDBNull = false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MaterialsRow NewMaterialsRow() { - return ((MaterialsRow)(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 MaterialsRow(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(MaterialsRow); - } - - [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.MaterialsRowChanged != null)) { - this.MaterialsRowChanged(this, new MaterialsRowChangeEvent(((MaterialsRow)(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.MaterialsRowChanging != null)) { - this.MaterialsRowChanging(this, new MaterialsRowChangeEvent(((MaterialsRow)(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.MaterialsRowDeleted != null)) { - this.MaterialsRowDeleted(this, new MaterialsRowChangeEvent(((MaterialsRow)(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.MaterialsRowDeleting != null)) { - this.MaterialsRowDeleting(this, new MaterialsRowChangeEvent(((MaterialsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveMaterialsRow(MaterialsRow 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_App ds = new DS_App(); - 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 = "MaterialsDataTable"; - 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 the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class ItemListDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnItemID; - - private global::System.Data.DataColumn columnItemStatus; - - private global::System.Data.DataColumn columnOrdCod; - - private global::System.Data.DataColumn columnItem_Dtmx; - - private global::System.Data.DataColumn columnItemExtCode; - - private global::System.Data.DataColumn columnItemDesc; - - private global::System.Data.DataColumn columnItemNote; - - private global::System.Data.DataColumn columnItemQty; - - private global::System.Data.DataColumn columnMatID; - - private global::System.Data.DataColumn columnMachiningReq; - - private global::System.Data.DataColumn columnPostProcList; - - private global::System.Data.DataColumn columnProcessesReq; - - private global::System.Data.DataColumn columnCadFilePath; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ItemListDataTable() { - this.TableName = "ItemList"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal ItemListDataTable(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 ItemListDataTable(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 ItemIDColumn { - get { - return this.columnItemID; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ItemStatusColumn { - get { - return this.columnItemStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrdCodColumn { - get { - return this.columnOrdCod; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Item_DtmxColumn { - get { - return this.columnItem_Dtmx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ItemExtCodeColumn { - get { - return this.columnItemExtCode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ItemDescColumn { - get { - return this.columnItemDesc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ItemNoteColumn { - get { - return this.columnItemNote; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ItemQtyColumn { - get { - return this.columnItemQty; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn MatIDColumn { - get { - return this.columnMatID; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn MachiningReqColumn { - get { - return this.columnMachiningReq; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn PostProcListColumn { - get { - return this.columnPostProcList; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ProcessesReqColumn { - get { - return this.columnProcessesReq; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn CadFilePathColumn { - get { - return this.columnCadFilePath; - } - } - - [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 ItemListRow this[int index] { - get { - return ((ItemListRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event ItemListRowChangeEventHandler ItemListRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event ItemListRowChangeEventHandler ItemListRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event ItemListRowChangeEventHandler ItemListRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event ItemListRowChangeEventHandler ItemListRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddItemListRow(ItemListRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ItemListRow AddItemListRow(int ItemStatus, OrderListRow parentOrderListRowByFK_ItemList_OrderList1, string Item_Dtmx, string ItemExtCode, string ItemDesc, string ItemNote, int ItemQty, MaterialsRow parentMaterialsRowByFK_ItemList_Materials1, bool MachiningReq, string PostProcList, string ProcessesReq, string CadFilePath) { - ItemListRow rowItemListRow = ((ItemListRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - ItemStatus, - null, - Item_Dtmx, - ItemExtCode, - ItemDesc, - ItemNote, - ItemQty, - null, - MachiningReq, - PostProcList, - ProcessesReq, - CadFilePath}; - if ((parentOrderListRowByFK_ItemList_OrderList1 != null)) { - columnValuesArray[2] = parentOrderListRowByFK_ItemList_OrderList1[0]; - } - if ((parentMaterialsRowByFK_ItemList_Materials1 != null)) { - columnValuesArray[8] = parentMaterialsRowByFK_ItemList_Materials1[0]; - } - rowItemListRow.ItemArray = columnValuesArray; - this.Rows.Add(rowItemListRow); - return rowItemListRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ItemListRow FindByItemID(int ItemID) { - return ((ItemListRow)(this.Rows.Find(new object[] { - ItemID}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - ItemListDataTable cln = ((ItemListDataTable)(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 ItemListDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnItemID = base.Columns["ItemID"]; - this.columnItemStatus = base.Columns["ItemStatus"]; - this.columnOrdCod = base.Columns["OrdCod"]; - this.columnItem_Dtmx = base.Columns["Item_Dtmx"]; - this.columnItemExtCode = base.Columns["ItemExtCode"]; - this.columnItemDesc = base.Columns["ItemDesc"]; - this.columnItemNote = base.Columns["ItemNote"]; - this.columnItemQty = base.Columns["ItemQty"]; - this.columnMatID = base.Columns["MatID"]; - this.columnMachiningReq = base.Columns["MachiningReq"]; - this.columnPostProcList = base.Columns["PostProcList"]; - this.columnProcessesReq = base.Columns["ProcessesReq"]; - this.columnCadFilePath = base.Columns["CadFilePath"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnItemID = new global::System.Data.DataColumn("ItemID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnItemID); - this.columnItemStatus = new global::System.Data.DataColumn("ItemStatus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnItemStatus); - this.columnOrdCod = new global::System.Data.DataColumn("OrdCod", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrdCod); - this.columnItem_Dtmx = new global::System.Data.DataColumn("Item_Dtmx", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnItem_Dtmx); - this.columnItemExtCode = new global::System.Data.DataColumn("ItemExtCode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnItemExtCode); - this.columnItemDesc = new global::System.Data.DataColumn("ItemDesc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnItemDesc); - this.columnItemNote = new global::System.Data.DataColumn("ItemNote", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnItemNote); - this.columnItemQty = new global::System.Data.DataColumn("ItemQty", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnItemQty); - this.columnMatID = new global::System.Data.DataColumn("MatID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMatID); - this.columnMachiningReq = new global::System.Data.DataColumn("MachiningReq", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMachiningReq); - this.columnPostProcList = new global::System.Data.DataColumn("PostProcList", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPostProcList); - this.columnProcessesReq = new global::System.Data.DataColumn("ProcessesReq", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnProcessesReq); - this.columnCadFilePath = new global::System.Data.DataColumn("CadFilePath", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCadFilePath); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnItemID}, true)); - this.columnItemID.AutoIncrement = true; - this.columnItemID.AutoIncrementSeed = -1; - this.columnItemID.AutoIncrementStep = -1; - this.columnItemID.AllowDBNull = false; - this.columnItemID.ReadOnly = true; - this.columnItemID.Unique = true; - this.columnItemStatus.AllowDBNull = false; - this.columnOrdCod.MaxLength = 50; - this.columnItem_Dtmx.ReadOnly = true; - this.columnItem_Dtmx.MaxLength = 101; - this.columnItemExtCode.AllowDBNull = false; - this.columnItemExtCode.MaxLength = 250; - this.columnItemDesc.AllowDBNull = false; - this.columnItemDesc.MaxLength = 500; - this.columnItemNote.AllowDBNull = false; - this.columnItemNote.MaxLength = 500; - this.columnItemQty.AllowDBNull = false; - this.columnMatID.AllowDBNull = false; - this.columnMachiningReq.AllowDBNull = false; - this.columnPostProcList.AllowDBNull = false; - this.columnPostProcList.MaxLength = 250; - this.columnProcessesReq.AllowDBNull = false; - this.columnProcessesReq.MaxLength = 250; - this.columnCadFilePath.AllowDBNull = false; - this.columnCadFilePath.MaxLength = 500; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ItemListRow NewItemListRow() { - return ((ItemListRow)(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 ItemListRow(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(ItemListRow); - } - - [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.ItemListRowChanged != null)) { - this.ItemListRowChanged(this, new ItemListRowChangeEvent(((ItemListRow)(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.ItemListRowChanging != null)) { - this.ItemListRowChanging(this, new ItemListRowChangeEvent(((ItemListRow)(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.ItemListRowDeleted != null)) { - this.ItemListRowDeleted(this, new ItemListRowChangeEvent(((ItemListRow)(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.ItemListRowDeleting != null)) { - this.ItemListRowDeleting(this, new ItemListRowChangeEvent(((ItemListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveItemListRow(ItemListRow 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_App ds = new DS_App(); - 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 = "ItemListDataTable"; - 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 the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class OrderListDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnOrdCod; - - private global::System.Data.DataColumn columnOrdType; - - private global::System.Data.DataColumn columnDestPlant; - - private global::System.Data.DataColumn columnFamilyCode; - - private global::System.Data.DataColumn columnOrdCod_Dtmx; - - private global::System.Data.DataColumn columnOrderExtCode; - - private global::System.Data.DataColumn columnOrderDesc; - - private global::System.Data.DataColumn columnOrderNote; - - private global::System.Data.DataColumn columnOrderQty; - - private global::System.Data.DataColumn columnImportDate; - - private global::System.Data.DataColumn columnImportUser; - - private global::System.Data.DataColumn columnOrdCodOrig; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public OrderListDataTable() { - this.TableName = "OrderList"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal OrderListDataTable(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 OrderListDataTable(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 OrdCodColumn { - get { - return this.columnOrdCod; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrdTypeColumn { - get { - return this.columnOrdType; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn DestPlantColumn { - get { - return this.columnDestPlant; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn FamilyCodeColumn { - get { - return this.columnFamilyCode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrdCod_DtmxColumn { - get { - return this.columnOrdCod_Dtmx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrderExtCodeColumn { - get { - return this.columnOrderExtCode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrderDescColumn { - get { - return this.columnOrderDesc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrderNoteColumn { - get { - return this.columnOrderNote; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrderQtyColumn { - get { - return this.columnOrderQty; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ImportDateColumn { - get { - return this.columnImportDate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ImportUserColumn { - get { - return this.columnImportUser; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrdCodOrigColumn { - get { - return this.columnOrdCodOrig; - } - } - - [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 OrderListRow this[int index] { - get { - return ((OrderListRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event OrderListRowChangeEventHandler OrderListRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event OrderListRowChangeEventHandler OrderListRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event OrderListRowChangeEventHandler OrderListRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event OrderListRowChangeEventHandler OrderListRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddOrderListRow(OrderListRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public OrderListRow AddOrderListRow(string OrdCod, string OrdType, string DestPlant, string FamilyCode, string OrdCod_Dtmx, string OrderExtCode, string OrderDesc, string OrderNote, int OrderQty, System.DateTime ImportDate, string ImportUser, string OrdCodOrig) { - OrderListRow rowOrderListRow = ((OrderListRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - OrdCod, - OrdType, - DestPlant, - FamilyCode, - OrdCod_Dtmx, - OrderExtCode, - OrderDesc, - OrderNote, - OrderQty, - ImportDate, - ImportUser, - OrdCodOrig}; - rowOrderListRow.ItemArray = columnValuesArray; - this.Rows.Add(rowOrderListRow); - return rowOrderListRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public OrderListRow FindByOrdCod(string OrdCod) { - return ((OrderListRow)(this.Rows.Find(new object[] { - OrdCod}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - OrderListDataTable cln = ((OrderListDataTable)(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 OrderListDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnOrdCod = base.Columns["OrdCod"]; - this.columnOrdType = base.Columns["OrdType"]; - this.columnDestPlant = base.Columns["DestPlant"]; - this.columnFamilyCode = base.Columns["FamilyCode"]; - this.columnOrdCod_Dtmx = base.Columns["OrdCod_Dtmx"]; - this.columnOrderExtCode = base.Columns["OrderExtCode"]; - this.columnOrderDesc = base.Columns["OrderDesc"]; - this.columnOrderNote = base.Columns["OrderNote"]; - this.columnOrderQty = base.Columns["OrderQty"]; - this.columnImportDate = base.Columns["ImportDate"]; - this.columnImportUser = base.Columns["ImportUser"]; - this.columnOrdCodOrig = base.Columns["OrdCodOrig"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnOrdCod = new global::System.Data.DataColumn("OrdCod", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrdCod); - this.columnOrdType = new global::System.Data.DataColumn("OrdType", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrdType); - this.columnDestPlant = new global::System.Data.DataColumn("DestPlant", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDestPlant); - this.columnFamilyCode = new global::System.Data.DataColumn("FamilyCode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnFamilyCode); - this.columnOrdCod_Dtmx = new global::System.Data.DataColumn("OrdCod_Dtmx", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrdCod_Dtmx); - this.columnOrderExtCode = new global::System.Data.DataColumn("OrderExtCode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrderExtCode); - this.columnOrderDesc = new global::System.Data.DataColumn("OrderDesc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrderDesc); - this.columnOrderNote = new global::System.Data.DataColumn("OrderNote", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrderNote); - this.columnOrderQty = new global::System.Data.DataColumn("OrderQty", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrderQty); - this.columnImportDate = new global::System.Data.DataColumn("ImportDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnImportDate); - this.columnImportUser = new global::System.Data.DataColumn("ImportUser", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnImportUser); - this.columnOrdCodOrig = new global::System.Data.DataColumn("OrdCodOrig", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrdCodOrig); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnOrdCod}, true)); - this.columnOrdCod.AllowDBNull = false; - this.columnOrdCod.Unique = true; - this.columnOrdCod.MaxLength = 50; - this.columnOrdType.AllowDBNull = false; - this.columnOrdType.MaxLength = 10; - this.columnDestPlant.AllowDBNull = false; - this.columnDestPlant.MaxLength = 50; - this.columnFamilyCode.AllowDBNull = false; - this.columnFamilyCode.MaxLength = 250; - this.columnOrdCod_Dtmx.ReadOnly = true; - this.columnOrdCod_Dtmx.MaxLength = 50; - this.columnOrderExtCode.AllowDBNull = false; - this.columnOrderExtCode.MaxLength = 250; - this.columnOrderDesc.AllowDBNull = false; - this.columnOrderDesc.MaxLength = 500; - this.columnOrderNote.AllowDBNull = false; - this.columnOrderNote.MaxLength = 500; - this.columnOrderQty.AllowDBNull = false; - this.columnImportDate.AllowDBNull = false; - this.columnImportUser.AllowDBNull = false; - this.columnImportUser.MaxLength = 50; - this.columnOrdCodOrig.MaxLength = 50; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public OrderListRow NewOrderListRow() { - return ((OrderListRow)(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 OrderListRow(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(OrderListRow); - } - - [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.OrderListRowChanged != null)) { - this.OrderListRowChanged(this, new OrderListRowChangeEvent(((OrderListRow)(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.OrderListRowChanging != null)) { - this.OrderListRowChanging(this, new OrderListRowChangeEvent(((OrderListRow)(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.OrderListRowDeleted != null)) { - this.OrderListRowDeleted(this, new OrderListRowChangeEvent(((OrderListRow)(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.OrderListRowDeleting != null)) { - this.OrderListRowDeleting(this, new OrderListRowChangeEvent(((OrderListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveOrderListRow(OrderListRow 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_App ds = new DS_App(); - 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 = "OrderListDataTable"; - 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 the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class BatchReqListDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnBatchID; - - private global::System.Data.DataColumn columnOrdCod; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public BatchReqListDataTable() { - this.TableName = "BatchReqList"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal BatchReqListDataTable(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 BatchReqListDataTable(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 BatchIDColumn { - get { - return this.columnBatchID; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn OrdCodColumn { - get { - return this.columnOrdCod; - } - } - - [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 BatchReqListRow this[int index] { - get { - return ((BatchReqListRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event BatchReqListRowChangeEventHandler BatchReqListRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event BatchReqListRowChangeEventHandler BatchReqListRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event BatchReqListRowChangeEventHandler BatchReqListRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event BatchReqListRowChangeEventHandler BatchReqListRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddBatchReqListRow(BatchReqListRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public BatchReqListRow AddBatchReqListRow(int BatchID, OrderListRow parentOrderListRowByFK_BatchReqList_OrderList) { - BatchReqListRow rowBatchReqListRow = ((BatchReqListRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - BatchID, - null}; - if ((parentOrderListRowByFK_BatchReqList_OrderList != null)) { - columnValuesArray[1] = parentOrderListRowByFK_BatchReqList_OrderList[0]; - } - rowBatchReqListRow.ItemArray = columnValuesArray; - this.Rows.Add(rowBatchReqListRow); - return rowBatchReqListRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public BatchReqListRow FindByBatchIDOrdCod(int BatchID, string OrdCod) { - return ((BatchReqListRow)(this.Rows.Find(new object[] { - BatchID, - OrdCod}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - BatchReqListDataTable cln = ((BatchReqListDataTable)(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 BatchReqListDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnBatchID = base.Columns["BatchID"]; - this.columnOrdCod = base.Columns["OrdCod"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBatchID); - this.columnOrdCod = new global::System.Data.DataColumn("OrdCod", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOrdCod); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnBatchID, - this.columnOrdCod}, true)); - this.columnBatchID.AllowDBNull = false; - this.columnOrdCod.AllowDBNull = false; - this.columnOrdCod.MaxLength = 50; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public BatchReqListRow NewBatchReqListRow() { - return ((BatchReqListRow)(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 BatchReqListRow(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(BatchReqListRow); - } - - [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.BatchReqListRowChanged != null)) { - this.BatchReqListRowChanged(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(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.BatchReqListRowChanging != null)) { - this.BatchReqListRowChanging(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(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.BatchReqListRowDeleted != null)) { - this.BatchReqListRowDeleted(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(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.BatchReqListRowDeleting != null)) { - this.BatchReqListRowDeleting(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveBatchReqListRow(BatchReqListRow 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_App ds = new DS_App(); - 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 = "BatchReqListDataTable"; - 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 the strongly named DataTable class. /// @@ -2896,9 +1361,9 @@ namespace AppData { private global::System.Data.DataColumn columnDrawFilePath; - private global::System.Data.DataColumn columnMaterExtCode; + private global::System.Data.DataColumn columnMatExtCode; - private global::System.Data.DataColumn columnMaterDesc; + private global::System.Data.DataColumn columnMatDesc; private global::System.Data.DataColumn columnL_mm; @@ -3069,17 +1534,17 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn MaterExtCodeColumn { + public global::System.Data.DataColumn MatExtCodeColumn { get { - return this.columnMaterExtCode; + return this.columnMatExtCode; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn MaterDescColumn { + public global::System.Data.DataColumn MatDescColumn { get { - return this.columnMaterDesc; + return this.columnMatDesc; } } @@ -3161,8 +1626,8 @@ namespace AppData { string PrintFilePath, string CncFilePath, string DrawFilePath, - string MaterExtCode, - string MaterDesc, + int MatExtCode, + string MatDesc, decimal L_mm, decimal W_mm, decimal T_mm) { @@ -3184,8 +1649,8 @@ namespace AppData { PrintFilePath, CncFilePath, DrawFilePath, - MaterExtCode, - MaterDesc, + MatExtCode, + MatDesc, L_mm, W_mm, T_mm}; @@ -3234,8 +1699,8 @@ namespace AppData { this.columnPrintFilePath = base.Columns["PrintFilePath"]; this.columnCncFilePath = base.Columns["CncFilePath"]; this.columnDrawFilePath = base.Columns["DrawFilePath"]; - this.columnMaterExtCode = base.Columns["MaterExtCode"]; - this.columnMaterDesc = base.Columns["MaterDesc"]; + this.columnMatExtCode = base.Columns["MatExtCode"]; + this.columnMatDesc = base.Columns["MatDesc"]; this.columnL_mm = base.Columns["L_mm"]; this.columnW_mm = base.Columns["W_mm"]; this.columnT_mm = base.Columns["T_mm"]; @@ -3276,10 +1741,10 @@ namespace AppData { base.Columns.Add(this.columnCncFilePath); this.columnDrawFilePath = new global::System.Data.DataColumn("DrawFilePath", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDrawFilePath); - this.columnMaterExtCode = new global::System.Data.DataColumn("MaterExtCode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMaterExtCode); - this.columnMaterDesc = new global::System.Data.DataColumn("MaterDesc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMaterDesc); + this.columnMatExtCode = new global::System.Data.DataColumn("MatExtCode", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatExtCode); + this.columnMatDesc = new global::System.Data.DataColumn("MatDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatDesc); this.columnL_mm = new global::System.Data.DataColumn("L_mm", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnL_mm); this.columnW_mm = new global::System.Data.DataColumn("W_mm", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -3302,10 +1767,9 @@ namespace AppData { this.columnCncFilePath.MaxLength = 500; this.columnDrawFilePath.AllowDBNull = false; this.columnDrawFilePath.MaxLength = 500; - this.columnMaterExtCode.AllowDBNull = false; - this.columnMaterExtCode.MaxLength = 250; - this.columnMaterDesc.AllowDBNull = false; - this.columnMaterDesc.MaxLength = 500; + this.columnMatExtCode.AllowDBNull = false; + this.columnMatDesc.AllowDBNull = false; + this.columnMatDesc.MaxLength = 500; this.columnL_mm.AllowDBNull = false; this.columnW_mm.AllowDBNull = false; this.columnT_mm.AllowDBNull = false; @@ -3435,6 +1899,1553 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class OrderListDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnOrdID; + + private global::System.Data.DataColumn columnOrdType; + + private global::System.Data.DataColumn columnDestPlant; + + private global::System.Data.DataColumn columnFamilyCode; + + private global::System.Data.DataColumn columnOrdDtmx; + + private global::System.Data.DataColumn columnOrderExtCode; + + private global::System.Data.DataColumn columnOrderDesc; + + private global::System.Data.DataColumn columnOrderNote; + + private global::System.Data.DataColumn columnOrderQty; + + private global::System.Data.DataColumn columnImportDate; + + private global::System.Data.DataColumn columnImportUser; + + private global::System.Data.DataColumn columnOrdCodOrig; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OrderListDataTable() { + this.TableName = "OrderList"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OrderListDataTable(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 OrderListDataTable(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 OrdIDColumn { + get { + return this.columnOrdID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrdTypeColumn { + get { + return this.columnOrdType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DestPlantColumn { + get { + return this.columnDestPlant; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn FamilyCodeColumn { + get { + return this.columnFamilyCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrdDtmxColumn { + get { + return this.columnOrdDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrderExtCodeColumn { + get { + return this.columnOrderExtCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrderDescColumn { + get { + return this.columnOrderDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrderNoteColumn { + get { + return this.columnOrderNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrderQtyColumn { + get { + return this.columnOrderQty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ImportDateColumn { + get { + return this.columnImportDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ImportUserColumn { + get { + return this.columnImportUser; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrdCodOrigColumn { + get { + return this.columnOrdCodOrig; + } + } + + [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 OrderListRow this[int index] { + get { + return ((OrderListRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OrderListRowChangeEventHandler OrderListRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OrderListRowChangeEventHandler OrderListRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OrderListRowChangeEventHandler OrderListRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OrderListRowChangeEventHandler OrderListRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddOrderListRow(OrderListRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OrderListRow AddOrderListRow(int OrdID, string OrdType, string DestPlant, string FamilyCode, string OrdDtmx, string OrderExtCode, string OrderDesc, string OrderNote, int OrderQty, System.DateTime ImportDate, string ImportUser, string OrdCodOrig) { + OrderListRow rowOrderListRow = ((OrderListRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + OrdID, + OrdType, + DestPlant, + FamilyCode, + OrdDtmx, + OrderExtCode, + OrderDesc, + OrderNote, + OrderQty, + ImportDate, + ImportUser, + OrdCodOrig}; + rowOrderListRow.ItemArray = columnValuesArray; + this.Rows.Add(rowOrderListRow); + return rowOrderListRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OrderListRow FindByOrdID(int OrdID) { + return ((OrderListRow)(this.Rows.Find(new object[] { + OrdID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + OrderListDataTable cln = ((OrderListDataTable)(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 OrderListDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnOrdID = base.Columns["OrdID"]; + this.columnOrdType = base.Columns["OrdType"]; + this.columnDestPlant = base.Columns["DestPlant"]; + this.columnFamilyCode = base.Columns["FamilyCode"]; + this.columnOrdDtmx = base.Columns["OrdDtmx"]; + this.columnOrderExtCode = base.Columns["OrderExtCode"]; + this.columnOrderDesc = base.Columns["OrderDesc"]; + this.columnOrderNote = base.Columns["OrderNote"]; + this.columnOrderQty = base.Columns["OrderQty"]; + this.columnImportDate = base.Columns["ImportDate"]; + this.columnImportUser = base.Columns["ImportUser"]; + this.columnOrdCodOrig = base.Columns["OrdCodOrig"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdID); + this.columnOrdType = new global::System.Data.DataColumn("OrdType", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdType); + this.columnDestPlant = new global::System.Data.DataColumn("DestPlant", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDestPlant); + this.columnFamilyCode = new global::System.Data.DataColumn("FamilyCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFamilyCode); + this.columnOrdDtmx = new global::System.Data.DataColumn("OrdDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdDtmx); + this.columnOrderExtCode = new global::System.Data.DataColumn("OrderExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrderExtCode); + this.columnOrderDesc = new global::System.Data.DataColumn("OrderDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrderDesc); + this.columnOrderNote = new global::System.Data.DataColumn("OrderNote", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrderNote); + this.columnOrderQty = new global::System.Data.DataColumn("OrderQty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrderQty); + this.columnImportDate = new global::System.Data.DataColumn("ImportDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImportDate); + this.columnImportUser = new global::System.Data.DataColumn("ImportUser", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImportUser); + this.columnOrdCodOrig = new global::System.Data.DataColumn("OrdCodOrig", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdCodOrig); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnOrdID}, true)); + this.columnOrdID.AllowDBNull = false; + this.columnOrdID.Unique = true; + this.columnOrdType.AllowDBNull = false; + this.columnOrdType.MaxLength = 10; + this.columnDestPlant.AllowDBNull = false; + this.columnDestPlant.MaxLength = 50; + this.columnFamilyCode.AllowDBNull = false; + this.columnFamilyCode.MaxLength = 250; + this.columnOrdDtmx.ReadOnly = true; + this.columnOrdDtmx.Caption = "OrdCodDtmx"; + this.columnOrdDtmx.MaxLength = 10; + this.columnOrderExtCode.AllowDBNull = false; + this.columnOrderExtCode.MaxLength = 250; + this.columnOrderDesc.AllowDBNull = false; + this.columnOrderDesc.MaxLength = 500; + this.columnOrderNote.AllowDBNull = false; + this.columnOrderNote.MaxLength = 500; + this.columnOrderQty.AllowDBNull = false; + this.columnImportDate.AllowDBNull = false; + this.columnImportUser.AllowDBNull = false; + this.columnImportUser.MaxLength = 50; + this.columnOrdCodOrig.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OrderListRow NewOrderListRow() { + return ((OrderListRow)(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 OrderListRow(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(OrderListRow); + } + + [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.OrderListRowChanged != null)) { + this.OrderListRowChanged(this, new OrderListRowChangeEvent(((OrderListRow)(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.OrderListRowChanging != null)) { + this.OrderListRowChanging(this, new OrderListRowChangeEvent(((OrderListRow)(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.OrderListRowDeleted != null)) { + this.OrderListRowDeleted(this, new OrderListRowChangeEvent(((OrderListRow)(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.OrderListRowDeleting != null)) { + this.OrderListRowDeleting(this, new OrderListRowChangeEvent(((OrderListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveOrderListRow(OrderListRow 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_App ds = new DS_App(); + 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 = "OrderListDataTable"; + 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 the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class BatchReqListDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnBatchID; + + private global::System.Data.DataColumn columnOrdID; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public BatchReqListDataTable() { + this.TableName = "BatchReqList"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal BatchReqListDataTable(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 BatchReqListDataTable(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 BatchIDColumn { + get { + return this.columnBatchID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrdIDColumn { + get { + return this.columnOrdID; + } + } + + [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 BatchReqListRow this[int index] { + get { + return ((BatchReqListRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event BatchReqListRowChangeEventHandler BatchReqListRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event BatchReqListRowChangeEventHandler BatchReqListRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event BatchReqListRowChangeEventHandler BatchReqListRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event BatchReqListRowChangeEventHandler BatchReqListRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddBatchReqListRow(BatchReqListRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public BatchReqListRow AddBatchReqListRow(int BatchID, OrderListRow parentOrderListRowByFK_BatchReqList_OrderList) { + BatchReqListRow rowBatchReqListRow = ((BatchReqListRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + BatchID, + null}; + if ((parentOrderListRowByFK_BatchReqList_OrderList != null)) { + columnValuesArray[1] = parentOrderListRowByFK_BatchReqList_OrderList[0]; + } + rowBatchReqListRow.ItemArray = columnValuesArray; + this.Rows.Add(rowBatchReqListRow); + return rowBatchReqListRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public BatchReqListRow FindByBatchIDOrdID(int BatchID, int OrdID) { + return ((BatchReqListRow)(this.Rows.Find(new object[] { + BatchID, + OrdID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + BatchReqListDataTable cln = ((BatchReqListDataTable)(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 BatchReqListDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnBatchID = base.Columns["BatchID"]; + this.columnOrdID = base.Columns["OrdID"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBatchID); + this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdID); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnBatchID, + this.columnOrdID}, true)); + this.columnBatchID.AllowDBNull = false; + this.columnOrdID.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public BatchReqListRow NewBatchReqListRow() { + return ((BatchReqListRow)(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 BatchReqListRow(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(BatchReqListRow); + } + + [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.BatchReqListRowChanged != null)) { + this.BatchReqListRowChanged(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(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.BatchReqListRowChanging != null)) { + this.BatchReqListRowChanging(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(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.BatchReqListRowDeleted != null)) { + this.BatchReqListRowDeleted(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(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.BatchReqListRowDeleting != null)) { + this.BatchReqListRowDeleting(this, new BatchReqListRowChangeEvent(((BatchReqListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveBatchReqListRow(BatchReqListRow 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_App ds = new DS_App(); + 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 = "BatchReqListDataTable"; + 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 the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ItemListDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnItemID; + + private global::System.Data.DataColumn columnItemStatus; + + private global::System.Data.DataColumn columnOrdID; + + private global::System.Data.DataColumn columnItemDtmx; + + private global::System.Data.DataColumn columnItemExtCode; + + private global::System.Data.DataColumn columnItemDesc; + + private global::System.Data.DataColumn columnItemNote; + + private global::System.Data.DataColumn columnItemQty; + + private global::System.Data.DataColumn columnMatID; + + private global::System.Data.DataColumn columnMachiningReq; + + private global::System.Data.DataColumn columnPostProcList; + + private global::System.Data.DataColumn columnProcessesReq; + + private global::System.Data.DataColumn columnCadFilePath; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ItemListDataTable() { + this.TableName = "ItemList"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ItemListDataTable(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 ItemListDataTable(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 ItemIDColumn { + get { + return this.columnItemID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ItemStatusColumn { + get { + return this.columnItemStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrdIDColumn { + get { + return this.columnOrdID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ItemDtmxColumn { + get { + return this.columnItemDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ItemExtCodeColumn { + get { + return this.columnItemExtCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ItemDescColumn { + get { + return this.columnItemDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ItemNoteColumn { + get { + return this.columnItemNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ItemQtyColumn { + get { + return this.columnItemQty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn MatIDColumn { + get { + return this.columnMatID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn MachiningReqColumn { + get { + return this.columnMachiningReq; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn PostProcListColumn { + get { + return this.columnPostProcList; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ProcessesReqColumn { + get { + return this.columnProcessesReq; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CadFilePathColumn { + get { + return this.columnCadFilePath; + } + } + + [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 ItemListRow this[int index] { + get { + return ((ItemListRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ItemListRowChangeEventHandler ItemListRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ItemListRowChangeEventHandler ItemListRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ItemListRowChangeEventHandler ItemListRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ItemListRowChangeEventHandler ItemListRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddItemListRow(ItemListRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ItemListRow AddItemListRow(int ItemStatus, OrderListRow parentOrderListRowByFK_ItemList_OrderList1, string ItemDtmx, string ItemExtCode, string ItemDesc, string ItemNote, int ItemQty, MaterialsRow parentMaterialsRowByFK_ItemList_Materials1, bool MachiningReq, string PostProcList, string ProcessesReq, string CadFilePath) { + ItemListRow rowItemListRow = ((ItemListRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + ItemStatus, + null, + ItemDtmx, + ItemExtCode, + ItemDesc, + ItemNote, + ItemQty, + null, + MachiningReq, + PostProcList, + ProcessesReq, + CadFilePath}; + if ((parentOrderListRowByFK_ItemList_OrderList1 != null)) { + columnValuesArray[2] = parentOrderListRowByFK_ItemList_OrderList1[0]; + } + if ((parentMaterialsRowByFK_ItemList_Materials1 != null)) { + columnValuesArray[8] = parentMaterialsRowByFK_ItemList_Materials1[0]; + } + rowItemListRow.ItemArray = columnValuesArray; + this.Rows.Add(rowItemListRow); + return rowItemListRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ItemListRow FindByItemID(int ItemID) { + return ((ItemListRow)(this.Rows.Find(new object[] { + ItemID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + ItemListDataTable cln = ((ItemListDataTable)(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 ItemListDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnItemID = base.Columns["ItemID"]; + this.columnItemStatus = base.Columns["ItemStatus"]; + this.columnOrdID = base.Columns["OrdID"]; + this.columnItemDtmx = base.Columns["ItemDtmx"]; + this.columnItemExtCode = base.Columns["ItemExtCode"]; + this.columnItemDesc = base.Columns["ItemDesc"]; + this.columnItemNote = base.Columns["ItemNote"]; + this.columnItemQty = base.Columns["ItemQty"]; + this.columnMatID = base.Columns["MatID"]; + this.columnMachiningReq = base.Columns["MachiningReq"]; + this.columnPostProcList = base.Columns["PostProcList"]; + this.columnProcessesReq = base.Columns["ProcessesReq"]; + this.columnCadFilePath = base.Columns["CadFilePath"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnItemID = new global::System.Data.DataColumn("ItemID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemID); + this.columnItemStatus = new global::System.Data.DataColumn("ItemStatus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemStatus); + this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdID); + this.columnItemDtmx = new global::System.Data.DataColumn("ItemDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemDtmx); + this.columnItemExtCode = new global::System.Data.DataColumn("ItemExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemExtCode); + this.columnItemDesc = new global::System.Data.DataColumn("ItemDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemDesc); + this.columnItemNote = new global::System.Data.DataColumn("ItemNote", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemNote); + this.columnItemQty = new global::System.Data.DataColumn("ItemQty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemQty); + this.columnMatID = new global::System.Data.DataColumn("MatID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatID); + this.columnMachiningReq = new global::System.Data.DataColumn("MachiningReq", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMachiningReq); + this.columnPostProcList = new global::System.Data.DataColumn("PostProcList", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPostProcList); + this.columnProcessesReq = new global::System.Data.DataColumn("ProcessesReq", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnProcessesReq); + this.columnCadFilePath = new global::System.Data.DataColumn("CadFilePath", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCadFilePath); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnItemID}, true)); + this.columnItemID.AutoIncrement = true; + this.columnItemID.AutoIncrementSeed = -1; + this.columnItemID.AutoIncrementStep = -1; + this.columnItemID.AllowDBNull = false; + this.columnItemID.ReadOnly = true; + this.columnItemID.Unique = true; + this.columnItemStatus.AllowDBNull = false; + this.columnItemDtmx.MaxLength = 50; + this.columnItemExtCode.AllowDBNull = false; + this.columnItemExtCode.MaxLength = 250; + this.columnItemDesc.AllowDBNull = false; + this.columnItemDesc.MaxLength = 500; + this.columnItemNote.AllowDBNull = false; + this.columnItemNote.MaxLength = 500; + this.columnItemQty.AllowDBNull = false; + this.columnMatID.AllowDBNull = false; + this.columnMachiningReq.AllowDBNull = false; + this.columnPostProcList.AllowDBNull = false; + this.columnPostProcList.MaxLength = 250; + this.columnProcessesReq.AllowDBNull = false; + this.columnProcessesReq.MaxLength = 250; + this.columnCadFilePath.AllowDBNull = false; + this.columnCadFilePath.MaxLength = 500; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ItemListRow NewItemListRow() { + return ((ItemListRow)(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 ItemListRow(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(ItemListRow); + } + + [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.ItemListRowChanged != null)) { + this.ItemListRowChanged(this, new ItemListRowChangeEvent(((ItemListRow)(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.ItemListRowChanging != null)) { + this.ItemListRowChanging(this, new ItemListRowChangeEvent(((ItemListRow)(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.ItemListRowDeleted != null)) { + this.ItemListRowDeleted(this, new ItemListRowChangeEvent(((ItemListRow)(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.ItemListRowDeleting != null)) { + this.ItemListRowDeleting(this, new ItemListRowChangeEvent(((ItemListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveItemListRow(ItemListRow 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_App ds = new DS_App(); + 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 = "ItemListDataTable"; + 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 the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MaterialsDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnMatID; + + private global::System.Data.DataColumn columnMatExtCode; + + private global::System.Data.DataColumn columnMatDesc; + + private global::System.Data.DataColumn columnApprovDate; + + private global::System.Data.DataColumn columnApprovUser; + + private global::System.Data.DataColumn columnL_mm; + + private global::System.Data.DataColumn columnW_mm; + + private global::System.Data.DataColumn columnT_mm; + + private global::System.Data.DataColumn columnMatDtmx; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public MaterialsDataTable() { + this.TableName = "Materials"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal MaterialsDataTable(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 MaterialsDataTable(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 MatIDColumn { + get { + return this.columnMatID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn MatExtCodeColumn { + get { + return this.columnMatExtCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn MatDescColumn { + get { + return this.columnMatDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ApprovDateColumn { + get { + return this.columnApprovDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ApprovUserColumn { + get { + return this.columnApprovUser; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn L_mmColumn { + get { + return this.columnL_mm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn W_mmColumn { + get { + return this.columnW_mm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn T_mmColumn { + get { + return this.columnT_mm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn MatDtmxColumn { + get { + return this.columnMatDtmx; + } + } + + [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 MaterialsRow this[int index] { + get { + return ((MaterialsRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event MaterialsRowChangeEventHandler MaterialsRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event MaterialsRowChangeEventHandler MaterialsRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event MaterialsRowChangeEventHandler MaterialsRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event MaterialsRowChangeEventHandler MaterialsRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddMaterialsRow(MaterialsRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public MaterialsRow AddMaterialsRow(int MatExtCode, string MatDesc, System.DateTime ApprovDate, string ApprovUser, decimal L_mm, decimal W_mm, decimal T_mm, string MatDtmx) { + MaterialsRow rowMaterialsRow = ((MaterialsRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + MatExtCode, + MatDesc, + ApprovDate, + ApprovUser, + L_mm, + W_mm, + T_mm, + MatDtmx}; + rowMaterialsRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMaterialsRow); + return rowMaterialsRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public MaterialsRow FindByMatID(int MatID) { + return ((MaterialsRow)(this.Rows.Find(new object[] { + MatID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + MaterialsDataTable cln = ((MaterialsDataTable)(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 MaterialsDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnMatID = base.Columns["MatID"]; + this.columnMatExtCode = base.Columns["MatExtCode"]; + this.columnMatDesc = base.Columns["MatDesc"]; + this.columnApprovDate = base.Columns["ApprovDate"]; + this.columnApprovUser = base.Columns["ApprovUser"]; + this.columnL_mm = base.Columns["L_mm"]; + this.columnW_mm = base.Columns["W_mm"]; + this.columnT_mm = base.Columns["T_mm"]; + this.columnMatDtmx = base.Columns["MatDtmx"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnMatID = new global::System.Data.DataColumn("MatID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatID); + this.columnMatExtCode = new global::System.Data.DataColumn("MatExtCode", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatExtCode); + this.columnMatDesc = new global::System.Data.DataColumn("MatDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatDesc); + this.columnApprovDate = new global::System.Data.DataColumn("ApprovDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnApprovDate); + this.columnApprovUser = new global::System.Data.DataColumn("ApprovUser", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnApprovUser); + this.columnL_mm = new global::System.Data.DataColumn("L_mm", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnL_mm); + this.columnW_mm = new global::System.Data.DataColumn("W_mm", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnW_mm); + this.columnT_mm = new global::System.Data.DataColumn("T_mm", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnT_mm); + this.columnMatDtmx = new global::System.Data.DataColumn("MatDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatDtmx); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnMatID}, true)); + this.columnMatID.AutoIncrement = true; + this.columnMatID.AutoIncrementSeed = -1; + this.columnMatID.AutoIncrementStep = -1; + this.columnMatID.AllowDBNull = false; + this.columnMatID.ReadOnly = true; + this.columnMatID.Unique = true; + this.columnMatExtCode.AllowDBNull = false; + this.columnMatDesc.AllowDBNull = false; + this.columnMatDesc.MaxLength = 500; + this.columnApprovDate.AllowDBNull = false; + this.columnApprovUser.AllowDBNull = false; + this.columnApprovUser.MaxLength = 50; + this.columnL_mm.AllowDBNull = false; + this.columnW_mm.AllowDBNull = false; + this.columnT_mm.AllowDBNull = false; + this.columnMatDtmx.ReadOnly = true; + this.columnMatDtmx.MaxLength = 10; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public MaterialsRow NewMaterialsRow() { + return ((MaterialsRow)(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 MaterialsRow(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(MaterialsRow); + } + + [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.MaterialsRowChanged != null)) { + this.MaterialsRowChanged(this, new MaterialsRowChangeEvent(((MaterialsRow)(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.MaterialsRowChanging != null)) { + this.MaterialsRowChanging(this, new MaterialsRowChangeEvent(((MaterialsRow)(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.MaterialsRowDeleted != null)) { + this.MaterialsRowDeleted(this, new MaterialsRowChangeEvent(((MaterialsRow)(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.MaterialsRowDeleting != null)) { + this.MaterialsRowDeleting(this, new MaterialsRowChangeEvent(((MaterialsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveMaterialsRow(MaterialsRow 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_App ds = new DS_App(); + 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 = "MaterialsDataTable"; + 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. /// @@ -3723,585 +3734,6 @@ namespace AppData { } } - /// - ///Represents strongly named DataRow class. - /// - public partial class MaterialsRow : global::System.Data.DataRow { - - private MaterialsDataTable tableMaterials; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MaterialsRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableMaterials = ((MaterialsDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int MatID { - get { - return ((int)(this[this.tableMaterials.MatIDColumn])); - } - set { - this[this.tableMaterials.MatIDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string MaterExtCode { - get { - return ((string)(this[this.tableMaterials.MaterExtCodeColumn])); - } - set { - this[this.tableMaterials.MaterExtCodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string MaterDesc { - get { - return ((string)(this[this.tableMaterials.MaterDescColumn])); - } - set { - this[this.tableMaterials.MaterDescColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime ApprovDate { - get { - return ((global::System.DateTime)(this[this.tableMaterials.ApprovDateColumn])); - } - set { - this[this.tableMaterials.ApprovDateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ApprovUser { - get { - return ((string)(this[this.tableMaterials.ApprovUserColumn])); - } - set { - this[this.tableMaterials.ApprovUserColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal L_mm { - get { - return ((decimal)(this[this.tableMaterials.L_mmColumn])); - } - set { - this[this.tableMaterials.L_mmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal W_mm { - get { - return ((decimal)(this[this.tableMaterials.W_mmColumn])); - } - set { - this[this.tableMaterials.W_mmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal T_mm { - get { - return ((decimal)(this[this.tableMaterials.T_mmColumn])); - } - set { - this[this.tableMaterials.T_mmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ItemListRow[] GetItemListRows() { - if ((this.Table.ChildRelations["FK_ItemList_Materials1"] == null)) { - return new ItemListRow[0]; - } - else { - return ((ItemListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ItemList_Materials1"]))); - } - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class ItemListRow : global::System.Data.DataRow { - - private ItemListDataTable tableItemList; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal ItemListRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableItemList = ((ItemListDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ItemID { - get { - return ((int)(this[this.tableItemList.ItemIDColumn])); - } - set { - this[this.tableItemList.ItemIDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ItemStatus { - get { - return ((int)(this[this.tableItemList.ItemStatusColumn])); - } - set { - this[this.tableItemList.ItemStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrdCod { - get { - try { - return ((string)(this[this.tableItemList.OrdCodColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdCod\' nella tabella \'ItemList\' è DBNull.", e); - } - } - set { - this[this.tableItemList.OrdCodColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string Item_Dtmx { - get { - try { - return ((string)(this[this.tableItemList.Item_DtmxColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Item_Dtmx\' nella tabella \'ItemList\' è DBNull.", e); - } - } - set { - this[this.tableItemList.Item_DtmxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ItemExtCode { - get { - return ((string)(this[this.tableItemList.ItemExtCodeColumn])); - } - set { - this[this.tableItemList.ItemExtCodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ItemDesc { - get { - return ((string)(this[this.tableItemList.ItemDescColumn])); - } - set { - this[this.tableItemList.ItemDescColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ItemNote { - get { - return ((string)(this[this.tableItemList.ItemNoteColumn])); - } - set { - this[this.tableItemList.ItemNoteColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ItemQty { - get { - return ((int)(this[this.tableItemList.ItemQtyColumn])); - } - set { - this[this.tableItemList.ItemQtyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int MatID { - get { - return ((int)(this[this.tableItemList.MatIDColumn])); - } - set { - this[this.tableItemList.MatIDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool MachiningReq { - get { - return ((bool)(this[this.tableItemList.MachiningReqColumn])); - } - set { - this[this.tableItemList.MachiningReqColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string PostProcList { - get { - return ((string)(this[this.tableItemList.PostProcListColumn])); - } - set { - this[this.tableItemList.PostProcListColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ProcessesReq { - get { - return ((string)(this[this.tableItemList.ProcessesReqColumn])); - } - set { - this[this.tableItemList.ProcessesReqColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string CadFilePath { - get { - return ((string)(this[this.tableItemList.CadFilePathColumn])); - } - set { - this[this.tableItemList.CadFilePathColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MaterialsRow MaterialsRow { - get { - return ((MaterialsRow)(this.GetParentRow(this.Table.ParentRelations["FK_ItemList_Materials1"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_ItemList_Materials1"]); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public OrderListRow OrderListRow { - get { - return ((OrderListRow)(this.GetParentRow(this.Table.ParentRelations["FK_ItemList_OrderList1"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_ItemList_OrderList1"]); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsOrdCodNull() { - return this.IsNull(this.tableItemList.OrdCodColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetOrdCodNull() { - this[this.tableItemList.OrdCodColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsItem_DtmxNull() { - return this.IsNull(this.tableItemList.Item_DtmxColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetItem_DtmxNull() { - this[this.tableItemList.Item_DtmxColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class OrderListRow : global::System.Data.DataRow { - - private OrderListDataTable tableOrderList; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal OrderListRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableOrderList = ((OrderListDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrdCod { - get { - return ((string)(this[this.tableOrderList.OrdCodColumn])); - } - set { - this[this.tableOrderList.OrdCodColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrdType { - get { - return ((string)(this[this.tableOrderList.OrdTypeColumn])); - } - set { - this[this.tableOrderList.OrdTypeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string DestPlant { - get { - return ((string)(this[this.tableOrderList.DestPlantColumn])); - } - set { - this[this.tableOrderList.DestPlantColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string FamilyCode { - get { - return ((string)(this[this.tableOrderList.FamilyCodeColumn])); - } - set { - this[this.tableOrderList.FamilyCodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrdCod_Dtmx { - get { - try { - return ((string)(this[this.tableOrderList.OrdCod_DtmxColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdCod_Dtmx\' nella tabella \'OrderList\' è DBNull.", e); - } - } - set { - this[this.tableOrderList.OrdCod_DtmxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrderExtCode { - get { - return ((string)(this[this.tableOrderList.OrderExtCodeColumn])); - } - set { - this[this.tableOrderList.OrderExtCodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrderDesc { - get { - return ((string)(this[this.tableOrderList.OrderDescColumn])); - } - set { - this[this.tableOrderList.OrderDescColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrderNote { - get { - return ((string)(this[this.tableOrderList.OrderNoteColumn])); - } - set { - this[this.tableOrderList.OrderNoteColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int OrderQty { - get { - return ((int)(this[this.tableOrderList.OrderQtyColumn])); - } - set { - this[this.tableOrderList.OrderQtyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime ImportDate { - get { - return ((global::System.DateTime)(this[this.tableOrderList.ImportDateColumn])); - } - set { - this[this.tableOrderList.ImportDateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ImportUser { - get { - return ((string)(this[this.tableOrderList.ImportUserColumn])); - } - set { - this[this.tableOrderList.ImportUserColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrdCodOrig { - get { - try { - return ((string)(this[this.tableOrderList.OrdCodOrigColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdCodOrig\' nella tabella \'OrderList\' è DBNull.", e); - } - } - set { - this[this.tableOrderList.OrdCodOrigColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsOrdCod_DtmxNull() { - return this.IsNull(this.tableOrderList.OrdCod_DtmxColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetOrdCod_DtmxNull() { - this[this.tableOrderList.OrdCod_DtmxColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsOrdCodOrigNull() { - return this.IsNull(this.tableOrderList.OrdCodOrigColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetOrdCodOrigNull() { - this[this.tableOrderList.OrdCodOrigColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ItemListRow[] GetItemListRows() { - if ((this.Table.ChildRelations["FK_ItemList_OrderList1"] == null)) { - return new ItemListRow[0]; - } - else { - return ((ItemListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ItemList_OrderList1"]))); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public BatchReqListRow[] GetBatchReqListRows() { - if ((this.Table.ChildRelations["FK_BatchReqList_OrderList"] == null)) { - return new BatchReqListRow[0]; - } - else { - return ((BatchReqListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_BatchReqList_OrderList"]))); - } - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class BatchReqListRow : global::System.Data.DataRow { - - private BatchReqListDataTable tableBatchReqList; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal BatchReqListRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableBatchReqList = ((BatchReqListDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int BatchID { - get { - return ((int)(this[this.tableBatchReqList.BatchIDColumn])); - } - set { - this[this.tableBatchReqList.BatchIDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string OrdCod { - get { - return ((string)(this[this.tableBatchReqList.OrdCodColumn])); - } - set { - this[this.tableBatchReqList.OrdCodColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public OrderListRow OrderListRow { - get { - return ((OrderListRow)(this.GetParentRow(this.Table.ParentRelations["FK_BatchReqList_OrderList"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_BatchReqList_OrderList"]); - } - } - } - /// ///Represents strongly named DataRow class. /// @@ -4717,23 +4149,23 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string MaterExtCode { + public int MatExtCode { get { - return ((string)(this[this.tableSheetList.MaterExtCodeColumn])); + return ((int)(this[this.tableSheetList.MatExtCodeColumn])); } set { - this[this.tableSheetList.MaterExtCodeColumn] = value; + this[this.tableSheetList.MatExtCodeColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string MaterDesc { + public string MatDesc { get { - return ((string)(this[this.tableSheetList.MaterDescColumn])); + return ((string)(this[this.tableSheetList.MatDescColumn])); } set { - this[this.tableSheetList.MaterDescColumn] = value; + this[this.tableSheetList.MatDescColumn] = value; } } @@ -4855,6 +4287,613 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class OrderListRow : global::System.Data.DataRow { + + private OrderListDataTable tableOrderList; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OrderListRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableOrderList = ((OrderListDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OrdID { + get { + return ((int)(this[this.tableOrderList.OrdIDColumn])); + } + set { + this[this.tableOrderList.OrdIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OrdType { + get { + return ((string)(this[this.tableOrderList.OrdTypeColumn])); + } + set { + this[this.tableOrderList.OrdTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string DestPlant { + get { + return ((string)(this[this.tableOrderList.DestPlantColumn])); + } + set { + this[this.tableOrderList.DestPlantColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string FamilyCode { + get { + return ((string)(this[this.tableOrderList.FamilyCodeColumn])); + } + set { + this[this.tableOrderList.FamilyCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OrdDtmx { + get { + try { + return ((string)(this[this.tableOrderList.OrdDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdDtmx\' nella tabella \'OrderList\' è DBNull.", e); + } + } + set { + this[this.tableOrderList.OrdDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OrderExtCode { + get { + return ((string)(this[this.tableOrderList.OrderExtCodeColumn])); + } + set { + this[this.tableOrderList.OrderExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OrderDesc { + get { + return ((string)(this[this.tableOrderList.OrderDescColumn])); + } + set { + this[this.tableOrderList.OrderDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OrderNote { + get { + return ((string)(this[this.tableOrderList.OrderNoteColumn])); + } + set { + this[this.tableOrderList.OrderNoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OrderQty { + get { + return ((int)(this[this.tableOrderList.OrderQtyColumn])); + } + set { + this[this.tableOrderList.OrderQtyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime ImportDate { + get { + return ((global::System.DateTime)(this[this.tableOrderList.ImportDateColumn])); + } + set { + this[this.tableOrderList.ImportDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ImportUser { + get { + return ((string)(this[this.tableOrderList.ImportUserColumn])); + } + set { + this[this.tableOrderList.ImportUserColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OrdCodOrig { + get { + try { + return ((string)(this[this.tableOrderList.OrdCodOrigColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdCodOrig\' nella tabella \'OrderList\' è DBNull.", e); + } + } + set { + this[this.tableOrderList.OrdCodOrigColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOrdDtmxNull() { + return this.IsNull(this.tableOrderList.OrdDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOrdDtmxNull() { + this[this.tableOrderList.OrdDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOrdCodOrigNull() { + return this.IsNull(this.tableOrderList.OrdCodOrigColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOrdCodOrigNull() { + this[this.tableOrderList.OrdCodOrigColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public BatchReqListRow[] GetBatchReqListRows() { + if ((this.Table.ChildRelations["FK_BatchReqList_OrderList"] == null)) { + return new BatchReqListRow[0]; + } + else { + return ((BatchReqListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_BatchReqList_OrderList"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ItemListRow[] GetItemListRows() { + if ((this.Table.ChildRelations["FK_ItemList_OrderList1"] == null)) { + return new ItemListRow[0]; + } + else { + return ((ItemListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ItemList_OrderList1"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class BatchReqListRow : global::System.Data.DataRow { + + private BatchReqListDataTable tableBatchReqList; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal BatchReqListRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableBatchReqList = ((BatchReqListDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int BatchID { + get { + return ((int)(this[this.tableBatchReqList.BatchIDColumn])); + } + set { + this[this.tableBatchReqList.BatchIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OrdID { + get { + return ((int)(this[this.tableBatchReqList.OrdIDColumn])); + } + set { + this[this.tableBatchReqList.OrdIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OrderListRow OrderListRow { + get { + return ((OrderListRow)(this.GetParentRow(this.Table.ParentRelations["FK_BatchReqList_OrderList"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_BatchReqList_OrderList"]); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ItemListRow : global::System.Data.DataRow { + + private ItemListDataTable tableItemList; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ItemListRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableItemList = ((ItemListDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ItemID { + get { + return ((int)(this[this.tableItemList.ItemIDColumn])); + } + set { + this[this.tableItemList.ItemIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ItemStatus { + get { + return ((int)(this[this.tableItemList.ItemStatusColumn])); + } + set { + this[this.tableItemList.ItemStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OrdID { + get { + try { + return ((int)(this[this.tableItemList.OrdIDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdID\' nella tabella \'ItemList\' è DBNull.", e); + } + } + set { + this[this.tableItemList.OrdIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ItemDtmx { + get { + try { + return ((string)(this[this.tableItemList.ItemDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ItemDtmx\' nella tabella \'ItemList\' è DBNull.", e); + } + } + set { + this[this.tableItemList.ItemDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ItemExtCode { + get { + return ((string)(this[this.tableItemList.ItemExtCodeColumn])); + } + set { + this[this.tableItemList.ItemExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ItemDesc { + get { + return ((string)(this[this.tableItemList.ItemDescColumn])); + } + set { + this[this.tableItemList.ItemDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ItemNote { + get { + return ((string)(this[this.tableItemList.ItemNoteColumn])); + } + set { + this[this.tableItemList.ItemNoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ItemQty { + get { + return ((int)(this[this.tableItemList.ItemQtyColumn])); + } + set { + this[this.tableItemList.ItemQtyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int MatID { + get { + return ((int)(this[this.tableItemList.MatIDColumn])); + } + set { + this[this.tableItemList.MatIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool MachiningReq { + get { + return ((bool)(this[this.tableItemList.MachiningReqColumn])); + } + set { + this[this.tableItemList.MachiningReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string PostProcList { + get { + return ((string)(this[this.tableItemList.PostProcListColumn])); + } + set { + this[this.tableItemList.PostProcListColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ProcessesReq { + get { + return ((string)(this[this.tableItemList.ProcessesReqColumn])); + } + set { + this[this.tableItemList.ProcessesReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CadFilePath { + get { + return ((string)(this[this.tableItemList.CadFilePathColumn])); + } + set { + this[this.tableItemList.CadFilePathColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OrderListRow OrderListRow { + get { + return ((OrderListRow)(this.GetParentRow(this.Table.ParentRelations["FK_ItemList_OrderList1"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_ItemList_OrderList1"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public MaterialsRow MaterialsRow { + get { + return ((MaterialsRow)(this.GetParentRow(this.Table.ParentRelations["FK_ItemList_Materials1"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_ItemList_Materials1"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOrdIDNull() { + return this.IsNull(this.tableItemList.OrdIDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOrdIDNull() { + this[this.tableItemList.OrdIDColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsItemDtmxNull() { + return this.IsNull(this.tableItemList.ItemDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetItemDtmxNull() { + this[this.tableItemList.ItemDtmxColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class MaterialsRow : global::System.Data.DataRow { + + private MaterialsDataTable tableMaterials; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal MaterialsRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMaterials = ((MaterialsDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int MatID { + get { + return ((int)(this[this.tableMaterials.MatIDColumn])); + } + set { + this[this.tableMaterials.MatIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int MatExtCode { + get { + return ((int)(this[this.tableMaterials.MatExtCodeColumn])); + } + set { + this[this.tableMaterials.MatExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string MatDesc { + get { + return ((string)(this[this.tableMaterials.MatDescColumn])); + } + set { + this[this.tableMaterials.MatDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime ApprovDate { + get { + return ((global::System.DateTime)(this[this.tableMaterials.ApprovDateColumn])); + } + set { + this[this.tableMaterials.ApprovDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ApprovUser { + get { + return ((string)(this[this.tableMaterials.ApprovUserColumn])); + } + set { + this[this.tableMaterials.ApprovUserColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal L_mm { + get { + return ((decimal)(this[this.tableMaterials.L_mmColumn])); + } + set { + this[this.tableMaterials.L_mmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal W_mm { + get { + return ((decimal)(this[this.tableMaterials.W_mmColumn])); + } + set { + this[this.tableMaterials.W_mmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal T_mm { + get { + return ((decimal)(this[this.tableMaterials.T_mmColumn])); + } + set { + this[this.tableMaterials.T_mmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string MatDtmx { + get { + try { + return ((string)(this[this.tableMaterials.MatDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'MatDtmx\' nella tabella \'Materials\' è DBNull.", e); + } + } + set { + this[this.tableMaterials.MatDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsMatDtmxNull() { + return this.IsNull(this.tableMaterials.MatDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetMatDtmxNull() { + this[this.tableMaterials.MatDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ItemListRow[] GetItemListRows() { + if ((this.Table.ChildRelations["FK_ItemList_Materials1"] == null)) { + return new ItemListRow[0]; + } + else { + return ((ItemListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ItemList_Materials1"]))); + } + } + } + /// ///Row event argument class /// @@ -4893,22 +4932,22 @@ namespace AppData { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public class MaterialsRowChangeEvent : global::System.EventArgs { + public class StackListRowChangeEvent : global::System.EventArgs { - private MaterialsRow eventRow; + private StackListRow 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 MaterialsRowChangeEvent(MaterialsRow row, global::System.Data.DataRowAction action) { + public StackListRowChangeEvent(StackListRow 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 MaterialsRow Row { + public StackListRow Row { get { return this.eventRow; } @@ -4927,22 +4966,22 @@ namespace AppData { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public class ItemListRowChangeEvent : global::System.EventArgs { + public class SheetListRowChangeEvent : global::System.EventArgs { - private ItemListRow eventRow; + private SheetListRow 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 ItemListRowChangeEvent(ItemListRow row, global::System.Data.DataRowAction action) { + public SheetListRowChangeEvent(SheetListRow 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 ItemListRow Row { + public SheetListRow Row { get { return this.eventRow; } @@ -5029,22 +5068,22 @@ namespace AppData { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public class StackListRowChangeEvent : global::System.EventArgs { + public class ItemListRowChangeEvent : global::System.EventArgs { - private StackListRow eventRow; + private ItemListRow 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 StackListRowChangeEvent(StackListRow row, global::System.Data.DataRowAction action) { + public ItemListRowChangeEvent(ItemListRow 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 StackListRow Row { + public ItemListRow Row { get { return this.eventRow; } @@ -5063,22 +5102,22 @@ namespace AppData { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public class SheetListRowChangeEvent : global::System.EventArgs { + public class MaterialsRowChangeEvent : global::System.EventArgs { - private SheetListRow eventRow; + private MaterialsRow 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 SheetListRowChangeEvent(SheetListRow row, global::System.Data.DataRowAction action) { + public MaterialsRowChangeEvent(MaterialsRow 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 SheetListRow Row { + public MaterialsRow Row { get { return this.eventRow; } @@ -5428,2053 +5467,6 @@ namespace AppData.DS_AppTableAdapters { } } - /// - ///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 MaterialsTableAdapter : 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 MaterialsTableAdapter() { - 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 = "Materials"; - tableMapping.ColumnMappings.Add("MatID", "MatID"); - tableMapping.ColumnMappings.Add("MaterExtCode", "MaterExtCode"); - tableMapping.ColumnMappings.Add("MaterDesc", "MaterDesc"); - tableMapping.ColumnMappings.Add("ApprovDate", "ApprovDate"); - tableMapping.ColumnMappings.Add("ApprovUser", "ApprovUser"); - tableMapping.ColumnMappings.Add("L_mm", "L_mm"); - tableMapping.ColumnMappings.Add("W_mm", "W_mm"); - tableMapping.ColumnMappings.Add("T_mm", "T_mm"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Materials] WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Materials] ([MaterExtCode], [MaterDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MaterExtCode, @MaterDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); -SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Materials] SET [MaterExtCode] = @MaterExtCode, [MaterDesc] = @MaterDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm)); -SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = @MatID)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [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 = "SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm F" + - "ROM dbo.Materials"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - } - - [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_App.MaterialsDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - 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_App.MaterialsDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_App.MaterialsDataTable dataTable = new DS_App.MaterialsDataTable(); - 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")] - public virtual int Update(DS_App.MaterialsDataTable dataTable) { - return this.Adapter.Update(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")] - public virtual int Update(DS_App dataSet) { - return this.Adapter.Update(dataSet, "Materials"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [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.Delete, true)] - public virtual int Delete(int Original_MatID, string Original_MaterExtCode, string Original_MaterDesc, System.DateTime Original_ApprovDate, string Original_ApprovUser, decimal Original_L_mm, decimal Original_W_mm, decimal Original_T_mm) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MatID)); - if ((Original_MaterExtCode == null)) { - throw new global::System.ArgumentNullException("Original_MaterExtCode"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_MaterExtCode)); - } - if ((Original_MaterDesc == null)) { - throw new global::System.ArgumentNullException("Original_MaterDesc"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_MaterDesc)); - } - this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_ApprovDate)); - if ((Original_ApprovUser == null)) { - throw new global::System.ArgumentNullException("Original_ApprovUser"); - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ApprovUser)); - } - this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_L_mm)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_W_mm)); - this.Adapter.DeleteCommand.Parameters[7].Value = ((decimal)(Original_T_mm)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [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.Insert, true)] - public virtual int Insert(string MaterExtCode, string MaterDesc, System.DateTime ApprovDate, string ApprovUser, decimal L_mm, decimal W_mm, decimal T_mm) { - if ((MaterExtCode == null)) { - throw new global::System.ArgumentNullException("MaterExtCode"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(MaterExtCode)); - } - if ((MaterDesc == null)) { - throw new global::System.ArgumentNullException("MaterDesc"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(MaterDesc)); - } - this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(ApprovDate)); - if ((ApprovUser == null)) { - throw new global::System.ArgumentNullException("ApprovUser"); - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ApprovUser)); - } - this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(L_mm)); - this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(W_mm)); - this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(T_mm)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update( - string MaterExtCode, - string MaterDesc, - System.DateTime ApprovDate, - string ApprovUser, - decimal L_mm, - decimal W_mm, - decimal T_mm, - int Original_MatID, - string Original_MaterExtCode, - string Original_MaterDesc, - System.DateTime Original_ApprovDate, - string Original_ApprovUser, - decimal Original_L_mm, - decimal Original_W_mm, - decimal Original_T_mm, - int MatID) { - if ((MaterExtCode == null)) { - throw new global::System.ArgumentNullException("MaterExtCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(MaterExtCode)); - } - if ((MaterDesc == null)) { - throw new global::System.ArgumentNullException("MaterDesc"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(MaterDesc)); - } - this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(ApprovDate)); - if ((ApprovUser == null)) { - throw new global::System.ArgumentNullException("ApprovUser"); - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ApprovUser)); - } - this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(L_mm)); - this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(W_mm)); - this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(T_mm)); - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_MatID)); - if ((Original_MaterExtCode == null)) { - throw new global::System.ArgumentNullException("Original_MaterExtCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_MaterExtCode)); - } - if ((Original_MaterDesc == null)) { - throw new global::System.ArgumentNullException("Original_MaterDesc"); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_MaterDesc)); - } - this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_ApprovDate)); - if ((Original_ApprovUser == null)) { - throw new global::System.ArgumentNullException("Original_ApprovUser"); - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_ApprovUser)); - } - this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_L_mm)); - this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_W_mm)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Original_T_mm)); - this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(MatID)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update(string MaterExtCode, string MaterDesc, System.DateTime ApprovDate, string ApprovUser, decimal L_mm, decimal W_mm, decimal T_mm, int Original_MatID, string Original_MaterExtCode, string Original_MaterDesc, System.DateTime Original_ApprovDate, string Original_ApprovUser, decimal Original_L_mm, decimal Original_W_mm, decimal Original_T_mm) { - return this.Update(MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Original_MatID, Original_MaterExtCode, Original_MaterDesc, Original_ApprovDate, Original_ApprovUser, Original_L_mm, Original_W_mm, Original_T_mm, Original_MatID); - } - } - - /// - ///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 ItemListTableAdapter : 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 ItemListTableAdapter() { - 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 = "ItemList"; - tableMapping.ColumnMappings.Add("ItemID", "ItemID"); - tableMapping.ColumnMappings.Add("ItemStatus", "ItemStatus"); - tableMapping.ColumnMappings.Add("OrdCod", "OrdCod"); - tableMapping.ColumnMappings.Add("Item_Dtmx", "Item_Dtmx"); - tableMapping.ColumnMappings.Add("ItemExtCode", "ItemExtCode"); - tableMapping.ColumnMappings.Add("ItemDesc", "ItemDesc"); - tableMapping.ColumnMappings.Add("ItemNote", "ItemNote"); - tableMapping.ColumnMappings.Add("ItemQty", "ItemQty"); - tableMapping.ColumnMappings.Add("MatID", "MatID"); - tableMapping.ColumnMappings.Add("MachiningReq", "MachiningReq"); - tableMapping.ColumnMappings.Add("PostProcList", "PostProcList"); - tableMapping.ColumnMappings.Add("ProcessesReq", "ProcessesReq"); - tableMapping.ColumnMappings.Add("CadFilePath", "CadFilePath"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ItemList] WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Item_Dtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item_Dtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Item_Dtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item_Dtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdCod], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdCod, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); -SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdCod] = @OrdCod, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); -SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = @ItemID)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Item_Dtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item_Dtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Item_Dtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item_Dtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [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[3]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, It" + - "emQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM dbo.Ite" + - "mList"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "dbo.stp_IL_getByBatch"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[1].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[1].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[2] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_IL_getByOrder"; - this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", 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()] - [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_App.ItemListDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - 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_App.ItemListDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - 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 getByBatch(global::System.Nullable BatchID) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - 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; - } - - [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 getByOrder(string OrdCod) { - this.Adapter.SelectCommand = this.CommandCollection[2]; - if ((OrdCod == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(OrdCod)); - } - 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")] - public virtual int Update(DS_App.ItemListDataTable dataTable) { - return this.Adapter.Update(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")] - public virtual int Update(DS_App dataSet) { - return this.Adapter.Update(dataSet, "ItemList"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [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.Delete, true)] - public virtual int Delete(int Original_ItemID, int Original_ItemStatus, string Original_OrdCod, string Original_Item_Dtmx, string Original_ItemExtCode, string Original_ItemDesc, string Original_ItemNote, int Original_ItemQty, int Original_MatID, bool Original_MachiningReq, string Original_PostProcList, string Original_ProcessesReq, string Original_CadFilePath) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ItemID)); - this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ItemStatus)); - if ((Original_OrdCod == null)) { - this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_OrdCod)); - } - if ((Original_Item_Dtmx == null)) { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Item_Dtmx)); - } - if ((Original_ItemExtCode == null)) { - throw new global::System.ArgumentNullException("Original_ItemExtCode"); - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_ItemExtCode)); - } - if ((Original_ItemDesc == null)) { - throw new global::System.ArgumentNullException("Original_ItemDesc"); - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_ItemDesc)); - } - if ((Original_ItemNote == null)) { - throw new global::System.ArgumentNullException("Original_ItemNote"); - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_ItemNote)); - } - this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_ItemQty)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_MatID)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((bool)(Original_MachiningReq)); - if ((Original_PostProcList == null)) { - throw new global::System.ArgumentNullException("Original_PostProcList"); - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_PostProcList)); - } - if ((Original_ProcessesReq == null)) { - throw new global::System.ArgumentNullException("Original_ProcessesReq"); - } - else { - this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_ProcessesReq)); - } - if ((Original_CadFilePath == null)) { - throw new global::System.ArgumentNullException("Original_CadFilePath"); - } - else { - this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_CadFilePath)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [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.Insert, true)] - public virtual int Insert(int ItemStatus, string OrdCod, string ItemExtCode, string ItemDesc, string ItemNote, int ItemQty, int MatID, bool MachiningReq, string PostProcList, string ProcessesReq, string CadFilePath) { - this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ItemStatus)); - if ((OrdCod == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(OrdCod)); - } - if ((ItemExtCode == null)) { - throw new global::System.ArgumentNullException("ItemExtCode"); - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ItemExtCode)); - } - if ((ItemDesc == null)) { - throw new global::System.ArgumentNullException("ItemDesc"); - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ItemDesc)); - } - if ((ItemNote == null)) { - throw new global::System.ArgumentNullException("ItemNote"); - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ItemNote)); - } - this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ItemQty)); - this.Adapter.InsertCommand.Parameters[6].Value = ((int)(MatID)); - this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(MachiningReq)); - if ((PostProcList == null)) { - throw new global::System.ArgumentNullException("PostProcList"); - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PostProcList)); - } - if ((ProcessesReq == null)) { - throw new global::System.ArgumentNullException("ProcessesReq"); - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(ProcessesReq)); - } - if ((CadFilePath == null)) { - throw new global::System.ArgumentNullException("CadFilePath"); - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(CadFilePath)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update( - int ItemStatus, - string OrdCod, - string ItemExtCode, - string ItemDesc, - string ItemNote, - int ItemQty, - int MatID, - bool MachiningReq, - string PostProcList, - string ProcessesReq, - string CadFilePath, - int Original_ItemID, - int Original_ItemStatus, - string Original_OrdCod, - string Original_Item_Dtmx, - string Original_ItemExtCode, - string Original_ItemDesc, - string Original_ItemNote, - int Original_ItemQty, - int Original_MatID, - bool Original_MachiningReq, - string Original_PostProcList, - string Original_ProcessesReq, - string Original_CadFilePath, - int ItemID) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ItemStatus)); - if ((OrdCod == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(OrdCod)); - } - if ((ItemExtCode == null)) { - throw new global::System.ArgumentNullException("ItemExtCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ItemExtCode)); - } - if ((ItemDesc == null)) { - throw new global::System.ArgumentNullException("ItemDesc"); - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ItemDesc)); - } - if ((ItemNote == null)) { - throw new global::System.ArgumentNullException("ItemNote"); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ItemNote)); - } - this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ItemQty)); - this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(MatID)); - this.Adapter.UpdateCommand.Parameters[7].Value = ((bool)(MachiningReq)); - if ((PostProcList == null)) { - throw new global::System.ArgumentNullException("PostProcList"); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PostProcList)); - } - if ((ProcessesReq == null)) { - throw new global::System.ArgumentNullException("ProcessesReq"); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(ProcessesReq)); - } - if ((CadFilePath == null)) { - throw new global::System.ArgumentNullException("CadFilePath"); - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(CadFilePath)); - } - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_ItemID)); - this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_ItemStatus)); - if ((Original_OrdCod == null)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_OrdCod)); - } - if ((Original_Item_Dtmx == null)) { - this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Item_Dtmx)); - } - if ((Original_ItemExtCode == null)) { - throw new global::System.ArgumentNullException("Original_ItemExtCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_ItemExtCode)); - } - if ((Original_ItemDesc == null)) { - throw new global::System.ArgumentNullException("Original_ItemDesc"); - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_ItemDesc)); - } - if ((Original_ItemNote == null)) { - throw new global::System.ArgumentNullException("Original_ItemNote"); - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_ItemNote)); - } - this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_ItemQty)); - this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_MatID)); - this.Adapter.UpdateCommand.Parameters[22].Value = ((bool)(Original_MachiningReq)); - if ((Original_PostProcList == null)) { - throw new global::System.ArgumentNullException("Original_PostProcList"); - } - else { - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_PostProcList)); - } - if ((Original_ProcessesReq == null)) { - throw new global::System.ArgumentNullException("Original_ProcessesReq"); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_ProcessesReq)); - } - if ((Original_CadFilePath == null)) { - throw new global::System.ArgumentNullException("Original_CadFilePath"); - } - else { - this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_CadFilePath)); - } - this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(ItemID)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update( - int ItemStatus, - string OrdCod, - string ItemExtCode, - string ItemDesc, - string ItemNote, - int ItemQty, - int MatID, - bool MachiningReq, - string PostProcList, - string ProcessesReq, - string CadFilePath, - int Original_ItemID, - int Original_ItemStatus, - string Original_OrdCod, - string Original_Item_Dtmx, - string Original_ItemExtCode, - string Original_ItemDesc, - string Original_ItemNote, - int Original_ItemQty, - int Original_MatID, - bool Original_MachiningReq, - string Original_PostProcList, - string Original_ProcessesReq, - string Original_CadFilePath) { - return this.Update(ItemStatus, OrdCod, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath, Original_ItemID, Original_ItemStatus, Original_OrdCod, Original_Item_Dtmx, Original_ItemExtCode, Original_ItemDesc, Original_ItemNote, Original_ItemQty, Original_MatID, Original_MachiningReq, Original_PostProcList, Original_ProcessesReq, Original_CadFilePath, Original_ItemID); - } - } - - /// - ///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 OrderListTableAdapter : 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 OrderListTableAdapter() { - 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 = "OrderList"; - tableMapping.ColumnMappings.Add("OrdCod", "OrdCod"); - tableMapping.ColumnMappings.Add("OrdType", "OrdType"); - tableMapping.ColumnMappings.Add("DestPlant", "DestPlant"); - tableMapping.ColumnMappings.Add("FamilyCode", "FamilyCode"); - tableMapping.ColumnMappings.Add("OrdCod_Dtmx", "OrdCod_Dtmx"); - tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode"); - tableMapping.ColumnMappings.Add("OrderDesc", "OrderDesc"); - tableMapping.ColumnMappings.Add("OrderNote", "OrderNote"); - tableMapping.ColumnMappings.Add("OrderQty", "OrderQty"); - tableMapping.ColumnMappings.Add("ImportDate", "ImportDate"); - tableMapping.ColumnMappings.Add("ImportUser", "ImportUser"); - tableMapping.ColumnMappings.Add("OrdCodOrig", "OrdCodOrig"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[OrderList] WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod_Dtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod_Dtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodOrig", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderList] ([OrdCod], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdCod, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); -SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderList] SET [OrdCod] = @OrdCod, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); -SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod_Dtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod_Dtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodOrig", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - } - - [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[2]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDe" + - "sc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM dbo.OrderList"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "dbo.stp_OL_getByBatch"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[1].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[1].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, "", "", "")); - } - - [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_App.OrderListDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - 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_App.OrderListDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_App.OrderListDataTable dataTable = new DS_App.OrderListDataTable(); - 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.OrderListDataTable getByBatch(global::System.Nullable BatchID) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - 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.OrderListDataTable dataTable = new DS_App.OrderListDataTable(); - 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")] - public virtual int Update(DS_App.OrderListDataTable dataTable) { - return this.Adapter.Update(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")] - public virtual int Update(DS_App dataSet) { - return this.Adapter.Update(dataSet, "OrderList"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [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.Delete, true)] - public virtual int Delete(string Original_OrdCod, string Original_OrdType, string Original_DestPlant, string Original_FamilyCode, string Original_OrdCod_Dtmx, string Original_OrderExtCode, string Original_OrderDesc, string Original_OrderNote, int Original_OrderQty, System.DateTime Original_ImportDate, string Original_ImportUser, string Original_OrdCodOrig) { - if ((Original_OrdCod == null)) { - throw new global::System.ArgumentNullException("Original_OrdCod"); - } - else { - this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_OrdCod)); - } - if ((Original_OrdType == null)) { - throw new global::System.ArgumentNullException("Original_OrdType"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_OrdType)); - } - if ((Original_DestPlant == null)) { - throw new global::System.ArgumentNullException("Original_DestPlant"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DestPlant)); - } - if ((Original_FamilyCode == null)) { - throw new global::System.ArgumentNullException("Original_FamilyCode"); - } - else { - this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_FamilyCode)); - } - if ((Original_OrdCod_Dtmx == null)) { - throw new global::System.ArgumentNullException("Original_OrdCod_Dtmx"); - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_OrdCod_Dtmx)); - } - if ((Original_OrderExtCode == null)) { - throw new global::System.ArgumentNullException("Original_OrderExtCode"); - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_OrderExtCode)); - } - if ((Original_OrderDesc == null)) { - throw new global::System.ArgumentNullException("Original_OrderDesc"); - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_OrderDesc)); - } - if ((Original_OrderNote == null)) { - throw new global::System.ArgumentNullException("Original_OrderNote"); - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_OrderNote)); - } - this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_OrderQty)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((System.DateTime)(Original_ImportDate)); - if ((Original_ImportUser == null)) { - throw new global::System.ArgumentNullException("Original_ImportUser"); - } - else { - this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_ImportUser)); - } - if ((Original_OrdCodOrig == null)) { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_OrdCodOrig)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [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.Insert, true)] - public virtual int Insert(string OrdCod, string OrdType, string DestPlant, string FamilyCode, string OrderExtCode, string OrderDesc, string OrderNote, int OrderQty, System.DateTime ImportDate, string ImportUser, string OrdCodOrig) { - if ((OrdCod == null)) { - throw new global::System.ArgumentNullException("OrdCod"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(OrdCod)); - } - if ((OrdType == null)) { - throw new global::System.ArgumentNullException("OrdType"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(OrdType)); - } - if ((DestPlant == null)) { - throw new global::System.ArgumentNullException("DestPlant"); - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DestPlant)); - } - if ((FamilyCode == null)) { - throw new global::System.ArgumentNullException("FamilyCode"); - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(FamilyCode)); - } - if ((OrderExtCode == null)) { - throw new global::System.ArgumentNullException("OrderExtCode"); - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(OrderExtCode)); - } - if ((OrderDesc == null)) { - throw new global::System.ArgumentNullException("OrderDesc"); - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(OrderDesc)); - } - if ((OrderNote == null)) { - throw new global::System.ArgumentNullException("OrderNote"); - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(OrderNote)); - } - this.Adapter.InsertCommand.Parameters[7].Value = ((int)(OrderQty)); - this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ImportDate)); - if ((ImportUser == null)) { - throw new global::System.ArgumentNullException("ImportUser"); - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(ImportUser)); - } - if ((OrdCodOrig == null)) { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(OrdCodOrig)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update( - string OrdCod, - string OrdType, - string DestPlant, - string FamilyCode, - string OrderExtCode, - string OrderDesc, - string OrderNote, - int OrderQty, - System.DateTime ImportDate, - string ImportUser, - string OrdCodOrig, - string Original_OrdCod, - string Original_OrdType, - string Original_DestPlant, - string Original_FamilyCode, - string Original_OrdCod_Dtmx, - string Original_OrderExtCode, - string Original_OrderDesc, - string Original_OrderNote, - int Original_OrderQty, - System.DateTime Original_ImportDate, - string Original_ImportUser, - string Original_OrdCodOrig) { - if ((OrdCod == null)) { - throw new global::System.ArgumentNullException("OrdCod"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(OrdCod)); - } - if ((OrdType == null)) { - throw new global::System.ArgumentNullException("OrdType"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(OrdType)); - } - if ((DestPlant == null)) { - throw new global::System.ArgumentNullException("DestPlant"); - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DestPlant)); - } - if ((FamilyCode == null)) { - throw new global::System.ArgumentNullException("FamilyCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(FamilyCode)); - } - if ((OrderExtCode == null)) { - throw new global::System.ArgumentNullException("OrderExtCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(OrderExtCode)); - } - if ((OrderDesc == null)) { - throw new global::System.ArgumentNullException("OrderDesc"); - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(OrderDesc)); - } - if ((OrderNote == null)) { - throw new global::System.ArgumentNullException("OrderNote"); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(OrderNote)); - } - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(OrderQty)); - this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ImportDate)); - if ((ImportUser == null)) { - throw new global::System.ArgumentNullException("ImportUser"); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(ImportUser)); - } - if ((OrdCodOrig == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(OrdCodOrig)); - } - if ((Original_OrdCod == null)) { - throw new global::System.ArgumentNullException("Original_OrdCod"); - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_OrdCod)); - } - if ((Original_OrdType == null)) { - throw new global::System.ArgumentNullException("Original_OrdType"); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_OrdType)); - } - if ((Original_DestPlant == null)) { - throw new global::System.ArgumentNullException("Original_DestPlant"); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_DestPlant)); - } - if ((Original_FamilyCode == null)) { - throw new global::System.ArgumentNullException("Original_FamilyCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_FamilyCode)); - } - if ((Original_OrdCod_Dtmx == null)) { - throw new global::System.ArgumentNullException("Original_OrdCod_Dtmx"); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_OrdCod_Dtmx)); - } - if ((Original_OrderExtCode == null)) { - throw new global::System.ArgumentNullException("Original_OrderExtCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_OrderExtCode)); - } - if ((Original_OrderDesc == null)) { - throw new global::System.ArgumentNullException("Original_OrderDesc"); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_OrderDesc)); - } - if ((Original_OrderNote == null)) { - throw new global::System.ArgumentNullException("Original_OrderNote"); - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_OrderNote)); - } - this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_OrderQty)); - this.Adapter.UpdateCommand.Parameters[20].Value = ((System.DateTime)(Original_ImportDate)); - if ((Original_ImportUser == null)) { - throw new global::System.ArgumentNullException("Original_ImportUser"); - } - else { - this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_ImportUser)); - } - if ((Original_OrdCodOrig == null)) { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_OrdCodOrig)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update( - string OrdType, - string DestPlant, - string FamilyCode, - string OrderExtCode, - string OrderDesc, - string OrderNote, - int OrderQty, - System.DateTime ImportDate, - string ImportUser, - string OrdCodOrig, - string Original_OrdCod, - string Original_OrdType, - string Original_DestPlant, - string Original_FamilyCode, - string Original_OrdCod_Dtmx, - string Original_OrderExtCode, - string Original_OrderDesc, - string Original_OrderNote, - int Original_OrderQty, - System.DateTime Original_ImportDate, - string Original_ImportUser, - string Original_OrdCodOrig) { - return this.Update(Original_OrdCod, OrdType, DestPlant, FamilyCode, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig, Original_OrdCod, Original_OrdType, Original_DestPlant, Original_FamilyCode, Original_OrdCod_Dtmx, Original_OrderExtCode, Original_OrderDesc, Original_OrderNote, Original_OrderQty, Original_ImportDate, Original_ImportUser, Original_OrdCodOrig); - } - } - - /// - ///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 BatchReqListTableAdapter : 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 BatchReqListTableAdapter() { - 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 = "BatchReqList"; - tableMapping.ColumnMappings.Add("BatchID", "BatchID"); - tableMapping.ColumnMappings.Add("OrdCod", "OrdCod"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[BatchReqList] WHERE (([BatchID] = @Original_BatchID) AND ([Ord" + - "Cod] = @Original_OrdCod))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[BatchReqList] ([BatchID], [OrdCod]) VALUES (@BatchID, @OrdCod)" + - ";\r\nSELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdC" + - "od = @OrdCod)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[BatchReqList] SET [BatchID] = @BatchID, [OrdCod] = @OrdCod WHERE ((" + - "[BatchID] = @Original_BatchID) AND ([OrdCod] = @Original_OrdCod));\r\nSELECT Batch" + - "ID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod = @OrdCod)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - } - - [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 = "SELECT BatchID, OrdCod FROM dbo.BatchReqList"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - } - - [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_App.BatchReqListDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - 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_App.BatchReqListDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_App.BatchReqListDataTable dataTable = new DS_App.BatchReqListDataTable(); - 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")] - public virtual int Update(DS_App.BatchReqListDataTable dataTable) { - return this.Adapter.Update(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")] - public virtual int Update(DS_App dataSet) { - return this.Adapter.Update(dataSet, "BatchReqList"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [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.Delete, true)] - public virtual int Delete(int Original_BatchID, string Original_OrdCod) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_BatchID)); - if ((Original_OrdCod == null)) { - throw new global::System.ArgumentNullException("Original_OrdCod"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_OrdCod)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [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.Insert, true)] - public virtual int Insert(int BatchID, string OrdCod) { - this.Adapter.InsertCommand.Parameters[0].Value = ((int)(BatchID)); - if ((OrdCod == null)) { - throw new global::System.ArgumentNullException("OrdCod"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(OrdCod)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update(int BatchID, string OrdCod, int Original_BatchID, string Original_OrdCod) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(BatchID)); - if ((OrdCod == null)) { - throw new global::System.ArgumentNullException("OrdCod"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(OrdCod)); - } - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_BatchID)); - if ((Original_OrdCod == null)) { - throw new global::System.ArgumentNullException("Original_OrdCod"); - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_OrdCod)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [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.Update, true)] - public virtual int Update(int Original_BatchID, string Original_OrdCod) { - return this.Update(Original_BatchID, Original_OrdCod, Original_BatchID, Original_OrdCod); - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -7832,8 +5824,8 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD tableMapping.ColumnMappings.Add("PrintFilePath", "PrintFilePath"); tableMapping.ColumnMappings.Add("CncFilePath", "CncFilePath"); tableMapping.ColumnMappings.Add("DrawFilePath", "DrawFilePath"); - tableMapping.ColumnMappings.Add("MaterExtCode", "MaterExtCode"); - tableMapping.ColumnMappings.Add("MaterDesc", "MaterDesc"); + tableMapping.ColumnMappings.Add("MatExtCode", "MatExtCode"); + tableMapping.ColumnMappings.Add("MatDesc", "MatDesc"); tableMapping.ColumnMappings.Add("L_mm", "L_mm"); tableMapping.ColumnMappings.Add("W_mm", "W_mm"); tableMapping.ColumnMappings.Add("T_mm", "T_mm"); @@ -7853,7 +5845,7 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_SheetList"; + this._commandCollection[0].CommandText = "SELECT *\r\n FROM v_SheetList"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -7996,6 +5988,2062 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD } } + /// + ///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 OrderListTableAdapter : 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 OrderListTableAdapter() { + 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 = "OrderList"; + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + tableMapping.ColumnMappings.Add("OrdType", "OrdType"); + tableMapping.ColumnMappings.Add("DestPlant", "DestPlant"); + tableMapping.ColumnMappings.Add("FamilyCode", "FamilyCode"); + tableMapping.ColumnMappings.Add("OrdDtmx", "OrdDtmx"); + tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode"); + tableMapping.ColumnMappings.Add("OrderDesc", "OrderDesc"); + tableMapping.ColumnMappings.Add("OrderNote", "OrderNote"); + tableMapping.ColumnMappings.Add("OrderQty", "OrderQty"); + tableMapping.ColumnMappings.Add("ImportDate", "ImportDate"); + tableMapping.ColumnMappings.Add("ImportUser", "ImportUser"); + tableMapping.ColumnMappings.Add("OrdCodOrig", "OrdCodOrig"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[OrderList] WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodOrig", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderList] ([OrdID], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdID, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); +SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderList] SET [OrdID] = @OrdID, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); +SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodOrig", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [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_NKCConnectionString1; + } + + [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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc" + + ", OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM dbo.OrderList"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_OL_getByBatch"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].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[1].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, "", "", "")); + } + + [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_App.OrderListDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + 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_App.OrderListDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.OrderListDataTable dataTable = new DS_App.OrderListDataTable(); + 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.OrderListDataTable getByBatch(global::System.Nullable BatchID) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + 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.OrderListDataTable dataTable = new DS_App.OrderListDataTable(); + 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")] + public virtual int Update(DS_App.OrderListDataTable dataTable) { + return this.Adapter.Update(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")] + public virtual int Update(DS_App dataSet) { + return this.Adapter.Update(dataSet, "OrderList"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [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.Delete, true)] + public virtual int Delete(int Original_OrdID, string Original_OrdType, string Original_DestPlant, string Original_FamilyCode, string Original_OrdCodDtmx, string Original_OrderExtCode, string Original_OrderDesc, string Original_OrderNote, int Original_OrderQty, System.DateTime Original_ImportDate, string Original_ImportUser, string Original_OrdCodOrig) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrdID)); + if ((Original_OrdType == null)) { + throw new global::System.ArgumentNullException("Original_OrdType"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_OrdType)); + } + if ((Original_DestPlant == null)) { + throw new global::System.ArgumentNullException("Original_DestPlant"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DestPlant)); + } + if ((Original_FamilyCode == null)) { + throw new global::System.ArgumentNullException("Original_FamilyCode"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_FamilyCode)); + } + if ((Original_OrdCodDtmx == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_OrdCodDtmx)); + } + if ((Original_OrderExtCode == null)) { + throw new global::System.ArgumentNullException("Original_OrderExtCode"); + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_OrderExtCode)); + } + if ((Original_OrderDesc == null)) { + throw new global::System.ArgumentNullException("Original_OrderDesc"); + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_OrderDesc)); + } + if ((Original_OrderNote == null)) { + throw new global::System.ArgumentNullException("Original_OrderNote"); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_OrderNote)); + } + this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_OrderQty)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_ImportDate)); + if ((Original_ImportUser == null)) { + throw new global::System.ArgumentNullException("Original_ImportUser"); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_ImportUser)); + } + if ((Original_OrdCodOrig == null)) { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_OrdCodOrig)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [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.Insert, true)] + public virtual int Insert(int OrdID, string OrdType, string DestPlant, string FamilyCode, string OrderExtCode, string OrderDesc, string OrderNote, int OrderQty, System.DateTime ImportDate, string ImportUser, string OrdCodOrig) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrdID)); + if ((OrdType == null)) { + throw new global::System.ArgumentNullException("OrdType"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(OrdType)); + } + if ((DestPlant == null)) { + throw new global::System.ArgumentNullException("DestPlant"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DestPlant)); + } + if ((FamilyCode == null)) { + throw new global::System.ArgumentNullException("FamilyCode"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(FamilyCode)); + } + if ((OrderExtCode == null)) { + throw new global::System.ArgumentNullException("OrderExtCode"); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(OrderExtCode)); + } + if ((OrderDesc == null)) { + throw new global::System.ArgumentNullException("OrderDesc"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(OrderDesc)); + } + if ((OrderNote == null)) { + throw new global::System.ArgumentNullException("OrderNote"); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(OrderNote)); + } + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(OrderQty)); + this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ImportDate)); + if ((ImportUser == null)) { + throw new global::System.ArgumentNullException("ImportUser"); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(ImportUser)); + } + if ((OrdCodOrig == null)) { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(OrdCodOrig)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update( + int OrdID, + string OrdType, + string DestPlant, + string FamilyCode, + string OrderExtCode, + string OrderDesc, + string OrderNote, + int OrderQty, + System.DateTime ImportDate, + string ImportUser, + string OrdCodOrig, + int Original_OrdID, + string Original_OrdType, + string Original_DestPlant, + string Original_FamilyCode, + string Original_OrdCodDtmx, + string Original_OrderExtCode, + string Original_OrderDesc, + string Original_OrderNote, + int Original_OrderQty, + System.DateTime Original_ImportDate, + string Original_ImportUser, + string Original_OrdCodOrig) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrdID)); + if ((OrdType == null)) { + throw new global::System.ArgumentNullException("OrdType"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(OrdType)); + } + if ((DestPlant == null)) { + throw new global::System.ArgumentNullException("DestPlant"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DestPlant)); + } + if ((FamilyCode == null)) { + throw new global::System.ArgumentNullException("FamilyCode"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(FamilyCode)); + } + if ((OrderExtCode == null)) { + throw new global::System.ArgumentNullException("OrderExtCode"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(OrderExtCode)); + } + if ((OrderDesc == null)) { + throw new global::System.ArgumentNullException("OrderDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(OrderDesc)); + } + if ((OrderNote == null)) { + throw new global::System.ArgumentNullException("OrderNote"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(OrderNote)); + } + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(OrderQty)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ImportDate)); + if ((ImportUser == null)) { + throw new global::System.ArgumentNullException("ImportUser"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(ImportUser)); + } + if ((OrdCodOrig == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(OrdCodOrig)); + } + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_OrdID)); + if ((Original_OrdType == null)) { + throw new global::System.ArgumentNullException("Original_OrdType"); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_OrdType)); + } + if ((Original_DestPlant == null)) { + throw new global::System.ArgumentNullException("Original_DestPlant"); + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_DestPlant)); + } + if ((Original_FamilyCode == null)) { + throw new global::System.ArgumentNullException("Original_FamilyCode"); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_FamilyCode)); + } + if ((Original_OrdCodDtmx == null)) { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_OrdCodDtmx)); + } + if ((Original_OrderExtCode == null)) { + throw new global::System.ArgumentNullException("Original_OrderExtCode"); + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_OrderExtCode)); + } + if ((Original_OrderDesc == null)) { + throw new global::System.ArgumentNullException("Original_OrderDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_OrderDesc)); + } + if ((Original_OrderNote == null)) { + throw new global::System.ArgumentNullException("Original_OrderNote"); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_OrderNote)); + } + this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_OrderQty)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_ImportDate)); + if ((Original_ImportUser == null)) { + throw new global::System.ArgumentNullException("Original_ImportUser"); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_ImportUser)); + } + if ((Original_OrdCodOrig == null)) { + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_OrdCodOrig)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update( + string OrdType, + string DestPlant, + string FamilyCode, + string OrderExtCode, + string OrderDesc, + string OrderNote, + int OrderQty, + System.DateTime ImportDate, + string ImportUser, + string OrdCodOrig, + int Original_OrdID, + string Original_OrdType, + string Original_DestPlant, + string Original_FamilyCode, + string Original_OrdCodDtmx, + string Original_OrderExtCode, + string Original_OrderDesc, + string Original_OrderNote, + int Original_OrderQty, + System.DateTime Original_ImportDate, + string Original_ImportUser, + string Original_OrdCodOrig) { + return this.Update(Original_OrdID, OrdType, DestPlant, FamilyCode, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig, Original_OrdID, Original_OrdType, Original_DestPlant, Original_FamilyCode, Original_OrdCodDtmx, Original_OrderExtCode, Original_OrderDesc, Original_OrderNote, Original_OrderQty, Original_ImportDate, Original_ImportUser, Original_OrdCodOrig); + } + } + + /// + ///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 BatchReqListTableAdapter : 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 BatchReqListTableAdapter() { + 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 = "BatchReqList"; + tableMapping.ColumnMappings.Add("BatchID", "BatchID"); + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[BatchReqList] WHERE (([BatchID] = @Original_BatchID) AND ([Ord" + + "ID] = @Original_OrdID))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[BatchReqList] ([BatchID], [OrdID]) VALUES (@BatchID, @OrdID);\r" + + "\nSELECT BatchID, OrdID FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdID =" + + " @OrdID)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[BatchReqList] SET [BatchID] = @BatchID, [OrdID] = @OrdID WHERE (([B" + + "atchID] = @Original_BatchID) AND ([OrdID] = @Original_OrdID));\r\nSELECT BatchID, " + + "OrdID FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdID = @OrdID)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [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_NKCConnectionString1; + } + + [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 = "SELECT BatchID, OrdID FROM dbo.BatchReqList"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [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_App.BatchReqListDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + 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_App.BatchReqListDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.BatchReqListDataTable dataTable = new DS_App.BatchReqListDataTable(); + 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")] + public virtual int Update(DS_App.BatchReqListDataTable dataTable) { + return this.Adapter.Update(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")] + public virtual int Update(DS_App dataSet) { + return this.Adapter.Update(dataSet, "BatchReqList"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [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.Delete, true)] + public virtual int Delete(int Original_BatchID, int Original_OrdID) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_BatchID)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_OrdID)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [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.Insert, true)] + public virtual int Insert(int BatchID, int OrdID) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(BatchID)); + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(OrdID)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update(int BatchID, int OrdID, int Original_BatchID, int Original_OrdID) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(BatchID)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(OrdID)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_BatchID)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_OrdID)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update(int Original_BatchID, int Original_OrdID) { + return this.Update(Original_BatchID, Original_OrdID, Original_BatchID, Original_OrdID); + } + } + + /// + ///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 ItemListTableAdapter : 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 ItemListTableAdapter() { + 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 = "ItemList"; + tableMapping.ColumnMappings.Add("ItemID", "ItemID"); + tableMapping.ColumnMappings.Add("ItemStatus", "ItemStatus"); + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + tableMapping.ColumnMappings.Add("ItemDtmx", "ItemDtmx"); + tableMapping.ColumnMappings.Add("ItemExtCode", "ItemExtCode"); + tableMapping.ColumnMappings.Add("ItemDesc", "ItemDesc"); + tableMapping.ColumnMappings.Add("ItemNote", "ItemNote"); + tableMapping.ColumnMappings.Add("ItemQty", "ItemQty"); + tableMapping.ColumnMappings.Add("MatID", "MatID"); + tableMapping.ColumnMappings.Add("MachiningReq", "MachiningReq"); + tableMapping.ColumnMappings.Add("PostProcList", "PostProcList"); + tableMapping.ColumnMappings.Add("ProcessesReq", "ProcessesReq"); + tableMapping.ColumnMappings.Add("CadFilePath", "CadFilePath"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ItemList] WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdID = 1 AND [OrdID] IS NULL) OR ([OrdID] = @Original_OrdID)) AND ((@IsNull_ItemDtmx = 1 AND [ItemDtmx] IS NULL) OR ([ItemDtmx] = @Original_ItemDtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDtmx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdID], [ItemDtmx], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdID, @ItemDtmx, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); +SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDtmx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDtmx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdID] = @OrdID, [ItemDtmx] = @ItemDtmx, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdID = 1 AND [OrdID] IS NULL) OR ([OrdID] = @Original_OrdID)) AND ((@IsNull_ItemDtmx = 1 AND [ItemDtmx] IS NULL) OR ([ItemDtmx] = @Original_ItemDtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); +SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = @ItemID)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDtmx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDtmx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDtmx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MachiningReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MachiningReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostProcList", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostProcList", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessesReq", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessesReq", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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_NKCConnectionString1; + } + + [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[3]; + 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"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_IL_getByBatch"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].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[1].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[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_IL_getByOrder"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_App.ItemListDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + 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_App.ItemListDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + 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 getByOrder(global::System.Nullable OrdID) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((OrdID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(OrdID.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; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_App.ItemListDataTable dataTable) { + return this.Adapter.Update(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")] + public virtual int Update(DS_App dataSet) { + return this.Adapter.Update(dataSet, "ItemList"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [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.Delete, true)] + public virtual int Delete(int Original_ItemID, int Original_ItemStatus, global::System.Nullable Original_OrdID, string Original_ItemDtmx, string Original_ItemExtCode, string Original_ItemDesc, string Original_ItemNote, int Original_ItemQty, int Original_MatID, bool Original_MachiningReq, string Original_PostProcList, string Original_ProcessesReq, string Original_CadFilePath) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ItemID)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ItemStatus)); + if ((Original_OrdID.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_OrdID.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_ItemDtmx == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_ItemDtmx)); + } + if ((Original_ItemExtCode == null)) { + throw new global::System.ArgumentNullException("Original_ItemExtCode"); + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_ItemExtCode)); + } + if ((Original_ItemDesc == null)) { + throw new global::System.ArgumentNullException("Original_ItemDesc"); + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_ItemDesc)); + } + if ((Original_ItemNote == null)) { + throw new global::System.ArgumentNullException("Original_ItemNote"); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_ItemNote)); + } + this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_ItemQty)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_MatID)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((bool)(Original_MachiningReq)); + if ((Original_PostProcList == null)) { + throw new global::System.ArgumentNullException("Original_PostProcList"); + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_PostProcList)); + } + if ((Original_ProcessesReq == null)) { + throw new global::System.ArgumentNullException("Original_ProcessesReq"); + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_ProcessesReq)); + } + if ((Original_CadFilePath == null)) { + throw new global::System.ArgumentNullException("Original_CadFilePath"); + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_CadFilePath)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [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.Insert, true)] + public virtual int Insert(int ItemStatus, global::System.Nullable OrdID, string ItemDtmx, string ItemExtCode, string ItemDesc, string ItemNote, int ItemQty, int MatID, bool MachiningReq, string PostProcList, string ProcessesReq, string CadFilePath) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ItemStatus)); + if ((OrdID.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(OrdID.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((ItemDtmx == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ItemDtmx)); + } + if ((ItemExtCode == null)) { + throw new global::System.ArgumentNullException("ItemExtCode"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ItemExtCode)); + } + if ((ItemDesc == null)) { + throw new global::System.ArgumentNullException("ItemDesc"); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ItemDesc)); + } + if ((ItemNote == null)) { + throw new global::System.ArgumentNullException("ItemNote"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ItemNote)); + } + this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ItemQty)); + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(MatID)); + this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(MachiningReq)); + if ((PostProcList == null)) { + throw new global::System.ArgumentNullException("PostProcList"); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(PostProcList)); + } + if ((ProcessesReq == null)) { + throw new global::System.ArgumentNullException("ProcessesReq"); + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(ProcessesReq)); + } + if ((CadFilePath == null)) { + throw new global::System.ArgumentNullException("CadFilePath"); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(CadFilePath)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update( + int ItemStatus, + global::System.Nullable OrdID, + string ItemDtmx, + string ItemExtCode, + string ItemDesc, + string ItemNote, + int ItemQty, + int MatID, + bool MachiningReq, + string PostProcList, + string ProcessesReq, + string CadFilePath, + int Original_ItemID, + int Original_ItemStatus, + global::System.Nullable Original_OrdID, + string Original_ItemDtmx, + string Original_ItemExtCode, + string Original_ItemDesc, + string Original_ItemNote, + int Original_ItemQty, + int Original_MatID, + bool Original_MachiningReq, + string Original_PostProcList, + string Original_ProcessesReq, + string Original_CadFilePath, + int ItemID) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ItemStatus)); + if ((OrdID.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(OrdID.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((ItemDtmx == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ItemDtmx)); + } + if ((ItemExtCode == null)) { + throw new global::System.ArgumentNullException("ItemExtCode"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ItemExtCode)); + } + if ((ItemDesc == null)) { + throw new global::System.ArgumentNullException("ItemDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ItemDesc)); + } + if ((ItemNote == null)) { + throw new global::System.ArgumentNullException("ItemNote"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(ItemNote)); + } + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ItemQty)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(MatID)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(MachiningReq)); + if ((PostProcList == null)) { + throw new global::System.ArgumentNullException("PostProcList"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(PostProcList)); + } + if ((ProcessesReq == null)) { + throw new global::System.ArgumentNullException("ProcessesReq"); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(ProcessesReq)); + } + if ((CadFilePath == null)) { + throw new global::System.ArgumentNullException("CadFilePath"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(CadFilePath)); + } + this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_ItemID)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ItemStatus)); + if ((Original_OrdID.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_OrdID.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_ItemDtmx == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_ItemDtmx)); + } + if ((Original_ItemExtCode == null)) { + throw new global::System.ArgumentNullException("Original_ItemExtCode"); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_ItemExtCode)); + } + if ((Original_ItemDesc == null)) { + throw new global::System.ArgumentNullException("Original_ItemDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_ItemDesc)); + } + if ((Original_ItemNote == null)) { + throw new global::System.ArgumentNullException("Original_ItemNote"); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_ItemNote)); + } + this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_ItemQty)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_MatID)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((bool)(Original_MachiningReq)); + if ((Original_PostProcList == null)) { + throw new global::System.ArgumentNullException("Original_PostProcList"); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_PostProcList)); + } + if ((Original_ProcessesReq == null)) { + throw new global::System.ArgumentNullException("Original_ProcessesReq"); + } + else { + this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_ProcessesReq)); + } + if ((Original_CadFilePath == null)) { + throw new global::System.ArgumentNullException("Original_CadFilePath"); + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_CadFilePath)); + } + this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(ItemID)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update( + int ItemStatus, + global::System.Nullable OrdID, + string ItemDtmx, + string ItemExtCode, + string ItemDesc, + string ItemNote, + int ItemQty, + int MatID, + bool MachiningReq, + string PostProcList, + string ProcessesReq, + string CadFilePath, + int Original_ItemID, + int Original_ItemStatus, + global::System.Nullable Original_OrdID, + string Original_ItemDtmx, + string Original_ItemExtCode, + string Original_ItemDesc, + string Original_ItemNote, + int Original_ItemQty, + int Original_MatID, + bool Original_MachiningReq, + string Original_PostProcList, + string Original_ProcessesReq, + string Original_CadFilePath) { + return this.Update(ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath, Original_ItemID, Original_ItemStatus, Original_OrdID, Original_ItemDtmx, Original_ItemExtCode, Original_ItemDesc, Original_ItemNote, Original_ItemQty, Original_MatID, Original_MachiningReq, Original_PostProcList, Original_ProcessesReq, Original_CadFilePath, Original_ItemID); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int getByBatch(global::System.Nullable BatchID) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((BatchID.HasValue == true)) { + command.Parameters[1].Value = ((int)(BatchID.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///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 MaterialsTableAdapter : 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 MaterialsTableAdapter() { + 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 = "Materials"; + tableMapping.ColumnMappings.Add("MatID", "MatID"); + tableMapping.ColumnMappings.Add("MatExtCode", "MatExtCode"); + tableMapping.ColumnMappings.Add("MatDesc", "MatDesc"); + tableMapping.ColumnMappings.Add("ApprovDate", "ApprovDate"); + tableMapping.ColumnMappings.Add("ApprovUser", "ApprovUser"); + tableMapping.ColumnMappings.Add("L_mm", "L_mm"); + tableMapping.ColumnMappings.Add("W_mm", "W_mm"); + tableMapping.ColumnMappings.Add("T_mm", "T_mm"); + tableMapping.ColumnMappings.Add("MatDtmx", "MatDtmx"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Materials] WHERE (([MatID] = @Original_MatID) AND ([MatExtCode] = @Original_MatExtCode) AND ([MatDesc] = @Original_MatDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm) AND ((@IsNull_MatDtmx = 1 AND [MatDtmx] IS NULL) OR ([MatDtmx] = @Original_MatDtmx)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatExtCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Materials] ([MatExtCode], [MatDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MatExtCode, @MatDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); +SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, MatDtmx FROM Materials WHERE (MatID = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatExtCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Materials] SET [MatExtCode] = @MatExtCode, [MatDesc] = @MatDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MatExtCode] = @Original_MatExtCode) AND ([MatDesc] = @Original_MatDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm) AND ((@IsNull_MatDtmx = 1 AND [MatDtmx] IS NULL) OR ([MatDtmx] = @Original_MatDtmx))); +SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, MatDtmx FROM Materials WHERE (MatID = @MatID)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatExtCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatExtCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ApprovUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ApprovUser", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_L_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "L_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_W_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "W_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "MatID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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_NKCConnectionString1; + } + + [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 = "SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, MatD" + + "tmx FROM dbo.Materials"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [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_App.MaterialsDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + 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_App.MaterialsDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.MaterialsDataTable dataTable = new DS_App.MaterialsDataTable(); + 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")] + public virtual int Update(DS_App.MaterialsDataTable dataTable) { + return this.Adapter.Update(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")] + public virtual int Update(DS_App dataSet) { + return this.Adapter.Update(dataSet, "Materials"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [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.Delete, true)] + public virtual int Delete(int Original_MatID, int Original_MatExtCode, string Original_MatDesc, System.DateTime Original_ApprovDate, string Original_ApprovUser, decimal Original_L_mm, decimal Original_W_mm, decimal Original_T_mm, string Original_MatDtmx) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MatID)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_MatExtCode)); + if ((Original_MatDesc == null)) { + throw new global::System.ArgumentNullException("Original_MatDesc"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_MatDesc)); + } + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_ApprovDate)); + if ((Original_ApprovUser == null)) { + throw new global::System.ArgumentNullException("Original_ApprovUser"); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ApprovUser)); + } + this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_L_mm)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_W_mm)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((decimal)(Original_T_mm)); + if ((Original_MatDtmx == null)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_MatDtmx)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [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.Insert, true)] + public virtual int Insert(int MatExtCode, string MatDesc, System.DateTime ApprovDate, string ApprovUser, decimal L_mm, decimal W_mm, decimal T_mm) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MatExtCode)); + if ((MatDesc == null)) { + throw new global::System.ArgumentNullException("MatDesc"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(MatDesc)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(ApprovDate)); + if ((ApprovUser == null)) { + throw new global::System.ArgumentNullException("ApprovUser"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ApprovUser)); + } + this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(L_mm)); + this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(W_mm)); + this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(T_mm)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update( + int MatExtCode, + string MatDesc, + System.DateTime ApprovDate, + string ApprovUser, + decimal L_mm, + decimal W_mm, + decimal T_mm, + int Original_MatID, + int Original_MatExtCode, + string Original_MatDesc, + System.DateTime Original_ApprovDate, + string Original_ApprovUser, + decimal Original_L_mm, + decimal Original_W_mm, + decimal Original_T_mm, + string Original_MatDtmx, + int MatID) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MatExtCode)); + if ((MatDesc == null)) { + throw new global::System.ArgumentNullException("MatDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(MatDesc)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(ApprovDate)); + if ((ApprovUser == null)) { + throw new global::System.ArgumentNullException("ApprovUser"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ApprovUser)); + } + this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(L_mm)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(W_mm)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(T_mm)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_MatID)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_MatExtCode)); + if ((Original_MatDesc == null)) { + throw new global::System.ArgumentNullException("Original_MatDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_MatDesc)); + } + this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_ApprovDate)); + if ((Original_ApprovUser == null)) { + throw new global::System.ArgumentNullException("Original_ApprovUser"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_ApprovUser)); + } + this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_L_mm)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_W_mm)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Original_T_mm)); + if ((Original_MatDtmx == null)) { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_MatDtmx)); + } + this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(MatID)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update( + int MatExtCode, + string MatDesc, + System.DateTime ApprovDate, + string ApprovUser, + decimal L_mm, + decimal W_mm, + decimal T_mm, + int Original_MatID, + int Original_MatExtCode, + string Original_MatDesc, + System.DateTime Original_ApprovDate, + string Original_ApprovUser, + decimal Original_L_mm, + decimal Original_W_mm, + decimal Original_T_mm, + string Original_MatDtmx) { + return this.Update(MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Original_MatID, Original_MatExtCode, Original_MatDesc, Original_ApprovDate, Original_ApprovUser, Original_L_mm, Original_W_mm, Original_T_mm, Original_MatDtmx, Original_MatID); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -8008,14 +8056,14 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD private UpdateOrderOption _updateOrder; - private MaterialsTableAdapter _materialsTableAdapter; - - private ItemListTableAdapter _itemListTableAdapter; - private OrderListTableAdapter _orderListTableAdapter; private BatchReqListTableAdapter _batchReqListTableAdapter; + private ItemListTableAdapter _itemListTableAdapter; + + private MaterialsTableAdapter _materialsTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -8031,34 +8079,6 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public MaterialsTableAdapter MaterialsTableAdapter { - get { - return this._materialsTableAdapter; - } - set { - this._materialsTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public ItemListTableAdapter ItemListTableAdapter { - get { - return this._itemListTableAdapter; - } - set { - this._itemListTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + @@ -8087,6 +8107,34 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public ItemListTableAdapter ItemListTableAdapter { + get { + return this._itemListTableAdapter; + } + set { + this._itemListTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public MaterialsTableAdapter MaterialsTableAdapter { + get { + return this._materialsTableAdapter; + } + set { + this._materialsTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -8106,14 +8154,6 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD if ((this._connection != null)) { return this._connection; } - if (((this._materialsTableAdapter != null) - && (this._materialsTableAdapter.Connection != null))) { - return this._materialsTableAdapter.Connection; - } - if (((this._itemListTableAdapter != null) - && (this._itemListTableAdapter.Connection != null))) { - return this._itemListTableAdapter.Connection; - } if (((this._orderListTableAdapter != null) && (this._orderListTableAdapter.Connection != null))) { return this._orderListTableAdapter.Connection; @@ -8122,6 +8162,14 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD && (this._batchReqListTableAdapter.Connection != null))) { return this._batchReqListTableAdapter.Connection; } + if (((this._itemListTableAdapter != null) + && (this._itemListTableAdapter.Connection != null))) { + return this._itemListTableAdapter.Connection; + } + if (((this._materialsTableAdapter != null) + && (this._materialsTableAdapter.Connection != null))) { + return this._materialsTableAdapter.Connection; + } return null; } set { @@ -8135,16 +8183,16 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD public int TableAdapterInstanceCount { get { int count = 0; - if ((this._materialsTableAdapter != null)) { + if ((this._orderListTableAdapter != null)) { + count = (count + 1); + } + if ((this._batchReqListTableAdapter != null)) { count = (count + 1); } if ((this._itemListTableAdapter != null)) { count = (count + 1); } - if ((this._orderListTableAdapter != null)) { - count = (count + 1); - } - if ((this._batchReqListTableAdapter != null)) { + if ((this._materialsTableAdapter != null)) { count = (count + 1); } return count; @@ -8158,15 +8206,6 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateUpdatedRows(DS_App dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._materialsTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._materialsTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._orderListTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.OrderList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -8176,12 +8215,12 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD allChangedRows.AddRange(updatedRows); } } - if ((this._itemListTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._materialsTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._itemListTableAdapter.Update(updatedRows)); + result = (result + this._materialsTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -8194,6 +8233,15 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD allChangedRows.AddRange(updatedRows); } } + if ((this._itemListTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._itemListTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -8204,14 +8252,6 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateInsertedRows(DS_App dataSet, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._materialsTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._materialsTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._orderListTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.OrderList.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -8220,11 +8260,11 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD allAddedRows.AddRange(addedRows); } } - if ((this._itemListTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._materialsTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._itemListTableAdapter.Update(addedRows)); + result = (result + this._materialsTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -8236,6 +8276,14 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD allAddedRows.AddRange(addedRows); } } + if ((this._itemListTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._itemListTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -8246,14 +8294,6 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateDeletedRows(DS_App dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._batchReqListTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._batchReqListTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._itemListTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -8262,11 +8302,11 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD allChangedRows.AddRange(deletedRows); } } - if ((this._orderListTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.OrderList.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._batchReqListTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._orderListTableAdapter.Update(deletedRows)); + result = (result + this._batchReqListTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -8278,6 +8318,14 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD allChangedRows.AddRange(deletedRows); } } + if ((this._orderListTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.OrderList.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._orderListTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } return result; } @@ -8317,8 +8365,13 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD if ((dataSet.HasChanges() == false)) { return 0; } - if (((this._materialsTableAdapter != null) - && (this.MatchTableAdapterConnection(this._materialsTableAdapter.Connection) == false))) { + if (((this._orderListTableAdapter != null) + && (this.MatchTableAdapterConnection(this._orderListTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + + "a stessa stringa di connessione."); + } + if (((this._batchReqListTableAdapter != null) + && (this.MatchTableAdapterConnection(this._batchReqListTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } @@ -8327,13 +8380,8 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } - if (((this._orderListTableAdapter != null) - && (this.MatchTableAdapterConnection(this._orderListTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + - "a stessa stringa di connessione."); - } - if (((this._batchReqListTableAdapter != null) - && (this.MatchTableAdapterConnection(this._batchReqListTableAdapter.Connection) == false))) { + if (((this._materialsTableAdapter != null) + && (this.MatchTableAdapterConnection(this._materialsTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } @@ -8370,24 +8418,6 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD try { // ---- Prepare for update ----------- // - if ((this._materialsTableAdapter != null)) { - revertConnections.Add(this._materialsTableAdapter, this._materialsTableAdapter.Connection); - this._materialsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._materialsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._materialsTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._materialsTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._materialsTableAdapter.Adapter); - } - } - if ((this._itemListTableAdapter != null)) { - revertConnections.Add(this._itemListTableAdapter, this._itemListTableAdapter.Connection); - this._itemListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._itemListTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._itemListTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._itemListTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._itemListTableAdapter.Adapter); - } - } if ((this._orderListTableAdapter != null)) { revertConnections.Add(this._orderListTableAdapter, this._orderListTableAdapter.Connection); this._orderListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -8406,6 +8436,24 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD adaptersWithAcceptChangesDuringUpdate.Add(this._batchReqListTableAdapter.Adapter); } } + if ((this._itemListTableAdapter != null)) { + revertConnections.Add(this._itemListTableAdapter, this._itemListTableAdapter.Connection); + this._itemListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._itemListTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._itemListTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._itemListTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._itemListTableAdapter.Adapter); + } + } + if ((this._materialsTableAdapter != null)) { + revertConnections.Add(this._materialsTableAdapter, this._materialsTableAdapter.Connection); + this._materialsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._materialsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._materialsTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._materialsTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._materialsTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -8464,14 +8512,6 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD if (workConnOpened) { workConnection.Close(); } - if ((this._materialsTableAdapter != null)) { - this._materialsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._materialsTableAdapter])); - this._materialsTableAdapter.Transaction = null; - } - if ((this._itemListTableAdapter != null)) { - this._itemListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._itemListTableAdapter])); - this._itemListTableAdapter.Transaction = null; - } if ((this._orderListTableAdapter != null)) { this._orderListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderListTableAdapter])); this._orderListTableAdapter.Transaction = null; @@ -8480,6 +8520,14 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD this._batchReqListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._batchReqListTableAdapter])); this._batchReqListTableAdapter.Transaction = null; } + if ((this._itemListTableAdapter != null)) { + this._itemListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._itemListTableAdapter])); + this._itemListTableAdapter.Transaction = null; + } + if ((this._materialsTableAdapter != null)) { + this._materialsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._materialsTableAdapter])); + this._materialsTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 664050f..6474568 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -5,6 +5,7 @@ + @@ -95,368 +96,6 @@ FROM v_BatchList - - - - - - DELETE FROM [dbo].[Materials] WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm)) - - - - - - - - - - - - - - - INSERT INTO [dbo].[Materials] ([MaterExtCode], [MaterDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MaterExtCode, @MaterDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); -SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = SCOPE_IDENTITY()) - - - - - - - - - - - - - - SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM dbo.Materials - - - - - - UPDATE [dbo].[Materials] SET [MaterExtCode] = @MaterExtCode, [MaterDesc] = @MaterDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm)); -SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = @MatID) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DELETE FROM [dbo].[ItemList] WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)) - - - - - - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdCod], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdCod, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); -SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = SCOPE_IDENTITY()) - - - - - - - - - - - - - - - - - - SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM dbo.ItemList - - - - - - UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdCod] = @OrdCod, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); -SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = @ItemID) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_IL_getByBatch - - - - - - - - - - - dbo.stp_IL_getByOrder - - - - - - - - - - - - - - - DELETE FROM [dbo].[OrderList] WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))) - - - - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[OrderList] ([OrdCod], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdCod, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); -SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod) - - - - - - - - - - - - - - - - - - SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM dbo.OrderList - - - - - - UPDATE [dbo].[OrderList] SET [OrdCod] = @OrdCod, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); -SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_OL_getByBatch - - - - - - - - - - - - - - - DELETE FROM [dbo].[BatchReqList] WHERE (([BatchID] = @Original_BatchID) AND ([OrdCod] = @Original_OrdCod)) - - - - - - - - - INSERT INTO [dbo].[BatchReqList] ([BatchID], [OrdCod]) VALUES (@BatchID, @OrdCod); -SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod = @OrdCod) - - - - - - - - - SELECT BatchID, OrdCod FROM dbo.BatchReqList - - - - - - UPDATE [dbo].[BatchReqList] SET [BatchID] = @BatchID, [OrdCod] = @OrdCod WHERE (([BatchID] = @Original_BatchID) AND ([OrdCod] = @Original_OrdCod)); -SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod = @OrdCod) - - - - - - - - - - - - - - - - @@ -510,7 +149,7 @@ FROM v_StackList SELECT * -FROM v_SheetList + FROM v_SheetList @@ -533,8 +172,8 @@ FROM v_SheetList - - + + @@ -562,7 +201,7 @@ FROM v_SheetList - + dbo.stp_Sheets_resetPrepared @@ -573,7 +212,7 @@ FROM v_SheetList - + dbo.stp_Sheets_setPrepared @@ -586,6 +225,378 @@ FROM v_SheetList + + + + + + DELETE FROM [dbo].[OrderList] WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))) + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[OrderList] ([OrdID], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdID, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); +SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID) + + + + + + + + + + + + + + + + + + SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM dbo.OrderList + + + + + + UPDATE [dbo].[OrderList] SET [OrdID] = @OrdID, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); +SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_OL_getByBatch + + + + + + + + + + + + + + + DELETE FROM [dbo].[BatchReqList] WHERE (([BatchID] = @Original_BatchID) AND ([OrdID] = @Original_OrdID)) + + + + + + + + + INSERT INTO [dbo].[BatchReqList] ([BatchID], [OrdID]) VALUES (@BatchID, @OrdID); +SELECT BatchID, OrdID FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdID = @OrdID) + + + + + + + + + SELECT BatchID, OrdID FROM dbo.BatchReqList + + + + + + UPDATE [dbo].[BatchReqList] SET [BatchID] = @BatchID, [OrdID] = @OrdID WHERE (([BatchID] = @Original_BatchID) AND ([OrdID] = @Original_OrdID)); +SELECT BatchID, OrdID FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdID = @OrdID) + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[ItemList] WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdID = 1 AND [OrdID] IS NULL) OR ([OrdID] = @Original_OrdID)) AND ((@IsNull_ItemDtmx = 1 AND [ItemDtmx] IS NULL) OR ([ItemDtmx] = @Original_ItemDtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)) + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdID], [ItemDtmx], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdID, @ItemDtmx, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); +SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + SELECT * + FROM dbo.ItemList + + + + + + UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdID] = @OrdID, [ItemDtmx] = @ItemDtmx, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdID = 1 AND [OrdID] IS NULL) OR ([OrdID] = @Original_OrdID)) AND ((@IsNull_ItemDtmx = 1 AND [ItemDtmx] IS NULL) OR ([ItemDtmx] = @Original_ItemDtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); +SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = @ItemID) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_IL_getByBatch + + + + + + + + + + + dbo.stp_IL_getByOrder + + + + + + + + + + + + + + + DELETE FROM [dbo].[Materials] WHERE (([MatID] = @Original_MatID) AND ([MatExtCode] = @Original_MatExtCode) AND ([MatDesc] = @Original_MatDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm) AND ((@IsNull_MatDtmx = 1 AND [MatDtmx] IS NULL) OR ([MatDtmx] = @Original_MatDtmx))) + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Materials] ([MatExtCode], [MatDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MatExtCode, @MatDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); +SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, MatDtmx FROM Materials WHERE (MatID = SCOPE_IDENTITY()) + + + + + + + + + + + + + + SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, MatDtmx FROM dbo.Materials + + + + + + UPDATE [dbo].[Materials] SET [MatExtCode] = @MatExtCode, [MatDesc] = @MatDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MatExtCode] = @Original_MatExtCode) AND ([MatDesc] = @Original_MatDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm) AND ((@IsNull_MatDtmx = 1 AND [MatDtmx] IS NULL) OR ([MatDtmx] = @Original_MatDtmx))); +SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, MatDtmx FROM Materials WHERE (MatID = @MatID) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -626,197 +637,6 @@ FROM v_SheetList - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -868,14 +688,8 @@ FROM v_SheetList - - - - - - - - + + @@ -888,29 +702,186 @@ FROM v_SheetList + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - @@ -919,12 +890,29 @@ FROM v_SheetList + + + + + + + + + + + + + + + + + + + - - \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 2c8d146..af94e78 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,50 +4,50 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - + + + + + + + - - - - 980 - 369 - - - 893 - 369 - - - - - - - 619 - 401 - - - 702 - 401 - - - - 421 - 304 + 396 + 152 - 296 - 304 + 321 + 152 + + + + + + + 594 + 79 + + + 688 + 79 + + + + + + + 989 + 109 + + + 879 + 109 diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index ae809e3..51a5577 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -1,9 +1,4 @@ using SteamWare; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace AppData { @@ -70,10 +65,13 @@ namespace AppData public decodedData decodeBcode(string bcValue) { decodedData answ = new decodedData(); - if (bcValue.StartsWith("MAT")) + if (bcValue.StartsWith("MT")) { answ.codeType = codeType.Material; - answ.code = bcValue.Replace("MAT", ""); + answ.code = bcValue.Replace("MT", ""); + int codeInt = 0; + int.TryParse(answ.code, out codeInt); + answ.codeInt = codeInt; answ.description = $"Material: {answ.code}"; } return answ; @@ -93,6 +91,10 @@ namespace AppData /// public string code { get; set; } = ""; /// + /// Codice decodificato in formato INT + /// + public int codeInt { get; set; } = 0; + /// /// Descrizione associata /// public string description { get; set; } = ""; diff --git a/AppData/Properties/Settings.Designer.cs b/AppData/Properties/Settings.Designer.cs index 76fbb7a..4325e76 100644 --- a/AppData/Properties/Settings.Designer.cs +++ b/AppData/Properties/Settings.Designer.cs @@ -33,5 +33,16 @@ namespace AppData.Properties { return ((string)(this["Sauder_NKCConnectionString"])); } } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User" + + " ID=conn_NKC;Password=pwd_NKC")] + public string Sauder_NKCConnectionString1 { + get { + return ((string)(this["Sauder_NKCConnectionString1"])); + } + } } } diff --git a/AppData/Properties/Settings.settings b/AppData/Properties/Settings.settings index 70f401e..48d0a4b 100644 --- a/AppData/Properties/Settings.settings +++ b/AppData/Properties/Settings.settings @@ -10,5 +10,13 @@ </SerializableConnectionString> Data Source=10.74.82.14;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=conn_NKC;Password=pwd_NKC + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <ConnectionString>Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=conn_NKC;Password=pwd_NKC</ConnectionString> + <ProviderName>System.Data.SqlClient</ProviderName> +</SerializableConnectionString> + Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=conn_NKC;Password=pwd_NKC + \ No newline at end of file diff --git a/AppData/app.config b/AppData/app.config index c9adfa6..9c67a5f 100644 --- a/AppData/app.config +++ b/AppData/app.config @@ -3,7 +3,12 @@ - + + diff --git a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs index 2c632ea..9573ca0 100644 --- a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs @@ -64,8 +64,8 @@ namespace NKC_WF.WebUserControls // se ho valori --> controllo se corretto... else { - string codReq = nextTbl[0].MaterExtCode; - if (codReq == decoData.code) + string codReq = nextTbl[0].MatExtCode.ToString(); + if (codReq == decoData.codeInt.ToString()) { cmp_barcode.showOutput("badge badge-success", $"SHEET RECORDED: {decoData.description}"); // chiamo stored x indicare preparato