From eae32e23dade1b41b08e2ba869fb658506939068 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 26 Aug 2019 14:48:49 +0200 Subject: [PATCH] Update obj x stacks --- AppData/DS_App.Designer.cs | 835 +++++++++++++++++++++++++++++++++++- AppData/DS_App.xsd | 99 ++++- AppData/DS_App.xss | 17 +- NKC_WF/StackManager.aspx.cs | 2 + 4 files changed, 916 insertions(+), 37 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index e2854dd..b7ce870 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -34,6 +34,8 @@ namespace AppData { private BatchReqListDataTable tableBatchReqList; + private StackListDataTable tableStackList; + private global::System.Data.DataRelation relationFK_ItemList_Materials1; private global::System.Data.DataRelation relationFK_ItemList_OrderList1; @@ -83,6 +85,9 @@ namespace AppData { if ((ds.Tables["BatchReqList"] != null)) { base.Tables.Add(new BatchReqListDataTable(ds.Tables["BatchReqList"])); } + if ((ds.Tables["StackList"] != null)) { + base.Tables.Add(new StackListDataTable(ds.Tables["StackList"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -151,6 +156,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 StackListDataTable StackList { + get { + return this.tableStackList; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -233,6 +248,9 @@ namespace AppData { if ((ds.Tables["BatchReqList"] != null)) { base.Tables.Add(new BatchReqListDataTable(ds.Tables["BatchReqList"])); } + if ((ds.Tables["StackList"] != null)) { + base.Tables.Add(new StackListDataTable(ds.Tables["StackList"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -296,6 +314,12 @@ namespace AppData { this.tableBatchReqList.InitVars(); } } + this.tableStackList = ((StackListDataTable)(base.Tables["StackList"])); + if ((initTable == true)) { + if ((this.tableStackList != null)) { + this.tableStackList.InitVars(); + } + } this.relationFK_ItemList_Materials1 = this.Relations["FK_ItemList_Materials1"]; this.relationFK_ItemList_OrderList1 = this.Relations["FK_ItemList_OrderList1"]; this.relationFK_BatchReqList_OrderList = this.Relations["FK_BatchReqList_OrderList"]; @@ -319,6 +343,8 @@ namespace AppData { base.Tables.Add(this.tableOrderList); this.tableBatchReqList = new BatchReqListDataTable(); base.Tables.Add(this.tableBatchReqList); + this.tableStackList = new StackListDataTable(); + base.Tables.Add(this.tableStackList); this.relationFK_ItemList_Materials1 = new global::System.Data.DataRelation("FK_ItemList_Materials1", new global::System.Data.DataColumn[] { this.tableMaterials.MatIDColumn}, new global::System.Data.DataColumn[] { this.tableItemList.MatIDColumn}, false); @@ -363,6 +389,12 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeStackList() { + 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) { @@ -433,6 +465,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void BatchReqListRowChangeEventHandler(object sender, BatchReqListRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void StackListRowChangeEventHandler(object sender, StackListRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2424,6 +2459,354 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class StackListDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnStackID; + + private global::System.Data.DataColumn columnBatchID; + + private global::System.Data.DataColumn columnNumSheets; + + private global::System.Data.DataColumn columnNumSheetsPrepared; + + private global::System.Data.DataColumn columnNumSheetsPrinted; + + private global::System.Data.DataColumn columnNumSheetsWorked; + + private global::System.Data.DataColumn columnNumItems; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public StackListDataTable() { + this.TableName = "StackList"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal StackListDataTable(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 StackListDataTable(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 StackIDColumn { + get { + return this.columnStackID; + } + } + + [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 NumSheetsColumn { + get { + return this.columnNumSheets; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumSheetsPreparedColumn { + get { + return this.columnNumSheetsPrepared; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumSheetsPrintedColumn { + get { + return this.columnNumSheetsPrinted; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumSheetsWorkedColumn { + get { + return this.columnNumSheetsWorked; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumItemsColumn { + get { + return this.columnNumItems; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [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 StackListRow this[int index] { + get { + return ((StackListRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event StackListRowChangeEventHandler StackListRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event StackListRowChangeEventHandler StackListRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event StackListRowChangeEventHandler StackListRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event StackListRowChangeEventHandler StackListRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddStackListRow(StackListRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public StackListRow AddStackListRow(int StackID, int BatchID, int NumSheets, int NumSheetsPrepared, int NumSheetsPrinted, int NumSheetsWorked, int NumItems) { + StackListRow rowStackListRow = ((StackListRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + StackID, + BatchID, + NumSheets, + NumSheetsPrepared, + NumSheetsPrinted, + NumSheetsWorked, + NumItems}; + rowStackListRow.ItemArray = columnValuesArray; + this.Rows.Add(rowStackListRow); + return rowStackListRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public StackListRow FindByStackID(int StackID) { + return ((StackListRow)(this.Rows.Find(new object[] { + StackID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + StackListDataTable cln = ((StackListDataTable)(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 StackListDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnStackID = base.Columns["StackID"]; + this.columnBatchID = base.Columns["BatchID"]; + this.columnNumSheets = base.Columns["NumSheets"]; + this.columnNumSheetsPrepared = base.Columns["NumSheetsPrepared"]; + this.columnNumSheetsPrinted = base.Columns["NumSheetsPrinted"]; + this.columnNumSheetsWorked = base.Columns["NumSheetsWorked"]; + this.columnNumItems = base.Columns["NumItems"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnStackID = new global::System.Data.DataColumn("StackID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStackID); + this.columnBatchID = new global::System.Data.DataColumn("BatchID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBatchID); + this.columnNumSheets = new global::System.Data.DataColumn("NumSheets", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumSheets); + this.columnNumSheetsPrepared = new global::System.Data.DataColumn("NumSheetsPrepared", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumSheetsPrepared); + this.columnNumSheetsPrinted = new global::System.Data.DataColumn("NumSheetsPrinted", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumSheetsPrinted); + this.columnNumSheetsWorked = new global::System.Data.DataColumn("NumSheetsWorked", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumSheetsWorked); + this.columnNumItems = new global::System.Data.DataColumn("NumItems", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumItems); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnStackID}, true)); + this.columnStackID.AllowDBNull = false; + this.columnStackID.Unique = true; + this.columnBatchID.AllowDBNull = false; + this.columnNumSheets.ReadOnly = true; + this.columnNumSheetsPrepared.ReadOnly = true; + this.columnNumSheetsPrinted.ReadOnly = true; + this.columnNumSheetsWorked.ReadOnly = true; + this.columnNumItems.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public StackListRow NewStackListRow() { + return ((StackListRow)(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 StackListRow(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(StackListRow); + } + + [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.StackListRowChanged != null)) { + this.StackListRowChanged(this, new StackListRowChangeEvent(((StackListRow)(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.StackListRowChanging != null)) { + this.StackListRowChanging(this, new StackListRowChangeEvent(((StackListRow)(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.StackListRowDeleted != null)) { + this.StackListRowDeleted(this, new StackListRowChangeEvent(((StackListRow)(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.StackListRowDeleting != null)) { + this.StackListRowDeleting(this, new StackListRowChangeEvent(((StackListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveStackListRow(StackListRow 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 = "StackListDataTable"; + 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. /// @@ -3291,6 +3674,183 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class StackListRow : global::System.Data.DataRow { + + private StackListDataTable tableStackList; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal StackListRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableStackList = ((StackListDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int StackID { + get { + return ((int)(this[this.tableStackList.StackIDColumn])); + } + set { + this[this.tableStackList.StackIDColumn] = 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.tableStackList.BatchIDColumn])); + } + set { + this[this.tableStackList.BatchIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumSheets { + get { + try { + return ((int)(this[this.tableStackList.NumSheetsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumSheets\' nella tabella \'StackList\' è DBNull.", e); + } + } + set { + this[this.tableStackList.NumSheetsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumSheetsPrepared { + get { + try { + return ((int)(this[this.tableStackList.NumSheetsPreparedColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumSheetsPrepared\' nella tabella \'StackList\' è DBNull.", e); + } + } + set { + this[this.tableStackList.NumSheetsPreparedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumSheetsPrinted { + get { + try { + return ((int)(this[this.tableStackList.NumSheetsPrintedColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumSheetsPrinted\' nella tabella \'StackList\' è DBNull.", e); + } + } + set { + this[this.tableStackList.NumSheetsPrintedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumSheetsWorked { + get { + try { + return ((int)(this[this.tableStackList.NumSheetsWorkedColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumSheetsWorked\' nella tabella \'StackList\' è DBNull.", e); + } + } + set { + this[this.tableStackList.NumSheetsWorkedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumItems { + get { + try { + return ((int)(this[this.tableStackList.NumItemsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumItems\' nella tabella \'StackList\' è DBNull.", e); + } + } + set { + this[this.tableStackList.NumItemsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumSheetsNull() { + return this.IsNull(this.tableStackList.NumSheetsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumSheetsNull() { + this[this.tableStackList.NumSheetsColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumSheetsPreparedNull() { + return this.IsNull(this.tableStackList.NumSheetsPreparedColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumSheetsPreparedNull() { + this[this.tableStackList.NumSheetsPreparedColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumSheetsPrintedNull() { + return this.IsNull(this.tableStackList.NumSheetsPrintedColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumSheetsPrintedNull() { + this[this.tableStackList.NumSheetsPrintedColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumSheetsWorkedNull() { + return this.IsNull(this.tableStackList.NumSheetsWorkedColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumSheetsWorkedNull() { + this[this.tableStackList.NumSheetsWorkedColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumItemsNull() { + return this.IsNull(this.tableStackList.NumItemsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumItemsNull() { + this[this.tableStackList.NumItemsColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -3460,6 +4020,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class StackListRowChangeEvent : global::System.EventArgs { + + private StackListRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public StackListRowChangeEvent(StackListRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public StackListRow 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 { @@ -3616,7 +4210,7 @@ namespace AppData.DS_AppTableAdapters { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\nFROM v_BatchList"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_BatchList"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = new global::System.Data.SqlClient.SqlConnection(global::AppData.Properties.Settings.Default.Sauder_NKCConnectionString); @@ -3940,7 +4534,7 @@ namespace AppData.DS_AppTableAdapters { this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Materials] ([MaterExtCode], [MaterDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MaterExtCode, @MaterDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Materials] ([MaterExtCode], [MaterDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MaterExtCode, @MaterDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = SCOPE_IDENTITY())"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -3952,7 +4546,7 @@ SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T_mm", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "T_mm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Materials] SET [MaterExtCode] = @MaterExtCode, [MaterDesc] = @MaterDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm)); + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Materials] SET [MaterExtCode] = @MaterExtCode, [MaterDesc] = @MaterDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm)); SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = @MatID)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -4379,7 +4973,7 @@ SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdCod], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdCod, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdCod], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdCod, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = SCOPE_IDENTITY())"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -4395,7 +4989,7 @@ SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, I this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CadFilePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CadFilePath", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdCod] = @OrdCod, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdCod] = @OrdCod, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = @ItemID)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5026,7 +5620,7 @@ SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, I this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderList] ([OrdCod], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdCod, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderList] ([OrdCod], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdCod, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5042,7 +5636,7 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderList] SET [OrdCod] = @OrdCod, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderList] SET [OrdCod] = @OrdCod, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5656,16 +6250,16 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[BatchReqList] ([BatchID], [OrdCod]) VALUES (@BatchID, @OrdCod)" + - ";\nSELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCo" + - "d = @OrdCod)"; + ";\r\nSELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdC" + + "od = @OrdCod)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[BatchReqList] SET [BatchID] = @BatchID, [OrdCod] = @OrdCod WHERE ((" + - "[BatchID] = @Original_BatchID) AND ([OrdCod] = @Original_OrdCod));\nSELECT BatchI" + - "D, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod = @OrdCod)"; + "[BatchID] = @Original_BatchID) AND ([OrdCod] = @Original_OrdCod));\r\nSELECT Batch" + + "ID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod = @OrdCod)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5843,6 +6437,225 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class StackListTableAdapter : 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 StackListTableAdapter() { + 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 = "StackList"; + tableMapping.ColumnMappings.Add("StackID", "StackID"); + tableMapping.ColumnMappings.Add("BatchID", "BatchID"); + tableMapping.ColumnMappings.Add("NumSheets", "NumSheets"); + tableMapping.ColumnMappings.Add("NumSheetsPrepared", "NumSheetsPrepared"); + tableMapping.ColumnMappings.Add("NumSheetsPrinted", "NumSheetsPrinted"); + tableMapping.ColumnMappings.Add("NumSheetsWorked", "NumSheetsWorked"); + tableMapping.ColumnMappings.Add("NumItems", "NumItems"); + 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[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_StackList"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_Stacks_getByBatch"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_Stacks_getByKey"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StackID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_App.StackListDataTable 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.StackListDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.StackListDataTable dataTable = new DS_App.StackListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_App.StackListDataTable getByBatch(global::System.Nullable BatchID) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((BatchID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_App.StackListDataTable dataTable = new DS_App.StackListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_App.StackListDataTable getByKey(global::System.Nullable StackID) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((StackID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(StackID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_App.StackListDataTable dataTable = new DS_App.StackListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index e924a46..b11a606 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -2,7 +2,7 @@ - + @@ -13,7 +13,7 @@ - SELECT * + SELECT * FROM v_BatchList @@ -116,7 +116,7 @@ FROM v_BatchList - INSERT INTO [dbo].[Materials] ([MaterExtCode], [MaterDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MaterExtCode, @MaterDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); + INSERT INTO [dbo].[Materials] ([MaterExtCode], [MaterDesc], [ApprovDate], [ApprovUser], [L_mm], [W_mm], [T_mm]) VALUES (@MaterExtCode, @MaterDesc, @ApprovDate, @ApprovUser, @L_mm, @W_mm, @T_mm); SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = SCOPE_IDENTITY()) @@ -137,7 +137,7 @@ SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm - UPDATE [dbo].[Materials] SET [MaterExtCode] = @MaterExtCode, [MaterDesc] = @MaterDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm)); + UPDATE [dbo].[Materials] SET [MaterExtCode] = @MaterExtCode, [MaterDesc] = @MaterDesc, [ApprovDate] = @ApprovDate, [ApprovUser] = @ApprovUser, [L_mm] = @L_mm, [W_mm] = @W_mm, [T_mm] = @T_mm WHERE (([MatID] = @Original_MatID) AND ([MaterExtCode] = @Original_MaterExtCode) AND ([MaterDesc] = @Original_MaterDesc) AND ([ApprovDate] = @Original_ApprovDate) AND ([ApprovUser] = @Original_ApprovUser) AND ([L_mm] = @Original_L_mm) AND ([W_mm] = @Original_W_mm) AND ([T_mm] = @Original_T_mm)); SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm FROM Materials WHERE (MatID = @MatID) @@ -200,7 +200,7 @@ SELECT MatID, MaterExtCode, MaterDesc, ApprovDate, ApprovUser, L_mm, W_mm, T_mm - INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdCod], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdCod, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); + INSERT INTO [dbo].[ItemList] ([ItemStatus], [OrdCod], [ItemExtCode], [ItemDesc], [ItemNote], [ItemQty], [MatID], [MachiningReq], [PostProcList], [ProcessesReq], [CadFilePath]) VALUES (@ItemStatus, @OrdCod, @ItemExtCode, @ItemDesc, @ItemNote, @ItemQty, @MatID, @MachiningReq, @PostProcList, @ProcessesReq, @CadFilePath); SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = SCOPE_IDENTITY()) @@ -225,7 +225,7 @@ SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, I - UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdCod] = @OrdCod, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); + UPDATE [dbo].[ItemList] SET [ItemStatus] = @ItemStatus, [OrdCod] = @OrdCod, [ItemExtCode] = @ItemExtCode, [ItemDesc] = @ItemDesc, [ItemNote] = @ItemNote, [ItemQty] = @ItemQty, [MatID] = @MatID, [MachiningReq] = @MachiningReq, [PostProcList] = @PostProcList, [ProcessesReq] = @ProcessesReq, [CadFilePath] = @CadFilePath WHERE (([ItemID] = @Original_ItemID) AND ([ItemStatus] = @Original_ItemStatus) AND ((@IsNull_OrdCod = 1 AND [OrdCod] IS NULL) OR ([OrdCod] = @Original_OrdCod)) AND ((@IsNull_Item_Dtmx = 1 AND [Item_Dtmx] IS NULL) OR ([Item_Dtmx] = @Original_Item_Dtmx)) AND ([ItemExtCode] = @Original_ItemExtCode) AND ([ItemDesc] = @Original_ItemDesc) AND ([ItemNote] = @Original_ItemNote) AND ([ItemQty] = @Original_ItemQty) AND ([MatID] = @Original_MatID) AND ([MachiningReq] = @Original_MachiningReq) AND ([PostProcList] = @Original_PostProcList) AND ([ProcessesReq] = @Original_ProcessesReq) AND ([CadFilePath] = @Original_CadFilePath)); SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath FROM ItemList WHERE (ItemID = @ItemID) @@ -325,7 +325,7 @@ SELECT ItemID, ItemStatus, OrdCod, Item_Dtmx, ItemExtCode, ItemDesc, ItemNote, I - INSERT INTO [dbo].[OrderList] ([OrdCod], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdCod, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); + INSERT INTO [dbo].[OrderList] ([OrdCod], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdCod, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig); SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod) @@ -350,7 +350,7 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD - UPDATE [dbo].[OrderList] SET [OrdCod] = @OrdCod, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); + UPDATE [dbo].[OrderList] SET [OrdCod] = @OrdCod, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdCod] = @Original_OrdCod) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ([OrdCod_Dtmx] = @Original_OrdCod_Dtmx) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig))); SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdCod = @OrdCod) @@ -424,7 +424,7 @@ SELECT OrdCod, OrdType, DestPlant, FamilyCode, OrdCod_Dtmx, OrderExtCode, OrderD - INSERT INTO [dbo].[BatchReqList] ([BatchID], [OrdCod]) VALUES (@BatchID, @OrdCod); + INSERT INTO [dbo].[BatchReqList] ([BatchID], [OrdCod]) VALUES (@BatchID, @OrdCod); SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod = @OrdCod) @@ -440,7 +440,7 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod - UPDATE [dbo].[BatchReqList] SET [BatchID] = @BatchID, [OrdCod] = @OrdCod WHERE (([BatchID] = @Original_BatchID) AND ([OrdCod] = @Original_OrdCod)); + UPDATE [dbo].[BatchReqList] SET [BatchID] = @BatchID, [OrdCod] = @OrdCod WHERE (([BatchID] = @Original_BatchID) AND ([OrdCod] = @Original_OrdCod)); SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod = @OrdCod) @@ -458,6 +458,52 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod + + + + + + SELECT * +FROM dbo.v_StackList + + + + + + + + + + + + + + + + + + + dbo.stp_Stacks_getByBatch + + + + + + + + + + + dbo.stp_Stacks_getByKey + + + + + + + + + @@ -466,7 +512,7 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod - + @@ -498,7 +544,7 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod - + @@ -530,7 +576,7 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod - + @@ -597,7 +643,7 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod - + @@ -675,7 +721,7 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod - + @@ -689,6 +735,19 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod + + + + + + + + + + + + + @@ -712,12 +771,16 @@ SELECT BatchID, OrdCod FROM BatchReqList WHERE (BatchID = @BatchID) AND (OrdCod + + + + - - - + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index eed2d3f..2299c71 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -6,14 +6,15 @@ --> - - - - - + + + + + + - + 980 @@ -25,7 +26,7 @@ - + 619 @@ -37,7 +38,7 @@ - + 421 diff --git a/NKC_WF/StackManager.aspx.cs b/NKC_WF/StackManager.aspx.cs index 2a99f15..65d7f3b 100644 --- a/NKC_WF/StackManager.aspx.cs +++ b/NKC_WF/StackManager.aspx.cs @@ -21,6 +21,8 @@ namespace NKC_WF private void Cmp_taktList_eh_doRefresh(object sender, EventArgs e) { checkVisibility(); + // imposto batch! + cmp_stackList.BatchId = cmp_taktList.BatchIdSel; } private void checkVisibility()