From 67d58aa6b180cfb6d45aec90a08a864d5ff71540 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 19 Feb 2020 12:34:43 +0100 Subject: [PATCH 1/5] Inizio gestione dettaglio cart in KIT stage --- AppData/DS_App.Designer.cs | 1377 +++++++++++++++-- AppData/DS_App.xsd | 189 ++- AppData/DS_App.xss | 73 +- NKC_WF/WebUserControls/cmp_kittingCart.ascx | 119 +- .../cmp_kittingCart.ascx.designer.cs | 71 +- 5 files changed, 1461 insertions(+), 368 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 00cf02f..11a6fdc 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -70,6 +70,8 @@ namespace AppData { private RemnantsDataTable tableRemnants; + private CartOnKitDataTable tableCartOnKit; + private global::System.Data.DataRelation relationFK_BatchReqList_OrderList; private global::System.Data.DataRelation relationFK_ItemList_Materials1; @@ -191,6 +193,9 @@ namespace AppData { if ((ds.Tables["Remnants"] != null)) { base.Tables.Add(new RemnantsDataTable(ds.Tables["Remnants"])); } + if ((ds.Tables["CartOnKit"] != null)) { + base.Tables.Add(new CartOnKitDataTable(ds.Tables["CartOnKit"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -439,6 +444,16 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public CartOnKitDataTable CartOnKit { + get { + return this.tableCartOnKit; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -575,6 +590,9 @@ namespace AppData { if ((ds.Tables["Remnants"] != null)) { base.Tables.Add(new RemnantsDataTable(ds.Tables["Remnants"])); } + if ((ds.Tables["CartOnKit"] != null)) { + base.Tables.Add(new CartOnKitDataTable(ds.Tables["CartOnKit"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -746,6 +764,12 @@ namespace AppData { this.tableRemnants.InitVars(); } } + this.tableCartOnKit = ((CartOnKitDataTable)(base.Tables["CartOnKit"])); + if ((initTable == true)) { + if ((this.tableCartOnKit != null)) { + this.tableCartOnKit.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"]; @@ -814,6 +838,8 @@ namespace AppData { base.Tables.Add(this.tableUnloadStats); this.tableRemnants = new RemnantsDataTable(); base.Tables.Add(this.tableRemnants); + this.tableCartOnKit = new CartOnKitDataTable(); + base.Tables.Add(this.tableCartOnKit); 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); @@ -1002,6 +1028,12 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeCartOnKit() { + 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) { @@ -1126,6 +1158,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void RemnantsRowChangeEventHandler(object sender, RemnantsRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void CartOnKitRowChangeEventHandler(object sender, CartOnKitRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4293,6 +4328,8 @@ namespace AppData { private global::System.Data.DataColumn columnBinID; + private global::System.Data.DataColumn columnBatchID; + private global::System.Data.DataColumn columnBinIndex; private global::System.Data.DataColumn columnBinDtmx; @@ -4301,24 +4338,22 @@ namespace AppData { private global::System.Data.DataColumn columnCreationDate; - private global::System.Data.DataColumn columnBatchID; - private global::System.Data.DataColumn columnTotItem; private global::System.Data.DataColumn columnTotItemLoad; private global::System.Data.DataColumn columnPaintDate; + private global::System.Data.DataColumn columnKittingStart; + + private global::System.Data.DataColumn columnKittingEnd; + private global::System.Data.DataColumn columnFillup; private global::System.Data.DataColumn columnComplete; private global::System.Data.DataColumn columnPainted; - private global::System.Data.DataColumn columnKittingStart; - - private global::System.Data.DataColumn columnKittingEnd; - private global::System.Data.DataColumn columnKitting; private global::System.Data.DataColumn columnKitted; @@ -4366,6 +4401,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 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 BinIndexColumn { @@ -4398,14 +4441,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 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 TotItemColumn { @@ -4430,6 +4465,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 KittingStartColumn { + get { + return this.columnKittingStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KittingEndColumn { + get { + return this.columnKittingEnd; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn FillupColumn { @@ -4454,22 +4505,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 KittingStartColumn { - get { - return this.columnKittingStart; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn KittingEndColumn { - get { - return this.columnKittingEnd; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn KittingColumn { @@ -4532,38 +4567,38 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public BinsRow AddBinsRow( + int BatchID, int BinIndex, string BinDtmx, string BinDtmxProc, System.DateTime CreationDate, - int BatchID, int TotItem, int TotItemLoad, System.DateTime PaintDate, + System.DateTime KittingStart, + System.DateTime KittingEnd, int Fillup, int Complete, int Painted, - System.DateTime KittingStart, - System.DateTime KittingEnd, int Kitting, int Kitted, string ItemExtCode) { BinsRow rowBinsRow = ((BinsRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, + BatchID, BinIndex, BinDtmx, BinDtmxProc, CreationDate, - BatchID, TotItem, TotItemLoad, PaintDate, + KittingStart, + KittingEnd, Fillup, Complete, Painted, - KittingStart, - KittingEnd, Kitting, Kitted, ItemExtCode}; @@ -4597,19 +4632,19 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] internal void InitVars() { this.columnBinID = base.Columns["BinID"]; + this.columnBatchID = base.Columns["BatchID"]; this.columnBinIndex = base.Columns["BinIndex"]; this.columnBinDtmx = base.Columns["BinDtmx"]; this.columnBinDtmxProc = base.Columns["BinDtmxProc"]; this.columnCreationDate = base.Columns["CreationDate"]; - this.columnBatchID = base.Columns["BatchID"]; this.columnTotItem = base.Columns["TotItem"]; this.columnTotItemLoad = base.Columns["TotItemLoad"]; this.columnPaintDate = base.Columns["PaintDate"]; + this.columnKittingStart = base.Columns["KittingStart"]; + this.columnKittingEnd = base.Columns["KittingEnd"]; this.columnFillup = base.Columns["Fillup"]; this.columnComplete = base.Columns["Complete"]; this.columnPainted = base.Columns["Painted"]; - this.columnKittingStart = base.Columns["KittingStart"]; - this.columnKittingEnd = base.Columns["KittingEnd"]; this.columnKitting = base.Columns["Kitting"]; this.columnKitted = base.Columns["Kitted"]; this.columnItemExtCode = base.Columns["ItemExtCode"]; @@ -4620,6 +4655,8 @@ namespace AppData { private void InitClass() { this.columnBinID = new global::System.Data.DataColumn("BinID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnBinID); + this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBatchID); this.columnBinIndex = new global::System.Data.DataColumn("BinIndex", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnBinIndex); this.columnBinDtmx = new global::System.Data.DataColumn("BinDtmx", typeof(string), null, global::System.Data.MappingType.Element); @@ -4628,24 +4665,22 @@ namespace AppData { base.Columns.Add(this.columnBinDtmxProc); this.columnCreationDate = new global::System.Data.DataColumn("CreationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCreationDate); - this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBatchID); this.columnTotItem = new global::System.Data.DataColumn("TotItem", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTotItem); this.columnTotItemLoad = new global::System.Data.DataColumn("TotItemLoad", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTotItemLoad); this.columnPaintDate = new global::System.Data.DataColumn("PaintDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnPaintDate); + this.columnKittingStart = new global::System.Data.DataColumn("KittingStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKittingStart); + this.columnKittingEnd = new global::System.Data.DataColumn("KittingEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKittingEnd); this.columnFillup = new global::System.Data.DataColumn("Fillup", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnFillup); this.columnComplete = new global::System.Data.DataColumn("Complete", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnComplete); this.columnPainted = new global::System.Data.DataColumn("Painted", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnPainted); - this.columnKittingStart = new global::System.Data.DataColumn("KittingStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnKittingStart); - this.columnKittingEnd = new global::System.Data.DataColumn("KittingEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnKittingEnd); this.columnKitting = new global::System.Data.DataColumn("Kitting", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnKitting); this.columnKitted = new global::System.Data.DataColumn("Kitted", typeof(int), null, global::System.Data.MappingType.Element); @@ -4660,17 +4695,14 @@ namespace AppData { this.columnBinID.AllowDBNull = false; this.columnBinID.ReadOnly = true; this.columnBinID.Unique = true; + this.columnBatchID.AllowDBNull = false; this.columnBinIndex.AllowDBNull = false; this.columnBinDtmx.ReadOnly = true; this.columnBinDtmx.MaxLength = 10; this.columnBinDtmxProc.ReadOnly = true; this.columnBinDtmxProc.MaxLength = 10; - this.columnBatchID.AllowDBNull = false; - this.columnBatchID.ReadOnly = true; this.columnTotItem.AllowDBNull = false; - this.columnTotItem.ReadOnly = true; this.columnTotItemLoad.AllowDBNull = false; - this.columnTotItemLoad.ReadOnly = true; this.columnFillup.ReadOnly = true; this.columnComplete.ReadOnly = true; this.columnPainted.ReadOnly = true; @@ -9519,6 +9551,522 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CartOnKitDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCartID; + + private global::System.Data.DataColumn columnBatchID; + + private global::System.Data.DataColumn columnOrdID; + + private global::System.Data.DataColumn columnCartIndex; + + private global::System.Data.DataColumn columnCartDtmx; + + private global::System.Data.DataColumn columnCreationDate; + + private global::System.Data.DataColumn columnKittingStart; + + private global::System.Data.DataColumn columnKittingEnd; + + private global::System.Data.DataColumn columnTotItem; + + private global::System.Data.DataColumn columnTotItemCart; + + private global::System.Data.DataColumn columnTotItemBinReq; + + private global::System.Data.DataColumn columnNumPzBinAvail; + + private global::System.Data.DataColumn columnNumPzWaiting; + + private global::System.Data.DataColumn columnOrderExtCode; + + private global::System.Data.DataColumn columnDestPlant; + + private global::System.Data.DataColumn columnModelCode; + + private global::System.Data.DataColumn columnKitQty; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CartOnKitDataTable() { + this.TableName = "CartOnKit"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal CartOnKitDataTable(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 CartOnKitDataTable(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 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 BatchIDColumn { + get { + return this.columnBatchID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrdIDColumn { + get { + return this.columnOrdID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + 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 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 CreationDateColumn { + get { + return this.columnCreationDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KittingStartColumn { + get { + return this.columnKittingStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KittingEndColumn { + get { + return this.columnKittingEnd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TotItemColumn { + get { + return this.columnTotItem; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TotItemCartColumn { + get { + return this.columnTotItemCart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TotItemBinReqColumn { + get { + return this.columnTotItemBinReq; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumPzBinAvailColumn { + get { + return this.columnNumPzBinAvail; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumPzWaitingColumn { + get { + return this.columnNumPzWaiting; + } + } + + [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 DestPlantColumn { + get { + return this.columnDestPlant; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ModelCodeColumn { + get { + return this.columnModelCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KitQtyColumn { + get { + return this.columnKitQty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [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 CartOnKitRow this[int index] { + get { + return ((CartOnKitRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CartOnKitRowChangeEventHandler CartOnKitRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CartOnKitRowChangeEventHandler CartOnKitRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CartOnKitRowChangeEventHandler CartOnKitRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CartOnKitRowChangeEventHandler CartOnKitRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddCartOnKitRow(CartOnKitRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CartOnKitRow AddCartOnKitRow( + int CartID, + int BatchID, + int OrdID, + int CartIndex, + string CartDtmx, + System.DateTime CreationDate, + System.DateTime KittingStart, + System.DateTime KittingEnd, + int TotItem, + int TotItemCart, + int TotItemBinReq, + int NumPzBinAvail, + int NumPzWaiting, + string OrderExtCode, + string DestPlant, + string ModelCode, + int KitQty) { + CartOnKitRow rowCartOnKitRow = ((CartOnKitRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CartID, + BatchID, + OrdID, + CartIndex, + CartDtmx, + CreationDate, + KittingStart, + KittingEnd, + TotItem, + TotItemCart, + TotItemBinReq, + NumPzBinAvail, + NumPzWaiting, + OrderExtCode, + DestPlant, + ModelCode, + KitQty}; + rowCartOnKitRow.ItemArray = columnValuesArray; + this.Rows.Add(rowCartOnKitRow); + return rowCartOnKitRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CartOnKitRow FindByCartID(int CartID) { + return ((CartOnKitRow)(this.Rows.Find(new object[] { + CartID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + CartOnKitDataTable cln = ((CartOnKitDataTable)(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 CartOnKitDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnCartID = base.Columns["CartID"]; + this.columnBatchID = base.Columns["BatchID"]; + this.columnOrdID = base.Columns["OrdID"]; + this.columnCartIndex = base.Columns["CartIndex"]; + this.columnCartDtmx = base.Columns["CartDtmx"]; + this.columnCreationDate = base.Columns["CreationDate"]; + this.columnKittingStart = base.Columns["KittingStart"]; + this.columnKittingEnd = base.Columns["KittingEnd"]; + this.columnTotItem = base.Columns["TotItem"]; + this.columnTotItemCart = base.Columns["TotItemCart"]; + this.columnTotItemBinReq = base.Columns["TotItemBinReq"]; + this.columnNumPzBinAvail = base.Columns["NumPzBinAvail"]; + this.columnNumPzWaiting = base.Columns["NumPzWaiting"]; + this.columnOrderExtCode = base.Columns["OrderExtCode"]; + this.columnDestPlant = base.Columns["DestPlant"]; + this.columnModelCode = base.Columns["ModelCode"]; + this.columnKitQty = base.Columns["KitQty"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnCartID = new global::System.Data.DataColumn("CartID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartID); + this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBatchID); + this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdID); + this.columnCartIndex = new global::System.Data.DataColumn("CartIndex", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartIndex); + this.columnCartDtmx = new global::System.Data.DataColumn("CartDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCartDtmx); + this.columnCreationDate = new global::System.Data.DataColumn("CreationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCreationDate); + this.columnKittingStart = new global::System.Data.DataColumn("KittingStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKittingStart); + this.columnKittingEnd = new global::System.Data.DataColumn("KittingEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKittingEnd); + this.columnTotItem = new global::System.Data.DataColumn("TotItem", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotItem); + this.columnTotItemCart = new global::System.Data.DataColumn("TotItemCart", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotItemCart); + this.columnTotItemBinReq = new global::System.Data.DataColumn("TotItemBinReq", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotItemBinReq); + this.columnNumPzBinAvail = new global::System.Data.DataColumn("NumPzBinAvail", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumPzBinAvail); + this.columnNumPzWaiting = new global::System.Data.DataColumn("NumPzWaiting", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumPzWaiting); + this.columnOrderExtCode = new global::System.Data.DataColumn("OrderExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrderExtCode); + this.columnDestPlant = new global::System.Data.DataColumn("DestPlant", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDestPlant); + this.columnModelCode = new global::System.Data.DataColumn("ModelCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModelCode); + this.columnKitQty = new global::System.Data.DataColumn("KitQty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKitQty); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCartID}, true)); + this.columnCartID.AllowDBNull = false; + this.columnCartID.Unique = true; + this.columnBatchID.AllowDBNull = false; + this.columnCartIndex.AllowDBNull = false; + this.columnCartDtmx.ReadOnly = true; + this.columnCartDtmx.MaxLength = 10; + this.columnCreationDate.AllowDBNull = false; + this.columnTotItem.AllowDBNull = false; + this.columnTotItemCart.AllowDBNull = false; + this.columnTotItemBinReq.AllowDBNull = false; + this.columnNumPzBinAvail.ReadOnly = true; + this.columnNumPzWaiting.ReadOnly = true; + this.columnOrderExtCode.AllowDBNull = false; + this.columnOrderExtCode.MaxLength = 250; + this.columnDestPlant.AllowDBNull = false; + this.columnDestPlant.MaxLength = 50; + this.columnModelCode.AllowDBNull = false; + this.columnModelCode.MaxLength = 250; + this.columnKitQty.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CartOnKitRow NewCartOnKitRow() { + return ((CartOnKitRow)(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 CartOnKitRow(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(CartOnKitRow); + } + + [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.CartOnKitRowChanged != null)) { + this.CartOnKitRowChanged(this, new CartOnKitRowChangeEvent(((CartOnKitRow)(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.CartOnKitRowChanging != null)) { + this.CartOnKitRowChanging(this, new CartOnKitRowChangeEvent(((CartOnKitRow)(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.CartOnKitRowDeleted != null)) { + this.CartOnKitRowDeleted(this, new CartOnKitRowChangeEvent(((CartOnKitRow)(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.CartOnKitRowDeleting != null)) { + this.CartOnKitRowDeleting(this, new CartOnKitRowChangeEvent(((CartOnKitRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveCartOnKitRow(CartOnKitRow 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 = "CartOnKitDataTable"; + 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. /// @@ -11332,6 +11880,17 @@ namespace AppData { } } + [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.tableBins.BatchIDColumn])); + } + set { + this[this.tableBins.BatchIDColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int BinIndex { @@ -11391,17 +11950,6 @@ namespace AppData { } } - [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.tableBins.BatchIDColumn])); - } - set { - this[this.tableBins.BatchIDColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int TotItem { @@ -11440,6 +11988,38 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime KittingStart { + get { + try { + return ((global::System.DateTime)(this[this.tableBins.KittingStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingStart\' nella tabella \'Bins\' è DBNull.", e); + } + } + set { + this[this.tableBins.KittingStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime KittingEnd { + get { + try { + return ((global::System.DateTime)(this[this.tableBins.KittingEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingEnd\' nella tabella \'Bins\' è DBNull.", e); + } + } + set { + this[this.tableBins.KittingEndColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int Fillup { @@ -11488,38 +12068,6 @@ namespace AppData { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime KittingStart { - get { - try { - return ((global::System.DateTime)(this[this.tableBins.KittingStartColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingStart\' nella tabella \'Bins\' è DBNull.", e); - } - } - set { - this[this.tableBins.KittingStartColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime KittingEnd { - get { - try { - return ((global::System.DateTime)(this[this.tableBins.KittingEndColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingEnd\' nella tabella \'Bins\' è DBNull.", e); - } - } - set { - this[this.tableBins.KittingEndColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int Kitting { @@ -11611,6 +12159,30 @@ namespace AppData { this[this.tableBins.PaintDateColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsKittingStartNull() { + return this.IsNull(this.tableBins.KittingStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetKittingStartNull() { + this[this.tableBins.KittingStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsKittingEndNull() { + return this.IsNull(this.tableBins.KittingEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetKittingEndNull() { + this[this.tableBins.KittingEndColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsFillupNull() { @@ -11647,30 +12219,6 @@ namespace AppData { this[this.tableBins.PaintedColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsKittingStartNull() { - return this.IsNull(this.tableBins.KittingStartColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetKittingStartNull() { - this[this.tableBins.KittingStartColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsKittingEndNull() { - return this.IsNull(this.tableBins.KittingEndColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetKittingEndNull() { - this[this.tableBins.KittingEndColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsKittingNull() { @@ -13112,6 +13660,310 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class CartOnKitRow : global::System.Data.DataRow { + + private CartOnKitDataTable tableCartOnKit; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal CartOnKitRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableCartOnKit = ((CartOnKitDataTable)(this.Table)); + } + + [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.tableCartOnKit.CartIDColumn])); + } + set { + this[this.tableCartOnKit.CartIDColumn] = 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.tableCartOnKit.BatchIDColumn])); + } + set { + this[this.tableCartOnKit.BatchIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OrdID { + get { + try { + return ((int)(this[this.tableCartOnKit.OrdIDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdID\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.OrdIDColumn] = 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.tableCartOnKit.CartIndexColumn])); + } + set { + this[this.tableCartOnKit.CartIndexColumn] = 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.tableCartOnKit.CartDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CartDtmx\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.CartDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime CreationDate { + get { + return ((global::System.DateTime)(this[this.tableCartOnKit.CreationDateColumn])); + } + set { + this[this.tableCartOnKit.CreationDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime KittingStart { + get { + try { + return ((global::System.DateTime)(this[this.tableCartOnKit.KittingStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingStart\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.KittingStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime KittingEnd { + get { + try { + return ((global::System.DateTime)(this[this.tableCartOnKit.KittingEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'KittingEnd\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.KittingEndColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int TotItem { + get { + return ((int)(this[this.tableCartOnKit.TotItemColumn])); + } + set { + this[this.tableCartOnKit.TotItemColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int TotItemCart { + get { + return ((int)(this[this.tableCartOnKit.TotItemCartColumn])); + } + set { + this[this.tableCartOnKit.TotItemCartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int TotItemBinReq { + get { + return ((int)(this[this.tableCartOnKit.TotItemBinReqColumn])); + } + set { + this[this.tableCartOnKit.TotItemBinReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumPzBinAvail { + get { + try { + return ((int)(this[this.tableCartOnKit.NumPzBinAvailColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumPzBinAvail\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.NumPzBinAvailColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumPzWaiting { + get { + try { + return ((int)(this[this.tableCartOnKit.NumPzWaitingColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumPzWaiting\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.NumPzWaitingColumn] = 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.tableCartOnKit.OrderExtCodeColumn])); + } + set { + this[this.tableCartOnKit.OrderExtCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string DestPlant { + get { + return ((string)(this[this.tableCartOnKit.DestPlantColumn])); + } + set { + this[this.tableCartOnKit.DestPlantColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ModelCode { + get { + return ((string)(this[this.tableCartOnKit.ModelCodeColumn])); + } + set { + this[this.tableCartOnKit.ModelCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int KitQty { + get { + return ((int)(this[this.tableCartOnKit.KitQtyColumn])); + } + set { + this[this.tableCartOnKit.KitQtyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOrdIDNull() { + return this.IsNull(this.tableCartOnKit.OrdIDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOrdIDNull() { + this[this.tableCartOnKit.OrdIDColumn] = 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.tableCartOnKit.CartDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCartDtmxNull() { + this[this.tableCartOnKit.CartDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsKittingStartNull() { + return this.IsNull(this.tableCartOnKit.KittingStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetKittingStartNull() { + this[this.tableCartOnKit.KittingStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsKittingEndNull() { + return this.IsNull(this.tableCartOnKit.KittingEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetKittingEndNull() { + this[this.tableCartOnKit.KittingEndColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumPzBinAvailNull() { + return this.IsNull(this.tableCartOnKit.NumPzBinAvailColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumPzBinAvailNull() { + this[this.tableCartOnKit.NumPzBinAvailColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumPzWaitingNull() { + return this.IsNull(this.tableCartOnKit.NumPzWaitingColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumPzWaitingNull() { + this[this.tableCartOnKit.NumPzWaitingColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -13893,6 +14745,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class CartOnKitRowChangeEvent : global::System.EventArgs { + + private CartOnKitRow 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 CartOnKitRowChangeEvent(CartOnKitRow 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 CartOnKitRow 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 { @@ -18252,19 +19138,19 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "Bins"; tableMapping.ColumnMappings.Add("BinID", "BinID"); + tableMapping.ColumnMappings.Add("BatchID", "BatchID"); tableMapping.ColumnMappings.Add("BinIndex", "BinIndex"); tableMapping.ColumnMappings.Add("BinDtmx", "BinDtmx"); tableMapping.ColumnMappings.Add("BinDtmxProc", "BinDtmxProc"); tableMapping.ColumnMappings.Add("CreationDate", "CreationDate"); - tableMapping.ColumnMappings.Add("BatchID", "BatchID"); tableMapping.ColumnMappings.Add("TotItem", "TotItem"); tableMapping.ColumnMappings.Add("TotItemLoad", "TotItemLoad"); tableMapping.ColumnMappings.Add("PaintDate", "PaintDate"); + tableMapping.ColumnMappings.Add("KittingStart", "KittingStart"); + tableMapping.ColumnMappings.Add("KittingEnd", "KittingEnd"); tableMapping.ColumnMappings.Add("Fillup", "Fillup"); tableMapping.ColumnMappings.Add("Complete", "Complete"); tableMapping.ColumnMappings.Add("Painted", "Painted"); - tableMapping.ColumnMappings.Add("KittingStart", "KittingStart"); - tableMapping.ColumnMappings.Add("KittingEnd", "KittingEnd"); tableMapping.ColumnMappings.Add("Kitting", "Kitting"); tableMapping.ColumnMappings.Add("Kitted", "Kitted"); tableMapping.ColumnMappings.Add("ItemExtCode", "ItemExtCode"); @@ -18284,7 +19170,7 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_BinDetail"; + this._commandCollection[0].CommandText = "SELECT * FROM v_BinDetail"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -22953,6 +23839,189 @@ 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 CartOnKitTableAdapter : 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 CartOnKitTableAdapter() { + 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 = "CartOnKit"; + tableMapping.ColumnMappings.Add("CartID", "CartID"); + tableMapping.ColumnMappings.Add("BatchID", "BatchID"); + tableMapping.ColumnMappings.Add("OrdID", "OrdID"); + tableMapping.ColumnMappings.Add("CartIndex", "CartIndex"); + tableMapping.ColumnMappings.Add("CartDtmx", "CartDtmx"); + tableMapping.ColumnMappings.Add("CreationDate", "CreationDate"); + tableMapping.ColumnMappings.Add("KittingStart", "KittingStart"); + tableMapping.ColumnMappings.Add("KittingEnd", "KittingEnd"); + tableMapping.ColumnMappings.Add("TotItem", "TotItem"); + tableMapping.ColumnMappings.Add("TotItemCart", "TotItemCart"); + tableMapping.ColumnMappings.Add("TotItemBinReq", "TotItemBinReq"); + tableMapping.ColumnMappings.Add("NumPzBinAvail", "NumPzBinAvail"); + tableMapping.ColumnMappings.Add("NumPzWaiting", "NumPzWaiting"); + tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode"); + tableMapping.ColumnMappings.Add("DestPlant", "DestPlant"); + tableMapping.ColumnMappings.Add("ModelCode", "ModelCode"); + tableMapping.ColumnMappings.Add("KitQty", "KitQty"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::AppData.Properties.Settings.Default.Sauder_NKCConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_CartKitDetail"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_App.CartOnKitDataTable 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.CartOnKitDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.CartOnKitDataTable dataTable = new DS_App.CartOnKitDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -23426,15 +24495,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } - if ((this._binListTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._binListTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._nestingTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -23444,6 +24504,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } + if ((this._remnantsTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Remnants.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._remnantsTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._offOrd2ItemTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.OffOrd2Item.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -23462,12 +24531,12 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } - if ((this._remnantsTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Remnants.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._binListTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._remnantsTableAdapter.Update(updatedRows)); + result = (result + this._binListTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -23553,14 +24622,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } - if ((this._binListTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._binListTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._nestingTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -23569,6 +24630,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } + if ((this._remnantsTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Remnants.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._remnantsTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._offOrd2ItemTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.OffOrd2Item.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -23585,11 +24654,11 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } - if ((this._remnantsTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Remnants.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._binListTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._remnantsTableAdapter.Update(addedRows)); + result = (result + this._binListTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -23603,11 +24672,11 @@ 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._remnantsTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Remnants.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._binListTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._remnantsTableAdapter.Update(deletedRows)); + result = (result + this._binListTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -23627,6 +24696,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W 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) + && (0 < deletedRows.Length))) { + result = (result + this._remnantsTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._nestingTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -23635,14 +24712,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } - if ((this._binListTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._binListTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._order2FinalKitTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index b382232..2e6cf33 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -51,7 +51,7 @@ - + dbo.stp_Batch_checkPosition @@ -62,7 +62,7 @@ - + dbo.stp_Batch_createPartValBatch @@ -73,7 +73,7 @@ - + dbo.stp_Batch_deleteTree @@ -141,7 +141,7 @@ - + dbo.stp_Batch_redoPartValid @@ -152,7 +152,7 @@ - + dbo.stp_Batch_resetAllNesting @@ -163,7 +163,7 @@ - + dbo.stp_Batch_resetPartUnValid @@ -173,7 +173,7 @@ - + dbo.stp_Batch_resetTree @@ -184,7 +184,7 @@ - + dbo.stp_Batch_updateStatus @@ -1056,8 +1056,7 @@ SELECT MatID, MatExtCode, MatDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm, Mat - SELECT * -FROM v_BinDetail + SELECT * FROM v_BinDetail @@ -1065,19 +1064,19 @@ FROM v_BinDetail + - + + - - @@ -2183,6 +2182,39 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W + + + + + + SELECT * +FROM v_CartKitDetail + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2191,7 +2223,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2239,7 +2271,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2261,7 +2293,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2316,7 +2348,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2389,7 +2421,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2397,7 +2429,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2466,7 +2498,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2499,10 +2531,11 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + + @@ -2519,15 +2552,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - - - + + + + - - @@ -2540,7 +2572,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2559,7 +2591,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2583,7 +2615,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2591,7 +2623,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2608,7 +2640,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2617,7 +2649,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2648,7 +2680,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2656,7 +2688,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2672,7 +2704,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2680,7 +2712,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2708,7 +2740,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2744,7 +2776,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2760,7 +2792,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2770,7 +2802,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2787,7 +2819,7 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W - + @@ -2800,6 +2832,53 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2889,21 +2968,25 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W + + + + - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index d0edd2b..7c4375c 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,34 +4,35 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + 352 @@ -43,7 +44,7 @@ - + 1197 @@ -55,7 +56,7 @@ - + 1054 @@ -67,7 +68,7 @@ - + 788 @@ -79,7 +80,7 @@ - + 986 @@ -91,7 +92,7 @@ - + 699 @@ -103,7 +104,7 @@ - + 550 @@ -115,7 +116,7 @@ - + 1129 @@ -127,7 +128,7 @@ - + 1380 @@ -139,7 +140,7 @@ - + 1161 @@ -151,7 +152,7 @@ - + 131 @@ -163,7 +164,7 @@ - + 352 diff --git a/NKC_WF/WebUserControls/cmp_kittingCart.ascx b/NKC_WF/WebUserControls/cmp_kittingCart.ascx index 88a8f4a..4b9f9e9 100644 --- a/NKC_WF/WebUserControls/cmp_kittingCart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingCart.ascx @@ -5,64 +5,67 @@ REPEATER elenco cart
-
- -
- + + +
+ +
+
+
+
- - -<%-- - - - - - ---%> \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_kittingCart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kittingCart.ascx.designer.cs index 57ee132..b03e79f 100644 --- a/NKC_WF/WebUserControls/cmp_kittingCart.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_kittingCart.ascx.designer.cs @@ -15,84 +15,21 @@ namespace NKC_WF.WebUserControls { /// - /// Controllo divBlock. + /// Controllo repCarts. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divBlock; + protected global::System.Web.UI.WebControls.Repeater repCarts; /// - /// Controllo lblTitle. + /// 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.Label lblTitle; - - /// - /// Controllo MatExtCodeLabel. - /// - /// - /// 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 MatExtCodeLabel; - - /// - /// Controllo Label2. - /// - /// - /// 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 Label2; - - /// - /// Controllo Label1. - /// - /// - /// 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 Label1; - - /// - /// Controllo lblPartsTot. - /// - /// - /// 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 lblPartsTot; - - /// - /// Controllo lblWait. - /// - /// - /// 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 lblWait; - - /// - /// Controllo Label3. - /// - /// - /// 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 Label3; - - /// - /// Controllo Label4. - /// - /// - /// 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 Label4; + protected global::System.Web.UI.WebControls.ObjectDataSource ods; } } From f4895cb9da517836e8926aab93b9a6ba150946e1 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 19 Feb 2020 12:41:56 +0100 Subject: [PATCH 2/5] Aggiunto controller x gestione stato ALIVE del server x PROD etc --- NKC_WF/Controllers/AliveController.cs | 27 +++++++++++++++++++++++++++ NKC_WF/NKC_WF.csproj | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 NKC_WF/Controllers/AliveController.cs diff --git a/NKC_WF/Controllers/AliveController.cs b/NKC_WF/Controllers/AliveController.cs new file mode 100644 index 0000000..8e8f42a --- /dev/null +++ b/NKC_WF/Controllers/AliveController.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace NKC_WF.Controllers +{ + /// + /// Classe verifica stato ALIVE del servizio + /// + public class AliveController : Controller + { + // GET: Alive + public string Index() + { + return "OK"; + } + + // GET: Alive/Clock + public string Clock() + { + return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); + } + + } +} diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 5857bee..d977160 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -519,6 +519,7 @@ VersGen.cs + @@ -1110,6 +1111,7 @@ + From 805b2833437f9721016ae8093293574ab300b9dc Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 19 Feb 2020 13:06:12 +0100 Subject: [PATCH 3/5] Completata prima review dati CART in KIT unloading --- AppData/DS_App.Designer.cs | 139 +++++++++++++++++++- AppData/DS_App.xsd | 78 ++++++----- AppData/DS_App.xss | 2 +- NKC_WF/WebUserControls/cmp_kittingCart.ascx | 41 ++++-- 4 files changed, 208 insertions(+), 52 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 11a6fdc..77221b7 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -9592,6 +9592,12 @@ namespace AppData { private global::System.Data.DataColumn columnKitQty; + private global::System.Data.DataColumn columnOtherQtyReq; + + private global::System.Data.DataColumn columnOtherQtyCur; + + private global::System.Data.DataColumn columnOtherQtyWait; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public CartOnKitDataTable() { @@ -9761,6 +9767,30 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherQtyReqColumn { + get { + return this.columnOtherQtyReq; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherQtyCurColumn { + get { + return this.columnOtherQtyCur; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OtherQtyWaitColumn { + get { + return this.columnOtherQtyWait; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -9815,7 +9845,10 @@ namespace AppData { string OrderExtCode, string DestPlant, string ModelCode, - int KitQty) { + int KitQty, + int OtherQtyReq, + int OtherQtyCur, + int OtherQtyWait) { CartOnKitRow rowCartOnKitRow = ((CartOnKitRow)(this.NewRow())); object[] columnValuesArray = new object[] { CartID, @@ -9834,7 +9867,10 @@ namespace AppData { OrderExtCode, DestPlant, ModelCode, - KitQty}; + KitQty, + OtherQtyReq, + OtherQtyCur, + OtherQtyWait}; rowCartOnKitRow.ItemArray = columnValuesArray; this.Rows.Add(rowCartOnKitRow); return rowCartOnKitRow; @@ -9881,6 +9917,9 @@ namespace AppData { this.columnDestPlant = base.Columns["DestPlant"]; this.columnModelCode = base.Columns["ModelCode"]; this.columnKitQty = base.Columns["KitQty"]; + this.columnOtherQtyReq = base.Columns["OtherQtyReq"]; + this.columnOtherQtyCur = base.Columns["OtherQtyCur"]; + this.columnOtherQtyWait = base.Columns["OtherQtyWait"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -9920,6 +9959,12 @@ namespace AppData { base.Columns.Add(this.columnModelCode); this.columnKitQty = new global::System.Data.DataColumn("KitQty", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnKitQty); + this.columnOtherQtyReq = new global::System.Data.DataColumn("OtherQtyReq", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherQtyReq); + this.columnOtherQtyCur = new global::System.Data.DataColumn("OtherQtyCur", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherQtyCur); + this.columnOtherQtyWait = new global::System.Data.DataColumn("OtherQtyWait", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOtherQtyWait); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnCartID}, true)); this.columnCartID.AllowDBNull = false; @@ -9941,6 +9986,9 @@ namespace AppData { this.columnModelCode.AllowDBNull = false; this.columnModelCode.MaxLength = 250; this.columnKitQty.AllowDBNull = false; + this.columnOtherQtyReq.ReadOnly = true; + this.columnOtherQtyCur.ReadOnly = true; + this.columnOtherQtyWait.ReadOnly = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -13891,6 +13939,54 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OtherQtyReq { + get { + try { + return ((int)(this[this.tableCartOnKit.OtherQtyReqColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OtherQtyReq\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.OtherQtyReqColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OtherQtyCur { + get { + try { + return ((int)(this[this.tableCartOnKit.OtherQtyCurColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OtherQtyCur\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.OtherQtyCurColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OtherQtyWait { + get { + try { + return ((int)(this[this.tableCartOnKit.OtherQtyWaitColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'OtherQtyWait\' nella tabella \'CartOnKit\' è DBNull.", e); + } + } + set { + this[this.tableCartOnKit.OtherQtyWaitColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsOrdIDNull() { @@ -13962,6 +14058,42 @@ namespace AppData { public void SetNumPzWaitingNull() { this[this.tableCartOnKit.NumPzWaitingColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOtherQtyReqNull() { + return this.IsNull(this.tableCartOnKit.OtherQtyReqColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOtherQtyReqNull() { + this[this.tableCartOnKit.OtherQtyReqColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOtherQtyCurNull() { + return this.IsNull(this.tableCartOnKit.OtherQtyCurColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOtherQtyCurNull() { + this[this.tableCartOnKit.OtherQtyCurColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsOtherQtyWaitNull() { + return this.IsNull(this.tableCartOnKit.OtherQtyWaitColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetOtherQtyWaitNull() { + this[this.tableCartOnKit.OtherQtyWaitColumn] = global::System.Convert.DBNull; + } } /// @@ -23977,6 +24109,9 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W tableMapping.ColumnMappings.Add("DestPlant", "DestPlant"); tableMapping.ColumnMappings.Add("ModelCode", "ModelCode"); tableMapping.ColumnMappings.Add("KitQty", "KitQty"); + tableMapping.ColumnMappings.Add("OtherQtyReq", "OtherQtyReq"); + tableMapping.ColumnMappings.Add("OtherQtyCur", "OtherQtyCur"); + tableMapping.ColumnMappings.Add("OtherQtyWait", "OtherQtyWait"); this._adapter.TableMappings.Add(tableMapping); } diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 2e6cf33..233333d 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -2212,6 +2212,9 @@ FROM v_CartKitDetail + + + @@ -2223,7 +2226,7 @@ FROM v_CartKitDetail - + @@ -2271,7 +2274,7 @@ FROM v_CartKitDetail - + @@ -2293,7 +2296,7 @@ FROM v_CartKitDetail - + @@ -2348,7 +2351,7 @@ FROM v_CartKitDetail - + @@ -2421,7 +2424,7 @@ FROM v_CartKitDetail - + @@ -2429,7 +2432,7 @@ FROM v_CartKitDetail - + @@ -2498,7 +2501,7 @@ FROM v_CartKitDetail - + @@ -2531,7 +2534,7 @@ FROM v_CartKitDetail - + @@ -2572,7 +2575,7 @@ FROM v_CartKitDetail - + @@ -2591,7 +2594,7 @@ FROM v_CartKitDetail - + @@ -2615,7 +2618,7 @@ FROM v_CartKitDetail - + @@ -2623,7 +2626,7 @@ FROM v_CartKitDetail - + @@ -2640,7 +2643,7 @@ FROM v_CartKitDetail - + @@ -2649,7 +2652,7 @@ FROM v_CartKitDetail - + @@ -2680,7 +2683,7 @@ FROM v_CartKitDetail - + @@ -2688,7 +2691,7 @@ FROM v_CartKitDetail - + @@ -2704,7 +2707,7 @@ FROM v_CartKitDetail - + @@ -2712,7 +2715,7 @@ FROM v_CartKitDetail - + @@ -2740,7 +2743,7 @@ FROM v_CartKitDetail - + @@ -2776,7 +2779,7 @@ FROM v_CartKitDetail - + @@ -2792,7 +2795,7 @@ FROM v_CartKitDetail - + @@ -2802,7 +2805,7 @@ FROM v_CartKitDetail - + @@ -2819,7 +2822,7 @@ FROM v_CartKitDetail - + @@ -2832,7 +2835,7 @@ FROM v_CartKitDetail - + @@ -2876,6 +2879,9 @@ FROM v_CartKitDetail + + + @@ -2975,18 +2981,18 @@ FROM v_CartKitDetail - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 7c4375c..ecd07c1 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + diff --git a/NKC_WF/WebUserControls/cmp_kittingCart.ascx b/NKC_WF/WebUserControls/cmp_kittingCart.ascx index 4b9f9e9..a03ce28 100644 --- a/NKC_WF/WebUserControls/cmp_kittingCart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingCart.ascx @@ -13,39 +13,39 @@ REPEATER elenco cart
-
+
Order:
-
+
-
+
Model:
-
+
-
+
Dest Plant:
-
+
-
+
Kit #:
-
+
-
- Parts #: +
+ CNC Parts #:
-
+
@@ -61,8 +61,23 @@ REPEATER elenco cart Cart:
- - +
+ Other Parts #: +
+
+ + +
+
+ Wait: + +
+
+
+
+ Cart: + +
From 9f42fc15363dc943d758099a6876fcc77cfffbc1 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 19 Feb 2020 15:03:57 +0100 Subject: [PATCH 4/5] Fix Api controller x ALIVE --- NKC_WF/Controllers/AliveController.cs | 17 ++++++++--------- NKC_WF/WebUserControls/cmp_kittingCart.ascx | 4 ---- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/NKC_WF/Controllers/AliveController.cs b/NKC_WF/Controllers/AliveController.cs index 8e8f42a..cd34f69 100644 --- a/NKC_WF/Controllers/AliveController.cs +++ b/NKC_WF/Controllers/AliveController.cs @@ -1,24 +1,23 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.Mvc; +using System.Web.Http; namespace NKC_WF.Controllers { /// /// Classe verifica stato ALIVE del servizio /// - public class AliveController : Controller + public class AliveController : ApiController { - // GET: Alive - public string Index() + // GET: api/Alive + [HttpGet] + public string Get() { return "OK"; } - // GET: Alive/Clock - public string Clock() + // GET: api/Alive/Clock + [HttpGet] + public string Get(int id) { return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); } diff --git a/NKC_WF/WebUserControls/cmp_kittingCart.ascx b/NKC_WF/WebUserControls/cmp_kittingCart.ascx index a03ce28..7dd1bfd 100644 --- a/NKC_WF/WebUserControls/cmp_kittingCart.ascx +++ b/NKC_WF/WebUserControls/cmp_kittingCart.ascx @@ -1,9 +1,5 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_kittingCart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_kittingCart" %> - -REPEATER elenco cart - -
From 5df8971e4b90381e14ed31cf38702c182e42d0ac Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 19 Feb 2020 15:04:07 +0100 Subject: [PATCH 5/5] Aggiunto NLog + modifica client x chiamate PROD --- NKC_SDK/Log.cs | 14 + NKC_SDK/NKC.cs | 53 +- NKC_SDK/NKC_SDK.csproj | 14 + NKC_SDK/NLog.config | 34 + NKC_SDK/NLog.xsd | 3556 ++++++++++++++++++++++++++++++ NKC_SDK/packages.config | 3 + RedisExample/Form1.Designer.vb | 514 ++--- RedisExample/Form1.vb | 9 +- RedisExample/RedisExample.vbproj | 1 + RedisExample/logs/.placeholder | 1 + 10 files changed, 3939 insertions(+), 260 deletions(-) create mode 100644 NKC_SDK/Log.cs create mode 100644 NKC_SDK/NLog.config create mode 100644 NKC_SDK/NLog.xsd create mode 100644 RedisExample/logs/.placeholder diff --git a/NKC_SDK/Log.cs b/NKC_SDK/Log.cs new file mode 100644 index 0000000..4f5e14e --- /dev/null +++ b/NKC_SDK/Log.cs @@ -0,0 +1,14 @@ +using NLog; + +namespace NKC_SDK +{ + public static class Log + { + public static Logger Instance { get; private set; } + static Log() + { + LogManager.ReconfigExistingLoggers(); + Instance = LogManager.GetCurrentClassLogger(); + } + } +} diff --git a/NKC_SDK/NKC.cs b/NKC_SDK/NKC.cs index 6153ef0..f33eb88 100644 --- a/NKC_SDK/NKC.cs +++ b/NKC_SDK/NKC.cs @@ -25,8 +25,11 @@ namespace NKC_SDK { answ = client.DownloadString(URL); } - catch - { } + catch (Exception exc) + { + Log.Instance.Error(exc, $"Eccezione durante callUrl per {URL}{Environment.NewLine}{exc}"); + answ = exc.Message; + } // restituisco valore! return answ; } @@ -81,6 +84,20 @@ namespace NKC_SDK #region URL di base + protected string urlAlive + { + get + { + return $"{_baseUrl}Alive"; + } + } + protected string urlAliveClock + { + get + { + return $"{_baseUrl}Alive/Clock"; + } + } protected string urlCurrBunk { get @@ -136,6 +153,38 @@ namespace NKC_SDK return answ; } } + /// + /// Effettua test alive all'indirizzo del server + /// + public string testAlive + { + get + { + string answ = ""; + try + { + answ = callUrl(urlAlive); + } + catch + { } + // rendo! + return answ; + } + } + /// + /// Effettua test ping all'indirizzo del server + /// + public PingReply testClock + { + get + { + Ping myPing = new Ping(); + // timeout a 1 sec! + PingReply answ = myPing.Send(_baseIp, 1000); + // rendo! + return answ; + } + } /// /// Recupera il PRIMO BUNK diff --git a/NKC_SDK/NKC_SDK.csproj b/NKC_SDK/NKC_SDK.csproj index 5f0ad88..918fbb1 100644 --- a/NKC_SDK/NKC_SDK.csproj +++ b/NKC_SDK/NKC_SDK.csproj @@ -34,8 +34,15 @@ ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + ..\packages\NLog.4.6.8\lib\net40-client\NLog.dll + + + + + @@ -47,12 +54,19 @@ VersGen.cs + + + PreserveNewest + + + Designer + diff --git a/NKC_SDK/NLog.config b/NKC_SDK/NLog.config new file mode 100644 index 0000000..8879ef3 --- /dev/null +++ b/NKC_SDK/NLog.config @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + diff --git a/NKC_SDK/NLog.xsd b/NKC_SDK/NLog.xsd new file mode 100644 index 0000000..16d888c --- /dev/null +++ b/NKC_SDK/NLog.xsd @@ -0,0 +1,3556 @@ + + + + + + + + + + + + + + + Watch config file for changes and reload automatically. + + + + + Print internal NLog messages to the console. Default value is: false + + + + + Print internal NLog messages to the console error output. Default value is: false + + + + + Write internal NLog messages to the specified file. + + + + + Log level threshold for internal log messages. Default value is: Info. + + + + + Global log level threshold for application log messages. Messages below this level won't be logged. + + + + + Throw an exception when there is an internal error. Default value is: false. Not recommend to set to true in production! + + + + + Throw an exception when there is a configuration error. If not set, determined by throwExceptions. + + + + + Gets or sets a value indicating whether Variables should be kept on configuration reload. Default value is: false. + + + + + Write internal NLog messages to the System.Diagnostics.Trace. Default value is: false. + + + + + Write timestamps for internal NLog messages. Default value is: true. + + + + + Use InvariantCulture as default culture instead of CurrentCulture. Default value is: false. + + + + + Perform message template parsing and formatting of LogEvent messages (true = Always, false = Never, empty = Auto Detect). Default value is: empty. + + + + + + + + + + + + + + Make all targets within this section asynchronous (creates additional threads but the calling thread isn't blocked by any target writes). + + + + + + + + + + + + + + + + + Prefix for targets/layout renderers/filters/conditions loaded from this assembly. + + + + + Load NLog extensions from the specified file (*.dll) + + + + + Load NLog extensions from the specified assembly. Assembly name should be fully qualified. + + + + + + + + + + Name of the logger. May include wildcard characters ('*' or '?'). + + + + + Comma separated list of levels that this rule matches. + + + + + Minimum level that this rule matches. + + + + + Maximum level that this rule matches. + + + + + Level that this rule matches. + + + + + Comma separated list of target names. + + + + + Ignore further rules if this one matches. + + + + + Rule identifier to allow rule lookup with Configuration.FindRuleByName and Configuration.RemoveRuleByName. + + + + + + + + + + + + + + + Default action if none of the filters match. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the file to be included. You could use * wildcard. The name is relative to the name of the current config file. + + + + + Ignore any errors in the include file. + + + + + + + + Variable value. Note, the 'value' attribute has precedence over this one. + + + + + + Variable name. + + + + + Variable value. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Number of log events that should be processed in a batch by the lazy writer thread. + + + + + Whether to use the locking queue, instead of a lock-free concurrent queue The locking queue is less concurrent when many logger threads, but reduces memory allocation + + + + + Limit of full s to write before yielding into Performance is better when writing many small batches, than writing a single large batch + + + + + Action to be taken when the lazy writer thread request queue count exceeds the set limit. + + + + + Limit on the number of requests in the lazy writer thread request queue. + + + + + Time in milliseconds to sleep between batches. (1 or less means trigger on new activity) + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + Delay the flush until the LogEvent has been confirmed as written + + + + + Condition expression. Log events who meet this condition will cause a flush on the wrapped target. + + + + + Name of the target. + + + + + Only flush when LogEvent matches condition. Ignore explicit-flush, config-reload-flush and shutdown-flush + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Number of log events to be buffered. + + + + + Timeout (in milliseconds) after which the contents of buffer will be flushed if there's no write in the specified period of time. Use -1 to disable timed flushes. + + + + + Action to take if the buffer overflows. + + + + + Indicates whether to use sliding timeout. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Encoding to be used. + + + + + Instance of that is used to format log messages. + + + + + End of line value if a newline is appended at the end of log message . + + + + + Maximum message size in bytes. + + + + + Indicates whether to append newline at the end of log message. + + + + + Network address. + + + + + Size of the connection cache (number of connections which are kept alive). + + + + + Indicates whether to keep connection open whenever possible. + + + + + Maximum current connections. 0 = no maximum. + + + + + Action that should be taken if the will be more connections than . + + + + + Action that should be taken if the message is larger than maxMessageSize. + + + + + Get or set the SSL/TLS protocols. Default no SSL/TLS is used. Currently only implemented for TCP. + + + + + Maximum queue size. + + + + + The number of seconds a connection will remain idle before the first keep-alive probe is sent + + + + + NDLC item separator. + + + + + Indicates whether to include source info (file name and line number) in the information sent over the network. + + + + + Renderer for log4j:event logger-xml-attribute (Default ${logger}) + + + + + Indicates whether to include NLog-specific extensions to log4j schema. + + + + + Indicates whether to include contents of the stack. + + + + + Indicates whether to include stack contents. + + + + + Indicates whether to include dictionary contents. + + + + + Indicates whether to include dictionary contents. + + + + + Indicates whether to include call site (class and method name) in the information sent over the network. + + + + + Option to include all properties from the log events + + + + + AppInfo field. By default it's the friendly name of the current AppDomain. + + + + + NDC item separator. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Layout that should be use to calculate the value for the parameter. + + + + + Viewer parameter name. + + + + + Whether an attribute with empty value should be included in the output + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Indicates whether to auto-check if the console is available. - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + + + + Enables output using ANSI Color Codes + + + + + The encoding for writing messages to the . + + + + + Indicates whether the error stream (stderr) should be used instead of the output stream (stdout). + + + + + Indicates whether to auto-check if the console has been redirected to file - Disables coloring logic when System.Console.IsOutputRedirected = true + + + + + Indicates whether to use default row highlighting rules. + + + + + Indicates whether to auto-flush after + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Condition that must be met in order to set the specified foreground and background color. + + + + + Background color. + + + + + Foreground color. + + + + + + + + + + + + + + + + Compile the ? This can improve the performance, but at the costs of more memory usage. If false, the Regex Cache is used. + + + + + Indicates whether to ignore case when comparing texts. + + + + + Regular expression to be matched. You must specify either text or regex. + + + + + Text to be matched. You must specify either text or regex. + + + + + Indicates whether to match whole words only. + + + + + Background color. + + + + + Foreground color. + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Indicates whether to auto-check if the console is available - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + + + + The encoding for writing messages to the . + + + + + Indicates whether to send the log messages to the standard error instead of the standard output. + + + + + Indicates whether to auto-flush after + + + + + Whether to enable batch writing using char[]-buffers, instead of using + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Obsolete - value will be ignored! The logging code always runs outside of transaction. Gets or sets a value indicating whether to use database transactions. Some data providers require this. + + + + + Database user name. If the ConnectionString is not provided this value will be used to construct the "User ID=" part of the connection string. + + + + + Name of the database provider. + + + + + Database password. If the ConnectionString is not provided this value will be used to construct the "Password=" part of the connection string. + + + + + Indicates whether to keep the database connection open between the log events. + + + + + Database name. If the ConnectionString is not provided this value will be used to construct the "Database=" part of the connection string. + + + + + Name of the connection string (as specified in <connectionStrings> configuration section. + + + + + Connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase. + + + + + Database host name. If the ConnectionString is not provided this value will be used to construct the "Server=" part of the connection string. + + + + + Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + Text of the SQL command to be run on each log level. + + + + + Type of the SQL command to be run on each log level. + + + + + + + + + + + + + + + + + + + + + + + Type of the command. + + + + + Connection string to run the command against. If not provided, connection string from the target is used. + + + + + Indicates whether to ignore failures. + + + + + Command text. + + + + + + + + + + + + + + + + + + Database parameter name. + + + + + Layout that should be use to calculate the value for the parameter. + + + + + Database parameter DbType. + + + + + Database parameter size. + + + + + Database parameter precision. + + + + + Database parameter scale. + + + + + Type of the parameter. + + + + + Convert format of the database parameter value . + + + + + Culture used for parsing parameter string-value for type-conversion + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Layout that renders event Category. + + + + + Optional entry type. When not set, or when not convertible to then determined by + + + + + Layout that renders event ID. + + + + + Name of the Event Log to write to. This can be System, Application or any user-defined name. + + + + + Name of the machine on which Event Log service is running. + + + + + Maximum Event log size in kilobytes. + + + + + Message length limit to write to the Event Log. + + + + + Value to be used as the event Source. + + + + + Action to take if the message is larger than the option. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Indicates whether to return to the first target after any successful write. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + File encoding. + + + + + Line ending mode. + + + + + Indicates whether to compress archive files into the zip archive format. + + + + + Way file archives are numbered. + + + + + Name of the file to be used for an archive. + + + + + Is the an absolute or relative path? + + + + + Indicates whether to automatically archive log files every time the specified time passes. + + + + + Size in bytes above which log files will be automatically archived. Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. Choose: + + + + + Maximum number of archive files that should be kept. + + + + + Indicates whether the footer should be written only when the file is archived. + + + + + Maximum number of log file names that should be stored as existing. + + + + + Is the an absolute or relative path? + + + + + Gets or set a value indicating whether a managed file stream is forced, instead of using the native implementation. + + + + + Indicates whether file creation calls should be synchronized by a system global mutex. + + + + + Indicates whether to replace file contents on each write instead of appending log message at the end. + + + + + Indicates whether to write BOM (byte order mark) in created files + + + + + Indicates whether to enable log file(s) to be deleted. + + + + + Name of the file to write to. + + + + + Value specifying the date format to use when archiving files. + + + + + Indicates whether to archive old log file on startup. + + + + + Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong. + + + + + Indicates whether to create directories if they do not exist. + + + + + Indicates whether to delete old log file on startup. + + + + + File attributes (Windows only). + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + Indicates whether concurrent writes to the log file by multiple processes on different network hosts. + + + + + Maximum number of seconds that files are kept open. If this number is negative the files are not automatically closed after a period of inactivity. + + + + + Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger). + + + + + Indicates whether to keep log file open instead of opening and closing it on each logging event. + + + + + Whether or not this target should just discard all data that its asked to write. Mostly used for when testing NLog Stack except final write + + + + + Indicates whether concurrent writes to the log file by multiple processes on the same host. + + + + + Number of times the write is appended on the file before NLog discards the log message. + + + + + Delay in milliseconds to wait before attempting to write to the file again. + + + + + Log file buffer size in bytes. + + + + + Maximum number of seconds before open files are flushed. If this number is negative or zero the files are not flushed by timer. + + + + + Indicates whether to automatically flush the file buffers after each log message. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Condition expression. Log events who meet this condition will be forwarded to the wrapped target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Windows domain name to change context to. + + + + + Required impersonation level. + + + + + Type of the logon provider. + + + + + Logon Type. + + + + + User account password. + + + + + Indicates whether to revert to the credentials of the process instead of impersonating another user. + + + + + Username to change context to. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Interval in which messages will be written up to the number of messages. + + + + + Maximum allowed number of messages written per . + + + + + Name of the target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Endpoint address. + + + + + Name of the endpoint configuration in WCF configuration file. + + + + + Indicates whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply) + + + + + Client ID. + + + + + Indicates whether to include per-event properties in the payload sent to the server. + + + + + Indicates whether to use binary message encoding. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + Layout that should be use to calculate the value for the parameter. + + + + + Name of the parameter. + + + + + Type of the parameter. + + + + + Type of the parameter. Obsolete alias for + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Indicates whether NewLine characters in the body should be replaced with tags. + + + + + Priority used for sending mails. + + + + + Encoding to be used for sending e-mail. + + + + + BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + + + + + CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + + + + + Indicates whether to add new lines between log entries. + + + + + Indicates whether to send message as HTML instead of plain text. + + + + + Sender's email address (e.g. joe@domain.com). + + + + + Mail message body (repeated for each log message send in one mail). + + + + + Mail subject. + + + + + Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + Indicates the SMTP client timeout. + + + + + SMTP Server to be used for sending. + + + + + SMTP Authentication mode. + + + + + Username used to connect to SMTP server (used when SmtpAuthentication is set to "basic"). + + + + + Password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic"). + + + + + Indicates whether SSL (secure sockets layer) should be used when communicating with SMTP server. + + + + + Port number that SMTP Server is listening on. + + + + + Indicates whether the default Settings from System.Net.MailSettings should be used. + + + + + Folder where applications save mail messages to be processed by the local SMTP server. + + + + + Specifies how outgoing email messages will be handled. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Max number of items to have in memory + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Class name. + + + + + Method name. The method must be public and static. Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx e.g. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Encoding to be used. + + + + + End of line value if a newline is appended at the end of log message . + + + + + Maximum message size in bytes. + + + + + Indicates whether to append newline at the end of log message. + + + + + Network address. + + + + + Size of the connection cache (number of connections which are kept alive). + + + + + Indicates whether to keep connection open whenever possible. + + + + + Maximum current connections. 0 = no maximum. + + + + + Maximum queue size. + + + + + Action that should be taken if the will be more connections than . + + + + + Action that should be taken if the message is larger than maxMessageSize. + + + + + Get or set the SSL/TLS protocols. Default no SSL/TLS is used. Currently only implemented for TCP. + + + + + The number of seconds a connection will remain idle before the first keep-alive probe is sent + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Encoding to be used. + + + + + Instance of that is used to format log messages. + + + + + End of line value if a newline is appended at the end of log message . + + + + + Maximum message size in bytes. + + + + + Indicates whether to append newline at the end of log message. + + + + + Network address. + + + + + Size of the connection cache (number of connections which are kept alive). + + + + + Indicates whether to keep connection open whenever possible. + + + + + Maximum current connections. 0 = no maximum. + + + + + Action that should be taken if the will be more connections than . + + + + + Action that should be taken if the message is larger than maxMessageSize. + + + + + Get or set the SSL/TLS protocols. Default no SSL/TLS is used. Currently only implemented for TCP. + + + + + Maximum queue size. + + + + + The number of seconds a connection will remain idle before the first keep-alive probe is sent + + + + + NDLC item separator. + + + + + Indicates whether to include source info (file name and line number) in the information sent over the network. + + + + + Renderer for log4j:event logger-xml-attribute (Default ${logger}) + + + + + Indicates whether to include NLog-specific extensions to log4j schema. + + + + + Indicates whether to include contents of the stack. + + + + + Indicates whether to include stack contents. + + + + + Indicates whether to include dictionary contents. + + + + + Indicates whether to include dictionary contents. + + + + + Indicates whether to include call site (class and method name) in the information sent over the network. + + + + + Option to include all properties from the log events + + + + + AppInfo field. By default it's the friendly name of the current AppDomain. + + + + + NDC item separator. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Indicates whether to perform layout calculation. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Indicates whether performance counter should be automatically created. + + + + + Name of the performance counter category. + + + + + Counter help text. + + + + + Name of the performance counter. + + + + + Performance counter type. + + + + + The value by which to increment the counter. + + + + + Performance counter instance name. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Default filter to be applied when no specific rule matches. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + Condition to be tested. + + + + + Resulting filter to be applied when the condition matches. + + + + + + + + + + + + + Name of the target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + Name of the target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + Number of times to repeat each log message. + + + + + + + + + + + + + + + + + Name of the target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + Number of retries that should be attempted on the wrapped target in case of a failure. + + + + + Time to wait between retries in milliseconds. + + + + + + + + + + + + + + + Name of the target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + Name of the target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Always use independent of + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit + + + + + Should we include the BOM (Byte-order-mark) for UTF? Influences the property. This will only work for UTF-8. + + + + + Web service method name. Only used with Soap. + + + + + Web service namespace. Only used with Soap. + + + + + Protocol to be used when calling web service. + + + + + Custom proxy address, include port separated by a colon + + + + + Encoding. + + + + + Web service URL. + + + + + Value whether escaping be done according to the old NLog style (Very non-standard) + + + + + Value whether escaping be done according to Rfc3986 (Supports Internationalized Resource Identifiers - IRIs) + + + + + Indicates whether to pre-authenticate the HttpWebRequest (Requires 'Authorization' in parameters) + + + + + Name of the root XML element, if POST of XML document chosen. If so, this property must not be null. (see and ). + + + + + (optional) root namespace of the XML document, if POST of XML document chosen. (see and ). + + + + + Proxy configuration when calling web service + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Footer layout. + + + + + Header layout. + + + + + Body layout (can be repeated multiple times). + + + + + Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). + + + + + Column delimiter. + + + + + Quote Character. + + + + + Quoting mode. + + + + + Indicates whether CVS should include header. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Layout of the column. + + + + + Name of the column. + + + + + Override of Quoting mode + + + + + + + + + + + + + + + + + + + + + List of property names to exclude when is true + + + + + Option to include all properties from the log event (as JSON) + + + + + Indicates whether to include contents of the dictionary. + + + + + Indicates whether to include contents of the dictionary. + + + + + Indicates whether to include contents of the dictionary. + + + + + How far should the JSON serializer follow object references before backing off + + + + + Option to render the empty object value {} + + + + + Option to suppress the extra spaces in the output json + + + + + Should forward slashes be escaped? If true, / will be converted to \/ + + + + + + + + + + + + + + + + + Layout that will be rendered as the attribute's value. + + + + + Name of the attribute. + + + + + Determines whether or not this attribute will be Json encoded. + + + + + Indicates whether to escape non-ascii characters + + + + + Whether an attribute with empty value should be included in the output + + + + + Should forward slashes be escaped? If true, / will be converted to \/ + + + + + + + + + + + + + + Footer layout. + + + + + Header layout. + + + + + Body layout (can be repeated multiple times). + + + + + + + + + + + + + + + + + + + + + Option to include all properties from the log events + + + + + Indicates whether to include call site (class and method name) in the information sent over the network. + + + + + Indicates whether to include contents of the dictionary. + + + + + Indicates whether to include contents of the dictionary. + + + + + Indicates whether to include contents of the stack. + + + + + Indicates whether to include contents of the stack. + + + + + Indicates whether to include source info (file name and line number) in the information sent over the network. + + + + + + + + + + + + + + Layout text. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + List of property names to exclude when is true + + + + + Option to include all properties from the log event (as XML) + + + + + Indicates whether to include contents of the dictionary. + + + + + Indicates whether to include contents of the dictionary. + + + + + How far should the XML serializer follow object references before backing off + + + + + XML element name to use for rendering IList-collections items + + + + + XML attribute name to use when rendering property-key When null (or empty) then key-attribute is not included + + + + + XML element name to use when rendering properties + + + + + XML attribute name to use when rendering property-value When null (or empty) then value-attribute is not included and value is formatted as XML-element-value + + + + + Name of the root XML element + + + + + Value inside the root XML element + + + + + Whether a ElementValue with empty value should be included in the output + + + + + Auto indent and create new lines + + + + + Determines whether or not this attribute will be Xml encoded. + + + + + + + + + + + + + + + Layout that will be rendered as the attribute's value. + + + + + Name of the attribute. + + + + + Determines whether or not this attribute will be Xml encoded. + + + + + Whether an attribute with empty value should be included in the output + + + + + + + + + + + + + + + + + + + + + + + + + Determines whether or not this attribute will be Xml encoded. + + + + + Name of the element + + + + + Value inside the element + + + + + Whether a ElementValue with empty value should be included in the output + + + + + Auto indent and create new lines + + + + + List of property names to exclude when is true + + + + + Option to include all properties from the log event (as XML) + + + + + Indicates whether to include contents of the dictionary. + + + + + Indicates whether to include contents of the dictionary. + + + + + How far should the XML serializer follow object references before backing off + + + + + XML element name to use for rendering IList-collections items + + + + + XML attribute name to use when rendering property-key When null (or empty) then key-attribute is not included + + + + + XML element name to use when rendering properties + + + + + XML attribute name to use when rendering property-value When null (or empty) then value-attribute is not included and value is formatted as XML-element-value + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Condition expression. + + + + + + + + + + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + Substring to be matched. + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + String to compare the layout to. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + Substring to be matched. + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + String to compare the layout to. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + + + + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Default number of unique filter values to expect, will automatically increase if needed + + + + + Applies the configured action to the initial logevent that starts the timeout period. Used to configure that it should ignore all events until timeout. + + + + + Layout to be used to filter log messages. + + + + + Max number of unique filter values to expect simultaneously + + + + + Max length of filter values, will truncate if above limit + + + + + How long before a filter expires, and logging is accepted again + + + + + Default buffer size for the internal buffers + + + + + Reuse internal buffers, and doesn't have to constantly allocate new buffers + + + + + Append FilterCount to the when an event is no longer filtered + + + + + Insert FilterCount value into when an event is no longer filtered + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/NKC_SDK/packages.config b/NKC_SDK/packages.config index 0fa4e01..a5201d2 100644 --- a/NKC_SDK/packages.config +++ b/NKC_SDK/packages.config @@ -1,4 +1,7 @@  + + + \ No newline at end of file diff --git a/RedisExample/Form1.Designer.vb b/RedisExample/Form1.Designer.vb index 127ea09..1081722 100644 --- a/RedisExample/Form1.Designer.vb +++ b/RedisExample/Form1.Designer.vb @@ -43,265 +43,263 @@ Partial Class Form1 Me.txtWorkEnd = New System.Windows.Forms.TextBox() Me.txtPrintEnd = New System.Windows.Forms.TextBox() Me.btnSaveAll = New System.Windows.Forms.Button() - Me.btnPing = New System.Windows.Forms.Button() - Me.lblPing = New System.Windows.Forms.Label() - Me.SuspendLayout() - ' - 'btnReset - ' - Me.btnReset.Location = New System.Drawing.Point(85, 490) - Me.btnReset.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnReset.Name = "btnReset" - Me.btnReset.Size = New System.Drawing.Size(100, 28) - Me.btnReset.TabIndex = 0 - Me.btnReset.Text = "reset Date" - Me.btnReset.UseVisualStyleBackColor = True - ' - 'Label1 - ' - Me.Label1.AutoSize = True - Me.Label1.Location = New System.Drawing.Point(349, 496) - Me.Label1.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) - Me.Label1.Name = "Label1" - Me.Label1.Size = New System.Drawing.Size(51, 17) - Me.Label1.TabIndex = 1 - Me.Label1.Text = "Label1" - ' - 'btnLoadBunk - ' - Me.btnLoadBunk.Location = New System.Drawing.Point(85, 44) - Me.btnLoadBunk.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnLoadBunk.Name = "btnLoadBunk" - Me.btnLoadBunk.Size = New System.Drawing.Size(100, 28) - Me.btnLoadBunk.TabIndex = 2 - Me.btnLoadBunk.Text = "Load BUNK" - Me.btnLoadBunk.UseVisualStyleBackColor = True - ' - 'btnPrintStart - ' - Me.btnPrintStart.Location = New System.Drawing.Point(85, 203) - Me.btnPrintStart.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnPrintStart.Name = "btnPrintStart" - Me.btnPrintStart.Size = New System.Drawing.Size(100, 28) - Me.btnPrintStart.TabIndex = 3 - Me.btnPrintStart.Text = "Start Paint" - Me.btnPrintStart.UseVisualStyleBackColor = True - ' - 'cmbSheet - ' - Me.cmbSheet.DisplayMember = "SheetId" - Me.cmbSheet.FormattingEnabled = True - Me.cmbSheet.Location = New System.Drawing.Point(701, 48) - Me.cmbSheet.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.cmbSheet.Name = "cmbSheet" - Me.cmbSheet.Size = New System.Drawing.Size(160, 24) - Me.cmbSheet.TabIndex = 4 - ' - 'Label2 - ' - Me.Label2.AutoSize = True - Me.Label2.Location = New System.Drawing.Point(586, 56) - Me.Label2.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) - Me.Label2.Name = "Label2" - Me.Label2.Size = New System.Drawing.Size(92, 17) - Me.Label2.TabIndex = 5 - Me.Label2.Text = "current sheet" - ' - 'btnPrintEnd - ' - Me.btnPrintEnd.Location = New System.Drawing.Point(564, 203) - Me.btnPrintEnd.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnPrintEnd.Name = "btnPrintEnd" - Me.btnPrintEnd.Size = New System.Drawing.Size(100, 28) - Me.btnPrintEnd.TabIndex = 6 - Me.btnPrintEnd.Text = "End Paint" - Me.btnPrintEnd.UseVisualStyleBackColor = True - ' - 'btnWorkStart - ' - Me.btnWorkStart.Location = New System.Drawing.Point(85, 257) - Me.btnWorkStart.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnWorkStart.Name = "btnWorkStart" - Me.btnWorkStart.Size = New System.Drawing.Size(100, 28) - Me.btnWorkStart.TabIndex = 7 - Me.btnWorkStart.Text = "Start Cut" - Me.btnWorkStart.UseVisualStyleBackColor = True - ' - 'btnWorkEnd - ' - Me.btnWorkEnd.Location = New System.Drawing.Point(564, 257) - Me.btnWorkEnd.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnWorkEnd.Name = "btnWorkEnd" - Me.btnWorkEnd.Size = New System.Drawing.Size(100, 28) - Me.btnWorkEnd.TabIndex = 8 - Me.btnWorkEnd.Text = "End Cut" - Me.btnWorkEnd.UseVisualStyleBackColor = True - ' - 'btnUnlStart - ' - Me.btnUnlStart.Location = New System.Drawing.Point(85, 309) - Me.btnUnlStart.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnUnlStart.Name = "btnUnlStart" - Me.btnUnlStart.Size = New System.Drawing.Size(100, 28) - Me.btnUnlStart.TabIndex = 9 - Me.btnUnlStart.Text = "Start Unload" - Me.btnUnlStart.UseVisualStyleBackColor = True - ' - 'btnUnlEnd - ' - Me.btnUnlEnd.Location = New System.Drawing.Point(564, 309) - Me.btnUnlEnd.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnUnlEnd.Name = "btnUnlEnd" - Me.btnUnlEnd.Size = New System.Drawing.Size(100, 28) - Me.btnUnlEnd.TabIndex = 10 - Me.btnUnlEnd.Text = "End Unload" - Me.btnUnlEnd.UseVisualStyleBackColor = True - ' - 'btnNextBunk - ' - Me.btnNextBunk.Location = New System.Drawing.Point(85, 106) - Me.btnNextBunk.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnNextBunk.Name = "btnNextBunk" - Me.btnNextBunk.Size = New System.Drawing.Size(100, 28) - Me.btnNextBunk.TabIndex = 11 - Me.btnNextBunk.Text = "Next BUNK" - Me.btnNextBunk.UseVisualStyleBackColor = True - Me.btnNextBunk.Visible = False - ' - 'txtCurrBunk - ' - Me.txtCurrBunk.Location = New System.Drawing.Point(212, 46) - Me.txtCurrBunk.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.txtCurrBunk.Name = "txtCurrBunk" - Me.txtCurrBunk.Size = New System.Drawing.Size(132, 22) - Me.txtCurrBunk.TabIndex = 12 - ' - 'lblNextBunk - ' - Me.lblNextBunk.AutoSize = True - Me.lblNextBunk.Location = New System.Drawing.Point(212, 117) - Me.lblNextBunk.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) - Me.lblNextBunk.Name = "lblNextBunk" - Me.lblNextBunk.Size = New System.Drawing.Size(23, 17) - Me.lblNextBunk.TabIndex = 13 - Me.lblNextBunk.Text = "---" - Me.lblNextBunk.Visible = False - ' - 'txtPrintStart - ' - Me.txtPrintStart.Location = New System.Drawing.Point(212, 207) - Me.txtPrintStart.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.txtPrintStart.Name = "txtPrintStart" - Me.txtPrintStart.Size = New System.Drawing.Size(188, 22) - Me.txtPrintStart.TabIndex = 14 - ' - 'txtWorkStart - ' - Me.txtWorkStart.Location = New System.Drawing.Point(212, 260) - Me.txtWorkStart.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.txtWorkStart.Name = "txtWorkStart" - Me.txtWorkStart.Size = New System.Drawing.Size(188, 22) - Me.txtWorkStart.TabIndex = 15 - ' - 'txtUnlStart - ' - Me.txtUnlStart.Location = New System.Drawing.Point(212, 311) - Me.txtUnlStart.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.txtUnlStart.Name = "txtUnlStart" - Me.txtUnlStart.Size = New System.Drawing.Size(188, 22) - Me.txtUnlStart.TabIndex = 16 - ' - 'txtUnlEnd - ' - Me.txtUnlEnd.Location = New System.Drawing.Point(701, 310) - Me.txtUnlEnd.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.txtUnlEnd.Name = "txtUnlEnd" - Me.txtUnlEnd.Size = New System.Drawing.Size(188, 22) - Me.txtUnlEnd.TabIndex = 19 - ' - 'txtWorkEnd - ' - Me.txtWorkEnd.Location = New System.Drawing.Point(701, 258) - Me.txtWorkEnd.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.txtWorkEnd.Name = "txtWorkEnd" - Me.txtWorkEnd.Size = New System.Drawing.Size(188, 22) - Me.txtWorkEnd.TabIndex = 18 - ' - 'txtPrintEnd - ' - Me.txtPrintEnd.Location = New System.Drawing.Point(701, 206) - Me.txtPrintEnd.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.txtPrintEnd.Name = "txtPrintEnd" - Me.txtPrintEnd.Size = New System.Drawing.Size(188, 22) - Me.txtPrintEnd.TabIndex = 17 - ' - 'btnSaveAll - ' - Me.btnSaveAll.Location = New System.Drawing.Point(77, 378) - Me.btnSaveAll.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.btnSaveAll.Name = "btnSaveAll" - Me.btnSaveAll.Size = New System.Drawing.Size(813, 28) - Me.btnSaveAll.TabIndex = 20 - Me.btnSaveAll.Text = "Save All Data" - Me.btnSaveAll.UseVisualStyleBackColor = True - ' - 'btnPing - ' - Me.btnPing.Location = New System.Drawing.Point(85, 8) - Me.btnPing.Margin = New System.Windows.Forms.Padding(4) - Me.btnPing.Name = "btnPing" - Me.btnPing.Size = New System.Drawing.Size(100, 28) - Me.btnPing.TabIndex = 21 - Me.btnPing.Text = "Test Ping" - Me.btnPing.UseVisualStyleBackColor = True - ' - 'lblPing - ' - Me.lblPing.AutoSize = True - Me.lblPing.Location = New System.Drawing.Point(212, 14) - Me.lblPing.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) - Me.lblPing.Name = "lblPing" - Me.lblPing.Size = New System.Drawing.Size(59, 17) - Me.lblPing.TabIndex = 22 - Me.lblPing.Text = "ping???" - ' - 'Form1 - ' - Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!) - Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font - Me.ClientSize = New System.Drawing.Size(1067, 554) - Me.Controls.Add(Me.lblPing) - Me.Controls.Add(Me.btnPing) - Me.Controls.Add(Me.btnSaveAll) - Me.Controls.Add(Me.txtUnlEnd) - Me.Controls.Add(Me.txtWorkEnd) - Me.Controls.Add(Me.txtPrintEnd) - Me.Controls.Add(Me.txtUnlStart) - Me.Controls.Add(Me.txtWorkStart) - Me.Controls.Add(Me.txtPrintStart) - Me.Controls.Add(Me.lblNextBunk) - Me.Controls.Add(Me.txtCurrBunk) - Me.Controls.Add(Me.btnNextBunk) - Me.Controls.Add(Me.btnUnlEnd) - Me.Controls.Add(Me.btnUnlStart) - Me.Controls.Add(Me.btnWorkEnd) - Me.Controls.Add(Me.btnWorkStart) - Me.Controls.Add(Me.btnPrintEnd) - Me.Controls.Add(Me.Label2) - Me.Controls.Add(Me.cmbSheet) - Me.Controls.Add(Me.btnPrintStart) - Me.Controls.Add(Me.btnLoadBunk) - Me.Controls.Add(Me.Label1) - Me.Controls.Add(Me.btnReset) - Me.Margin = New System.Windows.Forms.Padding(4, 4, 4, 4) - Me.Name = "Form1" - Me.Text = "Form1" - Me.ResumeLayout(False) - Me.PerformLayout() + Me.btnPing = New System.Windows.Forms.Button() + Me.lblPing = New System.Windows.Forms.Label() + Me.btnAlive = New System.Windows.Forms.Button() + Me.lblAlive = New System.Windows.Forms.Label() + Me.SuspendLayout() + ' + 'btnReset + ' + Me.btnReset.Location = New System.Drawing.Point(64, 398) + Me.btnReset.Name = "btnReset" + Me.btnReset.Size = New System.Drawing.Size(75, 23) + Me.btnReset.TabIndex = 0 + Me.btnReset.Text = "reset Date" + Me.btnReset.UseVisualStyleBackColor = True + ' + 'Label1 + ' + Me.Label1.AutoSize = True + Me.Label1.Location = New System.Drawing.Point(262, 403) + Me.Label1.Name = "Label1" + Me.Label1.Size = New System.Drawing.Size(39, 13) + Me.Label1.TabIndex = 1 + Me.Label1.Text = "Label1" + ' + 'btnLoadBunk + ' + Me.btnLoadBunk.Location = New System.Drawing.Point(64, 36) + Me.btnLoadBunk.Name = "btnLoadBunk" + Me.btnLoadBunk.Size = New System.Drawing.Size(75, 23) + Me.btnLoadBunk.TabIndex = 2 + Me.btnLoadBunk.Text = "Load BUNK" + Me.btnLoadBunk.UseVisualStyleBackColor = True + ' + 'btnPrintStart + ' + Me.btnPrintStart.Location = New System.Drawing.Point(64, 165) + Me.btnPrintStart.Name = "btnPrintStart" + Me.btnPrintStart.Size = New System.Drawing.Size(75, 23) + Me.btnPrintStart.TabIndex = 3 + Me.btnPrintStart.Text = "Start Paint" + Me.btnPrintStart.UseVisualStyleBackColor = True + ' + 'cmbSheet + ' + Me.cmbSheet.DisplayMember = "SheetId" + Me.cmbSheet.FormattingEnabled = True + Me.cmbSheet.Location = New System.Drawing.Point(526, 39) + Me.cmbSheet.Name = "cmbSheet" + Me.cmbSheet.Size = New System.Drawing.Size(121, 21) + Me.cmbSheet.TabIndex = 4 + ' + 'Label2 + ' + Me.Label2.AutoSize = True + Me.Label2.Location = New System.Drawing.Point(440, 46) + Me.Label2.Name = "Label2" + Me.Label2.Size = New System.Drawing.Size(69, 13) + Me.Label2.TabIndex = 5 + Me.Label2.Text = "current sheet" + ' + 'btnPrintEnd + ' + Me.btnPrintEnd.Location = New System.Drawing.Point(423, 165) + Me.btnPrintEnd.Name = "btnPrintEnd" + Me.btnPrintEnd.Size = New System.Drawing.Size(75, 23) + Me.btnPrintEnd.TabIndex = 6 + Me.btnPrintEnd.Text = "End Paint" + Me.btnPrintEnd.UseVisualStyleBackColor = True + ' + 'btnWorkStart + ' + Me.btnWorkStart.Location = New System.Drawing.Point(64, 209) + Me.btnWorkStart.Name = "btnWorkStart" + Me.btnWorkStart.Size = New System.Drawing.Size(75, 23) + Me.btnWorkStart.TabIndex = 7 + Me.btnWorkStart.Text = "Start Cut" + Me.btnWorkStart.UseVisualStyleBackColor = True + ' + 'btnWorkEnd + ' + Me.btnWorkEnd.Location = New System.Drawing.Point(423, 209) + Me.btnWorkEnd.Name = "btnWorkEnd" + Me.btnWorkEnd.Size = New System.Drawing.Size(75, 23) + Me.btnWorkEnd.TabIndex = 8 + Me.btnWorkEnd.Text = "End Cut" + Me.btnWorkEnd.UseVisualStyleBackColor = True + ' + 'btnUnlStart + ' + Me.btnUnlStart.Location = New System.Drawing.Point(64, 251) + Me.btnUnlStart.Name = "btnUnlStart" + Me.btnUnlStart.Size = New System.Drawing.Size(75, 23) + Me.btnUnlStart.TabIndex = 9 + Me.btnUnlStart.Text = "Start Unload" + Me.btnUnlStart.UseVisualStyleBackColor = True + ' + 'btnUnlEnd + ' + Me.btnUnlEnd.Location = New System.Drawing.Point(423, 251) + Me.btnUnlEnd.Name = "btnUnlEnd" + Me.btnUnlEnd.Size = New System.Drawing.Size(75, 23) + Me.btnUnlEnd.TabIndex = 10 + Me.btnUnlEnd.Text = "End Unload" + Me.btnUnlEnd.UseVisualStyleBackColor = True + ' + 'btnNextBunk + ' + Me.btnNextBunk.Location = New System.Drawing.Point(64, 86) + Me.btnNextBunk.Name = "btnNextBunk" + Me.btnNextBunk.Size = New System.Drawing.Size(75, 23) + Me.btnNextBunk.TabIndex = 11 + Me.btnNextBunk.Text = "Next BUNK" + Me.btnNextBunk.UseVisualStyleBackColor = True + Me.btnNextBunk.Visible = False + ' + 'txtCurrBunk + ' + Me.txtCurrBunk.Location = New System.Drawing.Point(159, 37) + Me.txtCurrBunk.Name = "txtCurrBunk" + Me.txtCurrBunk.Size = New System.Drawing.Size(100, 20) + Me.txtCurrBunk.TabIndex = 12 + ' + 'lblNextBunk + ' + Me.lblNextBunk.AutoSize = True + Me.lblNextBunk.Location = New System.Drawing.Point(159, 95) + Me.lblNextBunk.Name = "lblNextBunk" + Me.lblNextBunk.Size = New System.Drawing.Size(16, 13) + Me.lblNextBunk.TabIndex = 13 + Me.lblNextBunk.Text = "---" + Me.lblNextBunk.Visible = False + ' + 'txtPrintStart + ' + Me.txtPrintStart.Location = New System.Drawing.Point(159, 168) + Me.txtPrintStart.Name = "txtPrintStart" + Me.txtPrintStart.Size = New System.Drawing.Size(142, 20) + Me.txtPrintStart.TabIndex = 14 + ' + 'txtWorkStart + ' + Me.txtWorkStart.Location = New System.Drawing.Point(159, 211) + Me.txtWorkStart.Name = "txtWorkStart" + Me.txtWorkStart.Size = New System.Drawing.Size(142, 20) + Me.txtWorkStart.TabIndex = 15 + ' + 'txtUnlStart + ' + Me.txtUnlStart.Location = New System.Drawing.Point(159, 253) + Me.txtUnlStart.Name = "txtUnlStart" + Me.txtUnlStart.Size = New System.Drawing.Size(142, 20) + Me.txtUnlStart.TabIndex = 16 + ' + 'txtUnlEnd + ' + Me.txtUnlEnd.Location = New System.Drawing.Point(526, 252) + Me.txtUnlEnd.Name = "txtUnlEnd" + Me.txtUnlEnd.Size = New System.Drawing.Size(142, 20) + Me.txtUnlEnd.TabIndex = 19 + ' + 'txtWorkEnd + ' + Me.txtWorkEnd.Location = New System.Drawing.Point(526, 210) + Me.txtWorkEnd.Name = "txtWorkEnd" + Me.txtWorkEnd.Size = New System.Drawing.Size(142, 20) + Me.txtWorkEnd.TabIndex = 18 + ' + 'txtPrintEnd + ' + Me.txtPrintEnd.Location = New System.Drawing.Point(526, 167) + Me.txtPrintEnd.Name = "txtPrintEnd" + Me.txtPrintEnd.Size = New System.Drawing.Size(142, 20) + Me.txtPrintEnd.TabIndex = 17 + ' + 'btnSaveAll + ' + Me.btnSaveAll.Location = New System.Drawing.Point(58, 307) + Me.btnSaveAll.Name = "btnSaveAll" + Me.btnSaveAll.Size = New System.Drawing.Size(610, 23) + Me.btnSaveAll.TabIndex = 20 + Me.btnSaveAll.Text = "Save All Data" + Me.btnSaveAll.UseVisualStyleBackColor = True + ' + 'btnPing + ' + Me.btnPing.Location = New System.Drawing.Point(64, 6) + Me.btnPing.Name = "btnPing" + Me.btnPing.Size = New System.Drawing.Size(75, 23) + Me.btnPing.TabIndex = 21 + Me.btnPing.Text = "Test Ping" + Me.btnPing.UseVisualStyleBackColor = True + ' + 'lblPing + ' + Me.lblPing.AutoSize = True + Me.lblPing.Location = New System.Drawing.Point(159, 11) + Me.lblPing.Name = "lblPing" + Me.lblPing.Size = New System.Drawing.Size(45, 13) + Me.lblPing.TabIndex = 22 + Me.lblPing.Text = "ping???" + ' + 'btnAlive + ' + Me.btnAlive.Location = New System.Drawing.Point(423, 6) + Me.btnAlive.Name = "btnAlive" + Me.btnAlive.Size = New System.Drawing.Size(75, 23) + Me.btnAlive.TabIndex = 23 + Me.btnAlive.Text = "Test Ping" + Me.btnAlive.UseVisualStyleBackColor = True + ' + 'lblAlive + ' + Me.lblAlive.AutoSize = True + Me.lblAlive.Location = New System.Drawing.Point(523, 11) + Me.lblAlive.Name = "lblAlive" + Me.lblAlive.Size = New System.Drawing.Size(47, 13) + Me.lblAlive.TabIndex = 24 + Me.lblAlive.Text = "alive???" + ' + 'Form1 + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(800, 450) + Me.Controls.Add(Me.lblAlive) + Me.Controls.Add(Me.btnAlive) + Me.Controls.Add(Me.lblPing) + Me.Controls.Add(Me.btnPing) + Me.Controls.Add(Me.btnSaveAll) + Me.Controls.Add(Me.txtUnlEnd) + Me.Controls.Add(Me.txtWorkEnd) + Me.Controls.Add(Me.txtPrintEnd) + Me.Controls.Add(Me.txtUnlStart) + Me.Controls.Add(Me.txtWorkStart) + Me.Controls.Add(Me.txtPrintStart) + Me.Controls.Add(Me.lblNextBunk) + Me.Controls.Add(Me.txtCurrBunk) + Me.Controls.Add(Me.btnNextBunk) + Me.Controls.Add(Me.btnUnlEnd) + Me.Controls.Add(Me.btnUnlStart) + Me.Controls.Add(Me.btnWorkEnd) + Me.Controls.Add(Me.btnWorkStart) + Me.Controls.Add(Me.btnPrintEnd) + Me.Controls.Add(Me.Label2) + Me.Controls.Add(Me.cmbSheet) + Me.Controls.Add(Me.btnPrintStart) + Me.Controls.Add(Me.btnLoadBunk) + Me.Controls.Add(Me.Label1) + Me.Controls.Add(Me.btnReset) + Me.Name = "Form1" + Me.Text = "Form1" + Me.ResumeLayout(False) + Me.PerformLayout() - End Sub + End Sub - Friend WithEvents btnReset As Button + Friend WithEvents btnReset As Button Friend WithEvents Label1 As Label Friend WithEvents btnLoadBunk As Button Friend WithEvents btnPrintStart As Button @@ -324,4 +322,6 @@ Partial Class Form1 Friend WithEvents btnSaveAll As Button Friend WithEvents btnPing As Button Friend WithEvents lblPing As Label + Friend WithEvents btnAlive As Button + Friend WithEvents lblAlive As Label End Class diff --git a/RedisExample/Form1.vb b/RedisExample/Form1.vb index b6b6995..fba3c82 100644 --- a/RedisExample/Form1.vb +++ b/RedisExample/Form1.vb @@ -13,7 +13,8 @@ Public Class Form1 Dim currentBunk As ProdBunk = Nothing Dim risultatoPing As PingReply = Nothing - + Dim srvAlive As Boolean = False + Dim srvClock As String = "" Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnReset.Click @@ -209,4 +210,10 @@ Public Class Form1 lblPing.Text = risultatoPing.Status.ToString() End Sub + + Private Sub btnAlive_Click(sender As Object, e As EventArgs) Handles btnAlive.Click + Dim answ As String = "" + answ = currNKC.testAlive + + End Sub End Class diff --git a/RedisExample/RedisExample.vbproj b/RedisExample/RedisExample.vbproj index ef4441b..6effbf8 100644 --- a/RedisExample/RedisExample.vbproj +++ b/RedisExample/RedisExample.vbproj @@ -119,6 +119,7 @@ + MyApplicationCodeGenerator Application.Designer.vb diff --git a/RedisExample/logs/.placeholder b/RedisExample/logs/.placeholder new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/RedisExample/logs/.placeholder @@ -0,0 +1 @@ + \ No newline at end of file