From b43a5184baa1fbd8bc8e4e78940c04a5029bee7b Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 21 Jul 2020 19:53:04 +0200 Subject: [PATCH 1/5] 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 = ""; From ae49a8a6eaf016c2cf49faf50171bafb1b967430 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 22 Jul 2020 17:32:01 +0200 Subject: [PATCH 2/5] Avanzamento pagina smart scarico KIT --- AppData/DS_App.Designer.cs | 1567 ++++++++++++++++- AppData/DS_App.xsd | 246 ++- AppData/DS_App.xss | 89 +- AppData/DataLayer.cs | 3 + NKC_WF/NKC_WF.csproj | 8 + NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx | 38 + NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs | 30 + .../cmp_KS_OkibBin.ascx.designer.cs | 44 + NKC_WF/WebUserControls/cmp_kittingSmart.ascx | 143 +- .../WebUserControls/cmp_kittingSmart.ascx.cs | 93 +- .../cmp_kittingSmart.ascx.designer.cs | 9 + 11 files changed, 2001 insertions(+), 269 deletions(-) create mode 100644 NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx create mode 100644 NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 42451fa..94fb439 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -86,6 +86,8 @@ namespace AppData { private OKIBDataTable tableOKIB; + private OKIB_BinDataTable tableOKIB_Bin; + private global::System.Data.DataRelation relationFK_BatchReqList_OrderList; private global::System.Data.DataRelation relationFK_ItemList_Materials1; @@ -231,6 +233,9 @@ namespace AppData { if ((ds.Tables["OKIB"] != null)) { base.Tables.Add(new OKIBDataTable(ds.Tables["OKIB"])); } + if ((ds.Tables["OKIB_Bin"] != null)) { + base.Tables.Add(new OKIB_BinDataTable(ds.Tables["OKIB_Bin"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -559,6 +564,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 OKIB_BinDataTable OKIB_Bin { + get { + return this.tableOKIB_Bin; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -719,6 +734,9 @@ namespace AppData { if ((ds.Tables["OKIB"] != null)) { base.Tables.Add(new OKIBDataTable(ds.Tables["OKIB"])); } + if ((ds.Tables["OKIB_Bin"] != null)) { + base.Tables.Add(new OKIB_BinDataTable(ds.Tables["OKIB_Bin"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -938,6 +956,12 @@ namespace AppData { this.tableOKIB.InitVars(); } } + this.tableOKIB_Bin = ((OKIB_BinDataTable)(base.Tables["OKIB_Bin"])); + if ((initTable == true)) { + if ((this.tableOKIB_Bin != null)) { + this.tableOKIB_Bin.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"]; @@ -1022,6 +1046,8 @@ namespace AppData { base.Tables.Add(this.tablePackCheck); this.tableOKIB = new OKIBDataTable(); base.Tables.Add(this.tableOKIB); + this.tableOKIB_Bin = new OKIB_BinDataTable(); + base.Tables.Add(this.tableOKIB_Bin); 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); @@ -1258,6 +1284,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_Bin() { + 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) { @@ -1406,6 +1438,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void OKIBRowChangeEventHandler(object sender, OKIBRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void OKIB_BinRowChangeEventHandler(object sender, OKIB_BinRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -13092,6 +13127,14 @@ namespace AppData { private global::System.Data.DataColumn columnCartID; + private global::System.Data.DataColumn columnCartDtmx; + + private global::System.Data.DataColumn columnCartIndex; + + private global::System.Data.DataColumn columnCartKitStart; + + private global::System.Data.DataColumn columnCartKitEnd; + private global::System.Data.DataColumn columnKitExtCode; private global::System.Data.DataColumn columnBinID; @@ -13104,9 +13147,9 @@ namespace AppData { private global::System.Data.DataColumn columnPaintDate; - private global::System.Data.DataColumn columnKittingStart; + private global::System.Data.DataColumn columnBinKitStart; - private global::System.Data.DataColumn columnKittingEnd; + private global::System.Data.DataColumn columnBinKitEnd; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] @@ -13261,6 +13304,38 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CartDtmxColumn { + get { + return this.columnCartDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CartIndexColumn { + get { + return this.columnCartIndex; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CartKitStartColumn { + get { + return this.columnCartKitStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CartKitEndColumn { + get { + return this.columnCartKitEnd; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn KitExtCodeColumn { @@ -13311,17 +13386,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 KittingStartColumn { + public global::System.Data.DataColumn BinKitStartColumn { get { - return this.columnKittingStart; + return this.columnBinKitStart; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn KittingEndColumn { + public global::System.Data.DataColumn BinKitEndColumn { get { - return this.columnKittingEnd; + return this.columnBinKitEnd; } } @@ -13378,14 +13453,18 @@ namespace AppData { int KitID, int BatchID, int CartID, + string CartDtmx, + int CartIndex, + System.DateTime CartKitStart, + System.DateTime CartKitEnd, string KitExtCode, int BinID, int BinIndex, string BinDtmx, string BinDtmxProc, System.DateTime PaintDate, - System.DateTime KittingStart, - System.DateTime KittingEnd) { + System.DateTime BinKitStart, + System.DateTime BinKitEnd) { OKIBRow rowOKIBRow = ((OKIBRow)(this.NewRow())); object[] columnValuesArray = new object[] { ItemID, @@ -13403,14 +13482,18 @@ namespace AppData { KitID, BatchID, CartID, + CartDtmx, + CartIndex, + CartKitStart, + CartKitEnd, KitExtCode, BinID, BinIndex, BinDtmx, BinDtmxProc, PaintDate, - KittingStart, - KittingEnd}; + BinKitStart, + BinKitEnd}; rowOKIBRow.ItemArray = columnValuesArray; this.Rows.Add(rowOKIBRow); return rowOKIBRow; @@ -13455,14 +13538,18 @@ namespace AppData { this.columnKitID = base.Columns["KitID"]; this.columnBatchID = base.Columns["BatchID"]; this.columnCartID = base.Columns["CartID"]; + this.columnCartDtmx = base.Columns["CartDtmx"]; + this.columnCartIndex = base.Columns["CartIndex"]; + this.columnCartKitStart = base.Columns["CartKitStart"]; + this.columnCartKitEnd = base.Columns["CartKitEnd"]; 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"]; + this.columnBinKitStart = base.Columns["BinKitStart"]; + this.columnBinKitEnd = base.Columns["BinKitEnd"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -13498,6 +13585,14 @@ namespace AppData { 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.columnCartDtmx = new global::System.Data.DataColumn("CartDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartDtmx); + this.columnCartIndex = new global::System.Data.DataColumn("CartIndex", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartIndex); + this.columnCartKitStart = new global::System.Data.DataColumn("CartKitStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartKitStart); + this.columnCartKitEnd = new global::System.Data.DataColumn("CartKitEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartKitEnd); 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); @@ -13510,10 +13605,10 @@ namespace AppData { 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.columnBinKitStart = new global::System.Data.DataColumn("BinKitStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinKitStart); + this.columnBinKitEnd = new global::System.Data.DataColumn("BinKitEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinKitEnd); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnItemID}, true)); this.columnItemID.AllowDBNull = false; @@ -13536,6 +13631,9 @@ namespace AppData { this.columnKitID.AllowDBNull = false; this.columnBatchID.AllowDBNull = false; this.columnCartID.AllowDBNull = false; + this.columnCartDtmx.ReadOnly = true; + this.columnCartDtmx.MaxLength = 10; + this.columnCartIndex.AllowDBNull = false; this.columnKitExtCode.AllowDBNull = false; this.columnKitExtCode.MaxLength = 250; this.columnBinID.AllowDBNull = false; @@ -13670,6 +13768,584 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class OKIB_BinDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnBinID; + + private global::System.Data.DataColumn columnCartID; + + 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 columnBinKitStart; + + private global::System.Data.DataColumn columnBinKitEnd; + + private global::System.Data.DataColumn columnNumItems; + + private global::System.Data.DataColumn columnNumPicked; + + private global::System.Data.DataColumn columnItemExtCode; + + private global::System.Data.DataColumn columnItemDesc; + + 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 columnBatchID; + + private global::System.Data.DataColumn columnCartDtmx; + + private global::System.Data.DataColumn columnCartIndex; + + private global::System.Data.DataColumn columnCartKitStart; + + private global::System.Data.DataColumn columnCartKitEnd; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIB_BinDataTable() { + this.TableName = "OKIB_Bin"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKIB_BinDataTable(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 OKIB_BinDataTable(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 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 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 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 BinKitStartColumn { + get { + return this.columnBinKitStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BinKitEndColumn { + get { + return this.columnBinKitEnd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumItemsColumn { + get { + return this.columnNumItems; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumPickedColumn { + get { + return this.columnNumPicked; + } + } + + [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 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 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 CartDtmxColumn { + get { + return this.columnCartDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CartIndexColumn { + get { + return this.columnCartIndex; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CartKitStartColumn { + get { + return this.columnCartKitStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CartKitEndColumn { + get { + return this.columnCartKitEnd; + } + } + + [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 OKIB_BinRow this[int index] { + get { + return ((OKIB_BinRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIB_BinRowChangeEventHandler OKIB_BinRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIB_BinRowChangeEventHandler OKIB_BinRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIB_BinRowChangeEventHandler OKIB_BinRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKIB_BinRowChangeEventHandler OKIB_BinRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddOKIB_BinRow(OKIB_BinRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIB_BinRow AddOKIB_BinRow( + int BinID, + int CartID, + int BinIndex, + string BinDtmx, + string BinDtmxProc, + System.DateTime PaintDate, + System.DateTime BinKitStart, + System.DateTime BinKitEnd, + int NumItems, + int NumPicked, + string ItemExtCode, + string ItemDesc, + System.DateTime OnCartDate, + int OrdID, + string OrderExtCode, + int KitQty, + int BatchID, + string CartDtmx, + int CartIndex, + System.DateTime CartKitStart, + System.DateTime CartKitEnd) { + OKIB_BinRow rowOKIB_BinRow = ((OKIB_BinRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + BinID, + CartID, + BinIndex, + BinDtmx, + BinDtmxProc, + PaintDate, + BinKitStart, + BinKitEnd, + NumItems, + NumPicked, + ItemExtCode, + ItemDesc, + OnCartDate, + OrdID, + OrderExtCode, + KitQty, + BatchID, + CartDtmx, + CartIndex, + CartKitStart, + CartKitEnd}; + rowOKIB_BinRow.ItemArray = columnValuesArray; + this.Rows.Add(rowOKIB_BinRow); + return rowOKIB_BinRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIB_BinRow FindByBinIDCartID(int BinID, int CartID) { + return ((OKIB_BinRow)(this.Rows.Find(new object[] { + BinID, + CartID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + OKIB_BinDataTable cln = ((OKIB_BinDataTable)(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 OKIB_BinDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnBinID = base.Columns["BinID"]; + this.columnCartID = base.Columns["CartID"]; + this.columnBinIndex = base.Columns["BinIndex"]; + this.columnBinDtmx = base.Columns["BinDtmx"]; + this.columnBinDtmxProc = base.Columns["BinDtmxProc"]; + this.columnPaintDate = base.Columns["PaintDate"]; + this.columnBinKitStart = base.Columns["BinKitStart"]; + this.columnBinKitEnd = base.Columns["BinKitEnd"]; + this.columnNumItems = base.Columns["NumItems"]; + this.columnNumPicked = base.Columns["NumPicked"]; + this.columnItemExtCode = base.Columns["ItemExtCode"]; + this.columnItemDesc = base.Columns["ItemDesc"]; + this.columnOnCartDate = base.Columns["OnCartDate"]; + this.columnOrdID = base.Columns["OrdID"]; + this.columnOrderExtCode = base.Columns["OrderExtCode"]; + this.columnKitQty = base.Columns["KitQty"]; + this.columnBatchID = base.Columns["BatchID"]; + this.columnCartDtmx = base.Columns["CartDtmx"]; + this.columnCartIndex = base.Columns["CartIndex"]; + this.columnCartKitStart = base.Columns["CartKitStart"]; + this.columnCartKitEnd = base.Columns["CartKitEnd"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnBinID = new global::System.Data.DataColumn("BinID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinID); + this.columnCartID = new global::System.Data.DataColumn("CartID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartID); + 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.columnBinKitStart = new global::System.Data.DataColumn("BinKitStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinKitStart); + this.columnBinKitEnd = new global::System.Data.DataColumn("BinKitEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBinKitEnd); + this.columnNumItems = new global::System.Data.DataColumn("NumItems", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumItems); + this.columnNumPicked = new global::System.Data.DataColumn("NumPicked", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumPicked); + 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.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.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBatchID); + this.columnCartDtmx = new global::System.Data.DataColumn("CartDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartDtmx); + this.columnCartIndex = new global::System.Data.DataColumn("CartIndex", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartIndex); + this.columnCartKitStart = new global::System.Data.DataColumn("CartKitStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartKitStart); + this.columnCartKitEnd = new global::System.Data.DataColumn("CartKitEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartKitEnd); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnBinID, + this.columnCartID}, true)); + this.columnBinID.AllowDBNull = false; + this.columnCartID.AllowDBNull = false; + this.columnBinIndex.AllowDBNull = false; + this.columnBinDtmx.ReadOnly = true; + this.columnBinDtmx.MaxLength = 10; + this.columnBinDtmxProc.ReadOnly = true; + this.columnBinDtmxProc.MaxLength = 10; + this.columnItemExtCode.AllowDBNull = false; + this.columnItemExtCode.MaxLength = 250; + this.columnItemDesc.AllowDBNull = false; + this.columnItemDesc.MaxLength = 500; + this.columnOrdID.AllowDBNull = false; + this.columnOrderExtCode.AllowDBNull = false; + this.columnOrderExtCode.MaxLength = 250; + this.columnKitQty.AllowDBNull = false; + this.columnBatchID.AllowDBNull = false; + this.columnCartDtmx.ReadOnly = true; + this.columnCartDtmx.MaxLength = 10; + this.columnCartIndex.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKIB_BinRow NewOKIB_BinRow() { + return ((OKIB_BinRow)(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 OKIB_BinRow(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(OKIB_BinRow); + } + + [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.OKIB_BinRowChanged != null)) { + this.OKIB_BinRowChanged(this, new OKIB_BinRowChangeEvent(((OKIB_BinRow)(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.OKIB_BinRowChanging != null)) { + this.OKIB_BinRowChanging(this, new OKIB_BinRowChangeEvent(((OKIB_BinRow)(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.OKIB_BinRowDeleted != null)) { + this.OKIB_BinRowDeleted(this, new OKIB_BinRowChangeEvent(((OKIB_BinRow)(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.OKIB_BinRowDeleting != null)) { + this.OKIB_BinRowDeleting(this, new OKIB_BinRowChangeEvent(((OKIB_BinRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveOKIB_BinRow(OKIB_BinRow 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 = "OKIB_BinDataTable"; + 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. /// @@ -19293,6 +19969,65 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CartDtmx { + get { + try { + return ((string)(this[this.tableOKIB.CartDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartDtmx\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.CartDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int CartIndex { + get { + return ((int)(this[this.tableOKIB.CartIndexColumn])); + } + set { + this[this.tableOKIB.CartIndexColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime CartKitStart { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB.CartKitStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitStart\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.CartKitStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime CartKitEnd { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB.CartKitEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitEnd\' nella tabella \'OKIB\' è DBNull.", e); + } + } + set { + this[this.tableOKIB.CartKitEndColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public string KitExtCode { @@ -19376,33 +20111,33 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime KittingStart { + public System.DateTime BinKitStart { get { try { - return ((global::System.DateTime)(this[this.tableOKIB.KittingStartColumn])); + return ((global::System.DateTime)(this[this.tableOKIB.BinKitStartColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingStart\' nella tabella \'OKIB\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinKitStart\' nella tabella \'OKIB\' è DBNull.", e); } } set { - this[this.tableOKIB.KittingStartColumn] = value; + this[this.tableOKIB.BinKitStartColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime KittingEnd { + public System.DateTime BinKitEnd { get { try { - return ((global::System.DateTime)(this[this.tableOKIB.KittingEndColumn])); + return ((global::System.DateTime)(this[this.tableOKIB.BinKitEndColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingEnd\' nella tabella \'OKIB\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinKitEnd\' nella tabella \'OKIB\' è DBNull.", e); } } set { - this[this.tableOKIB.KittingEndColumn] = value; + this[this.tableOKIB.BinKitEndColumn] = value; } } @@ -19430,6 +20165,42 @@ namespace AppData { 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 IsCartDtmxNull() { + return this.IsNull(this.tableOKIB.CartDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartDtmxNull() { + this[this.tableOKIB.CartDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCartKitStartNull() { + return this.IsNull(this.tableOKIB.CartKitStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitStartNull() { + this[this.tableOKIB.CartKitStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCartKitEndNull() { + return this.IsNull(this.tableOKIB.CartKitEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitEndNull() { + this[this.tableOKIB.CartKitEndColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsBinDtmxNull() { @@ -19468,26 +20239,459 @@ namespace AppData { [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); + public bool IsBinKitStartNull() { + return this.IsNull(this.tableOKIB.BinKitStartColumn); } [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; + public void SetBinKitStartNull() { + this[this.tableOKIB.BinKitStartColumn] = 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); + public bool IsBinKitEndNull() { + return this.IsNull(this.tableOKIB.BinKitEndColumn); } [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; + public void SetBinKitEndNull() { + this[this.tableOKIB.BinKitEndColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class OKIB_BinRow : global::System.Data.DataRow { + + private OKIB_BinDataTable tableOKIB_Bin; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKIB_BinRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableOKIB_Bin = ((OKIB_BinDataTable)(this.Table)); + } + + [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_Bin.BinIDColumn])); + } + set { + this[this.tableOKIB_Bin.BinIDColumn] = 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_Bin.CartIDColumn])); + } + set { + this[this.tableOKIB_Bin.CartIDColumn] = 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_Bin.BinIndexColumn])); + } + set { + this[this.tableOKIB_Bin.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_Bin.BinDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinDtmx\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.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_Bin.BinDtmxProcColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinDtmxProc\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.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_Bin.PaintDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'PaintDate\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.PaintDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime BinKitStart { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB_Bin.BinKitStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinKitStart\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.BinKitStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime BinKitEnd { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB_Bin.BinKitEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BinKitEnd\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.BinKitEndColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumItems { + get { + try { + return ((int)(this[this.tableOKIB_Bin.NumItemsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumItems\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.NumItemsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumPicked { + get { + try { + return ((int)(this[this.tableOKIB_Bin.NumPickedColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumPicked\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.NumPickedColumn] = 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_Bin.ItemExtCodeColumn])); + } + set { + this[this.tableOKIB_Bin.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_Bin.ItemDescColumn])); + } + set { + this[this.tableOKIB_Bin.ItemDescColumn] = 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_Bin.OnCartDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OnCartDate\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.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_Bin.OrdIDColumn])); + } + set { + this[this.tableOKIB_Bin.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_Bin.OrderExtCodeColumn])); + } + set { + this[this.tableOKIB_Bin.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_Bin.KitQtyColumn])); + } + set { + this[this.tableOKIB_Bin.KitQtyColumn] = 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_Bin.BatchIDColumn])); + } + set { + this[this.tableOKIB_Bin.BatchIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CartDtmx { + get { + try { + return ((string)(this[this.tableOKIB_Bin.CartDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartDtmx\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.CartDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int CartIndex { + get { + return ((int)(this[this.tableOKIB_Bin.CartIndexColumn])); + } + set { + this[this.tableOKIB_Bin.CartIndexColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime CartKitStart { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB_Bin.CartKitStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitStart\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.CartKitStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime CartKitEnd { + get { + try { + return ((global::System.DateTime)(this[this.tableOKIB_Bin.CartKitEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitEnd\' nella tabella \'OKIB_Bin\' è DBNull.", e); + } + } + set { + this[this.tableOKIB_Bin.CartKitEndColumn] = value; + } + } + + [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_Bin.BinDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBinDtmxNull() { + this[this.tableOKIB_Bin.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_Bin.BinDtmxProcColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBinDtmxProcNull() { + this[this.tableOKIB_Bin.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_Bin.PaintDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetPaintDateNull() { + this[this.tableOKIB_Bin.PaintDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBinKitStartNull() { + return this.IsNull(this.tableOKIB_Bin.BinKitStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBinKitStartNull() { + this[this.tableOKIB_Bin.BinKitStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBinKitEndNull() { + return this.IsNull(this.tableOKIB_Bin.BinKitEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBinKitEndNull() { + this[this.tableOKIB_Bin.BinKitEndColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumItemsNull() { + return this.IsNull(this.tableOKIB_Bin.NumItemsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumItemsNull() { + this[this.tableOKIB_Bin.NumItemsColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumPickedNull() { + return this.IsNull(this.tableOKIB_Bin.NumPickedColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumPickedNull() { + this[this.tableOKIB_Bin.NumPickedColumn] = 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_Bin.OnCartDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOnCartDateNull() { + this[this.tableOKIB_Bin.OnCartDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCartDtmxNull() { + return this.IsNull(this.tableOKIB_Bin.CartDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartDtmxNull() { + this[this.tableOKIB_Bin.CartDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCartKitStartNull() { + return this.IsNull(this.tableOKIB_Bin.CartKitStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitStartNull() { + this[this.tableOKIB_Bin.CartKitStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCartKitEndNull() { + return this.IsNull(this.tableOKIB_Bin.CartKitEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitEndNull() { + this[this.tableOKIB_Bin.CartKitEndColumn] = global::System.Convert.DBNull; } } @@ -20544,6 +21748,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class OKIB_BinRowChangeEvent : global::System.EventArgs { + + private OKIB_BinRow 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 OKIB_BinRowChangeEvent(OKIB_BinRow 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 OKIB_BinRow 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 { @@ -25194,7 +26432,7 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat [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[7]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT * FROM v_BinDetail"; @@ -25234,11 +26472,19 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6].Connection = this.Connection; - this._commandCollection[6].CommandText = "dbo.stp_BIN_updatePainted"; + this._commandCollection[6].CommandText = "dbo.stp_BIN_updateKitting"; this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaintDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RecStart", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RecEnd", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[7].Connection = this.Connection; + this._commandCollection[7].CommandText = "dbo.stp_BIN_updatePainted"; + this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaintDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -25372,7 +26618,7 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat [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.BinsDataTable updatePainted(global::System.Nullable Original_BinID, global::System.Nullable PaintDate) { + public virtual DS_App.BinsDataTable updateKitting(global::System.Nullable Original_BinID, global::System.Nullable RecStart, global::System.Nullable RecEnd) { this.Adapter.SelectCommand = this.CommandCollection[6]; if ((Original_BinID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Original_BinID.Value)); @@ -25380,6 +26626,35 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } + if ((RecStart.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((bool)(RecStart.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((RecEnd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((bool)(RecEnd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_App.BinsDataTable dataTable = new DS_App.BinsDataTable(); + 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.BinsDataTable updatePainted(global::System.Nullable Original_BinID, global::System.Nullable PaintDate) { + this.Adapter.SelectCommand = this.CommandCollection[7]; + if ((Original_BinID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Original_BinID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } if ((PaintDate.HasValue == true)) { this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(PaintDate.Value)); } @@ -31583,14 +32858,18 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W tableMapping.ColumnMappings.Add("KitID", "KitID"); tableMapping.ColumnMappings.Add("BatchID", "BatchID"); tableMapping.ColumnMappings.Add("CartID", "CartID"); + tableMapping.ColumnMappings.Add("CartDtmx", "CartDtmx"); + tableMapping.ColumnMappings.Add("CartIndex", "CartIndex"); + tableMapping.ColumnMappings.Add("CartKitStart", "CartKitStart"); + tableMapping.ColumnMappings.Add("CartKitEnd", "CartKitEnd"); 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"); + tableMapping.ColumnMappings.Add("BinKitStart", "BinKitStart"); + tableMapping.ColumnMappings.Add("BinKitEnd", "BinKitEnd"); this._adapter.TableMappings.Add(tableMapping); } @@ -31607,7 +32886,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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].CommandText = "SELECT *\r\nFROM 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; @@ -31659,6 +32938,216 @@ 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 OKIB_BinTableAdapter : 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 OKIB_BinTableAdapter() { + 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_Bin"; + tableMapping.ColumnMappings.Add("BinID", "BinID"); + tableMapping.ColumnMappings.Add("CartID", "CartID"); + tableMapping.ColumnMappings.Add("BinIndex", "BinIndex"); + tableMapping.ColumnMappings.Add("BinDtmx", "BinDtmx"); + tableMapping.ColumnMappings.Add("BinDtmxProc", "BinDtmxProc"); + tableMapping.ColumnMappings.Add("PaintDate", "PaintDate"); + tableMapping.ColumnMappings.Add("BinKitStart", "BinKitStart"); + tableMapping.ColumnMappings.Add("BinKitEnd", "BinKitEnd"); + tableMapping.ColumnMappings.Add("NumItems", "NumItems"); + tableMapping.ColumnMappings.Add("NumPicked", "NumPicked"); + tableMapping.ColumnMappings.Add("ItemExtCode", "ItemExtCode"); + tableMapping.ColumnMappings.Add("ItemDesc", "ItemDesc"); + tableMapping.ColumnMappings.Add("OnCartDate", "OnCartDate"); + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode"); + tableMapping.ColumnMappings.Add("KitQty", "KitQty"); + tableMapping.ColumnMappings.Add("BatchID", "BatchID"); + tableMapping.ColumnMappings.Add("CartDtmx", "CartDtmx"); + tableMapping.ColumnMappings.Add("CartIndex", "CartIndex"); + tableMapping.ColumnMappings.Add("CartKitStart", "CartKitStart"); + tableMapping.ColumnMappings.Add("CartKitEnd", "CartKitEnd"); + 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_BinSum"; + 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_Bin_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.OKIB_BinDataTable 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.OKIB_BinDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.OKIB_BinDataTable dataTable = new DS_App.OKIB_BinDataTable(); + 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.OKIB_BinDataTable 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.OKIB_BinDataTable dataTable = new DS_App.OKIB_BinDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index e0f170b..d22c487 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -1252,6 +1252,19 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat + + + + dbo.stp_BIN_updateKitting + + + + + + + + + @@ -2354,7 +2367,7 @@ FROM v_CartKitDetail - + dbo.stp_PL_DeleteAll @@ -2365,7 +2378,7 @@ FROM v_CartKitDetail - + dbo.stp_PL_fixSched @@ -2405,7 +2418,7 @@ FROM v_CartKitDetail - + dbo.stp_PL_updateSchedPrior @@ -2631,7 +2644,8 @@ FROM v_PackListDet - SELECT * FROM v_OKIB + SELECT * +FROM v_OKIB @@ -2653,14 +2667,18 @@ FROM v_PackListDet + + + + - - + + @@ -2676,6 +2694,54 @@ FROM v_PackListDet + + + + + + select * from v_OKIB_BinSum + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_OKIB_Bin_getByBinDtmxProc + + + + + + + + + @@ -2684,7 +2750,7 @@ FROM v_PackListDet - + @@ -2734,7 +2800,7 @@ FROM v_PackListDet - + @@ -2759,7 +2825,7 @@ FROM v_PackListDet - + @@ -2814,7 +2880,7 @@ FROM v_PackListDet - + @@ -2887,7 +2953,7 @@ FROM v_PackListDet - + @@ -2895,7 +2961,7 @@ FROM v_PackListDet - + @@ -2964,7 +3030,7 @@ FROM v_PackListDet - + @@ -2997,7 +3063,7 @@ FROM v_PackListDet - + @@ -3038,7 +3104,7 @@ FROM v_PackListDet - + @@ -3057,7 +3123,7 @@ FROM v_PackListDet - + @@ -3081,7 +3147,7 @@ FROM v_PackListDet - + @@ -3089,7 +3155,7 @@ FROM v_PackListDet - + @@ -3106,7 +3172,7 @@ FROM v_PackListDet - + @@ -3115,7 +3181,7 @@ FROM v_PackListDet - + @@ -3146,7 +3212,7 @@ FROM v_PackListDet - + @@ -3154,7 +3220,7 @@ FROM v_PackListDet - + @@ -3170,7 +3236,7 @@ FROM v_PackListDet - + @@ -3178,7 +3244,7 @@ FROM v_PackListDet - + @@ -3206,7 +3272,7 @@ FROM v_PackListDet - + @@ -3242,7 +3308,7 @@ FROM v_PackListDet - + @@ -3258,7 +3324,7 @@ FROM v_PackListDet - + @@ -3268,7 +3334,7 @@ FROM v_PackListDet - + @@ -3285,7 +3351,7 @@ FROM v_PackListDet - + @@ -3298,7 +3364,7 @@ FROM v_PackListDet - + @@ -3348,7 +3414,7 @@ FROM v_PackListDet - + @@ -3376,7 +3442,7 @@ FROM v_PackListDet - + @@ -3418,7 +3484,7 @@ FROM v_PackListDet - + @@ -3527,7 +3593,7 @@ FROM v_PackListDet - + @@ -3590,7 +3656,7 @@ FROM v_PackListDet - + @@ -3635,7 +3701,7 @@ FROM v_PackListDet - + @@ -3662,7 +3728,7 @@ FROM v_PackListDet - + @@ -3716,6 +3782,16 @@ FROM v_PackListDet + + + + + + + + + + @@ -3740,8 +3816,71 @@ FROM v_PackListDet - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3866,21 +4005,26 @@ FROM v_PackListDet + + + + + - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index bf12e2c..11736ef 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,42 +4,43 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + 352 @@ -51,7 +52,7 @@ - + 1197 @@ -63,7 +64,7 @@ - + 1054 @@ -75,7 +76,7 @@ - + 788 @@ -87,7 +88,7 @@ - + 986 @@ -99,7 +100,7 @@ - + 699 @@ -111,7 +112,7 @@ - + 550 @@ -123,7 +124,7 @@ - + 1129 @@ -135,7 +136,7 @@ - + 1380 @@ -147,7 +148,7 @@ - + 1161 @@ -159,7 +160,7 @@ - + 131 @@ -171,7 +172,7 @@ - + 352 diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index b17cbb4..c7bde5a 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -24,6 +24,7 @@ namespace AppData public DS_AppTableAdapters.OfflineOrderListTableAdapter taOffOL; public DS_AppTableAdapters.OffOrd2ItemTableAdapter taOO2I; public DS_AppTableAdapters.OKIBTableAdapter taOKIB; + public DS_AppTableAdapters.OKIB_BinTableAdapter taOKIB_Bin; public DS_AppTableAdapters.OrderListTableAdapter taOL; public DS_AppTableAdapters.OtherItemTableAdapter taOtItem; public DS_AppTableAdapters.PackListTableAdapter taPL; @@ -65,6 +66,7 @@ namespace AppData taOffOL.Connection.ConnectionString = connString; taOO2I.Connection.ConnectionString = connString; taOKIB.Connection.ConnectionString = connString; + taOKIB_Bin.Connection.ConnectionString = connString; taOL.Connection.ConnectionString = connString; taOtItem.Connection.ConnectionString = connString; taPL.Connection.ConnectionString = connString; @@ -98,6 +100,7 @@ namespace AppData taOffOL = new DS_AppTableAdapters.OfflineOrderListTableAdapter(); taOO2I = new DS_AppTableAdapters.OffOrd2ItemTableAdapter(); taOKIB = new DS_AppTableAdapters.OKIBTableAdapter(); + taOKIB_Bin = new DS_AppTableAdapters.OKIB_BinTableAdapter(); taOL = new DS_AppTableAdapters.OrderListTableAdapter(); taOtItem = new DS_AppTableAdapters.OtherItemTableAdapter(); taPL = new DS_AppTableAdapters.PackListTableAdapter(); diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index b501f35..a3bd501 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -398,6 +398,7 @@ + @@ -950,6 +951,13 @@ cmp_kittingSmart.ascx + + cmp_KS_OkibBin.ascx + ASPXCodeBehind + + + cmp_KS_OkibBin.ascx + cmp_login.ascx ASPXCodeBehind diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx new file mode 100644 index 0000000..dfa96b6 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx @@ -0,0 +1,38 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_OkibBin.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_OkibBin" %> + + + + +
+ + +
+ +
+
+ + +
+
+ +
+
+ Picked: + +
+
+ Total: + +
+
+
+
+ <%----%> +
+
+ + + + + + diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs new file mode 100644 index 0000000..e542b86 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF.WebUserControls +{ + public partial class cmp_KS_OkibBin : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + public string BPDtmx + { + get + { + return hfBPDtmx.Value; + } + set + { + hfBPDtmx.Value = value.Trim(); + grView.DataBind(); + } + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs new file mode 100644 index 0000000..3dba86a --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs @@ -0,0 +1,44 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.WebUserControls +{ + + + public partial class cmp_KS_OkibBin + { + + /// + /// Controllo grView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// Controllo hfBPDtmx. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfBPDtmx; + } +} diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx index 2f61419..98c0661 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx @@ -1,77 +1,82 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_kittingSmart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_kittingSmart" %> <%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %> +<%@ Register Src="~/WebUserControls/cmp_KS_OkibBin.ascx" TagPrefix="uc1" TagName="cmp_KS_OkibBin" %> +
- - - -
-

<%: traduci("KittingSmart") %>

-
-
-
- - - - - - - -
-
-
- -
-
- - -
-
- -
-
- -
+ + + +
+

<%: traduci("KittingSmart") %>

+
+
+
+ + + + + + + +
+
+
+ +
+
+ + +
+
+ +
+
+ +
+
+
+
+
+ +
+
+
+
+ +
+
+ +
+
+
CART
+
+
+
BIN
+
+
+
SEC OP
+
+
+
+
+ <%: traduci("cancel") %> +
+
+ +
+
+ +
+
+ <%: traduci("scrapped") %> + <%: traduci("toPark") %> +
+
+ <%: traduci("ResetSel") %> +
-
-
-
- -
-
-
- -
-
-
CART
-
-
-
BIN
-
-
-
SEC OP
-
-
-
-
- <%: traduci("cancel") %> -
-
- -
-
- -
-
- <%: traduci("scrapped") %> - <%: traduci("toPark") %> -
-
- <%: traduci("ResetSel") %> -
-
-
-
\ No newline at end of file +
diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index e7346b7..43da1b6 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -297,44 +297,6 @@ namespace NKC_WF.WebUserControls // processo suggerimenti x ITEM / cart / bin dato suo RawData (Dtmx) e Cod univoco (intero) switch (tipoCod) { - case codeType.OtherItem: - //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); - //} - 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); - //} - break; case codeType.Cart: // primo step: verifico dal codice CART l'ordine da cui deriva... var tabOrdini = DataLayer.man.taOL.getByCart(rawData); @@ -418,43 +380,41 @@ namespace NKC_WF.WebUserControls else { var listAvailable = tabOKIB.Where(x => !x.IsPaintDateNull() && x.IsOnCartDateNull()).ToList(); - if(listAvailable.Count==0) + if (listAvailable.Count == 0) { 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 { - // mostro info: cart di destinazione, num item richiesti.... + // verifico SE ci sia ALMENO UN CART in postazione (iniziato KIT ma NON finito)... + var listCartAvailable = tabOKIB.Where(x => !x.IsCartKitStartNull() && x.IsCartKitEndNull()).ToList(); + if (listCartAvailable.Count == 0) + { + displError($"BIN: No CART available to proceed: {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}", true); + } + else + { + // mostro controllo dettaglio per BIN delel cose da fare... + cmp_KS_OkibBin.Visible = true; + cmp_KS_OkibBin.BPDtmx = rawData; - // eventualmente secondo step --> mostro buttons 1...N (dichiaro 1 o tutti sul CART) + // processing... + + if (lastObject == rawData) + { + // seconda lettura x indicare in scarico + DataLayer.man.taBN.updateKitting(codeInt, true, false); + } + else + { + // chiedo seconda lettura + lastObject = rawData; + displError($"Please read BIN another time: BIN {rawData}", true); + } + } } } } -#if false - // verifico NON SIA richiesto PAINT - if (showCart) - { - displError("NOT PAINTED: CART REQUESTED: please retry", true); - } - else - { - if (currBinTab.Count == 1) - { - // controllo se sia quello corretto - if (rawData != currBinTab[0].BinDtmx) - { - displError("INCORRECT BIN: please retry", true); - } - else - { - // dichiaro che è depositato - DataLayer.man.taIL.updateStatus(itemIdSelected, 4, PlaceId); - lblDestination.Text = $"Item {itemIdSelected} PUT IN BIN {rawData}"; - resetSelection(false); - } - } - } -#endif break; default: lastObject = ""; @@ -655,6 +615,7 @@ namespace NKC_WF.WebUserControls lbtScrapped.Visible = false; lbtParkArea.Visible = false; lbtResetSel.Visible = (itemIdSelected != 0); + cmp_KS_OkibBin.Visible = false; } protected DS_App.BinsDataTable currBinTab diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs index bead678..722bb90 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs @@ -167,6 +167,15 @@ namespace NKC_WF.WebUserControls /// protected global::System.Web.UI.WebControls.Label lblErrorMsg; + /// + /// Controllo cmp_KS_OkibBin. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_KS_OkibBin cmp_KS_OkibBin; + /// /// Controllo hfSecOp. /// From 46f54d0e026fdfe679233285f0a5bba836988561 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 22 Jul 2020 17:32:10 +0200 Subject: [PATCH 3/5] Continuo scarico KIT --- NKC_WF/NKC_WF.csproj | 32 +++++++ NKC_WF/WebUserControls/cmp_KS_BinCart.ascx | 22 +++++ NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs | 93 +++++++++++++++++++ .../cmp_KS_BinCart.ascx.designer.cs | 53 +++++++++++ NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx | 1 + .../WebUserControls/cmp_KS_OtherCart.ascx.cs | 17 ++++ .../cmp_KS_OtherCart.ascx.designer.cs | 17 ++++ NKC_WF/WebUserControls/cmp_KS_currBin.ascx | 7 ++ NKC_WF/WebUserControls/cmp_KS_currBin.ascx.cs | 42 +++++++++ .../cmp_KS_currBin.ascx.designer.cs | 35 +++++++ NKC_WF/WebUserControls/cmp_KS_currCart.ascx | 7 ++ .../WebUserControls/cmp_KS_currCart.ascx.cs | 42 +++++++++ .../cmp_KS_currCart.ascx.designer.cs | 35 +++++++ NKC_WF/WebUserControls/cmp_kittingSmart.ascx | 5 +- .../WebUserControls/cmp_kittingSmart.ascx.cs | 37 +++++++- .../cmp_kittingSmart.ascx.designer.cs | 9 ++ 16 files changed, 452 insertions(+), 2 deletions(-) create mode 100644 NKC_WF/WebUserControls/cmp_KS_BinCart.ascx create mode 100644 NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx create mode 100644 NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.designer.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_currBin.ascx create mode 100644 NKC_WF/WebUserControls/cmp_KS_currBin.ascx.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_currBin.ascx.designer.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_currCart.ascx create mode 100644 NKC_WF/WebUserControls/cmp_KS_currCart.ascx.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_currCart.ascx.designer.cs diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index a3bd501..898681f 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -398,7 +398,11 @@ + + + + @@ -951,6 +955,27 @@ cmp_kittingSmart.ascx + + cmp_KS_BinCart.ascx + ASPXCodeBehind + + + cmp_KS_BinCart.ascx + + + cmp_KS_currBin.ascx + ASPXCodeBehind + + + cmp_KS_currBin.ascx + + + cmp_KS_currCart.ascx + ASPXCodeBehind + + + cmp_KS_currCart.ascx + cmp_KS_OkibBin.ascx ASPXCodeBehind @@ -958,6 +983,13 @@ cmp_KS_OkibBin.ascx + + cmp_KS_OtherCart.ascx + ASPXCodeBehind + + + cmp_KS_OtherCart.ascx + cmp_login.ascx ASPXCodeBehind diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx new file mode 100644 index 0000000..9062c53 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx @@ -0,0 +1,22 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_BinCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_BinCart" %> +<%@ Register Src="~/WebUserControls/cmp_KS_currBin.ascx" TagPrefix="uc1" TagName="cmp_KS_currBin" %> +<%@ Register Src="~/WebUserControls/cmp_KS_currCart.ascx" TagPrefix="uc1" TagName="cmp_KS_currCart" %> + +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs new file mode 100644 index 0000000..85c030f --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF.WebUserControls +{ + public partial class cmp_KS_BinCart : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + fixVisibility(); + } + } + + private void fixVisibility() + { + // controllo visualizazione in base ai dati presenti + bool binOk= BinID > 0; + bool cartOk = CartID > 0; + cmp_KS_currBin.Visible = binOk; + cmp_KS_currCart.Visible = cartOk; + lbtAddAll.Visible = binOk && cartOk; + lbtAddOne.Visible = binOk && cartOk; + } + + public void doUpdate() + { + fixVisibility(); + } + + /// + /// Cart selezionato + /// + public int CartID + { + get + { + return cmp_KS_currCart.CurrId; + } + set + { + cmp_KS_currCart.CurrId = value; + } + } + /// + /// Matrix Cart selezionato + /// + public string CartDtmx + { + get + { + return cmp_KS_currCart.Dtmx; + } + set + { + cmp_KS_currCart.Dtmx = value; + } + } + /// + /// Bin selezionato + /// + public int BinID + { + get + { + return cmp_KS_currBin.CurrId; + } + set + { + cmp_KS_currBin.CurrId = value; + } + } + /// + /// Matrix Bin selezionato + /// + public string BinDtmx + { + get + { + return cmp_KS_currBin.Dtmx; + } + set + { + cmp_KS_currBin.Dtmx = value; + } + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs new file mode 100644 index 0000000..1b8a361 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.WebUserControls +{ + + + public partial class cmp_KS_BinCart + { + + /// + /// Controllo cmp_KS_currBin. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_KS_currBin cmp_KS_currBin; + + /// + /// Controllo lbtAddOne. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtAddOne; + + /// + /// Controllo lbtAddAll. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtAddAll; + + /// + /// Controllo cmp_KS_currCart. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_KS_currCart cmp_KS_currCart; + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx b/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx new file mode 100644 index 0000000..d6e5f85 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx @@ -0,0 +1 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_OtherCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_OtherCart" %> diff --git a/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.cs new file mode 100644 index 0000000..dd32c6e --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF.WebUserControls +{ + public partial class cmp_KS_OtherCart : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.designer.cs new file mode 100644 index 0000000..c38d3f1 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.WebUserControls +{ + + + public partial class cmp_KS_OtherCart + { + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_currBin.ascx b/NKC_WF/WebUserControls/cmp_KS_currBin.ascx new file mode 100644 index 0000000..9f2f5b7 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currBin.ascx @@ -0,0 +1,7 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_currBin.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_currBin" %> + +
+
BIN
+ + +
diff --git a/NKC_WF/WebUserControls/cmp_KS_currBin.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_currBin.ascx.cs new file mode 100644 index 0000000..0b42fd0 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currBin.ascx.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF.WebUserControls +{ + public partial class cmp_KS_currBin : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + public int CurrId + { + get + { + int answ = 0; + int.TryParse(hfValue.Value, out answ); + return answ; + } + set + { + hfValue.Value = value.ToString(); + } + } + public string Dtmx + { + get + { + return lblDtmx.Text; + } + set + { + lblDtmx.Text = value; + } + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_currBin.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_currBin.ascx.designer.cs new file mode 100644 index 0000000..3fc8fe4 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currBin.ascx.designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.WebUserControls +{ + + + public partial class cmp_KS_currBin + { + + /// + /// Controllo hfValue. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfValue; + + /// + /// Controllo lblDtmx. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblDtmx; + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_currCart.ascx b/NKC_WF/WebUserControls/cmp_KS_currCart.ascx new file mode 100644 index 0000000..94145b7 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currCart.ascx @@ -0,0 +1,7 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_currCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_currCart" %> + +
+
CART
+ + +
diff --git a/NKC_WF/WebUserControls/cmp_KS_currCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_currCart.ascx.cs new file mode 100644 index 0000000..a43b8a8 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currCart.ascx.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF.WebUserControls +{ + public partial class cmp_KS_currCart : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + public int CurrId + { + get + { + int answ = 0; + int.TryParse(hfValue.Value, out answ); + return answ; + } + set + { + hfValue.Value = value.ToString(); + } + } + public string Dtmx + { + get + { + return lblDtmx.Text; + } + set + { + lblDtmx.Text = value; + } + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_currCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_currCart.ascx.designer.cs new file mode 100644 index 0000000..d0391f2 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currCart.ascx.designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.WebUserControls +{ + + + public partial class cmp_KS_currCart + { + + /// + /// Controllo hfValue. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfValue; + + /// + /// Controllo lblDtmx. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblDtmx; + } +} diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx index 98c0661..3532eed 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx @@ -2,7 +2,7 @@ <%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %> <%@ Register Src="~/WebUserControls/cmp_KS_OkibBin.ascx" TagPrefix="uc1" TagName="cmp_KS_OkibBin" %> - +<%@ Register Src="~/WebUserControls/cmp_KS_BinCart.ascx" TagPrefix="uc1" TagName="cmp_KS_BinCart" %>
@@ -21,6 +21,9 @@
+
+ +
diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index 43da1b6..aa06a1a 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -303,6 +303,7 @@ namespace NKC_WF.WebUserControls if (tabOrdini.Count == 0) { displError($"CART: Order not found for Cart {rawData}, please retry", true); + resetCart(); } else { @@ -313,15 +314,21 @@ namespace NKC_WF.WebUserControls if (tabPLD.Count == 0) { displError($"KIT REQuest: PackList not found for Cart {rawData} --> OrdExtCode {rigaOrd.OrderExtCode}, please retry", true); + resetCart(); } else { + // mostro CART! + cmp_KS_BinCart.CartID = codeInt; + cmp_KS_BinCart.CartDtmx = rawData; + cmp_KS_BinCart.doUpdate(); // verifico se il cart sia già stato messo in scarico (in quel caso dico già ok...) var tabLog = DataLayer.man.taPLog.getByCartId(codeInt); if (tabLog.Count > 0) { // se già in scarico ok --> segnalo displError($"CART already on KIT: Cart {rawData}", true); + resetCart(); } else { @@ -330,6 +337,7 @@ namespace NKC_WF.WebUserControls if (tabPLCheck.Count == 0) { displError($"ERROR evaluating CART: {rawData}", true); + resetCart(); } else { @@ -354,6 +362,7 @@ namespace NKC_WF.WebUserControls else { displError($"ERROR CART contains KIT already on download: {rawData}", true); + resetCart(); } } } @@ -362,13 +371,14 @@ namespace NKC_WF.WebUserControls } 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($"BIN: Code not found {rawData}, please retry", true); + // reset preliminare + resetBin(); } else { @@ -376,6 +386,8 @@ namespace NKC_WF.WebUserControls if (listPainted.Count == 0) { displError($"BIN: Paint Date missing for item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}, please retry", true); + // reset preliminare + resetBin(); } else { @@ -383,6 +395,8 @@ namespace NKC_WF.WebUserControls if (listAvailable.Count == 0) { displError($"BIN: No item available for pickup on target CART for code {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}, please retry", true); + // reset preliminare + resetBin(); } else { @@ -391,9 +405,15 @@ namespace NKC_WF.WebUserControls if (listCartAvailable.Count == 0) { displError($"BIN: No CART available to proceed: {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}", true); + // reset preliminare + resetBin(); } else { + // mostro BIN! + cmp_KS_BinCart.BinID = codeInt; + cmp_KS_BinCart.BinDtmx = rawData; + cmp_KS_BinCart.doUpdate(); // mostro controllo dettaglio per BIN delel cose da fare... cmp_KS_OkibBin.Visible = true; cmp_KS_OkibBin.BPDtmx = rawData; @@ -410,6 +430,8 @@ namespace NKC_WF.WebUserControls // chiedo seconda lettura lastObject = rawData; displError($"Please read BIN another time: BIN {rawData}", true); + // reset preliminare + resetBin(); } } } @@ -424,6 +446,19 @@ namespace NKC_WF.WebUserControls } + + private void resetBin() + { + cmp_KS_BinCart.BinID = 0; + cmp_KS_BinCart.doUpdate(); + } + + private void resetCart() + { + cmp_KS_BinCart.CartID = 0; + cmp_KS_BinCart.doUpdate(); + } + /// /// Mostra errore ed effettua reset vari... /// diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs index 722bb90..0fbd15b 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs @@ -104,6 +104,15 @@ namespace NKC_WF.WebUserControls /// protected global::System.Web.UI.WebControls.HiddenField hfShowSecOp; + /// + /// Controllo cmp_KS_BinCart. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_KS_BinCart cmp_KS_BinCart; + /// /// Controllo divItemDet. /// From e38099740356a90cd9d730bb64b4e18f53d3d9bc Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 22 Jul 2020 17:41:28 +0200 Subject: [PATCH 4/5] pulizia procedure Bin/Cart in KSmart --- NKC_WF/WebUserControls/cmp_KS_BinCart.ascx | 18 ++++------ NKC_WF/WebUserControls/cmp_kittingSmart.ascx | 14 -------- .../WebUserControls/cmp_kittingSmart.ascx.cs | 26 -------------- .../cmp_kittingSmart.ascx.designer.cs | 36 ------------------- NKC_WF/site/KittingSmart.aspx | 2 +- NKC_WF/site/KittingSmart.aspx.cs | 2 +- 6 files changed, 9 insertions(+), 89 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx index 9062c53..4946c65 100644 --- a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx @@ -3,20 +3,16 @@ <%@ Register Src="~/WebUserControls/cmp_KS_currCart.ascx" TagPrefix="uc1" TagName="cmp_KS_currCart" %>
-
+
-
-
-
- -
-
- -
-
+
+
-
+
+ +
+
diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx index 3532eed..a0d411f 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx @@ -49,20 +49,6 @@
-
- -
-
-
CART
-
-
-
BIN
-
-
-
SEC OP
-
-
-
<%: traduci("cancel") %>
diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index aa06a1a..2da0333 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -89,17 +89,6 @@ namespace NKC_WF.WebUserControls return answ; } } - protected string secOp - { - get - { - return hfSecOp.Value; - } - set - { - hfSecOp.Value = value; - } - } /// /// Aggiorna dati correnti (IP, batch, sheet...) /// @@ -531,8 +520,6 @@ namespace NKC_WF.WebUserControls // verifico cosa devo mostrare come PROX passaggio... showCart = string.IsNullOrEmpty(itemRow.ProcessesReq); showBin = (itemRow.ProcessesReq.Contains("PaintFlag")); - secOp = itemRow.PostProcList; - showSecOp = (!string.IsNullOrEmpty(secOp)); doUpdate(); break; case 3: @@ -671,18 +658,10 @@ namespace NKC_WF.WebUserControls private void doUpdate() { // reset grafico - icnCart.Attributes.Remove("class"); - icnCart.Attributes.Add("class", "btn btn-sm btn-block btn-outline-secondary"); - icnBin.Attributes.Remove("class"); - icnBin.Attributes.Add("class", "btn btn-sm btn-block btn-outline-secondary"); - icnSecOp.Attributes.Remove("class"); - icnSecOp.Attributes.Add("class", "btn btn-sm btn-block btn-outline-secondary"); // in base al secondo mostro uno o altro... if (showCart) { - icnCart.Attributes.Remove("class"); - icnCart.Attributes.Add("class", "btn btn-sm btn-block btn-success"); lblMessage.Text = "Item recognized"; // controllo SE HO cart if (currCartTab.Count == 1) @@ -699,8 +678,6 @@ namespace NKC_WF.WebUserControls } else if (showBin) { - icnBin.Attributes.Remove("class"); - icnBin.Attributes.Add("class", "btn btn-sm btn-block btn-primary"); lblMessage.Text = "Item recognized"; if (currBinTab.Count == 1) { @@ -715,10 +692,7 @@ namespace NKC_WF.WebUserControls } if (showSecOp) { - icnSecOp.Attributes.Remove("class"); - icnSecOp.Attributes.Add("class", "btn btn-sm btn-block btn-info"); lblMessage.Text = "Item recognized"; - lblLastBCode.Text = $"DO SEC OP: {secOp}"; lblLastBCode.CssClass = "text-info"; } // fix btn reset! diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs index 0fbd15b..8d383ff 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs @@ -185,42 +185,6 @@ namespace NKC_WF.WebUserControls /// protected global::NKC_WF.WebUserControls.cmp_KS_OkibBin cmp_KS_OkibBin; - /// - /// Controllo hfSecOp. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.HiddenField hfSecOp; - - /// - /// Controllo icnCart. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl icnCart; - - /// - /// Controllo icnBin. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl icnBin; - - /// - /// Controllo icnSecOp. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl icnSecOp; - /// /// Controllo lbtCancel. /// diff --git a/NKC_WF/site/KittingSmart.aspx b/NKC_WF/site/KittingSmart.aspx index fd7e80e..be60006 100644 --- a/NKC_WF/site/KittingSmart.aspx +++ b/NKC_WF/site/KittingSmart.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="KittingSmart.aspx.cs" Inherits="NKC_WF.site.KittingSmart" %> +<%@ Page Title="" Language="C#" MasterPageFile="~/SiteContent.master" AutoEventWireup="true" CodeBehind="KittingSmart.aspx.cs" Inherits="NKC_WF.site.KittingSmart" %> <%@ Register Src="~/WebUserControls/cmp_kittingSmart.ascx" TagPrefix="uc1" TagName="cmp_kittingSmart" %> <%@ Register Src="~/WebUserControls/cmp_kitRunning.ascx" TagPrefix="uc1" TagName="cmp_kitRunning" %> diff --git a/NKC_WF/site/KittingSmart.aspx.cs b/NKC_WF/site/KittingSmart.aspx.cs index 15df822..7e97e22 100644 --- a/NKC_WF/site/KittingSmart.aspx.cs +++ b/NKC_WF/site/KittingSmart.aspx.cs @@ -10,7 +10,7 @@ namespace NKC_WF.site { if (!Page.IsPostBack) { - ((SiteMaster)this.Master).showSearch = false; + ((SiteContent)this.Master).showSearch = false; doUpdate(); } cmp_kittingSmart.eh_doRefresh += cmp_kittingSmart_eh_doRefresh; From c88fd456325cc5959fa7a6514268a82fe5c5caa9 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 22 Jul 2020 19:11:08 +0200 Subject: [PATCH 5/5] Fix grafici kitting smart --- NKC_WF/NKC_WF.csproj | 8 ++++ NKC_WF/WebUserControls/cmp_KS_BinCart.ascx | 31 ++++++++++--- NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs | 4 ++ .../cmp_KS_BinCart.ascx.designer.cs | 18 ++++++++ NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx | 4 +- NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs | 6 +-- .../cmp_KS_OkibBin.ascx.designer.cs | 4 +- NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx | 3 ++ .../WebUserControls/cmp_KS_OkibCart.ascx.cs | 17 +++++++ .../cmp_KS_OkibCart.ascx.designer.cs | 17 +++++++ NKC_WF/WebUserControls/cmp_kittingSmart.ascx | 4 -- .../WebUserControls/cmp_kittingSmart.ascx.cs | 46 +++++++++++-------- .../cmp_kittingSmart.ascx.designer.cs | 9 ---- 13 files changed, 126 insertions(+), 45 deletions(-) create mode 100644 NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx create mode 100644 NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.cs create mode 100644 NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.designer.cs diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 898681f..d88411d 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -402,6 +402,7 @@ + @@ -983,6 +984,13 @@ cmp_KS_OkibBin.ascx + + cmp_KS_OkibCart.ascx + ASPXCodeBehind + + + cmp_KS_OkibCart.ascx + cmp_KS_OtherCart.ascx ASPXCodeBehind diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx index 4946c65..5b2f0ac 100644 --- a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx @@ -1,18 +1,35 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_BinCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_BinCart" %> <%@ Register Src="~/WebUserControls/cmp_KS_currBin.ascx" TagPrefix="uc1" TagName="cmp_KS_currBin" %> <%@ Register Src="~/WebUserControls/cmp_KS_currCart.ascx" TagPrefix="uc1" TagName="cmp_KS_currCart" %> +<%@ Register Src="~/WebUserControls/cmp_KS_OkibBin.ascx" TagPrefix="uc1" TagName="cmp_KS_OkibBin" %> +<%@ Register Src="~/WebUserControls/cmp_KS_OkibCart.ascx" TagPrefix="uc1" TagName="cmp_KS_OkibCart" %> + +
-
+
-
- +
+
+
+ +
+
+ +
+
-
- -
-
+
+ +
+
+ +
+
+ +
+
diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs index 85c030f..d8605bd 100644 --- a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs @@ -23,7 +23,9 @@ namespace NKC_WF.WebUserControls bool binOk= BinID > 0; bool cartOk = CartID > 0; cmp_KS_currBin.Visible = binOk; + cmp_KS_OkibBin.Visible = binOk; cmp_KS_currCart.Visible = cartOk; + cmp_KS_OkibCart.Visible = cartOk; lbtAddAll.Visible = binOk && cartOk; lbtAddOne.Visible = binOk && cartOk; } @@ -59,6 +61,7 @@ namespace NKC_WF.WebUserControls set { cmp_KS_currCart.Dtmx = value; + //cmp_KS_OkibCart.BPDtmx = value; } } /// @@ -87,6 +90,7 @@ namespace NKC_WF.WebUserControls set { cmp_KS_currBin.Dtmx = value; + cmp_KS_OkibBin.Dtmx = value; } } } diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs index 1b8a361..8058239 100644 --- a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs @@ -49,5 +49,23 @@ namespace NKC_WF.WebUserControls /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::NKC_WF.WebUserControls.cmp_KS_currCart cmp_KS_currCart; + + /// + /// Controllo cmp_KS_OkibBin. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_KS_OkibBin cmp_KS_OkibBin; + + /// + /// Controllo cmp_KS_OkibCart. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_KS_OkibCart cmp_KS_OkibCart; } } diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx index dfa96b6..e51c966 100644 --- a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx +++ b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx @@ -32,7 +32,7 @@ - + - + diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs index e542b86..1cef392 100644 --- a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.cs @@ -14,15 +14,15 @@ namespace NKC_WF.WebUserControls } - public string BPDtmx + public string Dtmx { get { - return hfBPDtmx.Value; + return hfDtmx.Value; } set { - hfBPDtmx.Value = value.Trim(); + hfDtmx.Value = value.Trim(); grView.DataBind(); } } diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs index 3dba86a..b44bc1e 100644 --- a/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_KS_OkibBin.ascx.designer.cs @@ -33,12 +33,12 @@ namespace NKC_WF.WebUserControls protected global::System.Web.UI.WebControls.ObjectDataSource ods; /// - /// Controllo hfBPDtmx. + /// Controllo hfDtmx. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.HiddenField hfBPDtmx; + protected global::System.Web.UI.WebControls.HiddenField hfDtmx; } } diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx new file mode 100644 index 0000000..e6a789e --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx @@ -0,0 +1,3 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_OkibCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_OkibCart" %> + +TAB riassunto x CART \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.cs new file mode 100644 index 0000000..dd9d00f --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF.WebUserControls +{ + public partial class cmp_KS_OkibCart : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.designer.cs new file mode 100644 index 0000000..e6baaa2 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.WebUserControls +{ + + + public partial class cmp_KS_OkibCart + { + } +} diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx index a0d411f..37b7033 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx @@ -1,7 +1,6 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_kittingSmart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_kittingSmart" %> <%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %> -<%@ Register Src="~/WebUserControls/cmp_KS_OkibBin.ascx" TagPrefix="uc1" TagName="cmp_KS_OkibBin" %> <%@ Register Src="~/WebUserControls/cmp_KS_BinCart.ascx" TagPrefix="uc1" TagName="cmp_KS_BinCart" %>
@@ -46,9 +45,6 @@
-
- -
<%: traduci("cancel") %>
diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index 2da0333..e7ba19f 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -317,7 +317,6 @@ namespace NKC_WF.WebUserControls { // se già in scarico ok --> segnalo displError($"CART already on KIT: Cart {rawData}", true); - resetCart(); } else { @@ -366,7 +365,6 @@ namespace NKC_WF.WebUserControls if (tabOKIB.Count == 0) { displError($"BIN: Code not found {rawData}, please retry", true); - // reset preliminare resetBin(); } else @@ -375,7 +373,6 @@ namespace NKC_WF.WebUserControls if (listPainted.Count == 0) { displError($"BIN: Paint Date missing for item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}, please retry", true); - // reset preliminare resetBin(); } else @@ -384,7 +381,6 @@ namespace NKC_WF.WebUserControls if (listAvailable.Count == 0) { displError($"BIN: No item available for pickup on target CART for code {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}, please retry", true); - // reset preliminare resetBin(); } else @@ -394,7 +390,6 @@ namespace NKC_WF.WebUserControls if (listCartAvailable.Count == 0) { displError($"BIN: No CART available to proceed: {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}", true); - // reset preliminare resetBin(); } else @@ -403,24 +398,40 @@ namespace NKC_WF.WebUserControls cmp_KS_BinCart.BinID = codeInt; cmp_KS_BinCart.BinDtmx = rawData; cmp_KS_BinCart.doUpdate(); - // mostro controllo dettaglio per BIN delel cose da fare... - cmp_KS_OkibBin.Visible = true; - cmp_KS_OkibBin.BPDtmx = rawData; - // processing... - if (lastObject == rawData) + // verifico se il Bin sia già stato messo in scarico (in quel caso dico già ok...) + var listBinAcquired = tabOKIB.Where(x => !x.IsCartKitStartNull() && x.IsCartKitEndNull() && !x.IsBinKitStartNull()).ToList(); + if (listBinAcquired.Count > 0) { - // seconda lettura x indicare in scarico - DataLayer.man.taBN.updateKitting(codeInt, true, false); + // verifico se sia GIA' stato completato KIT... + var listBinNotCompleted = tabOKIB.Where(x => !x.IsCartKitStartNull() && x.IsCartKitEndNull() && !x.IsBinKitStartNull() && x.IsBinKitEndNull()).ToList(); + if(listBinNotCompleted.Count == 0) + { + displError($"BIN: already completed: {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}", true); + resetBin(); + } + else + { + displError($"OK BIN: already acquired! {rawData} | item {tabOKIB[0].ItemDesc} | order {tabOKIB[0].OrderExtCode}", true); + } } else { - // chiedo seconda lettura - lastObject = rawData; - displError($"Please read BIN another time: BIN {rawData}", true); - // reset preliminare - resetBin(); + // processing... + if (lastObject == rawData) + { + // seconda lettura x indicare in scarico + DataLayer.man.taBN.updateKitting(codeInt, true, false); + } + else + { + // chiedo seconda lettura + lastObject = rawData; + displError($"Please read BIN another time: BIN {rawData}", true); + // reset preliminare + resetBin(); + } } } } @@ -637,7 +648,6 @@ namespace NKC_WF.WebUserControls lbtScrapped.Visible = false; lbtParkArea.Visible = false; lbtResetSel.Visible = (itemIdSelected != 0); - cmp_KS_OkibBin.Visible = false; } protected DS_App.BinsDataTable currBinTab diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs index 8d383ff..a1b7068 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.designer.cs @@ -176,15 +176,6 @@ namespace NKC_WF.WebUserControls /// protected global::System.Web.UI.WebControls.Label lblErrorMsg; - /// - /// Controllo cmp_KS_OkibBin. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::NKC_WF.WebUserControls.cmp_KS_OkibBin cmp_KS_OkibBin; - /// /// Controllo lbtCancel. ///