diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index a9a697e..352614e 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -88,6 +88,10 @@ namespace AppData { private OKIB_SumDataTable tableOKIB_Sum; + private OKOIDataTable tableOKOI; + + private OKOI_sumDataTable tableOKOI_sum; + private global::System.Data.DataRelation relationFK_BatchReqList_OrderList; private global::System.Data.DataRelation relationFK_ItemList_Materials1; @@ -236,6 +240,12 @@ namespace AppData { if ((ds.Tables["OKIB_Sum"] != null)) { base.Tables.Add(new OKIB_SumDataTable(ds.Tables["OKIB_Sum"])); } + if ((ds.Tables["OKOI"] != null)) { + base.Tables.Add(new OKOIDataTable(ds.Tables["OKOI"])); + } + if ((ds.Tables["OKOI_sum"] != null)) { + base.Tables.Add(new OKOI_sumDataTable(ds.Tables["OKOI_sum"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -574,6 +584,26 @@ 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 OKOIDataTable OKOI { + get { + return this.tableOKOI; + } + } + + [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 OKOI_sumDataTable OKOI_sum { + get { + return this.tableOKOI_sum; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -737,6 +767,12 @@ namespace AppData { if ((ds.Tables["OKIB_Sum"] != null)) { base.Tables.Add(new OKIB_SumDataTable(ds.Tables["OKIB_Sum"])); } + if ((ds.Tables["OKOI"] != null)) { + base.Tables.Add(new OKOIDataTable(ds.Tables["OKOI"])); + } + if ((ds.Tables["OKOI_sum"] != null)) { + base.Tables.Add(new OKOI_sumDataTable(ds.Tables["OKOI_sum"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -962,6 +998,18 @@ namespace AppData { this.tableOKIB_Sum.InitVars(); } } + this.tableOKOI = ((OKOIDataTable)(base.Tables["OKOI"])); + if ((initTable == true)) { + if ((this.tableOKOI != null)) { + this.tableOKOI.InitVars(); + } + } + this.tableOKOI_sum = ((OKOI_sumDataTable)(base.Tables["OKOI_sum"])); + if ((initTable == true)) { + if ((this.tableOKOI_sum != null)) { + this.tableOKOI_sum.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"]; @@ -1048,6 +1096,10 @@ namespace AppData { base.Tables.Add(this.tableOKIB); this.tableOKIB_Sum = new OKIB_SumDataTable(); base.Tables.Add(this.tableOKIB_Sum); + this.tableOKOI = new OKOIDataTable(); + base.Tables.Add(this.tableOKOI); + this.tableOKOI_sum = new OKOI_sumDataTable(); + base.Tables.Add(this.tableOKOI_sum); 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); @@ -1290,6 +1342,18 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeOKOI() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeOKOI_sum() { + 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) { @@ -1441,6 +1505,12 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void OKIB_SumRowChangeEventHandler(object sender, OKIB_SumRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void OKOIRowChangeEventHandler(object sender, OKOIRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void OKOI_sumRowChangeEventHandler(object sender, OKOI_sumRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -10487,18 +10557,20 @@ namespace AppData { private global::System.Data.DataColumn columnStatusID; + private global::System.Data.DataColumn columnSchedPrior; + + private global::System.Data.DataColumn columnNumCart; + private global::System.Data.DataColumn columnNumKit; private global::System.Data.DataColumn columnNumParts; private global::System.Data.DataColumn columnTotQty; - private global::System.Data.DataColumn columnStatusDesc; - - private global::System.Data.DataColumn columnSchedPrior; - private global::System.Data.DataColumn columnTotConf; + private global::System.Data.DataColumn columnStatusDesc; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public PackListDataTable() { @@ -10564,6 +10636,22 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn SchedPriorColumn { + get { + return this.columnSchedPrior; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumCartColumn { + get { + return this.columnNumCart; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn NumKitColumn { @@ -10588,22 +10676,6 @@ namespace AppData { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn StatusDescColumn { - get { - return this.columnStatusDesc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn SchedPriorColumn { - get { - return this.columnSchedPrior; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn TotConfColumn { @@ -10612,6 +10684,14 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn StatusDescColumn { + get { + return this.columnStatusDesc; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -10649,19 +10729,20 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public PackListRow AddPackListRow(int PackListID, string BatchName, System.DateTime ImportDate, int StatusID, int NumKit, int NumParts, int TotQty, string StatusDesc, int SchedPrior, int TotConf) { + public PackListRow AddPackListRow(int PackListID, string BatchName, System.DateTime ImportDate, int StatusID, int SchedPrior, int NumCart, int NumKit, int NumParts, int TotQty, int TotConf, string StatusDesc) { PackListRow rowPackListRow = ((PackListRow)(this.NewRow())); object[] columnValuesArray = new object[] { PackListID, BatchName, ImportDate, StatusID, + SchedPrior, + NumCart, NumKit, NumParts, TotQty, - StatusDesc, - SchedPrior, - TotConf}; + TotConf, + StatusDesc}; rowPackListRow.ItemArray = columnValuesArray; this.Rows.Add(rowPackListRow); return rowPackListRow; @@ -10695,12 +10776,13 @@ namespace AppData { this.columnBatchName = base.Columns["BatchName"]; this.columnImportDate = base.Columns["ImportDate"]; this.columnStatusID = base.Columns["StatusID"]; + this.columnSchedPrior = base.Columns["SchedPrior"]; + this.columnNumCart = base.Columns["NumCart"]; this.columnNumKit = base.Columns["NumKit"]; this.columnNumParts = base.Columns["NumParts"]; this.columnTotQty = base.Columns["TotQty"]; - this.columnStatusDesc = base.Columns["StatusDesc"]; - this.columnSchedPrior = base.Columns["SchedPrior"]; this.columnTotConf = base.Columns["TotConf"]; + this.columnStatusDesc = base.Columns["StatusDesc"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10714,18 +10796,20 @@ namespace AppData { base.Columns.Add(this.columnImportDate); this.columnStatusID = new global::System.Data.DataColumn("StatusID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnStatusID); + this.columnSchedPrior = new global::System.Data.DataColumn("SchedPrior", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSchedPrior); + this.columnNumCart = new global::System.Data.DataColumn("NumCart", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumCart); this.columnNumKit = new global::System.Data.DataColumn("NumKit", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumKit); this.columnNumParts = new global::System.Data.DataColumn("NumParts", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumParts); this.columnTotQty = new global::System.Data.DataColumn("TotQty", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTotQty); - this.columnStatusDesc = new global::System.Data.DataColumn("StatusDesc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnStatusDesc); - this.columnSchedPrior = new global::System.Data.DataColumn("SchedPrior", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnSchedPrior); this.columnTotConf = new global::System.Data.DataColumn("TotConf", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTotConf); + this.columnStatusDesc = new global::System.Data.DataColumn("StatusDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStatusDesc); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnPackListID}, true)); this.columnPackListID.AllowDBNull = false; @@ -10733,12 +10817,12 @@ namespace AppData { this.columnBatchName.AllowDBNull = false; this.columnBatchName.MaxLength = 50; this.columnStatusID.AllowDBNull = false; + this.columnSchedPrior.AllowDBNull = false; this.columnNumParts.AllowDBNull = false; this.columnTotQty.AllowDBNull = false; + this.columnTotConf.ReadOnly = true; this.columnStatusDesc.ReadOnly = true; this.columnStatusDesc.MaxLength = 50; - this.columnSchedPrior.AllowDBNull = false; - this.columnTotConf.ReadOnly = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -14346,6 +14430,967 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class OKOIDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnOtherItemID; + + private global::System.Data.DataColumn columnOtherItemExtCode; + + private global::System.Data.DataColumn columnOtherItemDesc; + + private global::System.Data.DataColumn columnOtherItemDtmx; + + private global::System.Data.DataColumn columnOrdID; + + private global::System.Data.DataColumn columnOrderExtCode; + + private global::System.Data.DataColumn columnKitExtCode; + + private global::System.Data.DataColumn columnOnCartDate; + + private global::System.Data.DataColumn columnQtyReq; + + private global::System.Data.DataColumn columnQtyCur; + + private global::System.Data.DataColumn columnKitID; + + private global::System.Data.DataColumn columnBatchID; + + 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; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKOIDataTable() { + this.TableName = "OKOI"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKOIDataTable(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 OKOIDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemIDColumn { + get { + return this.columnOtherItemID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemExtCodeColumn { + get { + return this.columnOtherItemExtCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemDescColumn { + get { + return this.columnOtherItemDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemDtmxColumn { + get { + return this.columnOtherItemDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 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 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 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 QtyReqColumn { + get { + return this.columnQtyReq; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn QtyCurColumn { + get { + return this.columnQtyCur; + } + } + + [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 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 OKOIRow this[int index] { + get { + return ((OKOIRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOIRowChangeEventHandler OKOIRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOIRowChangeEventHandler OKOIRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOIRowChangeEventHandler OKOIRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOIRowChangeEventHandler OKOIRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddOKOIRow(OKOIRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKOIRow AddOKOIRow( + int OtherItemID, + string OtherItemExtCode, + string OtherItemDesc, + string OtherItemDtmx, + int OrdID, + string OrderExtCode, + string KitExtCode, + System.DateTime OnCartDate, + int QtyReq, + int QtyCur, + int KitID, + int BatchID, + int CartID, + string CartDtmx, + int CartIndex, + System.DateTime CartKitStart, + System.DateTime CartKitEnd) { + OKOIRow rowOKOIRow = ((OKOIRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + OtherItemID, + OtherItemExtCode, + OtherItemDesc, + OtherItemDtmx, + OrdID, + OrderExtCode, + KitExtCode, + OnCartDate, + QtyReq, + QtyCur, + KitID, + BatchID, + CartID, + CartDtmx, + CartIndex, + CartKitStart, + CartKitEnd}; + rowOKOIRow.ItemArray = columnValuesArray; + this.Rows.Add(rowOKOIRow); + return rowOKOIRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + OKOIDataTable cln = ((OKOIDataTable)(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 OKOIDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnOtherItemID = base.Columns["OtherItemID"]; + this.columnOtherItemExtCode = base.Columns["OtherItemExtCode"]; + this.columnOtherItemDesc = base.Columns["OtherItemDesc"]; + this.columnOtherItemDtmx = base.Columns["OtherItemDtmx"]; + this.columnOrdID = base.Columns["OrdID"]; + this.columnOrderExtCode = base.Columns["OrderExtCode"]; + this.columnKitExtCode = base.Columns["KitExtCode"]; + this.columnOnCartDate = base.Columns["OnCartDate"]; + this.columnQtyReq = base.Columns["QtyReq"]; + this.columnQtyCur = base.Columns["QtyCur"]; + 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"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnOtherItemID = new global::System.Data.DataColumn("OtherItemID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemID); + this.columnOtherItemExtCode = new global::System.Data.DataColumn("OtherItemExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemExtCode); + this.columnOtherItemDesc = new global::System.Data.DataColumn("OtherItemDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemDesc); + this.columnOtherItemDtmx = new global::System.Data.DataColumn("OtherItemDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemDtmx); + this.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.columnKitExtCode = new global::System.Data.DataColumn("KitExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKitExtCode); + this.columnOnCartDate = new global::System.Data.DataColumn("OnCartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOnCartDate); + this.columnQtyReq = new global::System.Data.DataColumn("QtyReq", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQtyReq); + this.columnQtyCur = new global::System.Data.DataColumn("QtyCur", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQtyCur); + 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.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.columnOtherItemID.AllowDBNull = false; + this.columnOtherItemExtCode.AllowDBNull = false; + this.columnOtherItemExtCode.MaxLength = 250; + this.columnOtherItemDesc.AllowDBNull = false; + this.columnOtherItemDesc.MaxLength = 500; + this.columnOtherItemDtmx.MaxLength = 50; + this.columnOrdID.AllowDBNull = false; + this.columnOrderExtCode.AllowDBNull = false; + this.columnOrderExtCode.MaxLength = 250; + this.columnKitExtCode.AllowDBNull = false; + this.columnKitExtCode.MaxLength = 250; + this.columnQtyReq.AllowDBNull = false; + this.columnQtyCur.AllowDBNull = false; + this.columnKitID.AllowDBNull = false; + this.columnBatchID.AllowDBNull = false; + this.columnCartID.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 OKOIRow NewOKOIRow() { + return ((OKOIRow)(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 OKOIRow(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(OKOIRow); + } + + [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.OKOIRowChanged != null)) { + this.OKOIRowChanged(this, new OKOIRowChangeEvent(((OKOIRow)(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.OKOIRowChanging != null)) { + this.OKOIRowChanging(this, new OKOIRowChangeEvent(((OKOIRow)(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.OKOIRowDeleted != null)) { + this.OKOIRowDeleted(this, new OKOIRowChangeEvent(((OKOIRow)(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.OKOIRowDeleting != null)) { + this.OKOIRowDeleting(this, new OKOIRowChangeEvent(((OKOIRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveOKOIRow(OKOIRow 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 = "OKOIDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class OKOI_sumDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnOtherItemID; + + private global::System.Data.DataColumn columnCartID; + + private global::System.Data.DataColumn columnOtherItemExtCode; + + private global::System.Data.DataColumn columnOtherItemDesc; + + private global::System.Data.DataColumn columnOtherItemDtmx; + + private global::System.Data.DataColumn columnOrdID; + + private global::System.Data.DataColumn columnOrderExtCode; + + private global::System.Data.DataColumn columnNumItems; + + private global::System.Data.DataColumn columnNumPicked; + + 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 OKOI_sumDataTable() { + this.TableName = "OKOI_sum"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKOI_sumDataTable(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 OKOI_sumDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemIDColumn { + get { + return this.columnOtherItemID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 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 OtherItemExtCodeColumn { + get { + return this.columnOtherItemExtCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemDescColumn { + get { + return this.columnOtherItemDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherItemDtmxColumn { + get { + return this.columnOtherItemDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 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 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 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 OKOI_sumRow this[int index] { + get { + return ((OKOI_sumRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOI_sumRowChangeEventHandler OKOI_sumRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOI_sumRowChangeEventHandler OKOI_sumRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOI_sumRowChangeEventHandler OKOI_sumRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event OKOI_sumRowChangeEventHandler OKOI_sumRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddOKOI_sumRow(OKOI_sumRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKOI_sumRow AddOKOI_sumRow(int OtherItemID, int CartID, string OtherItemExtCode, string OtherItemDesc, string OtherItemDtmx, int OrdID, string OrderExtCode, int NumItems, int NumPicked, int BatchID, string CartDtmx, int CartIndex, System.DateTime CartKitStart, System.DateTime CartKitEnd) { + OKOI_sumRow rowOKOI_sumRow = ((OKOI_sumRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + OtherItemID, + CartID, + OtherItemExtCode, + OtherItemDesc, + OtherItemDtmx, + OrdID, + OrderExtCode, + NumItems, + NumPicked, + BatchID, + CartDtmx, + CartIndex, + CartKitStart, + CartKitEnd}; + rowOKOI_sumRow.ItemArray = columnValuesArray; + this.Rows.Add(rowOKOI_sumRow); + return rowOKOI_sumRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public OKOI_sumRow FindByCartIDOtherItemID(int CartID, int OtherItemID) { + return ((OKOI_sumRow)(this.Rows.Find(new object[] { + CartID, + OtherItemID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + OKOI_sumDataTable cln = ((OKOI_sumDataTable)(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 OKOI_sumDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnOtherItemID = base.Columns["OtherItemID"]; + this.columnCartID = base.Columns["CartID"]; + this.columnOtherItemExtCode = base.Columns["OtherItemExtCode"]; + this.columnOtherItemDesc = base.Columns["OtherItemDesc"]; + this.columnOtherItemDtmx = base.Columns["OtherItemDtmx"]; + this.columnOrdID = base.Columns["OrdID"]; + this.columnOrderExtCode = base.Columns["OrderExtCode"]; + this.columnNumItems = base.Columns["NumItems"]; + this.columnNumPicked = base.Columns["NumPicked"]; + 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.columnOtherItemID = new global::System.Data.DataColumn("OtherItemID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemID); + this.columnCartID = new global::System.Data.DataColumn("CartID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartID); + this.columnOtherItemExtCode = new global::System.Data.DataColumn("OtherItemExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemExtCode); + this.columnOtherItemDesc = new global::System.Data.DataColumn("OtherItemDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemDesc); + this.columnOtherItemDtmx = new global::System.Data.DataColumn("OtherItemDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherItemDtmx); + this.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.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.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.columnCartID, + this.columnOtherItemID}, true)); + this.columnOtherItemID.AllowDBNull = false; + this.columnCartID.AllowDBNull = false; + this.columnOtherItemExtCode.AllowDBNull = false; + this.columnOtherItemExtCode.MaxLength = 250; + this.columnOtherItemDesc.AllowDBNull = false; + this.columnOtherItemDesc.MaxLength = 500; + this.columnOtherItemDtmx.MaxLength = 50; + this.columnOrdID.AllowDBNull = false; + this.columnOrderExtCode.AllowDBNull = false; + this.columnOrderExtCode.MaxLength = 250; + 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 OKOI_sumRow NewOKOI_sumRow() { + return ((OKOI_sumRow)(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 OKOI_sumRow(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(OKOI_sumRow); + } + + [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.OKOI_sumRowChanged != null)) { + this.OKOI_sumRowChanged(this, new OKOI_sumRowChangeEvent(((OKOI_sumRow)(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.OKOI_sumRowChanging != null)) { + this.OKOI_sumRowChanging(this, new OKOI_sumRowChangeEvent(((OKOI_sumRow)(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.OKOI_sumRowDeleted != null)) { + this.OKOI_sumRowDeleted(this, new OKOI_sumRowChangeEvent(((OKOI_sumRow)(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.OKOI_sumRowDeleting != null)) { + this.OKOI_sumRowDeleting(this, new OKOI_sumRowChangeEvent(((OKOI_sumRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveOKOI_sumRow(OKOI_sumRow 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 = "OKOI_sumDataTable"; + 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. /// @@ -18496,6 +19541,33 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int SchedPrior { + get { + return ((int)(this[this.tablePackList.SchedPriorColumn])); + } + set { + this[this.tablePackList.SchedPriorColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumCart { + get { + try { + return ((int)(this[this.tablePackList.NumCartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumCart\' nella tabella \'PackList\' è DBNull.", e); + } + } + set { + this[this.tablePackList.NumCartColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int NumKit { @@ -18534,33 +19606,6 @@ namespace AppData { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string StatusDesc { - get { - try { - return ((string)(this[this.tablePackList.StatusDescColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'StatusDesc\' nella tabella \'PackList\' è DBNull.", e); - } - } - set { - this[this.tablePackList.StatusDescColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int SchedPrior { - get { - return ((int)(this[this.tablePackList.SchedPriorColumn])); - } - set { - this[this.tablePackList.SchedPriorColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int TotConf { @@ -18577,6 +19622,22 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string StatusDesc { + get { + try { + return ((string)(this[this.tablePackList.StatusDescColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'StatusDesc\' nella tabella \'PackList\' è DBNull.", e); + } + } + set { + this[this.tablePackList.StatusDescColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsImportDateNull() { @@ -18589,6 +19650,18 @@ namespace AppData { this[this.tablePackList.ImportDateColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumCartNull() { + return this.IsNull(this.tablePackList.NumCartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumCartNull() { + this[this.tablePackList.NumCartColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsNumKitNull() { @@ -18601,18 +19674,6 @@ namespace AppData { this[this.tablePackList.NumKitColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsStatusDescNull() { - return this.IsNull(this.tablePackList.StatusDescColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetStatusDescNull() { - this[this.tablePackList.StatusDescColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsTotConfNull() { @@ -18624,6 +19685,18 @@ namespace AppData { public void SetTotConfNull() { this[this.tablePackList.TotConfColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsStatusDescNull() { + return this.IsNull(this.tablePackList.StatusDescColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetStatusDescNull() { + this[this.tablePackList.StatusDescColumn] = global::System.Convert.DBNull; + } } /// @@ -20695,6 +21768,564 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class OKOIRow : global::System.Data.DataRow { + + private OKOIDataTable tableOKOI; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKOIRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableOKOI = ((OKOIDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OtherItemID { + get { + return ((int)(this[this.tableOKOI.OtherItemIDColumn])); + } + set { + this[this.tableOKOI.OtherItemIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemExtCode { + get { + return ((string)(this[this.tableOKOI.OtherItemExtCodeColumn])); + } + set { + this[this.tableOKOI.OtherItemExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemDesc { + get { + return ((string)(this[this.tableOKOI.OtherItemDescColumn])); + } + set { + this[this.tableOKOI.OtherItemDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemDtmx { + get { + try { + return ((string)(this[this.tableOKOI.OtherItemDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OtherItemDtmx\' nella tabella \'OKOI\' è DBNull.", e); + } + } + set { + this[this.tableOKOI.OtherItemDtmxColumn] = 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.tableOKOI.OrdIDColumn])); + } + set { + this[this.tableOKOI.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.tableOKOI.OrderExtCodeColumn])); + } + set { + this[this.tableOKOI.OrderExtCodeColumn] = 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.tableOKOI.KitExtCodeColumn])); + } + set { + this[this.tableOKOI.KitExtCodeColumn] = 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.tableOKOI.OnCartDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OnCartDate\' nella tabella \'OKOI\' è DBNull.", e); + } + } + set { + this[this.tableOKOI.OnCartDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int QtyReq { + get { + return ((int)(this[this.tableOKOI.QtyReqColumn])); + } + set { + this[this.tableOKOI.QtyReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int QtyCur { + get { + return ((int)(this[this.tableOKOI.QtyCurColumn])); + } + set { + this[this.tableOKOI.QtyCurColumn] = 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.tableOKOI.KitIDColumn])); + } + set { + this[this.tableOKOI.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.tableOKOI.BatchIDColumn])); + } + set { + this[this.tableOKOI.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.tableOKOI.CartIDColumn])); + } + set { + this[this.tableOKOI.CartIDColumn] = 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.tableOKOI.CartDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartDtmx\' nella tabella \'OKOI\' è DBNull.", e); + } + } + set { + this[this.tableOKOI.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.tableOKOI.CartIndexColumn])); + } + set { + this[this.tableOKOI.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.tableOKOI.CartKitStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitStart\' nella tabella \'OKOI\' è DBNull.", e); + } + } + set { + this[this.tableOKOI.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.tableOKOI.CartKitEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitEnd\' nella tabella \'OKOI\' è DBNull.", e); + } + } + set { + this[this.tableOKOI.CartKitEndColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOtherItemDtmxNull() { + return this.IsNull(this.tableOKOI.OtherItemDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOtherItemDtmxNull() { + this[this.tableOKOI.OtherItemDtmxColumn] = 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.tableOKOI.OnCartDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOnCartDateNull() { + this[this.tableOKOI.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.tableOKOI.CartDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartDtmxNull() { + this[this.tableOKOI.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.tableOKOI.CartKitStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitStartNull() { + this[this.tableOKOI.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.tableOKOI.CartKitEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitEndNull() { + this[this.tableOKOI.CartKitEndColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class OKOI_sumRow : global::System.Data.DataRow { + + private OKOI_sumDataTable tableOKOI_sum; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal OKOI_sumRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableOKOI_sum = ((OKOI_sumDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OtherItemID { + get { + return ((int)(this[this.tableOKOI_sum.OtherItemIDColumn])); + } + set { + this[this.tableOKOI_sum.OtherItemIDColumn] = 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.tableOKOI_sum.CartIDColumn])); + } + set { + this[this.tableOKOI_sum.CartIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemExtCode { + get { + return ((string)(this[this.tableOKOI_sum.OtherItemExtCodeColumn])); + } + set { + this[this.tableOKOI_sum.OtherItemExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemDesc { + get { + return ((string)(this[this.tableOKOI_sum.OtherItemDescColumn])); + } + set { + this[this.tableOKOI_sum.OtherItemDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string OtherItemDtmx { + get { + try { + return ((string)(this[this.tableOKOI_sum.OtherItemDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OtherItemDtmx\' nella tabella \'OKOI_sum\' è DBNull.", e); + } + } + set { + this[this.tableOKOI_sum.OtherItemDtmxColumn] = 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.tableOKOI_sum.OrdIDColumn])); + } + set { + this[this.tableOKOI_sum.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.tableOKOI_sum.OrderExtCodeColumn])); + } + set { + this[this.tableOKOI_sum.OrderExtCodeColumn] = 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.tableOKOI_sum.NumItemsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumItems\' nella tabella \'OKOI_sum\' è DBNull.", e); + } + } + set { + this[this.tableOKOI_sum.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.tableOKOI_sum.NumPickedColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumPicked\' nella tabella \'OKOI_sum\' è DBNull.", e); + } + } + set { + this[this.tableOKOI_sum.NumPickedColumn] = 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.tableOKOI_sum.BatchIDColumn])); + } + set { + this[this.tableOKOI_sum.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.tableOKOI_sum.CartDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartDtmx\' nella tabella \'OKOI_sum\' è DBNull.", e); + } + } + set { + this[this.tableOKOI_sum.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.tableOKOI_sum.CartIndexColumn])); + } + set { + this[this.tableOKOI_sum.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.tableOKOI_sum.CartKitStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitStart\' nella tabella \'OKOI_sum\' è DBNull.", e); + } + } + set { + this[this.tableOKOI_sum.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.tableOKOI_sum.CartKitEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartKitEnd\' nella tabella \'OKOI_sum\' è DBNull.", e); + } + } + set { + this[this.tableOKOI_sum.CartKitEndColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOtherItemDtmxNull() { + return this.IsNull(this.tableOKOI_sum.OtherItemDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOtherItemDtmxNull() { + this[this.tableOKOI_sum.OtherItemDtmxColumn] = 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.tableOKOI_sum.NumItemsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumItemsNull() { + this[this.tableOKOI_sum.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.tableOKOI_sum.NumPickedColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumPickedNull() { + this[this.tableOKOI_sum.NumPickedColumn] = 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.tableOKOI_sum.CartDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartDtmxNull() { + this[this.tableOKOI_sum.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.tableOKOI_sum.CartKitStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitStartNull() { + this[this.tableOKOI_sum.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.tableOKOI_sum.CartKitEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartKitEndNull() { + this[this.tableOKOI_sum.CartKitEndColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -21782,6 +23413,74 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class OKOIRowChangeEvent : global::System.EventArgs { + + private OKOIRow 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 OKOIRowChangeEvent(OKOIRow 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 OKOIRow 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; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class OKOI_sumRowChangeEvent : global::System.EventArgs { + + private OKOI_sumRow 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 OKOI_sumRowChangeEvent(OKOI_sumRow 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 OKOI_sumRow 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 { @@ -31452,12 +33151,13 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W tableMapping.ColumnMappings.Add("BatchName", "BatchName"); tableMapping.ColumnMappings.Add("ImportDate", "ImportDate"); tableMapping.ColumnMappings.Add("StatusID", "StatusID"); + tableMapping.ColumnMappings.Add("SchedPrior", "SchedPrior"); + tableMapping.ColumnMappings.Add("NumCart", "NumCart"); tableMapping.ColumnMappings.Add("NumKit", "NumKit"); tableMapping.ColumnMappings.Add("NumParts", "NumParts"); tableMapping.ColumnMappings.Add("TotQty", "TotQty"); - tableMapping.ColumnMappings.Add("StatusDesc", "StatusDesc"); - tableMapping.ColumnMappings.Add("SchedPrior", "SchedPrior"); tableMapping.ColumnMappings.Add("TotConf", "TotConf"); + tableMapping.ColumnMappings.Add("StatusDesc", "StatusDesc"); this._adapter.TableMappings.Add(tableMapping); } @@ -31474,7 +33174,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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_PackList"; + this._commandCollection[0].CommandText = "SELECT * FROM v_PackList"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -32430,7 +34130,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [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[4]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "select * from PackLog"; @@ -32445,20 +34145,36 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_PL_acquirePaint"; + this._commandCollection[2].CommandText = "dbo.stp_PL_acquireOtherItems"; this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OtherItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Device", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_PLog_getByCart"; + this._commandCollection[3].CommandText = "dbo.stp_PL_acquirePaint"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Device", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_PL_closeCart"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_PLog_getByCart"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -32490,7 +34206,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_App.PackLogDataTable getByCartId(global::System.Nullable CartID) { - this.Adapter.SelectCommand = this.CommandCollection[3]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((CartID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(CartID.Value)); } @@ -32545,8 +34261,60 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int acquirePaint(global::System.Nullable BinID, global::System.Nullable CartID, global::System.Nullable MaxNum, string Device, string UserName) { + public virtual int acquireOtherItems(global::System.Nullable OtherItemID, global::System.Nullable CartID, global::System.Nullable MaxNum, string Device, string UserName) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((OtherItemID.HasValue == true)) { + command.Parameters[1].Value = ((int)(OtherItemID.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((CartID.HasValue == true)) { + command.Parameters[2].Value = ((int)(CartID.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((MaxNum.HasValue == true)) { + command.Parameters[3].Value = ((int)(MaxNum.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Device == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Device)); + } + if ((UserName == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(UserName)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int acquirePaint(global::System.Nullable BinID, global::System.Nullable CartID, global::System.Nullable MaxNum, string Device, string UserName) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((BinID.HasValue == true)) { command.Parameters[1].Value = ((int)(BinID.Value)); } @@ -32593,6 +34361,34 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W } 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")] + public virtual int closeCart(global::System.Nullable CartID) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((CartID.HasValue == true)) { + command.Parameters[1].Value = ((int)(CartID.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } } /// @@ -33263,6 +35059,468 @@ 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 OKOITableAdapter : 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 OKOITableAdapter() { + 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 = "OKOI"; + tableMapping.ColumnMappings.Add("OtherItemID", "OtherItemID"); + tableMapping.ColumnMappings.Add("OtherItemExtCode", "OtherItemExtCode"); + tableMapping.ColumnMappings.Add("OtherItemDesc", "OtherItemDesc"); + tableMapping.ColumnMappings.Add("OtherItemDtmx", "OtherItemDtmx"); + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode"); + tableMapping.ColumnMappings.Add("KitExtCode", "KitExtCode"); + tableMapping.ColumnMappings.Add("OnCartDate", "OnCartDate"); + tableMapping.ColumnMappings.Add("QtyReq", "QtyReq"); + tableMapping.ColumnMappings.Add("QtyCur", "QtyCur"); + 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"); + 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_OKOI"; + 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_OKOI_getByOtherItemDtmx"; + 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("@OtherItemDtmx", 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.OKOIDataTable 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.OKOIDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.OKOIDataTable dataTable = new DS_App.OKOIDataTable(); + 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.OKOIDataTable getByOtherItemDtmx(string OtherItemDtmx) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((OtherItemDtmx == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(OtherItemDtmx)); + } + DS_App.OKOIDataTable dataTable = new DS_App.OKOIDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///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 OKOI_sumTableAdapter : 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 OKOI_sumTableAdapter() { + 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 = "OKOI_sum"; + tableMapping.ColumnMappings.Add("OtherItemID", "OtherItemID"); + tableMapping.ColumnMappings.Add("CartID", "CartID"); + tableMapping.ColumnMappings.Add("OtherItemExtCode", "OtherItemExtCode"); + tableMapping.ColumnMappings.Add("OtherItemDesc", "OtherItemDesc"); + tableMapping.ColumnMappings.Add("OtherItemDtmx", "OtherItemDtmx"); + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode"); + tableMapping.ColumnMappings.Add("NumItems", "NumItems"); + tableMapping.ColumnMappings.Add("NumPicked", "NumPicked"); + 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[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM v_OKOI_sum"; + 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_OKOI_Sum_getByCartDtmx"; + 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("@CartDtmx", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_OKOI_Sum_byKey"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OtherItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_OKOI_Sum_getByOtherItemDtmx"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OtherItemDtmx", 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.OKOI_sumDataTable 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.OKOI_sumDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.OKOI_sumDataTable dataTable = new DS_App.OKOI_sumDataTable(); + 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.OKOI_sumDataTable getByCartDtmx(string CartDtmx) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CartDtmx == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CartDtmx)); + } + DS_App.OKOI_sumDataTable dataTable = new DS_App.OKOI_sumDataTable(); + 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.OKOI_sumDataTable getByKey(global::System.Nullable OtherItemID, global::System.Nullable CartID) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((OtherItemID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(OtherItemID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((CartID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(CartID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_App.OKOI_sumDataTable dataTable = new DS_App.OKOI_sumDataTable(); + 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.OKOI_sumDataTable getByOtherItemDtmx(string OtherItemDtmx) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((OtherItemDtmx == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(OtherItemDtmx)); + } + DS_App.OKOI_sumDataTable dataTable = new DS_App.OKOI_sumDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -33664,15 +35922,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._kitListTableAdapter.Update(updatedRows)); - 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); @@ -33682,6 +35931,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._kitListTableAdapter.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); @@ -33709,6 +35967,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } + if ((this._order2FinalKitTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._order2FinalKitTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._itemValidationTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.ItemValidation.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -33718,6 +35985,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } + if ((this._errorsLogTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.ErrorsLog.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._errorsLogTableAdapter.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); @@ -33727,15 +36003,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } - if ((this._order2FinalKitTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._order2FinalKitTableAdapter.Update(updatedRows)); - 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); @@ -33772,15 +36039,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } - if ((this._errorsLogTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.ErrorsLog.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._errorsLogTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } return result; } @@ -33799,14 +36057,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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) - && (0 < addedRows.Length))) { - result = (result + this._kitListTableAdapter.Update(addedRows)); - 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) @@ -33815,6 +36065,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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) + && (0 < addedRows.Length))) { + result = (result + this._kitListTableAdapter.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) @@ -33839,6 +36097,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } + if ((this._order2FinalKitTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._order2FinalKitTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._itemValidationTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.ItemValidation.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -33847,6 +36113,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } + if ((this._errorsLogTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.ErrorsLog.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._errorsLogTableAdapter.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) @@ -33855,14 +36129,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } - if ((this._order2FinalKitTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._order2FinalKitTableAdapter.Update(addedRows)); - 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) @@ -33895,14 +36161,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } - if ((this._errorsLogTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.ErrorsLog.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._errorsLogTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } return result; } @@ -33913,14 +36171,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateDeletedRows(DS_App dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._errorsLogTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ErrorsLog.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._errorsLogTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._batchReqListTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -33953,14 +36203,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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) - && (0 < deletedRows.Length))) { - result = (result + this._order2FinalKitTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._countersTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Counters.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -33969,6 +36211,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } + if ((this._errorsLogTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ErrorsLog.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._errorsLogTableAdapter.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) @@ -33977,6 +36227,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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) + && (0 < deletedRows.Length))) { + result = (result + this._order2FinalKitTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._remnantsTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Remnants.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -34001,14 +36259,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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) - && (0 < deletedRows.Length))) { - result = (result + this._materialsTableAdapter.Update(deletedRows)); - 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) @@ -34017,6 +36267,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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) + && (0 < deletedRows.Length))) { + result = (result + this._materialsTableAdapter.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 e00656a..83690cd 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -2348,7 +2348,7 @@ FROM v_CartKitDetail - select * from v_PackList + SELECT * FROM v_PackList @@ -2359,12 +2359,13 @@ FROM v_CartKitDetail + + - - + @@ -2599,6 +2600,21 @@ FROM v_PackListDet + + + + dbo.stp_PL_acquireOtherItems + + + + + + + + + + + @@ -2614,6 +2630,17 @@ FROM v_PackListDet + + + + dbo.stp_PL_closeCart + + + + + + + @@ -2780,6 +2807,114 @@ FROM v_OKIB + + + + + + SELECT * FROM v_OKOI + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_OKOI_getByOtherItemDtmx + + + + + + + + + + + + + + + SELECT * FROM v_OKOI_sum + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_OKOI_Sum_getByCartDtmx + + + + + + + + + + + dbo.stp_OKOI_Sum_byKey + + + + + + + + + + + + dbo.stp_OKOI_Sum_getByOtherItemDtmx + + + + + + + + + @@ -2788,7 +2923,7 @@ FROM v_OKIB - + @@ -2838,7 +2973,7 @@ FROM v_OKIB - + @@ -2863,7 +2998,7 @@ FROM v_OKIB - + @@ -2918,7 +3053,7 @@ FROM v_OKIB - + @@ -2991,7 +3126,7 @@ FROM v_OKIB - + @@ -2999,7 +3134,7 @@ FROM v_OKIB - + @@ -3068,7 +3203,7 @@ FROM v_OKIB - + @@ -3101,7 +3236,7 @@ FROM v_OKIB - + @@ -3142,7 +3277,7 @@ FROM v_OKIB - + @@ -3161,7 +3296,7 @@ FROM v_OKIB - + @@ -3185,7 +3320,7 @@ FROM v_OKIB - + @@ -3193,7 +3328,7 @@ FROM v_OKIB - + @@ -3210,7 +3345,7 @@ FROM v_OKIB - + @@ -3219,7 +3354,7 @@ FROM v_OKIB - + @@ -3250,7 +3385,7 @@ FROM v_OKIB - + @@ -3258,7 +3393,7 @@ FROM v_OKIB - + @@ -3274,7 +3409,7 @@ FROM v_OKIB - + @@ -3282,7 +3417,7 @@ FROM v_OKIB - + @@ -3310,7 +3445,7 @@ FROM v_OKIB - + @@ -3346,7 +3481,7 @@ FROM v_OKIB - + @@ -3362,7 +3497,7 @@ FROM v_OKIB - + @@ -3372,7 +3507,7 @@ FROM v_OKIB - + @@ -3389,7 +3524,7 @@ FROM v_OKIB - + @@ -3402,7 +3537,7 @@ FROM v_OKIB - + @@ -3452,7 +3587,7 @@ FROM v_OKIB - + @@ -3465,9 +3600,12 @@ FROM v_OKIB + + + @@ -3475,12 +3613,10 @@ FROM v_OKIB - - - + @@ -3522,7 +3658,7 @@ FROM v_OKIB - + @@ -3631,7 +3767,7 @@ FROM v_OKIB - + @@ -3694,7 +3830,7 @@ FROM v_OKIB - + @@ -3739,7 +3875,7 @@ FROM v_OKIB - + @@ -3766,7 +3902,7 @@ FROM v_OKIB - + @@ -3859,7 +3995,7 @@ FROM v_OKIB - + @@ -3922,6 +4058,115 @@ FROM v_OKIB + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4048,21 +4293,26 @@ FROM v_OKIB + + + + + - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index b1fedff..23d83a3 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,43 +4,45 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + 352 @@ -52,7 +54,7 @@ - + 1197 @@ -64,7 +66,7 @@ - + 1054 @@ -76,7 +78,7 @@ - + 788 @@ -88,7 +90,7 @@ - + 986 @@ -100,7 +102,7 @@ - + 699 @@ -112,7 +114,7 @@ - + 550 @@ -124,7 +126,7 @@ - + 1129 @@ -136,7 +138,7 @@ - + 1380 @@ -148,7 +150,7 @@ - + 1161 @@ -160,7 +162,7 @@ - + 131 @@ -172,7 +174,7 @@ - + 352 diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index 662e37c..0927d19 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -11,6 +11,7 @@ namespace AppData public DS_AppTableAdapters.BatchListTableAdapter taBL; public DS_AppTableAdapters.BinsTableAdapter taBN; public DS_AppTableAdapters.BinListTableAdapter taBNLS; + public DS_AppTableAdapters.CartOnKitTableAdapter taCOK; public DS_AppTableAdapters.CountersTableAdapter taCount; public DS_AppTableAdapters.CartsTableAdapter taCR; public DS_AppTableAdapters.ErrorsLogTableAdapter taEL; @@ -25,6 +26,8 @@ namespace AppData public DS_AppTableAdapters.OffOrd2ItemTableAdapter taOO2I; public DS_AppTableAdapters.OKIBTableAdapter taOKIB; public DS_AppTableAdapters.OKIB_SumTableAdapter taOKIB_Sum; + public DS_AppTableAdapters.OKOITableAdapter taOKOI; + public DS_AppTableAdapters.OKOI_sumTableAdapter taOKOI_Sum; public DS_AppTableAdapters.OrderListTableAdapter taOL; public DS_AppTableAdapters.OtherItemTableAdapter taOtItem; public DS_AppTableAdapters.PackListTableAdapter taPL; @@ -53,6 +56,7 @@ namespace AppData taBL.Connection.ConnectionString = connString; taBN.Connection.ConnectionString = connString; taBNLS.Connection.ConnectionString = connString; + taCOK.Connection.ConnectionString = connString; taCount.Connection.ConnectionString = connString; taCR.Connection.ConnectionString = connString; taEL.Connection.ConnectionString = connString; @@ -67,6 +71,8 @@ namespace AppData taOO2I.Connection.ConnectionString = connString; taOKIB.Connection.ConnectionString = connString; taOKIB_Sum.Connection.ConnectionString = connString; + taOKOI.Connection.ConnectionString = connString; + taOKOI_Sum.Connection.ConnectionString = connString; taOL.Connection.ConnectionString = connString; taOtItem.Connection.ConnectionString = connString; taPL.Connection.ConnectionString = connString; @@ -87,6 +93,7 @@ namespace AppData taBL = new DS_AppTableAdapters.BatchListTableAdapter(); taBN = new DS_AppTableAdapters.BinsTableAdapter(); taBNLS = new DS_AppTableAdapters.BinListTableAdapter(); + taCOK= new DS_AppTableAdapters.CartOnKitTableAdapter (); taCount = new DS_AppTableAdapters.CountersTableAdapter(); taCR = new DS_AppTableAdapters.CartsTableAdapter(); taEL = new DS_AppTableAdapters.ErrorsLogTableAdapter(); @@ -101,6 +108,8 @@ namespace AppData taOO2I = new DS_AppTableAdapters.OffOrd2ItemTableAdapter(); taOKIB = new DS_AppTableAdapters.OKIBTableAdapter(); taOKIB_Sum = new DS_AppTableAdapters.OKIB_SumTableAdapter(); + taOKOI = new DS_AppTableAdapters.OKOITableAdapter(); + taOKOI_Sum = new DS_AppTableAdapters.OKOI_sumTableAdapter(); taOL = new DS_AppTableAdapters.OrderListTableAdapter(); taOtItem = new DS_AppTableAdapters.OtherItemTableAdapter(); taPL = new DS_AppTableAdapters.PackListTableAdapter(); diff --git a/Jenkinsfile b/Jenkinsfile index 8861d03..2cf2b5b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,10 +11,10 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=287']) { - // env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) - env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') - env.versionNumberBeta = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') + withEnv(['NEXT_BUILD_NUMBER=288']) { + // env.versionNumber = VersionNumber(versionNumberString : '0.10.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) + env.versionNumber = VersionNumber(versionNumberString : '0.10.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') + env.versionNumberBeta = VersionNumber(versionNumberString : '0.10.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'NKC' } } diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 8480400..85c66b3 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -399,12 +399,17 @@ + + - + + + + @@ -964,6 +969,13 @@ cmp_KS_BinCart.ascx + + cmp_KS_Cart.ascx + ASPXCodeBehind + + + cmp_KS_Cart.ascx + cmp_KS_currBin.ascx ASPXCodeBehind @@ -978,6 +990,13 @@ cmp_KS_currCart.ascx + + cmp_KS_currOI.ascx + ASPXCodeBehind + + + cmp_KS_currOI.ascx + cmp_KS_OkibBin.ascx ASPXCodeBehind @@ -999,12 +1018,33 @@ cmp_KS_OkibSum.ascx - - cmp_KS_OtherCart.ascx + + cmp_KS_OkoiCart.ascx ASPXCodeBehind - - cmp_KS_OtherCart.ascx + + cmp_KS_OkoiCart.ascx + + + cmp_KS_OkoiOI.ascx + ASPXCodeBehind + + + cmp_KS_OkoiOI.ascx + + + cmp_KS_OkoiSum.ascx + ASPXCodeBehind + + + cmp_KS_OkoiSum.ascx + + + cmp_KS_OtherItemsCart.ascx + ASPXCodeBehind + + + cmp_KS_OtherItemsCart.ascx cmp_login.ascx diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx index f364673..f514fd2 100644 --- a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx @@ -2,11 +2,6 @@ <%@ 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" %> -<%@ Register Src="~/WebUserControls/cmp_KS_OkibSum.ascx" TagPrefix="uc1" TagName="cmp_KS_OkibSum" %> - - -
@@ -32,10 +27,4 @@
-
- -
-
- -
diff --git a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs index 83df148..bc8569e 100644 --- a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.cs @@ -60,28 +60,26 @@ namespace NKC_WF.WebUserControls { // controllo visualizazione in base ai dati presenti cmp_KS_currBin.Visible = binOk; - cmp_KS_currCart.Visible = cartOk; + cmp_KS_currCart.Visible = showBtns; if (showBtns) { - cmp_KS_OkibSum.Visible = true; cmp_KS_OkibBin.Visible = false; - cmp_KS_OkibCart.Visible = false; } else { - cmp_KS_OkibSum.Visible = false; cmp_KS_OkibBin.Visible = binOk; - cmp_KS_OkibCart.Visible = cartOk; } - lbtAddAll.Visible = showBtns; - lbtAddOne.Visible = showBtns; // se ho bin e cart --> mostro buttons calcolati! + lbtAddAll.Visible = false; + lbtAddOne.Visible = false; if (showBtns) { var tabOKIB = DataLayer.man.taOKIB_Sum.getByKey(BinID, CartID); if (tabOKIB.Count > 0) { numMax = tabOKIB[0].NumItems - tabOKIB[0].NumPicked; + lbtAddAll.Visible = true; + lbtAddOne.Visible = true; } } } @@ -89,20 +87,9 @@ namespace NKC_WF.WebUserControls public void doUpdate() { fixVisibility(); - if (showBtns) + if (binOk && !cartOk) { - cmp_KS_OkibSum.doUpdate(); - } - else - { - if (binOk) - { - cmp_KS_OkibBin.doUpdate(); - } - if (cartOk) - { - cmp_KS_OkibCart.doUpdate(); - } + cmp_KS_OkibBin.doUpdate(); } } @@ -118,7 +105,6 @@ namespace NKC_WF.WebUserControls set { cmp_KS_currCart.CurrId = value; - cmp_KS_OkibSum.CartID = value; } } /// @@ -133,7 +119,6 @@ namespace NKC_WF.WebUserControls set { cmp_KS_currCart.Dtmx = value; - cmp_KS_OkibCart.Dtmx = value; } } /// @@ -148,7 +133,6 @@ namespace NKC_WF.WebUserControls set { cmp_KS_currBin.CurrId = value; - cmp_KS_OkibSum.BinID = value; } } /// @@ -170,13 +154,21 @@ namespace NKC_WF.WebUserControls protected void lbtAddOne_Click(object sender, EventArgs e) { DataLayer.man.taPLog.acquirePaint(BinID, CartID, 1, currIpAddress(), user_std.UtSn.userNameAD); - doUpdate(); + // resetto + CartID = 0; + BinID = 0; + // sollevo evento + raiseEvent(); } protected void lbtAddAll_Click(object sender, EventArgs e) { DataLayer.man.taPLog.acquirePaint(BinID, CartID, numMax, currIpAddress(), user_std.UtSn.userNameAD); - doUpdate(); + // resetto + CartID = 0; + BinID = 0; + // sollevo evento + raiseEvent(); } } } \ 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 index 45d5e40..8acaded 100644 --- a/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_KS_BinCart.ascx.designer.cs @@ -67,23 +67,5 @@ 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_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; - - /// - /// Controllo cmp_KS_OkibSum. - /// - /// - /// 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_OkibSum cmp_KS_OkibSum; } } diff --git a/NKC_WF/WebUserControls/cmp_KS_Cart.ascx b/NKC_WF/WebUserControls/cmp_KS_Cart.ascx new file mode 100644 index 0000000..e51b44d --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_Cart.ascx @@ -0,0 +1,22 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_Cart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_Cart" %> +<%@ Register Src="~/WebUserControls/cmp_KS_currCart.ascx" TagPrefix="uc1" TagName="cmp_KS_currCart" %> +<%@ Register Src="~/WebUserControls/cmp_KS_OkibCart.ascx" TagPrefix="uc1" TagName="cmp_KS_OkibCart" %> +<%@ Register Src="~/WebUserControls/cmp_KS_OkoiCart.ascx" TagPrefix="uc1" TagName="cmp_KS_OkoiCart" %> + + + + + + + +
+
+ +
+
+ +
+
+ +
+
diff --git a/NKC_WF/WebUserControls/cmp_KS_Cart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_Cart.ascx.cs new file mode 100644 index 0000000..7b314c0 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_Cart.ascx.cs @@ -0,0 +1,58 @@ +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_Cart : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + + /// + /// Cart selezionato + /// + public int CartID + { + get + { + return cmp_KS_currCart.CurrId; + } + set + { + cmp_KS_currCart.CurrId = value; + } + } + + /// + /// Matrix Bin selezionato + /// + public string CartDtmx + { + get + { + return cmp_KS_currCart.Dtmx; + } + set + { + cmp_KS_currCart.Dtmx = value; + cmp_KS_OkibCart.Dtmx = value; + cmp_KS_OkoiCart.Dtmx = value; + } + } + public void doUpdate() + { + //fixVisibility(); + //if (binOk && !cartOk) + //{ + // cmp_KS_OkibBin.doUpdate(); + //} + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_Cart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_Cart.ascx.designer.cs new file mode 100644 index 0000000..88e7ef4 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_Cart.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_Cart + { + + /// + /// 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; + + /// + /// 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; + + /// + /// Controllo cmp_KS_OkoiCart. + /// + /// + /// 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_OkoiCart cmp_KS_OkoiCart; + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx index 5b7e5a8..91edfa9 100644 --- a/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx +++ b/NKC_WF/WebUserControls/cmp_KS_OkibCart.ascx @@ -2,7 +2,7 @@ - +
@@ -13,13 +13,13 @@
- +
-
+
Picked:
-
+
Total:
diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx b/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx new file mode 100644 index 0000000..b9a519f --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx @@ -0,0 +1,36 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_OkoiCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_OkoiCart" %> + + + + + + +
+
+ + +
+
+ +
+
+
+
+ Picked: + +
+
+ Total: + +
+
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx.cs new file mode 100644 index 0000000..86317d6 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx.cs @@ -0,0 +1,35 @@ +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_OkoiCart : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + public string Dtmx + { + get + { + return hfDtmx.Value; + } + set + { + hfDtmx.Value = value.Trim(); + grView.DataBind(); + } + } + + internal void doUpdate() + { + grView.DataBind(); + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OkoiCart.ascx.designer.cs new file mode 100644 index 0000000..8231470 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiCart.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_OkoiCart + { + + /// + /// 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 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 hfDtmx; + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx b/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx new file mode 100644 index 0000000..1efd1b8 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx @@ -0,0 +1,35 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_OkoiOI.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_OkoiOI" %> + + + + +
+
+ + +
+
+ +
+
+ +
+
+ Picked: + +
+
+ Total: + +
+
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx.cs new file mode 100644 index 0000000..df773c6 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx.cs @@ -0,0 +1,35 @@ +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_OkoiOI : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + public string Dtmx + { + get + { + return hfDtmx.Value; + } + set + { + hfDtmx.Value = value.Trim(); + grView.DataBind(); + } + } + + internal void doUpdate() + { + grView.DataBind(); + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OkoiOI.ascx.designer.cs new file mode 100644 index 0000000..bcbdd52 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiOI.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_OkoiOI + { + + /// + /// 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 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 hfDtmx; + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx b/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx new file mode 100644 index 0000000..f46f7e0 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx @@ -0,0 +1,35 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_OkoiSum.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_OkoiSum" %> + + + + + +
+
+ + +
+
+ +
+
+ Picked: + +
+
+ Total: + +
+
+
+
+
+
+ + + + + + + + diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx.cs new file mode 100644 index 0000000..fe43d13 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx.cs @@ -0,0 +1,54 @@ +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_OkoiSum : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + OtherItemID = 0; + CartID = 0; + } + } + + public void doUpdate() + { + grView.DataBind(); + } + + public int OtherItemID + { + get + { + int answ = 0; + int.TryParse(hfOtherItemID.Value, out answ); + return answ; + } + set + { + hfOtherItemID.Value = value.ToString(); + } + } + + public int CartID + { + get + { + int answ = 0; + int.TryParse(hfCartID.Value, out answ); + return answ; + } + set + { + hfCartID.Value = value.ToString(); + } + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OkoiSum.ascx.designer.cs new file mode 100644 index 0000000..ab482c1 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OkoiSum.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_OkoiSum + { + + /// + /// 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 hfOtherItemID. + /// + /// + /// 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 hfOtherItemID; + + /// + /// Controllo hfCartID. + /// + /// + /// 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 hfCartID; + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx b/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx deleted file mode 100644 index d6e5f85..0000000 --- a/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx +++ /dev/null @@ -1 +0,0 @@ -<%@ 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 deleted file mode 100644 index dd32c6e..0000000 --- a/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.cs +++ /dev/null @@ -1,17 +0,0 @@ -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 deleted file mode 100644 index c38d3f1..0000000 --- a/NKC_WF/WebUserControls/cmp_KS_OtherCart.ascx.designer.cs +++ /dev/null @@ -1,17 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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_OtherItemsCart.ascx b/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx new file mode 100644 index 0000000..7740366 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx @@ -0,0 +1,29 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_OtherItemsCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_OtherItemsCart" %> +<%@ Register Src="~/WebUserControls/cmp_KS_currOI.ascx" TagPrefix="uc1" TagName="cmp_KS_currOI" %> +<%@ Register Src="~/WebUserControls/cmp_KS_currCart.ascx" TagPrefix="uc1" TagName="cmp_KS_currCart" %> +<%@ Register Src="~/WebUserControls/cmp_KS_OkoiSum.ascx" TagPrefix="uc1" TagName="cmp_KS_OkoiSum" %> +<%@ Register Src="~/WebUserControls/cmp_KS_OkoiOI.ascx" TagPrefix="uc1" TagName="cmp_KS_OkoiOI" %> + + +
+
+ +
+
+
+
+ + +<%: hfNumAll.Value %> (ALL) +
+
+
+
+ +
+
+ +
+
+ +
+
diff --git a/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx.cs new file mode 100644 index 0000000..0228087 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx.cs @@ -0,0 +1,161 @@ +using AppData; +using SteamWare; +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_OtherItemsCart : BaseUserControl + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + fixVisibility(); + } + } + + protected bool showBtns + { + get + { + return otherItemOk && cartOk; + } + } + protected bool otherItemOk + { + get + { + return OtherItemID > 0; + } + } + protected bool cartOk + { + get + { + return CartID > 0; + } + } + + public int numMax + { + get + { + int answ = 0; + int.TryParse(hfNumAll.Value, out answ); + return answ; + } + set + { + hfNumAll.Value = value.ToString(); + } + } + + private void fixVisibility() + { + // controllo visualizazione in base ai dati presenti + cmp_KS_currOI.Visible = otherItemOk; + cmp_KS_currCart.Visible = showBtns; + if (showBtns) + { + cmp_KS_OkoiOI.Visible = false; + } + else + { + cmp_KS_OkoiOI.Visible = otherItemOk; + } + // se ho bin e cart --> mostro buttons calcolati! + lbtAddAll.Visible = false; + if (showBtns) + { + var tabOKOI = DataLayer.man.taOKOI_Sum.getByKey(OtherItemID, CartID); + if (tabOKOI.Count > 0) + { + numMax = tabOKOI[0].NumItems - tabOKOI[0].NumPicked; + lbtAddAll.Visible = true; + } + } + } + + public void doUpdate() + { + fixVisibility(); + if (otherItemOk && !cartOk) + { + cmp_KS_OkoiOI.doUpdate(); + } + } + + /// + /// 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; + } + } + /// + /// OtherItem selezionato + /// + public int OtherItemID + { + get + { + return cmp_KS_currOI.CurrId; + } + set + { + cmp_KS_currOI.CurrId = value; + } + } + /// + /// Matrix OtherItem selezionato + /// + public string OtherItemDtmx + { + get + { + return cmp_KS_currOI.Dtmx; + } + set + { + cmp_KS_currOI.Dtmx = value; + cmp_KS_OkoiOI.Dtmx = value; + } + } + + protected void lbtAddAll_Click(object sender, EventArgs e) + { + DataLayer.man.taPLog.acquireOtherItems(OtherItemID, CartID, numMax, currIpAddress(), user_std.UtSn.userNameAD); + // resetto + CartID = 0; + OtherItemID = 0; + // sollevo evento + raiseEvent(); + } + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx.designer.cs new file mode 100644 index 0000000..1d3b4dd --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_OtherItemsCart.ascx.designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// 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_OtherItemsCart + { + + /// + /// Controllo cmp_KS_currOI. + /// + /// + /// 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_currOI cmp_KS_currOI; + + /// + /// Controllo hfNumAll. + /// + /// + /// 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 hfNumAll; + + /// + /// 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; + + /// + /// Controllo cmp_KS_OkoiOI. + /// + /// + /// 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_OkoiOI cmp_KS_OkoiOI; + } +} diff --git a/NKC_WF/WebUserControls/cmp_KS_currOI.ascx b/NKC_WF/WebUserControls/cmp_KS_currOI.ascx new file mode 100644 index 0000000..3fac7e2 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currOI.ascx @@ -0,0 +1,6 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_KS_currOI.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_KS_currOI" %> +
+
OTHER PARTS
+ + +
diff --git a/NKC_WF/WebUserControls/cmp_KS_currOI.ascx.cs b/NKC_WF/WebUserControls/cmp_KS_currOI.ascx.cs new file mode 100644 index 0000000..330c9b8 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currOI.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_currOI : 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_currOI.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_KS_currOI.ascx.designer.cs new file mode 100644 index 0000000..c56f301 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_KS_currOI.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_currOI + { + + /// + /// 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_kitRunning.ascx b/NKC_WF/WebUserControls/cmp_kitRunning.ascx index 53a965d..fd892e5 100644 --- a/NKC_WF/WebUserControls/cmp_kitRunning.ascx +++ b/NKC_WF/WebUserControls/cmp_kitRunning.ascx @@ -3,12 +3,13 @@
-
#
-
-
-
KIT #:
-
Parts #:
-
Read / Tot #: /
+
#
+
+
+
Cart #:
+
KIT #:
+
Parts #:
+
Read / Tot #: /
diff --git a/NKC_WF/WebUserControls/cmp_kittingBin.ascx b/NKC_WF/WebUserControls/cmp_kittingBin.ascx index 2cb6166..36217ad 100644 --- a/NKC_WF/WebUserControls/cmp_kittingBin.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingBin.ascx @@ -8,7 +8,7 @@