diff --git a/AppData/ComLib.cs b/AppData/ComLib.cs
index 48f8de7..2a07ba1 100644
--- a/AppData/ComLib.cs
+++ b/AppData/ComLib.cs
@@ -525,7 +525,7 @@ namespace AppData
/// Salvo dati su PartList ricevuti da Nesting (COMPETATO)
///
///
- ///
+ ///
public static void updateBunksFromNesting(int BatchID, List BunkList)
{
// inizio a processare... bunks!
@@ -567,6 +567,68 @@ namespace AppData
}
}
///
+ /// Salvo dati su PartList ricevuti da Nesting (COMPETATO)
+ ///
+ ///
+ ///
+ public static void updateBinsFromNesting(int BatchID, List BinList)
+ {
+ // inizio a processare... bunks!
+ if (BinList != null)
+ {
+ foreach (var item in BinList)
+ {
+ // creo il BIN!
+ var newBin = DataLayer.man.taBN.insertAndReturn(item.BinIndex);
+ // se ho un BIN in risposta...
+ if (newBin.Count == 1)
+ {
+ var currBin = newBin[0];
+ // processo sheets
+ if (item.PartList != null)
+ {
+ foreach (var part in item.PartList)
+ {
+ // creo lo sheet...
+ var newB2I = DataLayer.man.taBNLS.insertAndReturn(currBin.BinID, part.PartId);
+ }
+ }
+ }
+ }
+ }
+ }
+ ///
+ /// Salvo dati su PartList ricevuti da Nesting (COMPETATO)
+ ///
+ ///
+ ///
+ public static void updateCartsFromNesting(int BatchID, List CartList)
+ {
+ // inizio a processare... bunks!
+ if (CartList != null)
+ {
+ foreach (var item in CartList)
+ {
+ // creo il CART!
+ var newCart = DataLayer.man.taCR.insertAndReturn(item.CartIndex);
+ // se ho un CART in risposta...
+ if (newCart.Count == 1)
+ {
+ var currCart = newCart[0];
+ // processo sheets
+ if (item.KitList != null)
+ {
+ foreach (var kit in item.KitList)
+ {
+ // creo lo sheet...
+ var updKit = DataLayer.man.taKL.updateCart(kit.KitId, currCart.CartID);
+ }
+ }
+ }
+ }
+ }
+ }
+ ///
/// Salvo dati su PartList ricevuti da Nesting (stima)
///
///
diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs
index b91d6f5..ed056ac 100644
--- a/AppData/DS_App.Designer.cs
+++ b/AppData/DS_App.Designer.cs
@@ -52,6 +52,8 @@ namespace AppData {
private ImportLogDataTable tableImportLog;
+ private BinListDataTable tableBinList;
+
private global::System.Data.DataRelation relationFK_BatchReqList_OrderList;
private global::System.Data.DataRelation relationFK_ItemList_Materials1;
@@ -68,6 +70,10 @@ namespace AppData {
private global::System.Data.DataRelation relationFK_OffOrd2Item_ItemList;
+ private global::System.Data.DataRelation relationFK_BinList_Bins;
+
+ private global::System.Data.DataRelation relationFK_BinList_ItemList;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -138,6 +144,9 @@ namespace AppData {
if ((ds.Tables["ImportLog"] != null)) {
base.Tables.Add(new ImportLogDataTable(ds.Tables["ImportLog"]));
}
+ if ((ds.Tables["BinList"] != null)) {
+ base.Tables.Add(new BinListDataTable(ds.Tables["BinList"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -296,6 +305,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 BinListDataTable BinList {
+ get {
+ return this.tableBinList;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -405,6 +424,9 @@ namespace AppData {
if ((ds.Tables["ImportLog"] != null)) {
base.Tables.Add(new ImportLogDataTable(ds.Tables["ImportLog"]));
}
+ if ((ds.Tables["BinList"] != null)) {
+ base.Tables.Add(new BinListDataTable(ds.Tables["BinList"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -522,6 +544,12 @@ namespace AppData {
this.tableImportLog.InitVars();
}
}
+ this.tableBinList = ((BinListDataTable)(base.Tables["BinList"]));
+ if ((initTable == true)) {
+ if ((this.tableBinList != null)) {
+ this.tableBinList.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"];
@@ -530,6 +558,8 @@ namespace AppData {
this.relationFK_KitList_Carts = this.Relations["FK_KitList_Carts"];
this.relationFK_KitList_OrderList = this.Relations["FK_KitList_OrderList"];
this.relationFK_OffOrd2Item_ItemList = this.Relations["FK_OffOrd2Item_ItemList"];
+ this.relationFK_BinList_Bins = this.Relations["FK_BinList_Bins"];
+ this.relationFK_BinList_ItemList = this.Relations["FK_BinList_ItemList"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -568,6 +598,8 @@ namespace AppData {
base.Tables.Add(this.tableNesting);
this.tableImportLog = new ImportLogDataTable();
base.Tables.Add(this.tableImportLog);
+ this.tableBinList = new BinListDataTable();
+ base.Tables.Add(this.tableBinList);
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);
@@ -600,6 +632,14 @@ namespace AppData {
this.tableItemList.ItemIDColumn}, new global::System.Data.DataColumn[] {
this.tableOffOrd2Item.ItemIDColumn}, false);
this.Relations.Add(this.relationFK_OffOrd2Item_ItemList);
+ this.relationFK_BinList_Bins = new global::System.Data.DataRelation("FK_BinList_Bins", new global::System.Data.DataColumn[] {
+ this.tableBins.BinIDColumn}, new global::System.Data.DataColumn[] {
+ this.tableBinList.BinIDColumn}, false);
+ this.Relations.Add(this.relationFK_BinList_Bins);
+ this.relationFK_BinList_ItemList = new global::System.Data.DataRelation("FK_BinList_ItemList", new global::System.Data.DataColumn[] {
+ this.tableItemList.ItemIDColumn}, new global::System.Data.DataColumn[] {
+ this.tableBinList.ItemIDColumn}, false);
+ this.Relations.Add(this.relationFK_BinList_ItemList);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -686,6 +726,12 @@ namespace AppData {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeBinList() {
+ 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) {
@@ -783,6 +829,9 @@ namespace AppData {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void ImportLogRowChangeEventHandler(object sender, ImportLogRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void BinListRowChangeEventHandler(object sender, BinListRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -6087,6 +6136,286 @@ namespace AppData {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class BinListDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnBinID;
+
+ private global::System.Data.DataColumn columnItemID;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public BinListDataTable() {
+ this.TableName = "BinList";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal BinListDataTable(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 BinListDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn BinIDColumn {
+ get {
+ return this.columnBinID;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn ItemIDColumn {
+ get {
+ return this.columnItemID;
+ }
+ }
+
+ [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 BinListRow this[int index] {
+ get {
+ return ((BinListRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event BinListRowChangeEventHandler BinListRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event BinListRowChangeEventHandler BinListRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event BinListRowChangeEventHandler BinListRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event BinListRowChangeEventHandler BinListRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddBinListRow(BinListRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public BinListRow AddBinListRow(ItemListRow parentItemListRowByFK_BinList_ItemList) {
+ BinListRow rowBinListRow = ((BinListRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null};
+ if ((parentItemListRowByFK_BinList_ItemList != null)) {
+ columnValuesArray[1] = parentItemListRowByFK_BinList_ItemList[0];
+ }
+ rowBinListRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowBinListRow);
+ return rowBinListRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public BinListRow FindByBinID(int BinID) {
+ return ((BinListRow)(this.Rows.Find(new object[] {
+ BinID})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ BinListDataTable cln = ((BinListDataTable)(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 BinListDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnBinID = base.Columns["BinID"];
+ this.columnItemID = base.Columns["ItemID"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnBinID = new global::System.Data.DataColumn("BinID", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnBinID);
+ this.columnItemID = new global::System.Data.DataColumn("ItemID", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnItemID);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnBinID}, true));
+ this.columnBinID.AutoIncrement = true;
+ this.columnBinID.AutoIncrementSeed = -1;
+ this.columnBinID.AutoIncrementStep = -1;
+ this.columnBinID.AllowDBNull = false;
+ this.columnBinID.ReadOnly = true;
+ this.columnBinID.Unique = true;
+ this.columnItemID.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public BinListRow NewBinListRow() {
+ return ((BinListRow)(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 BinListRow(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(BinListRow);
+ }
+
+ [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.BinListRowChanged != null)) {
+ this.BinListRowChanged(this, new BinListRowChangeEvent(((BinListRow)(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.BinListRowChanging != null)) {
+ this.BinListRowChanging(this, new BinListRowChangeEvent(((BinListRow)(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.BinListRowDeleted != null)) {
+ this.BinListRowDeleted(this, new BinListRowChangeEvent(((BinListRow)(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.BinListRowDeleting != null)) {
+ this.BinListRowDeleting(this, new BinListRowChangeEvent(((BinListRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveBinListRow(BinListRow 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 = "BinListDataTable";
+ 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.
///
@@ -7614,6 +7943,17 @@ namespace AppData {
return ((OffOrd2ItemRow[])(base.GetChildRows(this.Table.ChildRelations["FK_OffOrd2Item_ItemList"])));
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public BinListRow[] GetBinListRows() {
+ if ((this.Table.ChildRelations["FK_BinList_ItemList"] == null)) {
+ return new BinListRow[0];
+ }
+ else {
+ return ((BinListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_BinList_ItemList"])));
+ }
+ }
}
///
@@ -7877,6 +8217,17 @@ namespace AppData {
public void SetCreationDateNull() {
this[this.tableBins.CreationDateColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public BinListRow[] GetBinListRows() {
+ if ((this.Table.ChildRelations["FK_BinList_Bins"] == null)) {
+ return new BinListRow[0];
+ }
+ else {
+ return ((BinListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_BinList_Bins"])));
+ }
+ }
}
///
@@ -8405,6 +8756,65 @@ namespace AppData {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class BinListRow : global::System.Data.DataRow {
+
+ private BinListDataTable tableBinList;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal BinListRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableBinList = ((BinListDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int BinID {
+ get {
+ return ((int)(this[this.tableBinList.BinIDColumn]));
+ }
+ set {
+ this[this.tableBinList.BinIDColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int ItemID {
+ get {
+ return ((int)(this[this.tableBinList.ItemIDColumn]));
+ }
+ set {
+ this[this.tableBinList.ItemIDColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public BinsRow BinsRow {
+ get {
+ return ((BinsRow)(this.GetParentRow(this.Table.ParentRelations["FK_BinList_Bins"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_BinList_Bins"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ItemListRow ItemListRow {
+ get {
+ return ((ItemListRow)(this.GetParentRow(this.Table.ParentRelations["FK_BinList_ItemList"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_BinList_ItemList"]);
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -8880,6 +9290,40 @@ namespace AppData {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class BinListRowChangeEvent : global::System.EventArgs {
+
+ private BinListRow 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 BinListRowChangeEvent(BinListRow 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 BinListRow 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 {
@@ -12772,7 +13216,7 @@ SELECT BinID, BinIndex, BinDtmx, BinDtmxProc, CreationDate FROM Bins WHERE (BinI
[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 = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM Bins";
@@ -12789,6 +13233,12 @@ SELECT BinID, BinIndex, BinDtmx, BinDtmxProc, CreationDate FROM Bins WHERE (BinI
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_BIN_insert";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinIndex", 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()]
@@ -12849,6 +13299,23 @@ SELECT BinID, BinIndex, BinDtmx, BinDtmxProc, CreationDate FROM Bins WHERE (BinI
return dataTable;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_App.BinsDataTable insertAndReturn(global::System.Nullable BinIndex) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
+ if ((BinIndex.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BinIndex.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_App.BinsDataTable dataTable = new DS_App.BinsDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -13187,7 +13654,7 @@ SELECT CartID, CartIndex, CartDtmx, CreationDate FROM Carts WHERE (CartID = @Car
[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 = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM Carts";
@@ -13204,6 +13671,12 @@ SELECT CartID, CartIndex, CartDtmx, CreationDate FROM Carts WHERE (CartID = @Car
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("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_CART_insert";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartIndex", 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()]
@@ -13264,6 +13737,23 @@ SELECT CartID, CartIndex, CartDtmx, CreationDate FROM Carts WHERE (CartID = @Car
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.CartsDataTable insertAndReturn(global::System.Nullable CartIndex) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
+ if ((CartIndex.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(CartIndex.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_App.CartsDataTable dataTable = new DS_App.CartsDataTable();
+ 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")]
@@ -14225,7 +14715,7 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki
[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 = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM KitList";
@@ -14242,6 +14732,13 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki
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("@OrdID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_KL_updateCart";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KitID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -14302,6 +14799,29 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki
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.KitListDataTable updateCart(global::System.Nullable KitID, global::System.Nullable CartID) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
+ if ((KitID.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(KitID.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((CartID.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((int)(CartID.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ DS_App.KitListDataTable dataTable = new DS_App.KitListDataTable();
+ 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")]
@@ -15119,6 +15639,336 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
}
}
+ ///
+ ///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 BinListTableAdapter : 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 BinListTableAdapter() {
+ 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 = "BinList";
+ tableMapping.ColumnMappings.Add("BinID", "BinID");
+ tableMapping.ColumnMappings.Add("ItemID", "ItemID");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [BinList] WHERE (([BinID] = @Original_BinID) AND ([ItemID] = @Origina" +
+ "l_ItemID))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BinID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BinID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", 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 [BinList] ([BinID], [ItemID]) VALUES (@BinID, @ItemID);\r\nSELECT BinID" +
+ ", ItemID FROM BinList WHERE (BinID = @BinID) AND (ItemID = @ItemID)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BinID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", 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 [BinList] SET [BinID] = @BinID, [ItemID] = @ItemID WHERE (([BinID] = @Orig" +
+ "inal_BinID) AND ([ItemID] = @Original_ItemID));\r\nSELECT BinID, ItemID FROM BinLi" +
+ "st WHERE (BinID = @BinID) AND (ItemID = @ItemID)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BinID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BinID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BinID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BinID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::AppData.Properties.Settings.Default.Sauder_NKCConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM BinList";
+ 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_B2I_insert";
+ 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("@BinID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", 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.BinListDataTable 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.BinListDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_App.BinListDataTable dataTable = new DS_App.BinListDataTable();
+ 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.BinListDataTable insertAndReturn(global::System.Nullable BinID, global::System.Nullable ItemID) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((BinID.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BinID.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((ItemID.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((int)(ItemID.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ DS_App.BinListDataTable dataTable = new DS_App.BinListDataTable();
+ 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")]
+ public virtual int Update(DS_App.BinListDataTable dataTable) {
+ return this.Adapter.Update(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")]
+ public virtual int Update(DS_App dataSet) {
+ return this.Adapter.Update(dataSet, "BinList");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [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.Delete, true)]
+ public virtual int Delete(int Original_BinID, int Original_ItemID) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_BinID));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ItemID));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [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.Insert, true)]
+ public virtual int Insert(int BinID, int ItemID) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(BinID));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ItemID));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [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.Update, true)]
+ public virtual int Update(int BinID, int ItemID, int Original_BinID, int Original_ItemID) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(BinID));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ItemID));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_BinID));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ItemID));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [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.Update, true)]
+ public virtual int Update(int ItemID, int Original_BinID, int Original_ItemID) {
+ return this.Update(Original_BinID, ItemID, Original_BinID, Original_ItemID);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -15149,6 +15999,8 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
private NestingTableAdapter _nestingTableAdapter;
+ private BinListTableAdapter _binListTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -15290,6 +16142,20 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public BinListTableAdapter BinListTableAdapter {
+ get {
+ return this._binListTableAdapter;
+ }
+ set {
+ this._binListTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -15345,6 +16211,10 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
&& (this._nestingTableAdapter.Connection != null))) {
return this._nestingTableAdapter.Connection;
}
+ if (((this._binListTableAdapter != null)
+ && (this._binListTableAdapter.Connection != null))) {
+ return this._binListTableAdapter.Connection;
+ }
return null;
}
set {
@@ -15385,6 +16255,9 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
if ((this._nestingTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._binListTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -15441,15 +16314,6 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._batchReqListTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._batchReqListTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._binsTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Bins.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -15459,6 +16323,15 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._batchReqListTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._batchReqListTableAdapter.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);
@@ -15477,6 +16350,15 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._binListTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._binListTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -15527,14 +16409,6 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allAddedRows.AddRange(addedRows);
}
}
- if ((this._batchReqListTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._batchReqListTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._binsTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Bins.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -15543,6 +16417,14 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._batchReqListTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._batchReqListTableAdapter.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)
@@ -15559,6 +16441,14 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._binListTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._binListTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -15569,6 +16459,14 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private int UpdateDeletedRows(DS_App dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._binListTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._binListTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._nestingTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -15585,14 +16483,6 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._binsTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.Bins.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._binsTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._batchReqListTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -15601,6 +16491,14 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._binsTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Bins.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._binsTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._itemListTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.ItemList.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -15725,6 +16623,11 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
+ if (((this._binListTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._binListTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" +
@@ -15839,6 +16742,15 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
adaptersWithAcceptChangesDuringUpdate.Add(this._nestingTableAdapter.Adapter);
}
}
+ if ((this._binListTableAdapter != null)) {
+ revertConnections.Add(this._binListTableAdapter, this._binListTableAdapter.Connection);
+ this._binListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._binListTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._binListTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._binListTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._binListTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -15933,6 +16845,10 @@ SELECT SheetID, ItemID, QtyNest FROM Nesting WHERE (ItemID = @ItemID) AND (Sheet
this._nestingTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._nestingTableAdapter]));
this._nestingTableAdapter.Transaction = null;
}
+ if ((this._binListTableAdapter != null)) {
+ this._binListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._binListTableAdapter]));
+ this._binListTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd
index 13ffb5d..48e90fa 100644
--- a/AppData/DS_App.xsd
+++ b/AppData/DS_App.xsd
@@ -943,6 +943,17 @@ SELECT BinID, BinIndex, BinDtmx, BinDtmxProc, CreationDate FROM Bins WHERE (BinI
+
+
+
+ dbo.stp_BIN_insert
+
+
+
+
+
+
+
@@ -1024,6 +1035,17 @@ SELECT CartID, CartIndex, CartDtmx, CreationDate FROM Carts WHERE (CartID = @Car
+
+
+
+ dbo.stp_CART_insert
+
+
+
+
+
+
+
@@ -1250,6 +1272,18 @@ SELECT KitID, OrdID, BatchID, CartID, KitExtCode FROM KitList WHERE (KitID = @Ki
+
+
+
+ dbo.stp_KL_updateCart
+
+
+
+
+
+
+
+
@@ -1382,6 +1416,68 @@ FROM Import_Log
+
+
+
+
+
+ DELETE FROM [BinList] WHERE (([BinID] = @Original_BinID) AND ([ItemID] = @Original_ItemID))
+
+
+
+
+
+
+
+
+ INSERT INTO [BinList] ([BinID], [ItemID]) VALUES (@BinID, @ItemID);
+SELECT BinID, ItemID FROM BinList WHERE (BinID = @BinID) AND (ItemID = @ItemID)
+
+
+
+
+
+
+
+
+ SELECT *
+FROM BinList
+
+
+
+
+
+ UPDATE [BinList] SET [BinID] = @BinID, [ItemID] = @ItemID WHERE (([BinID] = @Original_BinID) AND ([ItemID] = @Original_ItemID));
+SELECT BinID, ItemID FROM BinList WHERE (BinID = @BinID) AND (ItemID = @ItemID)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_B2I_insert
+
+
+
+
+
+
+
+
+
+
@@ -1810,6 +1906,14 @@ FROM Import_Log
+
+
+
+
+
+
+
+
@@ -1871,6 +1975,10 @@ FROM Import_Log
+
+
+
+
@@ -1882,6 +1990,8 @@ FROM Import_Log
+
+
\ No newline at end of file
diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss
index 58a21aa..82742c9 100644
--- a/AppData/DS_App.xss
+++ b/AppData/DS_App.xss
@@ -4,25 +4,26 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
352
@@ -34,7 +35,7 @@
-
+
1197
@@ -46,22 +47,22 @@
-
+
- 1029
- 1088
+ 1140
+ 913
- 1089
- 1088
+ 1140
+ 794
-
+
- 785
+ 805
122
@@ -70,39 +71,31 @@
-
+
- 861
+ 973
400
- 673
- 400
-
-
- 673
- 886
+ 973
+ 426
-
+
- 1099
- 440
+ 694
+ 369
- 768
- 440
-
-
- 768
- 294
+ 694
+ 313
-
+
550
@@ -117,12 +110,36 @@
- 1125
+ 1129
400
- 1125
- 1052
+ 1129
+ 660
+
+
+
+
+
+
+ 1359
+ 551
+
+
+ 1359
+ 457
+
+
+
+
+
+
+ 1161
+ 361
+
+
+ 1264
+ 361
diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs
index 86ede01..46bab08 100644
--- a/AppData/DataLayer.cs
+++ b/AppData/DataLayer.cs
@@ -10,6 +10,7 @@ namespace AppData
public DS_AppTableAdapters.BatchListTableAdapter taBL;
public DS_AppTableAdapters.BinsTableAdapter taBN;
+ public DS_AppTableAdapters.BinListTableAdapter taBNLS;
public DS_AppTableAdapters.CartsTableAdapter taCR;
public DS_AppTableAdapters.ItemListTableAdapter taIL;
public DS_AppTableAdapters.ImportLogTableAdapter taImpLog;
@@ -38,6 +39,7 @@ namespace AppData
string connString = memLayer.ML.CRS("NKC_WFConnectionString");
taBL.Connection.ConnectionString = connString;
taBN.Connection.ConnectionString = connString;
+ taBNLS.Connection.ConnectionString = connString;
taCR.Connection.ConnectionString = connString;
taIL.Connection.ConnectionString = connString;
taImpLog.Connection.ConnectionString = connString;
@@ -58,6 +60,7 @@ namespace AppData
{
taBL = new DS_AppTableAdapters.BatchListTableAdapter();
taBN = new DS_AppTableAdapters.BinsTableAdapter();
+ taBNLS = new DS_AppTableAdapters.BinListTableAdapter();
taCR = new DS_AppTableAdapters.CartsTableAdapter();
taIL = new DS_AppTableAdapters.ItemListTableAdapter();
taImpLog = new DS_AppTableAdapters.ImportLogTableAdapter();
diff --git a/NKC_WF/Controllers/BatchProcController.cs b/NKC_WF/Controllers/BatchProcController.cs
index 21e3906..53eaafc 100644
--- a/NKC_WF/Controllers/BatchProcController.cs
+++ b/NKC_WF/Controllers/BatchProcController.cs
@@ -179,6 +179,9 @@ namespace NKC_WF.Controllers
{
// salvo info riguardo ai vari Bunk / Sheets / Items...
ComLib.updateBunksFromNesting(rispNest.BatchID, rispNest.BunkList);
+ // salvo info x CART & BINS previsti
+ ComLib.updateBinsFromNesting(rispNest.BatchID, rispNest.BinList);
+ ComLib.updateCartsFromNesting(rispNest.BatchID, rispNest.CartList);
}
// registro OK
answ = "OK";