From b43a5184baa1fbd8bc8e4e78940c04a5029bee7b Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 21 Jul 2020 19:53:04 +0200 Subject: [PATCH] Avanzamento postsazione KIT smart --- AppData/DS_App.Designer.cs | 1383 ++++++++++++++++- AppData/DS_App.xsd | 137 ++ AppData/DS_App.xss | 87 +- AppData/DataLayer.cs | 3 + .../WebUserControls/cmp_kittingSmart.ascx.cs | 124 +- 5 files changed, 1584 insertions(+), 150 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 2436756..42451fa 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -84,6 +84,8 @@ namespace AppData { private PackCheckDataTable tablePackCheck; + private OKIBDataTable tableOKIB; + private global::System.Data.DataRelation relationFK_BatchReqList_OrderList; private global::System.Data.DataRelation relationFK_ItemList_Materials1; @@ -226,6 +228,9 @@ namespace AppData { if ((ds.Tables["PackCheck"] != null)) { base.Tables.Add(new PackCheckDataTable(ds.Tables["PackCheck"])); } + if ((ds.Tables["OKIB"] != null)) { + base.Tables.Add(new OKIBDataTable(ds.Tables["OKIB"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -544,6 +549,16 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public OKIBDataTable OKIB { + get { + return this.tableOKIB; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -701,6 +716,9 @@ namespace AppData { if ((ds.Tables["PackCheck"] != null)) { base.Tables.Add(new PackCheckDataTable(ds.Tables["PackCheck"])); } + if ((ds.Tables["OKIB"] != null)) { + base.Tables.Add(new OKIBDataTable(ds.Tables["OKIB"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -914,6 +932,12 @@ namespace AppData { this.tablePackCheck.InitVars(); } } + this.tableOKIB = ((OKIBDataTable)(base.Tables["OKIB"])); + if ((initTable == true)) { + if ((this.tableOKIB != null)) { + this.tableOKIB.InitVars(); + } + } this.relationFK_BatchReqList_OrderList = this.Relations["FK_BatchReqList_OrderList"]; this.relationFK_ItemList_Materials1 = this.Relations["FK_ItemList_Materials1"]; this.relationFK_OffOrd2Item_OfflineOrderList = this.Relations["FK_OffOrd2Item_OfflineOrderList"]; @@ -996,6 +1020,8 @@ namespace AppData { base.Tables.Add(this.tablePackLog); this.tablePackCheck = new PackCheckDataTable(); base.Tables.Add(this.tablePackCheck); + this.tableOKIB = new OKIBDataTable(); + base.Tables.Add(this.tableOKIB); 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); @@ -1226,6 +1252,12 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeOKIB() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -1371,6 +1403,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void PackCheckRowChangeEventHandler(object sender, PackCheckRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void OKIBRowChangeEventHandler(object sender, OKIBRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -13020,6 +13055,621 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class OKIBDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnItemID; + + private global::System.Data.DataColumn columnItemDtmx; + + private global::System.Data.DataColumn columnItemExtCode; + + private global::System.Data.DataColumn columnItemDesc; + + private global::System.Data.DataColumn columnStatusID; + + private global::System.Data.DataColumn columnMatID; + + private global::System.Data.DataColumn columnPostProcList; + + private global::System.Data.DataColumn columnProcessesReq; + + private global::System.Data.DataColumn columnOnCartDate; + + private global::System.Data.DataColumn columnOrdID; + + private global::System.Data.DataColumn columnOrderExtCode; + + private global::System.Data.DataColumn columnKitQty; + + private global::System.Data.DataColumn columnKitID; + + private global::System.Data.DataColumn columnBatchID; + + private global::System.Data.DataColumn columnCartID; + + private global::System.Data.DataColumn columnKitExtCode; + + private global::System.Data.DataColumn columnBinID; + + private global::System.Data.DataColumn columnBinIndex; + + private global::System.Data.DataColumn columnBinDtmx; + + private global::System.Data.DataColumn columnBinDtmxProc; + + private global::System.Data.DataColumn columnPaintDate; + + private global::System.Data.DataColumn columnKittingStart; + + private global::System.Data.DataColumn columnKittingEnd; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIBDataTable() { + this.TableName = "OKIB"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKIBDataTable(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 OKIBDataTable(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 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 StatusIDColumn { + get { + return this.columnStatusID; + } + } + + [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 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 OnCartDateColumn { + get { + return this.columnOnCartDate; + } + } + + [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 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 KitQtyColumn { + get { + return this.columnKitQty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KitIDColumn { + get { + return this.columnKitID; + } + } + + [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 CartIDColumn { + get { + return this.columnCartID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KitExtCodeColumn { + get { + return this.columnKitExtCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BinIDColumn { + get { + return this.columnBinID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BinIndexColumn { + get { + return this.columnBinIndex; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BinDtmxColumn { + get { + return this.columnBinDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BinDtmxProcColumn { + get { + return this.columnBinDtmxProc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn PaintDateColumn { + get { + return this.columnPaintDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KittingStartColumn { + get { + return this.columnKittingStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KittingEndColumn { + get { + return this.columnKittingEnd; + } + } + + [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 OKIBRow this[int index] { + get { + return ((OKIBRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIBRowChangeEventHandler OKIBRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIBRowChangeEventHandler OKIBRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIBRowChangeEventHandler OKIBRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIBRowChangeEventHandler OKIBRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddOKIBRow(OKIBRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIBRow AddOKIBRow( + int ItemID, + string ItemDtmx, + string ItemExtCode, + string ItemDesc, + int StatusID, + int MatID, + string PostProcList, + string ProcessesReq, + System.DateTime OnCartDate, + int OrdID, + string OrderExtCode, + int KitQty, + int KitID, + int BatchID, + int CartID, + string KitExtCode, + int BinID, + int BinIndex, + string BinDtmx, + string BinDtmxProc, + System.DateTime PaintDate, + System.DateTime KittingStart, + System.DateTime KittingEnd) { + OKIBRow rowOKIBRow = ((OKIBRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + ItemID, + ItemDtmx, + ItemExtCode, + ItemDesc, + StatusID, + MatID, + PostProcList, + ProcessesReq, + OnCartDate, + OrdID, + OrderExtCode, + KitQty, + KitID, + BatchID, + CartID, + KitExtCode, + BinID, + BinIndex, + BinDtmx, + BinDtmxProc, + PaintDate, + KittingStart, + KittingEnd}; + rowOKIBRow.ItemArray = columnValuesArray; + this.Rows.Add(rowOKIBRow); + return rowOKIBRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIBRow FindByItemID(int ItemID) { + return ((OKIBRow)(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() { + OKIBDataTable cln = ((OKIBDataTable)(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 OKIBDataTable(); + } + + [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.columnItemDtmx = base.Columns["ItemDtmx"]; + this.columnItemExtCode = base.Columns["ItemExtCode"]; + this.columnItemDesc = base.Columns["ItemDesc"]; + this.columnStatusID = base.Columns["StatusID"]; + this.columnMatID = base.Columns["MatID"]; + this.columnPostProcList = base.Columns["PostProcList"]; + this.columnProcessesReq = base.Columns["ProcessesReq"]; + this.columnOnCartDate = base.Columns["OnCartDate"]; + this.columnOrdID = base.Columns["OrdID"]; + this.columnOrderExtCode = base.Columns["OrderExtCode"]; + this.columnKitQty = base.Columns["KitQty"]; + this.columnKitID = base.Columns["KitID"]; + this.columnBatchID = base.Columns["BatchID"]; + this.columnCartID = base.Columns["CartID"]; + this.columnKitExtCode = base.Columns["KitExtCode"]; + this.columnBinID = base.Columns["BinID"]; + this.columnBinIndex = base.Columns["BinIndex"]; + this.columnBinDtmx = base.Columns["BinDtmx"]; + this.columnBinDtmxProc = base.Columns["BinDtmxProc"]; + this.columnPaintDate = base.Columns["PaintDate"]; + this.columnKittingStart = base.Columns["KittingStart"]; + this.columnKittingEnd = base.Columns["KittingEnd"]; + } + + [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.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.columnStatusID = new global::System.Data.DataColumn("StatusID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStatusID); + this.columnMatID = new global::System.Data.DataColumn("MatID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatID); + 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.columnOnCartDate = new global::System.Data.DataColumn("OnCartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOnCartDate); + this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdID); + this.columnOrderExtCode = new global::System.Data.DataColumn("OrderExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrderExtCode); + this.columnKitQty = new global::System.Data.DataColumn("KitQty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKitQty); + this.columnKitID = new global::System.Data.DataColumn("KitID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKitID); + this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBatchID); + this.columnCartID = new global::System.Data.DataColumn("CartID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartID); + this.columnKitExtCode = new global::System.Data.DataColumn("KitExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKitExtCode); + this.columnBinID = new global::System.Data.DataColumn("BinID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinID); + this.columnBinIndex = new global::System.Data.DataColumn("BinIndex", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinIndex); + this.columnBinDtmx = new global::System.Data.DataColumn("BinDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinDtmx); + this.columnBinDtmxProc = new global::System.Data.DataColumn("BinDtmxProc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinDtmxProc); + this.columnPaintDate = new global::System.Data.DataColumn("PaintDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPaintDate); + this.columnKittingStart = new global::System.Data.DataColumn("KittingStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKittingStart); + this.columnKittingEnd = new global::System.Data.DataColumn("KittingEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKittingEnd); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnItemID}, true)); + this.columnItemID.AllowDBNull = false; + this.columnItemID.Unique = true; + this.columnItemDtmx.MaxLength = 50; + this.columnItemExtCode.AllowDBNull = false; + this.columnItemExtCode.MaxLength = 250; + this.columnItemDesc.AllowDBNull = false; + this.columnItemDesc.MaxLength = 500; + this.columnStatusID.AllowDBNull = false; + this.columnMatID.AllowDBNull = false; + this.columnPostProcList.AllowDBNull = false; + this.columnPostProcList.MaxLength = 250; + this.columnProcessesReq.AllowDBNull = false; + this.columnProcessesReq.MaxLength = 250; + this.columnOrdID.AllowDBNull = false; + this.columnOrderExtCode.AllowDBNull = false; + this.columnOrderExtCode.MaxLength = 250; + this.columnKitQty.AllowDBNull = false; + this.columnKitID.AllowDBNull = false; + this.columnBatchID.AllowDBNull = false; + this.columnCartID.AllowDBNull = false; + this.columnKitExtCode.AllowDBNull = false; + this.columnKitExtCode.MaxLength = 250; + this.columnBinID.AllowDBNull = false; + this.columnBinIndex.AllowDBNull = false; + this.columnBinDtmx.ReadOnly = true; + this.columnBinDtmx.MaxLength = 10; + this.columnBinDtmxProc.ReadOnly = true; + this.columnBinDtmxProc.MaxLength = 10; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIBRow NewOKIBRow() { + return ((OKIBRow)(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 OKIBRow(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(OKIBRow); + } + + [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.OKIBRowChanged != null)) { + this.OKIBRowChanged(this, new OKIBRowChangeEvent(((OKIBRow)(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.OKIBRowChanging != null)) { + this.OKIBRowChanging(this, new OKIBRowChangeEvent(((OKIBRow)(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.OKIBRowDeleted != null)) { + this.OKIBRowDeleted(this, new OKIBRowChangeEvent(((OKIBRow)(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.OKIBRowDeleting != null)) { + this.OKIBRowDeleting(this, new OKIBRowChangeEvent(((OKIBRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveOKIBRow(OKIBRow 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 = "OKIBDataTable"; + 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. /// @@ -18454,6 +19104,393 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class OKIBRow : global::System.Data.DataRow { + + private OKIBDataTable tableOKIB; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKIBRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableOKIB = ((OKIBDataTable)(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.tableOKIB.ItemIDColumn])); + } + set { + this[this.tableOKIB.ItemIDColumn] = 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.tableOKIB.ItemDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ItemDtmx\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.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.tableOKIB.ItemExtCodeColumn])); + } + set { + this[this.tableOKIB.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.tableOKIB.ItemDescColumn])); + } + set { + this[this.tableOKIB.ItemDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int StatusID { + get { + return ((int)(this[this.tableOKIB.StatusIDColumn])); + } + set { + this[this.tableOKIB.StatusIDColumn] = 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.tableOKIB.MatIDColumn])); + } + set { + this[this.tableOKIB.MatIDColumn] = 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.tableOKIB.PostProcListColumn])); + } + set { + this[this.tableOKIB.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.tableOKIB.ProcessesReqColumn])); + } + set { + this[this.tableOKIB.ProcessesReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime OnCartDate { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB.OnCartDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OnCartDate\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.OnCartDateColumn] = 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.tableOKIB.OrdIDColumn])); + } + set { + this[this.tableOKIB.OrdIDColumn] = 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.tableOKIB.OrderExtCodeColumn])); + } + set { + this[this.tableOKIB.OrderExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int KitQty { + get { + return ((int)(this[this.tableOKIB.KitQtyColumn])); + } + set { + this[this.tableOKIB.KitQtyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int KitID { + get { + return ((int)(this[this.tableOKIB.KitIDColumn])); + } + set { + this[this.tableOKIB.KitIDColumn] = value; + } + } + + [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.tableOKIB.BatchIDColumn])); + } + set { + this[this.tableOKIB.BatchIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int CartID { + get { + return ((int)(this[this.tableOKIB.CartIDColumn])); + } + set { + this[this.tableOKIB.CartIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string KitExtCode { + get { + return ((string)(this[this.tableOKIB.KitExtCodeColumn])); + } + set { + this[this.tableOKIB.KitExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int BinID { + get { + return ((int)(this[this.tableOKIB.BinIDColumn])); + } + set { + this[this.tableOKIB.BinIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int BinIndex { + get { + return ((int)(this[this.tableOKIB.BinIndexColumn])); + } + set { + this[this.tableOKIB.BinIndexColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string BinDtmx { + get { + try { + return ((string)(this[this.tableOKIB.BinDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinDtmx\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.BinDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string BinDtmxProc { + get { + try { + return ((string)(this[this.tableOKIB.BinDtmxProcColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinDtmxProc\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.BinDtmxProcColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime PaintDate { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB.PaintDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'PaintDate\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.PaintDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime KittingStart { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB.KittingStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingStart\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.KittingStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime KittingEnd { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB.KittingEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingEnd\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.KittingEndColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsItemDtmxNull() { + return this.IsNull(this.tableOKIB.ItemDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetItemDtmxNull() { + this[this.tableOKIB.ItemDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOnCartDateNull() { + return this.IsNull(this.tableOKIB.OnCartDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOnCartDateNull() { + this[this.tableOKIB.OnCartDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBinDtmxNull() { + return this.IsNull(this.tableOKIB.BinDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBinDtmxNull() { + this[this.tableOKIB.BinDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBinDtmxProcNull() { + return this.IsNull(this.tableOKIB.BinDtmxProcColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBinDtmxProcNull() { + this[this.tableOKIB.BinDtmxProcColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsPaintDateNull() { + return this.IsNull(this.tableOKIB.PaintDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetPaintDateNull() { + this[this.tableOKIB.PaintDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsKittingStartNull() { + return this.IsNull(this.tableOKIB.KittingStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetKittingStartNull() { + this[this.tableOKIB.KittingStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsKittingEndNull() { + return this.IsNull(this.tableOKIB.KittingEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetKittingEndNull() { + this[this.tableOKIB.KittingEndColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -19473,6 +20510,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class OKIBRowChangeEvent : global::System.EventArgs { + + private OKIBRow 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 OKIBRowChangeEvent(OKIBRow 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 OKIBRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace AppData.DS_AppTableAdapters { @@ -30376,6 +31447,218 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W } } + /// + ///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 OKIBTableAdapter : 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 OKIBTableAdapter() { + 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 = "OKIB"; + tableMapping.ColumnMappings.Add("ItemID", "ItemID"); + tableMapping.ColumnMappings.Add("ItemDtmx", "ItemDtmx"); + tableMapping.ColumnMappings.Add("ItemExtCode", "ItemExtCode"); + tableMapping.ColumnMappings.Add("ItemDesc", "ItemDesc"); + tableMapping.ColumnMappings.Add("StatusID", "StatusID"); + tableMapping.ColumnMappings.Add("MatID", "MatID"); + tableMapping.ColumnMappings.Add("PostProcList", "PostProcList"); + tableMapping.ColumnMappings.Add("ProcessesReq", "ProcessesReq"); + tableMapping.ColumnMappings.Add("OnCartDate", "OnCartDate"); + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode"); + tableMapping.ColumnMappings.Add("KitQty", "KitQty"); + tableMapping.ColumnMappings.Add("KitID", "KitID"); + tableMapping.ColumnMappings.Add("BatchID", "BatchID"); + tableMapping.ColumnMappings.Add("CartID", "CartID"); + tableMapping.ColumnMappings.Add("KitExtCode", "KitExtCode"); + tableMapping.ColumnMappings.Add("BinID", "BinID"); + tableMapping.ColumnMappings.Add("BinIndex", "BinIndex"); + tableMapping.ColumnMappings.Add("BinDtmx", "BinDtmx"); + tableMapping.ColumnMappings.Add("BinDtmxProc", "BinDtmxProc"); + tableMapping.ColumnMappings.Add("PaintDate", "PaintDate"); + tableMapping.ColumnMappings.Add("KittingStart", "KittingStart"); + tableMapping.ColumnMappings.Add("KittingEnd", "KittingEnd"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::AppData.Properties.Settings.Default.Sauder_NKCConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM v_OKIB"; + 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_OKIB_getByBinDtmxProc"; + 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("@BinDtmxProc", 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.OKIBDataTable 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.OKIBDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.OKIBDataTable dataTable = new DS_App.OKIBDataTable(); + 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.OKIBDataTable getByBinDtmxProc(string BinDtmxProc) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((BinDtmxProc == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(BinDtmxProc)); + } + DS_App.OKIBDataTable dataTable = new DS_App.OKIBDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -30777,15 +32060,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } - 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._kitListTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -30795,6 +32069,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } + 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._finalKitTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.FinalKit.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -30831,15 +32114,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } - if ((this._binListTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._binListTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._countersTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Counters.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -30858,6 +32132,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } + if ((this._binListTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._binListTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._nestingTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -30912,14 +32195,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } - 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._kitListTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -30928,6 +32203,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } + 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._finalKitTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.FinalKit.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -30960,14 +32243,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } - if ((this._binListTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._binListTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._countersTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Counters.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -30984,6 +32259,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } + if ((this._binListTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._binListTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._nestingTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -31058,6 +32341,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } + if ((this._binListTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._binListTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._order2FinalKitTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -31074,14 +32365,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } - if ((this._binListTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._binListTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._itemValidationTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.ItemValidation.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -31114,14 +32397,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } - if ((this._kitListTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._kitListTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._materialsTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -31130,6 +32405,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } + if ((this._kitListTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._kitListTableAdapter.Update(deletedRows)); + 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) diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 9180040..e0f170b 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -2626,6 +2626,56 @@ FROM v_PackListDet + + + + + + SELECT * FROM v_OKIB + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_OKIB_getByBinDtmxProc + + + + + + + + + @@ -3612,6 +3662,89 @@ FROM v_PackListDet + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3729,6 +3862,10 @@ FROM v_PackListDet + + + + diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 2dabdcc..bf12e2c 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,41 +4,42 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + 352 @@ -50,7 +51,7 @@ - + 1197 @@ -62,7 +63,7 @@ - + 1054 @@ -74,7 +75,7 @@ - + 788 @@ -86,7 +87,7 @@ - + 986 @@ -98,7 +99,7 @@ - + 699 @@ -110,7 +111,7 @@ - + 550 @@ -122,7 +123,7 @@ - + 1129 @@ -134,7 +135,7 @@ - + 1380 @@ -146,7 +147,7 @@ - + 1161 @@ -158,7 +159,7 @@ - + 131 @@ -170,7 +171,7 @@ - + 352 diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index 1499ce9..b17cbb4 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -23,6 +23,7 @@ namespace AppData public DS_AppTableAdapters.NestingTableAdapter taNest; public DS_AppTableAdapters.OfflineOrderListTableAdapter taOffOL; public DS_AppTableAdapters.OffOrd2ItemTableAdapter taOO2I; + public DS_AppTableAdapters.OKIBTableAdapter taOKIB; public DS_AppTableAdapters.OrderListTableAdapter taOL; public DS_AppTableAdapters.OtherItemTableAdapter taOtItem; public DS_AppTableAdapters.PackListTableAdapter taPL; @@ -63,6 +64,7 @@ namespace AppData taNest.Connection.ConnectionString = connString; taOffOL.Connection.ConnectionString = connString; taOO2I.Connection.ConnectionString = connString; + taOKIB.Connection.ConnectionString = connString; taOL.Connection.ConnectionString = connString; taOtItem.Connection.ConnectionString = connString; taPL.Connection.ConnectionString = connString; @@ -95,6 +97,7 @@ namespace AppData taNest = new DS_AppTableAdapters.NestingTableAdapter(); taOffOL = new DS_AppTableAdapters.OfflineOrderListTableAdapter(); taOO2I = new DS_AppTableAdapters.OffOrd2ItemTableAdapter(); + taOKIB = new DS_AppTableAdapters.OKIBTableAdapter(); taOL = new DS_AppTableAdapters.OrderListTableAdapter(); taOtItem = new DS_AppTableAdapters.OtherItemTableAdapter(); taPL = new DS_AppTableAdapters.PackListTableAdapter(); diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index 10ecee6..e7346b7 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -2,6 +2,8 @@ using NKC_SDK; using SteamWare; using System; +using System.Data; +using System.Linq; namespace NKC_WF.WebUserControls { @@ -214,7 +216,7 @@ namespace NKC_WF.WebUserControls cmp_barcode.inputAcquired = ""; // aggiorno... doUpdate(); - if(doRaiseEv) + if (doRaiseEv) { raiseEvent(); } @@ -234,15 +236,15 @@ namespace NKC_WF.WebUserControls break; case codeType.Item: cmp_barcode.showOutput("badge badge-success", $"Valid IT Code: {decoData.rawData}"); - processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); + //processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); break; case codeType.ItemGeneric: cmp_barcode.showOutput("badge badge-success", $"Valid IG Code: {decoData.rawData}"); - processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); + //processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); break; case codeType.OtherItem: cmp_barcode.showOutput("badge badge-success", $"Valid Generic PART Code: {decoData.rawData}"); - processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); + //processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); break; case codeType.Material: cmp_barcode.showOutput("badge badge-warning", $"Material - ignored: {decoData.description}"); @@ -266,7 +268,11 @@ namespace NKC_WF.WebUserControls doRaiseEv = true; break; case codeType.Bin: - cmp_barcode.showOutput("badge badge-success", $"Valid BN Code: {decoData.description}"); + cmp_barcode.showOutput("badge badge-warning", $"BIN NOT PAINTED - Ignored: {decoData.description}"); + doRaiseEv = true; + break; + case codeType.BinProcessed: + cmp_barcode.showOutput("badge badge-success", $"Valid BP Code: {decoData.description}"); processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); break; default: @@ -292,42 +298,42 @@ namespace NKC_WF.WebUserControls switch (tipoCod) { case codeType.OtherItem: - lastObject = ""; - var tabOtherItem = DataLayer.man.taOtItem.getByKey(codeInt); - if (tabOtherItem.Count == 1) - { - showOtherItemDetail(true, tabOtherItem[0], false); - } + //lastObject = ""; + //var tabOtherItem = DataLayer.man.taOtItem.getByKey(codeInt); + //if (tabOtherItem.Count == 1) + //{ + // showOtherItemDetail(true, tabOtherItem[0], false); + //} break; case codeType.Item: - lastObject = ""; - tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999); - if (tabItem.Count == 1) - { - showItemDetail(true, tabItem[0], false); - } - else if (tabItem.Count == 0) - { - showItemDetail(false, null, true); - } + //lastObject = ""; + //tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999); + //if (tabItem.Count == 1) + //{ + // showItemDetail(true, tabItem[0], false); + //} + //else if (tabItem.Count == 0) + //{ + // showItemDetail(false, null, true); + //} break; case codeType.ItemGeneric: - lastObject = ""; - // PRIMA CERCSE ne ho in stato 1..3 - tabItem = DataLayer.man.taIL.getBySearch(0, rawData, 1, 3); - if (tabItem.Count == 0) - { - // se NON ne trovo cerci FINO a stato 5... - tabItem = DataLayer.man.taIL.getBySearch(0, rawData, 1, 5); - } - if (tabItem.Count == 1) - { - showItemDetail(true, tabItem[0], false); - } - else if (tabItem.Count == 0) - { - showItemDetail(false, null, true); - } + //lastObject = ""; + //// PRIMA CERCSE ne ho in stato 1..3 + //tabItem = DataLayer.man.taIL.getBySearch(0, rawData, 1, 3); + //if (tabItem.Count == 0) + //{ + // // se NON ne trovo cerci FINO a stato 5... + // tabItem = DataLayer.man.taIL.getBySearch(0, rawData, 1, 5); + //} + //if (tabItem.Count == 1) + //{ + // showItemDetail(true, tabItem[0], false); + //} + //else if (tabItem.Count == 0) + //{ + // showItemDetail(false, null, true); + //} break; case codeType.Cart: // primo step: verifico dal codice CART l'ordine da cui deriva... @@ -392,36 +398,39 @@ namespace NKC_WF.WebUserControls } } - -#if false - - // verifico NON SIA richiesto PAINT - if (showBin) + break; + case codeType.BinProcessed: + lastObject = ""; + // recupero la tab OKIB x iniziare a controllare i dati... + var tabOKIB = DataLayer.man.taOKIB.getByBinDtmxProc(rawData); + // PRIMO: verifico SE ho delle righe valide... + if (tabOKIB.Count == 0) { - displError("PAINT: BIN REQUESTED: please retry", true); + displError($"BIN: Code not found {rawData}, please retry", true); } else { - if (currCartTab.Count == 1) + var listPainted = tabOKIB.Where(x => !x.IsPaintDateNull()).ToList(); + if (listPainted.Count == 0) { - // controllo se sia quello corretto - if (rawData != currCartTab[0].CartDtmx) + displError($"BIN: Paint Date missing for item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}, please retry", true); + } + else + { + var listAvailable = tabOKIB.Where(x => !x.IsPaintDateNull() && x.IsOnCartDateNull()).ToList(); + if(listAvailable.Count==0) { - displError("INCORRECT CART: please retry", true); + displError($"BIN: No item available for pickup on target CART for code {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}, please retry", true); } else { - // dichiaro che è depositato - DataLayer.man.taIL.updateStatus(itemIdSelected, 3, PlaceId); - lblDestination.Text = $"Item {itemIdSelected} PUT IN CART {rawData}"; - resetSelection(false); + // mostro info: cart di destinazione, num item richiesti.... + + // eventualmente secondo step --> mostro buttons 1...N (dichiaro 1 o tutti sul CART) } } - } -#endif - break; - case codeType.Bin: - lastObject = ""; + } +#if false // verifico NON SIA richiesto PAINT if (showCart) { @@ -444,7 +453,8 @@ namespace NKC_WF.WebUserControls resetSelection(false); } } - } + } +#endif break; default: lastObject = "";