diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 77221b7..c9cb34e 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -72,6 +72,8 @@ namespace AppData { private CartOnKitDataTable tableCartOnKit; + private PackListDataTable tablePackList; + private global::System.Data.DataRelation relationFK_BatchReqList_OrderList; private global::System.Data.DataRelation relationFK_ItemList_Materials1; @@ -196,6 +198,9 @@ namespace AppData { if ((ds.Tables["CartOnKit"] != null)) { base.Tables.Add(new CartOnKitDataTable(ds.Tables["CartOnKit"])); } + if ((ds.Tables["PackList"] != null)) { + base.Tables.Add(new PackListDataTable(ds.Tables["PackList"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -454,6 +459,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 PackListDataTable PackList { + get { + return this.tablePackList; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -593,6 +608,9 @@ namespace AppData { if ((ds.Tables["CartOnKit"] != null)) { base.Tables.Add(new CartOnKitDataTable(ds.Tables["CartOnKit"])); } + if ((ds.Tables["PackList"] != null)) { + base.Tables.Add(new PackListDataTable(ds.Tables["PackList"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -770,6 +788,12 @@ namespace AppData { this.tableCartOnKit.InitVars(); } } + this.tablePackList = ((PackListDataTable)(base.Tables["PackList"])); + if ((initTable == true)) { + if ((this.tablePackList != null)) { + this.tablePackList.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"]; @@ -840,6 +864,8 @@ namespace AppData { base.Tables.Add(this.tableRemnants); this.tableCartOnKit = new CartOnKitDataTable(); base.Tables.Add(this.tableCartOnKit); + this.tablePackList = new PackListDataTable(); + base.Tables.Add(this.tablePackList); 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); @@ -1034,6 +1060,12 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializePackList() { + 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) { @@ -1161,6 +1193,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void CartOnKitRowChangeEventHandler(object sender, CartOnKitRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void PackListRowChangeEventHandler(object sender, PackListRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -10115,6 +10150,369 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class PackListDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnPackListID; + + private global::System.Data.DataColumn columnBatchName; + + private global::System.Data.DataColumn columnImportDate; + + private global::System.Data.DataColumn columnStatusID; + + private global::System.Data.DataColumn columnNumKit; + + private global::System.Data.DataColumn columnNumParts; + + private global::System.Data.DataColumn columnTotQty; + + private global::System.Data.DataColumn columnStatusDesc; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public PackListDataTable() { + this.TableName = "PackList"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal PackListDataTable(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 PackListDataTable(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 PackListIDColumn { + get { + return this.columnPackListID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BatchNameColumn { + get { + return this.columnBatchName; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ImportDateColumn { + get { + return this.columnImportDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn StatusIDColumn { + get { + return this.columnStatusID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumKitColumn { + get { + return this.columnNumKit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumPartsColumn { + get { + return this.columnNumParts; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TotQtyColumn { + get { + return this.columnTotQty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn StatusDescColumn { + get { + return this.columnStatusDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + 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 PackListRow this[int index] { + get { + return ((PackListRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event PackListRowChangeEventHandler PackListRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event PackListRowChangeEventHandler PackListRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event PackListRowChangeEventHandler PackListRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event PackListRowChangeEventHandler PackListRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddPackListRow(PackListRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public PackListRow AddPackListRow(int PackListID, string BatchName, System.DateTime ImportDate, int StatusID, int NumKit, int NumParts, int TotQty, string StatusDesc) { + PackListRow rowPackListRow = ((PackListRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + PackListID, + BatchName, + ImportDate, + StatusID, + NumKit, + NumParts, + TotQty, + StatusDesc}; + rowPackListRow.ItemArray = columnValuesArray; + this.Rows.Add(rowPackListRow); + return rowPackListRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public PackListRow FindByPackListID(int PackListID) { + return ((PackListRow)(this.Rows.Find(new object[] { + PackListID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + PackListDataTable cln = ((PackListDataTable)(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 PackListDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnPackListID = base.Columns["PackListID"]; + this.columnBatchName = base.Columns["BatchName"]; + this.columnImportDate = base.Columns["ImportDate"]; + this.columnStatusID = base.Columns["StatusID"]; + this.columnNumKit = base.Columns["NumKit"]; + this.columnNumParts = base.Columns["NumParts"]; + this.columnTotQty = base.Columns["TotQty"]; + this.columnStatusDesc = base.Columns["StatusDesc"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnPackListID = new global::System.Data.DataColumn("PackListID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPackListID); + this.columnBatchName = new global::System.Data.DataColumn("BatchName", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBatchName); + this.columnImportDate = new global::System.Data.DataColumn("ImportDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImportDate); + this.columnStatusID = new global::System.Data.DataColumn("StatusID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStatusID); + this.columnNumKit = new global::System.Data.DataColumn("NumKit", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumKit); + this.columnNumParts = new global::System.Data.DataColumn("NumParts", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumParts); + this.columnTotQty = new global::System.Data.DataColumn("TotQty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotQty); + this.columnStatusDesc = new global::System.Data.DataColumn("StatusDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStatusDesc); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnPackListID}, true)); + this.columnPackListID.AllowDBNull = false; + this.columnPackListID.Unique = true; + this.columnBatchName.AllowDBNull = false; + this.columnBatchName.MaxLength = 50; + this.columnStatusID.AllowDBNull = false; + this.columnNumParts.AllowDBNull = false; + this.columnTotQty.AllowDBNull = false; + this.columnStatusDesc.ReadOnly = true; + this.columnStatusDesc.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public PackListRow NewPackListRow() { + return ((PackListRow)(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 PackListRow(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(PackListRow); + } + + [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.PackListRowChanged != null)) { + this.PackListRowChanged(this, new PackListRowChangeEvent(((PackListRow)(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.PackListRowChanging != null)) { + this.PackListRowChanging(this, new PackListRowChangeEvent(((PackListRow)(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.PackListRowDeleted != null)) { + this.PackListRowDeleted(this, new PackListRowChangeEvent(((PackListRow)(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.PackListRowDeleting != null)) { + this.PackListRowDeleting(this, new PackListRowChangeEvent(((PackListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemovePackListRow(PackListRow 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 = "PackListDataTable"; + 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. /// @@ -14096,6 +14494,160 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class PackListRow : global::System.Data.DataRow { + + private PackListDataTable tablePackList; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal PackListRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablePackList = ((PackListDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int PackListID { + get { + return ((int)(this[this.tablePackList.PackListIDColumn])); + } + set { + this[this.tablePackList.PackListIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string BatchName { + get { + return ((string)(this[this.tablePackList.BatchNameColumn])); + } + set { + this[this.tablePackList.BatchNameColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime ImportDate { + get { + try { + return ((global::System.DateTime)(this[this.tablePackList.ImportDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ImportDate\' nella tabella \'PackList\' è DBNull.", e); + } + } + set { + this[this.tablePackList.ImportDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int StatusID { + get { + return ((int)(this[this.tablePackList.StatusIDColumn])); + } + set { + this[this.tablePackList.StatusIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumKit { + get { + try { + return ((int)(this[this.tablePackList.NumKitColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumKit\' nella tabella \'PackList\' è DBNull.", e); + } + } + set { + this[this.tablePackList.NumKitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumParts { + get { + return ((int)(this[this.tablePackList.NumPartsColumn])); + } + set { + this[this.tablePackList.NumPartsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int TotQty { + get { + return ((int)(this[this.tablePackList.TotQtyColumn])); + } + set { + this[this.tablePackList.TotQtyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string StatusDesc { + get { + try { + return ((string)(this[this.tablePackList.StatusDescColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'StatusDesc\' nella tabella \'PackList\' è DBNull.", e); + } + } + set { + this[this.tablePackList.StatusDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsImportDateNull() { + return this.IsNull(this.tablePackList.ImportDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetImportDateNull() { + this[this.tablePackList.ImportDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumKitNull() { + return this.IsNull(this.tablePackList.NumKitColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumKitNull() { + this[this.tablePackList.NumKitColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsStatusDescNull() { + return this.IsNull(this.tablePackList.StatusDescColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetStatusDescNull() { + this[this.tablePackList.StatusDescColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -14911,6 +15463,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class PackListRowChangeEvent : global::System.EventArgs { + + private PackListRow 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 PackListRowChangeEvent(PackListRow 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 PackListRow 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 { @@ -24157,6 +24743,226 @@ 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 PackListTableAdapter : 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 PackListTableAdapter() { + 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 = "PackList"; + tableMapping.ColumnMappings.Add("PackListID", "PackListID"); + tableMapping.ColumnMappings.Add("BatchName", "BatchName"); + tableMapping.ColumnMappings.Add("ImportDate", "ImportDate"); + tableMapping.ColumnMappings.Add("StatusID", "StatusID"); + tableMapping.ColumnMappings.Add("NumKit", "NumKit"); + tableMapping.ColumnMappings.Add("NumParts", "NumParts"); + tableMapping.ColumnMappings.Add("TotQty", "TotQty"); + tableMapping.ColumnMappings.Add("StatusDesc", "StatusDesc"); + 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 * from v_PackListDet"; + 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_PLD_getActive"; + 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[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_PLD_updStatus"; + 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("@Original_PackListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", 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.PackListDataTable 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.PackListDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_App.PackListDataTable dataTable = new DS_App.PackListDataTable(); + 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.PackListDataTable getActive() { + this.Adapter.SelectCommand = this.CommandCollection[1]; + DS_App.PackListDataTable dataTable = new DS_App.PackListDataTable(); + 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.PackListDataTable updateStatus(global::System.Nullable Original_PackListID, global::System.Nullable StatusID) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((Original_PackListID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Original_PackListID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((StatusID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(StatusID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_App.PackListDataTable dataTable = new DS_App.PackListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -24558,15 +25364,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } - if ((this._kitListTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._kitListTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._materialsTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -24576,6 +25373,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(updatedRows); } } + if ((this._kitListTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._kitListTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._itemListTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -24594,6 +25400,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._itemValidationTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.ItemValidation.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -24639,15 +25454,6 @@ 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); @@ -24693,14 +25499,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } - if ((this._kitListTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._kitListTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._materialsTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -24709,6 +25507,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allAddedRows.AddRange(addedRows); } } + if ((this._kitListTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._kitListTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._itemListTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -24725,6 +25531,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._itemValidationTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.ItemValidation.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -24765,14 +25579,6 @@ 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) @@ -24831,14 +25637,6 @@ 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) @@ -24879,6 +25677,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._finalKitTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.FinalKit.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -24895,14 +25701,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } - if ((this._materialsTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._materialsTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._kitListTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.KitList.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -24911,6 +25709,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W allChangedRows.AddRange(deletedRows); } } + if ((this._materialsTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Materials.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._materialsTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._orderListTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.OrderList.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 233333d..d964445 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -2218,6 +2218,52 @@ FROM v_CartKitDetail + + + + + + select * from v_PackListDet + + + + + + + + + + + + + + + + + + + + dbo.stp_PLD_getActive + + + + + + + + + + dbo.stp_PLD_updStatus + + + + + + + + + + @@ -2226,7 +2272,7 @@ FROM v_CartKitDetail - + @@ -2274,7 +2320,7 @@ FROM v_CartKitDetail - + @@ -2296,7 +2342,7 @@ FROM v_CartKitDetail - + @@ -2351,7 +2397,7 @@ FROM v_CartKitDetail - + @@ -2424,7 +2470,7 @@ FROM v_CartKitDetail - + @@ -2432,7 +2478,7 @@ FROM v_CartKitDetail - + @@ -2501,7 +2547,7 @@ FROM v_CartKitDetail - + @@ -2534,7 +2580,7 @@ FROM v_CartKitDetail - + @@ -2575,7 +2621,7 @@ FROM v_CartKitDetail - + @@ -2594,7 +2640,7 @@ FROM v_CartKitDetail - + @@ -2618,7 +2664,7 @@ FROM v_CartKitDetail - + @@ -2626,7 +2672,7 @@ FROM v_CartKitDetail - + @@ -2643,7 +2689,7 @@ FROM v_CartKitDetail - + @@ -2652,7 +2698,7 @@ FROM v_CartKitDetail - + @@ -2683,7 +2729,7 @@ FROM v_CartKitDetail - + @@ -2691,7 +2737,7 @@ FROM v_CartKitDetail - + @@ -2707,7 +2753,7 @@ FROM v_CartKitDetail - + @@ -2715,7 +2761,7 @@ FROM v_CartKitDetail - + @@ -2743,7 +2789,7 @@ FROM v_CartKitDetail - + @@ -2779,7 +2825,7 @@ FROM v_CartKitDetail - + @@ -2795,7 +2841,7 @@ FROM v_CartKitDetail - + @@ -2805,7 +2851,7 @@ FROM v_CartKitDetail - + @@ -2822,7 +2868,7 @@ FROM v_CartKitDetail - + @@ -2835,7 +2881,7 @@ FROM v_CartKitDetail - + @@ -2885,6 +2931,32 @@ FROM v_CartKitDetail + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2978,21 +3050,25 @@ FROM v_CartKitDetail + + + + - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index ecd07c1..becb48b 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,35 +4,36 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + 352 @@ -44,7 +45,7 @@ - + 1197 @@ -56,7 +57,7 @@ - + 1054 @@ -68,7 +69,7 @@ - + 788 @@ -80,7 +81,7 @@ - + 986 @@ -92,7 +93,7 @@ - + 699 @@ -104,7 +105,7 @@ - + 550 @@ -116,7 +117,7 @@ - + 1129 @@ -128,7 +129,7 @@ - + 1380 @@ -140,7 +141,7 @@ - + 1161 @@ -152,7 +153,7 @@ - + 131 @@ -164,7 +165,7 @@ - + 352 diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index 0fc15f0..a07edb0 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -23,6 +23,7 @@ namespace AppData public DS_AppTableAdapters.OfflineOrderListTableAdapter taOffOL; public DS_AppTableAdapters.OffOrd2ItemTableAdapter taOO2I; public DS_AppTableAdapters.OrderListTableAdapter taOL; + public DS_AppTableAdapters.PackListTableAdapter taPLD; public DS_AppTableAdapters.PartValidParetoTableAdapter taPVP; public DS_AppTableAdapters.RemnantsTableAdapter taRem; public DS_AppTableAdapters.StackListTableAdapter taSTL; @@ -57,6 +58,7 @@ namespace AppData taOffOL.Connection.ConnectionString = connString; taOO2I.Connection.ConnectionString = connString; taOL.Connection.ConnectionString = connString; + taPLD.Connection.ConnectionString = connString; taPVP.Connection.ConnectionString = connString; taRem.Connection.ConnectionString = connString; taSTL.Connection.ConnectionString = connString; @@ -83,6 +85,7 @@ namespace AppData taOffOL = new DS_AppTableAdapters.OfflineOrderListTableAdapter(); taOO2I = new DS_AppTableAdapters.OffOrd2ItemTableAdapter(); taOL = new DS_AppTableAdapters.OrderListTableAdapter(); + taPLD = new DS_AppTableAdapters.PackListTableAdapter(); taPVP = new DS_AppTableAdapters.PartValidParetoTableAdapter(); taRem = new DS_AppTableAdapters.RemnantsTableAdapter(); taSTL = new DS_AppTableAdapters.StackListTableAdapter(); diff --git a/NKC_WF/WebUserControls/cmp_fileUpload.ascx.cs b/NKC_WF/WebUserControls/cmp_fileUpload.ascx.cs index a0ab07c..6ea68cf 100644 --- a/NKC_WF/WebUserControls/cmp_fileUpload.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_fileUpload.ascx.cs @@ -192,7 +192,8 @@ namespace NKC_WF.WebUserContols protected void btnCancel_Click(object sender, EventArgs e) { - fisVisFU(false); + //fisVisFU(false); + Response.Redirect(Request.RawUrl); } } diff --git a/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx b/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx index e903de9..077e01e 100644 --- a/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx +++ b/NKC_WF/WebUserControls/cmp_kitImpCheck.ascx @@ -20,13 +20,13 @@
-
+
Step 1 File Uploaded.
-
+
Step 2 Data Validated.
-
+
Step 3 Data Imported.
diff --git a/NKC_WF/WebUserControls/cmp_kitList.ascx b/NKC_WF/WebUserControls/cmp_kitList.ascx index 7215159..9c0c291 100644 --- a/NKC_WF/WebUserControls/cmp_kitList.ascx +++ b/NKC_WF/WebUserControls/cmp_kitList.ascx @@ -1,7 +1,32 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_kitList.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_kitList" %> + + + + + + + + + <%-- +
+ +
+
--%> + +
+ +
+
+
+ + + + + + + +
-
-dati kit list (?!?!?) -
-recuperati da PACK LIST \ No newline at end of file +
+ diff --git a/NKC_WF/WebUserControls/cmp_kitList.ascx.cs b/NKC_WF/WebUserControls/cmp_kitList.ascx.cs index a4c1cd1..8813c3c 100644 --- a/NKC_WF/WebUserControls/cmp_kitList.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kitList.ascx.cs @@ -1,4 +1,5 @@ -using System; +using AppData; +using System; using System.Collections.Generic; using System.Linq; using System.Web; @@ -13,5 +14,64 @@ namespace NKC_WF.WebUserControls { } + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + protected string task + { + get + { + return hfTask.Value; + } + set + { + hfTask.Value = value; + } + } + + private void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + } + + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // se selezionato --> passo da status 1 a 2... + + int packListId = 0; + int.TryParse(grView.SelectedValue.ToString(), out packListId); + if (packListId > 0) + { + // verifico richiesta... + switch (task) + { + case "Appr": + DataLayer.man.taPLD.updateStatus(packListId, 2); + break; + default: + break; + } + // refresh! + resetSelezione(); + } + } + + protected void lbtCheck_Click(object sender, EventArgs e) + { + LinkButton lbt = (LinkButton)sender; + if (!string.IsNullOrEmpty(lbt.CommandArgument)) + { + // salvo richiesta... + task = lbt.CommandArgument; + } + } } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs index 33cabfa..873e9c3 100644 --- a/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs @@ -13,5 +13,32 @@ namespace NKC_WF.WebUserControls public partial class cmp_kitList { + + /// + /// Controllo hfTask. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfTask; + + /// + /// Controllo grView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; } } diff --git a/NKC_WF/site/KitRequestImporter.aspx.cs b/NKC_WF/site/KitRequestImporter.aspx.cs index 348f5ff..493dfda 100644 --- a/NKC_WF/site/KitRequestImporter.aspx.cs +++ b/NKC_WF/site/KitRequestImporter.aspx.cs @@ -22,6 +22,7 @@ namespace NKC_WF { ((SiteContent)this.Master).showSearch = false; doUpdate(); + cmp_kitImpCheck.Visible = false; } cmp_kitImpCheck.eh_doRefresh += Cmp_kitImpCheck_eh_doRefresh; cmp_fileUpload.eh_doRefresh += Cmp_fileUpload_eh_doRefresh; @@ -40,6 +41,7 @@ namespace NKC_WF /// private void Cmp_fileUpload_eh_FileUploaded(object sender, WebUserContols.FileUploadEventArgs e) { + cmp_kitImpCheck.Visible = true; DateTime adesso = DateTime.Now; string dirFrom = e.LocalPath; string dirTo = $"{_SqlCopyDir}{adesso.ToString("yyyy-MM")}\\";