diff --git a/AppData/AppData.csproj b/AppData/AppData.csproj
index aa39ae9..648610d 100644
--- a/AppData/AppData.csproj
+++ b/AppData/AppData.csproj
@@ -108,6 +108,9 @@
+
+ DS_App.xsd
+
True
True
diff --git a/AppData/ComLib.cs b/AppData/ComLib.cs
index 49d0d9c..4c3b420 100644
--- a/AppData/ComLib.cs
+++ b/AppData/ComLib.cs
@@ -170,7 +170,9 @@ namespace AppData
///
public int maxTime { get; set; }
///
- /// Tipo di processing richeisto
+ /// Tipo di processing richiesto
+ /// 1 = stima
+ /// 2 = nesting
///
public int procType { get; set; }
///
@@ -256,6 +258,7 @@ namespace AppData
mTime = memLayer.ML.cdvi("nestMaxTime");
pType = 2;
}
+
// leggo tab ORDINI da DB
var tblOrd = DataLayer.man.taOL.getByBatch(BatchID);
// serializzo
@@ -265,6 +268,16 @@ namespace AppData
// scrivo su REDIS
memLayer.ML.setRSV(redKey, redVal);
+ // leggo tab KIT da DB
+ var tblKit = DataLayer.man.taKL.getByBatch(BatchID);
+ // serializzo
+ redVal = JsonConvert.SerializeObject(tblKit);
+ // salvo
+ redKey = $"{redOutPath}:{nextEnv}:KITS";
+ // scrivo su REDIS
+ memLayer.ML.setRSV(redKey, redVal);
+
+
var tblItm = DataLayer.man.taIL.getByBatch(BatchID);
// serializzo
redVal = JsonConvert.SerializeObject(tblItm);
@@ -294,12 +307,70 @@ namespace AppData
memLayer.ML.setRSV(redKey, nextEnv);
answ = true;
}
- catch
+ catch (Exception exc)
{ }
// restituisco ok
return answ;
}
+ ///
+ /// Verifica lo stato di una richiesta di esecuzione BATCH x stima/nesting
+ ///
+ /// OfflineOrder di cui si chiede processing
+ /// note opzionali
+ ///
+ public static bool checkBatchReq(int OffOrderID)
+ {
+ bool answ = false;
+#if false
+ string typeSearch = "OffOrdCalculation";
+ string keyEnv = "";
+ // recupero lista dei vari task APERTI...
+ KeyValuePair[] comAperte = getEnvList();
+ // processo x cercare ordine...
+ foreach (var item in comAperte)
+ {
+ // cerco dove sia quello richiesto
+ if (item.Value.Contains(typeSearch))
+ {
+ // controllo SE sia quello richiesto
+ if (item.Value == $"{OffOrderID}|{typeSearch}")
+ {
+ keyEnv = item.Key;
+ break;
+ }
+ }
+ }
+ // controllo e se c'è risposta --> update DB
+ string redKey = $"{redNestAnsw}:FULL:{keyEnv}";
+ string rawAnsw = memLayer.ML.getRSV(redKey);
+ if (rawAnsw != "")
+ {
+ // cerco risposta come stack --> disegno...
+ var offOrder = deserializeOfflineOrder(rawAnsw);
+ // se ho in risposta 1 stack...
+ if (offOrder.Stacks.Count == 1)
+ {
+ // se ho 1 solo sheet
+ var sheets = offOrder.Stacks[0].SheetList;
+ if (sheets.Count == 1)
+ {
+ // controllo se ho CNC prog
+ answ = sheets[0].MachiningProgram != "";
+ if (answ)
+ {
+ // aggiorno su DB il disegno...
+ string disegno = sheets[0].Drawing;
+ DataLayer.man.taOffOL.updateDrawing(OffOrderID, disegno);
+ }
+ }
+ }
+ }
+#endif
+ // restituisco ok
+ return answ;
+ }
+
///
/// Invia una richiesta di esecuzione di CAM x un ordine offline
///
diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs
index be7e9bc..33b6ebd 100644
--- a/AppData/DS_App.Designer.cs
+++ b/AppData/DS_App.Designer.cs
@@ -46,14 +46,18 @@ namespace AppData {
private OffOrd2ItemDataTable tableOffOrd2Item;
- private global::System.Data.DataRelation relationFK_BatchReqList_OrderList;
+ private KitListDataTable tableKitList;
- private global::System.Data.DataRelation relationFK_ItemList_OrderList1;
+ private global::System.Data.DataRelation relationFK_BatchReqList_OrderList;
private global::System.Data.DataRelation relationFK_ItemList_Materials1;
private global::System.Data.DataRelation relationFK_OffOrd2Item_OfflineOrderList;
+ private global::System.Data.DataRelation relationFK_BatchReqList_OrderList1;
+
+ private global::System.Data.DataRelation relationFK_ItemList_KitList;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -115,6 +119,9 @@ namespace AppData {
if ((ds.Tables["OffOrd2Item"] != null)) {
base.Tables.Add(new OffOrd2ItemDataTable(ds.Tables["OffOrd2Item"]));
}
+ if ((ds.Tables["KitList"] != null)) {
+ base.Tables.Add(new KitListDataTable(ds.Tables["KitList"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -243,6 +250,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 KitListDataTable KitList {
+ get {
+ return this.tableKitList;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -343,6 +360,9 @@ namespace AppData {
if ((ds.Tables["OffOrd2Item"] != null)) {
base.Tables.Add(new OffOrd2ItemDataTable(ds.Tables["OffOrd2Item"]));
}
+ if ((ds.Tables["KitList"] != null)) {
+ base.Tables.Add(new KitListDataTable(ds.Tables["KitList"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -442,10 +462,17 @@ namespace AppData {
this.tableOffOrd2Item.InitVars();
}
}
+ this.tableKitList = ((KitListDataTable)(base.Tables["KitList"]));
+ if ((initTable == true)) {
+ if ((this.tableKitList != null)) {
+ this.tableKitList.InitVars();
+ }
+ }
this.relationFK_BatchReqList_OrderList = this.Relations["FK_BatchReqList_OrderList"];
- this.relationFK_ItemList_OrderList1 = this.Relations["FK_ItemList_OrderList1"];
this.relationFK_ItemList_Materials1 = this.Relations["FK_ItemList_Materials1"];
this.relationFK_OffOrd2Item_OfflineOrderList = this.Relations["FK_OffOrd2Item_OfflineOrderList"];
+ this.relationFK_BatchReqList_OrderList1 = this.Relations["FK_BatchReqList_OrderList1"];
+ this.relationFK_ItemList_KitList = this.Relations["FK_ItemList_KitList"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -478,14 +505,12 @@ namespace AppData {
base.Tables.Add(this.tableOfflineOrderList);
this.tableOffOrd2Item = new OffOrd2ItemDataTable();
base.Tables.Add(this.tableOffOrd2Item);
+ this.tableKitList = new KitListDataTable();
+ base.Tables.Add(this.tableKitList);
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);
this.Relations.Add(this.relationFK_BatchReqList_OrderList);
- this.relationFK_ItemList_OrderList1 = new global::System.Data.DataRelation("FK_ItemList_OrderList1", new global::System.Data.DataColumn[] {
- this.tableOrderList.OrdIDColumn}, new global::System.Data.DataColumn[] {
- this.tableItemList.OrdIDColumn}, false);
- this.Relations.Add(this.relationFK_ItemList_OrderList1);
this.relationFK_ItemList_Materials1 = new global::System.Data.DataRelation("FK_ItemList_Materials1", new global::System.Data.DataColumn[] {
this.tableMaterials.MatIDColumn}, new global::System.Data.DataColumn[] {
this.tableItemList.MatIDColumn}, false);
@@ -494,6 +519,14 @@ namespace AppData {
this.tableOfflineOrderList.OrdIDColumn}, new global::System.Data.DataColumn[] {
this.tableOffOrd2Item.OrdIDColumn}, false);
this.Relations.Add(this.relationFK_OffOrd2Item_OfflineOrderList);
+ this.relationFK_BatchReqList_OrderList1 = new global::System.Data.DataRelation("FK_BatchReqList_OrderList1", new global::System.Data.DataColumn[] {
+ this.tableOrderList.OrdIDColumn}, new global::System.Data.DataColumn[] {
+ this.tableKitList.OrdIDColumn}, false);
+ this.Relations.Add(this.relationFK_BatchReqList_OrderList1);
+ this.relationFK_ItemList_KitList = new global::System.Data.DataRelation("FK_ItemList_KitList", new global::System.Data.DataColumn[] {
+ this.tableKitList.KitIDColumn}, new global::System.Data.DataColumn[] {
+ this.tableItemList.KitIDColumn}, false);
+ this.Relations.Add(this.relationFK_ItemList_KitList);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -562,6 +595,12 @@ namespace AppData {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeKitList() {
+ 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) {
@@ -650,6 +689,9 @@ namespace AppData {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void OffOrd2ItemRowChangeEventHandler(object sender, OffOrd2ItemRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void KitListRowChangeEventHandler(object sender, KitListRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -2162,14 +2204,14 @@ namespace AppData {
private global::System.Data.DataColumn columnOrderNote;
- private global::System.Data.DataColumn columnOrderQty;
-
private global::System.Data.DataColumn columnImportDate;
private global::System.Data.DataColumn columnImportUser;
private global::System.Data.DataColumn columnOrdCodOrig;
+ private global::System.Data.DataColumn columnKitQty;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public OrderListDataTable() {
@@ -2267,14 +2309,6 @@ namespace AppData {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public global::System.Data.DataColumn OrderQtyColumn {
- get {
- return this.columnOrderQty;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ImportDateColumn {
@@ -2299,6 +2333,14 @@ namespace AppData {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn KitQtyColumn {
+ get {
+ return this.columnKitQty;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -2336,7 +2378,7 @@ namespace AppData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public OrderListRow AddOrderListRow(int OrdID, string OrdType, string DestPlant, string FamilyCode, string OrdDtmx, string OrderExtCode, string OrderDesc, string OrderNote, int OrderQty, System.DateTime ImportDate, string ImportUser, string OrdCodOrig) {
+ public OrderListRow AddOrderListRow(int OrdID, string OrdType, string DestPlant, string FamilyCode, string OrdDtmx, string OrderExtCode, string OrderDesc, string OrderNote, System.DateTime ImportDate, string ImportUser, string OrdCodOrig, int KitQty) {
OrderListRow rowOrderListRow = ((OrderListRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
OrdID,
@@ -2347,10 +2389,10 @@ namespace AppData {
OrderExtCode,
OrderDesc,
OrderNote,
- OrderQty,
ImportDate,
ImportUser,
- OrdCodOrig};
+ OrdCodOrig,
+ KitQty};
rowOrderListRow.ItemArray = columnValuesArray;
this.Rows.Add(rowOrderListRow);
return rowOrderListRow;
@@ -2388,10 +2430,10 @@ namespace AppData {
this.columnOrderExtCode = base.Columns["OrderExtCode"];
this.columnOrderDesc = base.Columns["OrderDesc"];
this.columnOrderNote = base.Columns["OrderNote"];
- this.columnOrderQty = base.Columns["OrderQty"];
this.columnImportDate = base.Columns["ImportDate"];
this.columnImportUser = base.Columns["ImportUser"];
this.columnOrdCodOrig = base.Columns["OrdCodOrig"];
+ this.columnKitQty = base.Columns["KitQty"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2413,14 +2455,14 @@ namespace AppData {
base.Columns.Add(this.columnOrderDesc);
this.columnOrderNote = new global::System.Data.DataColumn("OrderNote", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOrderNote);
- this.columnOrderQty = new global::System.Data.DataColumn("OrderQty", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnOrderQty);
this.columnImportDate = new global::System.Data.DataColumn("ImportDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnImportDate);
this.columnImportUser = new global::System.Data.DataColumn("ImportUser", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnImportUser);
this.columnOrdCodOrig = new global::System.Data.DataColumn("OrdCodOrig", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOrdCodOrig);
+ this.columnKitQty = new global::System.Data.DataColumn("KitQty", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnKitQty);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnOrdID}, true));
this.columnOrdID.AllowDBNull = false;
@@ -2440,11 +2482,11 @@ namespace AppData {
this.columnOrderDesc.MaxLength = 500;
this.columnOrderNote.AllowDBNull = false;
this.columnOrderNote.MaxLength = 500;
- this.columnOrderQty.AllowDBNull = false;
this.columnImportDate.AllowDBNull = false;
this.columnImportUser.AllowDBNull = false;
this.columnImportUser.MaxLength = 50;
this.columnOrdCodOrig.MaxLength = 50;
+ this.columnKitQty.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2859,7 +2901,7 @@ namespace AppData {
private global::System.Data.DataColumn columnStatusID;
- private global::System.Data.DataColumn columnOrdID;
+ private global::System.Data.DataColumn columnKitID;
private global::System.Data.DataColumn columnItemDtmx;
@@ -2932,9 +2974,9 @@ namespace AppData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public global::System.Data.DataColumn OrdIDColumn {
+ public global::System.Data.DataColumn KitIDColumn {
get {
- return this.columnOrdID;
+ return this.columnKitID;
}
}
@@ -3055,7 +3097,7 @@ namespace AppData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public ItemListRow AddItemListRow(int StatusID, OrderListRow parentOrderListRowByFK_ItemList_OrderList1, string ItemDtmx, string ItemExtCode, string ItemDesc, string ItemNote, int ItemQty, MaterialsRow parentMaterialsRowByFK_ItemList_Materials1, bool MachiningReq, string PostProcList, string ProcessesReq, string CadFilePath) {
+ public ItemListRow AddItemListRow(int StatusID, KitListRow parentKitListRowByFK_ItemList_KitList, string ItemDtmx, string ItemExtCode, string ItemDesc, string ItemNote, int ItemQty, MaterialsRow parentMaterialsRowByFK_ItemList_Materials1, bool MachiningReq, string PostProcList, string ProcessesReq, string CadFilePath) {
ItemListRow rowItemListRow = ((ItemListRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -3071,8 +3113,8 @@ namespace AppData {
PostProcList,
ProcessesReq,
CadFilePath};
- if ((parentOrderListRowByFK_ItemList_OrderList1 != null)) {
- columnValuesArray[2] = parentOrderListRowByFK_ItemList_OrderList1[0];
+ if ((parentKitListRowByFK_ItemList_KitList != null)) {
+ columnValuesArray[2] = parentKitListRowByFK_ItemList_KitList[1];
}
if ((parentMaterialsRowByFK_ItemList_Materials1 != null)) {
columnValuesArray[8] = parentMaterialsRowByFK_ItemList_Materials1[0];
@@ -3108,7 +3150,7 @@ namespace AppData {
internal void InitVars() {
this.columnItemID = base.Columns["ItemID"];
this.columnStatusID = base.Columns["StatusID"];
- this.columnOrdID = base.Columns["OrdID"];
+ this.columnKitID = base.Columns["KitID"];
this.columnItemDtmx = base.Columns["ItemDtmx"];
this.columnItemExtCode = base.Columns["ItemExtCode"];
this.columnItemDesc = base.Columns["ItemDesc"];
@@ -3128,8 +3170,8 @@ namespace AppData {
base.Columns.Add(this.columnItemID);
this.columnStatusID = new global::System.Data.DataColumn("StatusID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnStatusID);
- this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnOrdID);
+ this.columnKitID = new global::System.Data.DataColumn("KitID", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnKitID);
this.columnItemDtmx = new global::System.Data.DataColumn("ItemDtmx", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnItemDtmx);
this.columnItemExtCode = new global::System.Data.DataColumn("ItemExtCode", typeof(string), null, global::System.Data.MappingType.Element);
@@ -4916,6 +4958,286 @@ namespace AppData {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class KitListDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnOrdID;
+
+ private global::System.Data.DataColumn columnKitID;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public KitListDataTable() {
+ this.TableName = "KitList";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal KitListDataTable(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 KitListDataTable(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 OrdIDColumn {
+ get {
+ return this.columnOrdID;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn KitIDColumn {
+ get {
+ return this.columnKitID;
+ }
+ }
+
+ [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 KitListRow this[int index] {
+ get {
+ return ((KitListRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event KitListRowChangeEventHandler KitListRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event KitListRowChangeEventHandler KitListRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event KitListRowChangeEventHandler KitListRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event KitListRowChangeEventHandler KitListRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddKitListRow(KitListRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public KitListRow AddKitListRow(OrderListRow parentOrderListRowByFK_BatchReqList_OrderList1) {
+ KitListRow rowKitListRow = ((KitListRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null};
+ if ((parentOrderListRowByFK_BatchReqList_OrderList1 != null)) {
+ columnValuesArray[0] = parentOrderListRowByFK_BatchReqList_OrderList1[0];
+ }
+ rowKitListRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowKitListRow);
+ return rowKitListRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public KitListRow FindByKitID(int KitID) {
+ return ((KitListRow)(this.Rows.Find(new object[] {
+ KitID})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ KitListDataTable cln = ((KitListDataTable)(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 KitListDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnOrdID = base.Columns["OrdID"];
+ this.columnKitID = base.Columns["KitID"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnOrdID = new global::System.Data.DataColumn("OrdID", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOrdID);
+ this.columnKitID = new global::System.Data.DataColumn("KitID", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnKitID);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnKitID}, true));
+ this.columnOrdID.AllowDBNull = false;
+ this.columnKitID.AutoIncrement = true;
+ this.columnKitID.AutoIncrementSeed = -1;
+ this.columnKitID.AutoIncrementStep = -1;
+ this.columnKitID.AllowDBNull = false;
+ this.columnKitID.ReadOnly = true;
+ this.columnKitID.Unique = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public KitListRow NewKitListRow() {
+ return ((KitListRow)(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 KitListRow(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(KitListRow);
+ }
+
+ [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.KitListRowChanged != null)) {
+ this.KitListRowChanged(this, new KitListRowChangeEvent(((KitListRow)(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.KitListRowChanging != null)) {
+ this.KitListRowChanging(this, new KitListRowChangeEvent(((KitListRow)(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.KitListRowDeleted != null)) {
+ this.KitListRowDeleted(this, new KitListRowChangeEvent(((KitListRow)(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.KitListRowDeleting != null)) {
+ this.KitListRowDeleting(this, new KitListRowChangeEvent(((KitListRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveKitListRow(KitListRow 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 = "KitListDataTable";
+ 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.
///
@@ -5998,17 +6320,6 @@ namespace AppData {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public int OrderQty {
- get {
- return ((int)(this[this.tableOrderList.OrderQtyColumn]));
- }
- set {
- this[this.tableOrderList.OrderQtyColumn] = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public System.DateTime ImportDate {
@@ -6035,11 +6346,11 @@ namespace AppData {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OrdCodOrig {
get {
- try {
- return ((string)(this[this.tableOrderList.OrdCodOrigColumn]));
+ if (this.IsOrdCodOrigNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdCodOrig\' nella tabella \'OrderList\' è DBNull.", e);
+ else {
+ return ((string)(this[this.tableOrderList.OrdCodOrigColumn]));
}
}
set {
@@ -6047,6 +6358,17 @@ namespace AppData {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int KitQty {
+ get {
+ return ((int)(this[this.tableOrderList.KitQtyColumn]));
+ }
+ set {
+ this[this.tableOrderList.KitQtyColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsOrdDtmxNull() {
@@ -6084,12 +6406,12 @@ namespace AppData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public ItemListRow[] GetItemListRows() {
- if ((this.Table.ChildRelations["FK_ItemList_OrderList1"] == null)) {
- return new ItemListRow[0];
+ public KitListRow[] GetKitListRows() {
+ if ((this.Table.ChildRelations["FK_BatchReqList_OrderList1"] == null)) {
+ return new KitListRow[0];
}
else {
- return ((ItemListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ItemList_OrderList1"])));
+ return ((KitListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_BatchReqList_OrderList1"])));
}
}
}
@@ -6180,17 +6502,17 @@ namespace AppData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public int OrdID {
+ public int KitID {
get {
try {
- return ((int)(this[this.tableItemList.OrdIDColumn]));
+ return ((int)(this[this.tableItemList.KitIDColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdID\' nella tabella \'ItemList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("Il valore della colonna \'KitID\' nella tabella \'ItemList\' è DBNull.", e);
}
}
set {
- this[this.tableItemList.OrdIDColumn] = value;
+ this[this.tableItemList.KitIDColumn] = value;
}
}
@@ -6309,17 +6631,6 @@ namespace AppData {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public OrderListRow OrderListRow {
- get {
- return ((OrderListRow)(this.GetParentRow(this.Table.ParentRelations["FK_ItemList_OrderList1"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_ItemList_OrderList1"]);
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public MaterialsRow MaterialsRow {
@@ -6333,14 +6644,25 @@ namespace AppData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public bool IsOrdIDNull() {
- return this.IsNull(this.tableItemList.OrdIDColumn);
+ public KitListRow KitListRow {
+ get {
+ return ((KitListRow)(this.GetParentRow(this.Table.ParentRelations["FK_ItemList_KitList"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_ItemList_KitList"]);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public void SetOrdIDNull() {
- this[this.tableItemList.OrdIDColumn] = global::System.Convert.DBNull;
+ public bool IsKitIDNull() {
+ return this.IsNull(this.tableItemList.KitIDColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void SetKitIDNull() {
+ this[this.tableItemList.KitIDColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6841,6 +7163,65 @@ namespace AppData {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class KitListRow : global::System.Data.DataRow {
+
+ private KitListDataTable tableKitList;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal KitListRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableKitList = ((KitListDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int OrdID {
+ get {
+ return ((int)(this[this.tableKitList.OrdIDColumn]));
+ }
+ set {
+ this[this.tableKitList.OrdIDColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int KitID {
+ get {
+ return ((int)(this[this.tableKitList.KitIDColumn]));
+ }
+ set {
+ this[this.tableKitList.KitIDColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public OrderListRow OrderListRow {
+ get {
+ return ((OrderListRow)(this.GetParentRow(this.Table.ParentRelations["FK_BatchReqList_OrderList1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_BatchReqList_OrderList1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ItemListRow[] GetItemListRows() {
+ if ((this.Table.ChildRelations["FK_ItemList_KitList"] == null)) {
+ return new ItemListRow[0];
+ }
+ else {
+ return ((ItemListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ItemList_KitList"])));
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -7214,6 +7595,40 @@ namespace AppData {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class KitListRowChangeEvent : global::System.EventArgs {
+
+ private KitListRow 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 KitListRowChangeEvent(KitListRow 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 KitListRow 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 {
@@ -8486,58 +8901,56 @@ namespace AppData.DS_AppTableAdapters {
tableMapping.ColumnMappings.Add("OrderExtCode", "OrderExtCode");
tableMapping.ColumnMappings.Add("OrderDesc", "OrderDesc");
tableMapping.ColumnMappings.Add("OrderNote", "OrderNote");
- tableMapping.ColumnMappings.Add("OrderQty", "OrderQty");
tableMapping.ColumnMappings.Add("ImportDate", "ImportDate");
tableMapping.ColumnMappings.Add("ImportUser", "ImportUser");
tableMapping.ColumnMappings.Add("OrdCodOrig", "OrdCodOrig");
+ tableMapping.ColumnMappings.Add("KitQty", "KitQty");
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 [dbo].[OrderList] WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[OrderList] WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdDtmx = 1 AND [OrdDtmx] IS NULL) OR ([OrdDtmx] = @Original_OrdDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([KitQty] = @Original_KitQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KitQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KitQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodOrig", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderList] ([OrdID], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdID, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig);
-SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderList] ([OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [KitQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @KitQty, @ImportDate, @ImportUser, @OrdCodOrig);
+SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdDtmx, OrderExtCode, OrderDesc, OrderNote, KitQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KitQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KitQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderList] SET [OrdID] = @OrdID, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)));
-SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderList] SET [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [KitQty] = @KitQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdDtmx = 1 AND [OrdDtmx] IS NULL) OR ([OrdDtmx] = @Original_OrdDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([KitQty] = @Original_KitQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)));
+SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdDtmx, OrderExtCode, OrderDesc, OrderNote, KitQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KitQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KitQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -8545,16 +8958,17 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DestPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DestPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FamilyCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FamilyCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdDtmx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDtmx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdDtmx", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDtmx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderExtCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNote", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNote", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KitQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KitQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ImportUser", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ImportUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdCodOrig", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdCodOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdCodOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8570,8 +8984,7 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
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 OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc" +
- ", OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM dbo.OrderList";
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.OrderList";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -8655,7 +9068,7 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
[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_OrdID, string Original_OrdType, string Original_DestPlant, string Original_FamilyCode, string Original_OrdCodDtmx, string Original_OrderExtCode, string Original_OrderDesc, string Original_OrderNote, int Original_OrderQty, System.DateTime Original_ImportDate, string Original_ImportUser, string Original_OrdCodOrig) {
+ public virtual int Delete(int Original_OrdID, string Original_OrdType, string Original_DestPlant, string Original_FamilyCode, string Original_OrdDtmx, string Original_OrderExtCode, string Original_OrderDesc, string Original_OrderNote, int Original_KitQty, System.DateTime Original_ImportDate, string Original_ImportUser, string Original_OrdCodOrig) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrdID));
if ((Original_OrdType == null)) {
throw new global::System.ArgumentNullException("Original_OrdType");
@@ -8675,13 +9088,13 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
else {
this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_FamilyCode));
}
- if ((Original_OrdCodDtmx == null)) {
+ if ((Original_OrdDtmx == null)) {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_OrdCodDtmx));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_OrdDtmx));
}
if ((Original_OrderExtCode == null)) {
throw new global::System.ArgumentNullException("Original_OrderExtCode");
@@ -8701,7 +9114,7 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
else {
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_OrderNote));
}
- this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_OrderQty));
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_KitQty));
this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_ImportDate));
if ((Original_ImportUser == null)) {
throw new global::System.ArgumentNullException("Original_ImportUser");
@@ -8737,57 +9150,56 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
[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 OrdID, string OrdType, string DestPlant, string FamilyCode, string OrderExtCode, string OrderDesc, string OrderNote, int OrderQty, System.DateTime ImportDate, string ImportUser, string OrdCodOrig) {
- this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrdID));
+ public virtual int Insert(string OrdType, string DestPlant, string FamilyCode, string OrderExtCode, string OrderDesc, string OrderNote, int KitQty, System.DateTime ImportDate, string ImportUser, string OrdCodOrig) {
if ((OrdType == null)) {
throw new global::System.ArgumentNullException("OrdType");
}
else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(OrdType));
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(OrdType));
}
if ((DestPlant == null)) {
throw new global::System.ArgumentNullException("DestPlant");
}
else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DestPlant));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DestPlant));
}
if ((FamilyCode == null)) {
throw new global::System.ArgumentNullException("FamilyCode");
}
else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(FamilyCode));
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(FamilyCode));
}
if ((OrderExtCode == null)) {
throw new global::System.ArgumentNullException("OrderExtCode");
}
else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(OrderExtCode));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(OrderExtCode));
}
if ((OrderDesc == null)) {
throw new global::System.ArgumentNullException("OrderDesc");
}
else {
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(OrderDesc));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(OrderDesc));
}
if ((OrderNote == null)) {
throw new global::System.ArgumentNullException("OrderNote");
}
else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(OrderNote));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(OrderNote));
}
- this.Adapter.InsertCommand.Parameters[7].Value = ((int)(OrderQty));
- this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ImportDate));
+ this.Adapter.InsertCommand.Parameters[6].Value = ((int)(KitQty));
+ this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(ImportDate));
if ((ImportUser == null)) {
throw new global::System.ArgumentNullException("ImportUser");
}
else {
- this.Adapter.InsertCommand.Parameters[9].Value = ((string)(ImportUser));
+ this.Adapter.InsertCommand.Parameters[8].Value = ((string)(ImportUser));
}
if ((OrdCodOrig == null)) {
- this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
+ this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[10].Value = ((string)(OrdCodOrig));
+ this.Adapter.InsertCommand.Parameters[9].Value = ((string)(OrdCodOrig));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -8810,14 +9222,13 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
- int OrdID,
string OrdType,
string DestPlant,
string FamilyCode,
string OrderExtCode,
string OrderDesc,
string OrderNote,
- int OrderQty,
+ int KitQty,
System.DateTime ImportDate,
string ImportUser,
string OrdCodOrig,
@@ -8825,126 +9236,127 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
string Original_OrdType,
string Original_DestPlant,
string Original_FamilyCode,
- string Original_OrdCodDtmx,
+ string Original_OrdDtmx,
string Original_OrderExtCode,
string Original_OrderDesc,
string Original_OrderNote,
- int Original_OrderQty,
+ int Original_KitQty,
System.DateTime Original_ImportDate,
string Original_ImportUser,
- string Original_OrdCodOrig) {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrdID));
+ string Original_OrdCodOrig,
+ int OrdID) {
if ((OrdType == null)) {
throw new global::System.ArgumentNullException("OrdType");
}
else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(OrdType));
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(OrdType));
}
if ((DestPlant == null)) {
throw new global::System.ArgumentNullException("DestPlant");
}
else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DestPlant));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DestPlant));
}
if ((FamilyCode == null)) {
throw new global::System.ArgumentNullException("FamilyCode");
}
else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(FamilyCode));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(FamilyCode));
}
if ((OrderExtCode == null)) {
throw new global::System.ArgumentNullException("OrderExtCode");
}
else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(OrderExtCode));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(OrderExtCode));
}
if ((OrderDesc == null)) {
throw new global::System.ArgumentNullException("OrderDesc");
}
else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(OrderDesc));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(OrderDesc));
}
if ((OrderNote == null)) {
throw new global::System.ArgumentNullException("OrderNote");
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(OrderNote));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(OrderNote));
}
- this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(OrderQty));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ImportDate));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(KitQty));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(ImportDate));
if ((ImportUser == null)) {
throw new global::System.ArgumentNullException("ImportUser");
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(ImportUser));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(ImportUser));
}
if ((OrdCodOrig == null)) {
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(OrdCodOrig));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(OrdCodOrig));
}
- this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_OrdID));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_OrdID));
if ((Original_OrdType == null)) {
throw new global::System.ArgumentNullException("Original_OrdType");
}
else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_OrdType));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_OrdType));
}
if ((Original_DestPlant == null)) {
throw new global::System.ArgumentNullException("Original_DestPlant");
}
else {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_DestPlant));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_DestPlant));
}
if ((Original_FamilyCode == null)) {
throw new global::System.ArgumentNullException("Original_FamilyCode");
}
else {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_FamilyCode));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_FamilyCode));
}
- if ((Original_OrdCodDtmx == null)) {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ if ((Original_OrdDtmx == null)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_OrdCodDtmx));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_OrdDtmx));
}
if ((Original_OrderExtCode == null)) {
throw new global::System.ArgumentNullException("Original_OrderExtCode");
}
else {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_OrderExtCode));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_OrderExtCode));
}
if ((Original_OrderDesc == null)) {
throw new global::System.ArgumentNullException("Original_OrderDesc");
}
else {
- this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_OrderDesc));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_OrderDesc));
}
if ((Original_OrderNote == null)) {
throw new global::System.ArgumentNullException("Original_OrderNote");
}
else {
- this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_OrderNote));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_OrderNote));
}
- this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_OrderQty));
- this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_ImportDate));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_KitQty));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((System.DateTime)(Original_ImportDate));
if ((Original_ImportUser == null)) {
throw new global::System.ArgumentNullException("Original_ImportUser");
}
else {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_ImportUser));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_ImportUser));
}
if ((Original_OrdCodOrig == null)) {
- this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_OrdCodOrig));
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_OrdCodOrig));
}
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(OrdID));
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)) {
@@ -8972,7 +9384,7 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
string OrderExtCode,
string OrderDesc,
string OrderNote,
- int OrderQty,
+ int KitQty,
System.DateTime ImportDate,
string ImportUser,
string OrdCodOrig,
@@ -8980,15 +9392,15 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
string Original_OrdType,
string Original_DestPlant,
string Original_FamilyCode,
- string Original_OrdCodDtmx,
+ string Original_OrdDtmx,
string Original_OrderExtCode,
string Original_OrderDesc,
string Original_OrderNote,
- int Original_OrderQty,
+ int Original_KitQty,
System.DateTime Original_ImportDate,
string Original_ImportUser,
string Original_OrdCodOrig) {
- return this.Update(Original_OrdID, OrdType, DestPlant, FamilyCode, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig, Original_OrdID, Original_OrdType, Original_DestPlant, Original_FamilyCode, Original_OrdCodDtmx, Original_OrderExtCode, Original_OrderDesc, Original_OrderNote, Original_OrderQty, Original_ImportDate, Original_ImportUser, Original_OrdCodOrig);
+ return this.Update(OrdType, DestPlant, FamilyCode, OrderExtCode, OrderDesc, OrderNote, KitQty, ImportDate, ImportUser, OrdCodOrig, Original_OrdID, Original_OrdType, Original_DestPlant, Original_FamilyCode, Original_OrdDtmx, Original_OrderExtCode, Original_OrderDesc, Original_OrderNote, Original_KitQty, Original_ImportDate, Original_ImportUser, Original_OrdCodOrig, Original_OrdID);
}
}
@@ -9416,7 +9828,7 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
tableMapping.DataSetTable = "ItemList";
tableMapping.ColumnMappings.Add("ItemID", "ItemID");
tableMapping.ColumnMappings.Add("StatusID", "StatusID");
- tableMapping.ColumnMappings.Add("OrdID", "OrdID");
+ tableMapping.ColumnMappings.Add("KitID", "KitID");
tableMapping.ColumnMappings.Add("ItemDtmx", "ItemDtmx");
tableMapping.ColumnMappings.Add("ItemExtCode", "ItemExtCode");
tableMapping.ColumnMappings.Add("ItemDesc", "ItemDesc");
@@ -9603,6 +10015,23 @@ SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, Ite
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.ItemListDataTable getByBatch(global::System.Nullable BatchID) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((BatchID.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_App.ItemListDataTable dataTable = new DS_App.ItemListDataTable();
+ 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")]
@@ -10082,34 +10511,6 @@ SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, Ite
return this.Update(ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQty, MatID, MachiningReq, PostProcList, ProcessesReq, CadFilePath, Original_ItemID, Original_ItemStatus, Original_OrdID, Original_ItemDtmx, Original_ItemExtCode, Original_ItemDesc, Original_ItemNote, Original_ItemQty, Original_MatID, Original_MachiningReq, Original_PostProcList, Original_ProcessesReq, Original_CadFilePath, Original_ItemID);
}
- [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 getByBatch(global::System.Nullable BatchID) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
- if ((BatchID.HasValue == true)) {
- command.Parameters[1].Value = ((int)(BatchID.Value));
- }
- else {
- command.Parameters[1].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
-
[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")]
@@ -12102,6 +12503,350 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
}
}
+ ///
+ ///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 KitListTableAdapter : 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 KitListTableAdapter() {
+ 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 = "KitList";
+ tableMapping.ColumnMappings.Add("OrdID", "OrdID");
+ tableMapping.ColumnMappings.Add("KitID", "KitID");
+ 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 [KitList] WHERE (([KitID] = @Original_KitID) AND ([OrdID] = @Original" +
+ "_OrdID))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KitID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KitID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", 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 [KitList] ([OrdID]) VALUES (@OrdID);\r\nSELECT KitID, OrdID FROM KitLis" +
+ "t WHERE (KitID = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", 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 [KitList] SET [OrdID] = @OrdID WHERE (([KitID] = @Original_KitID) AND ([Or" +
+ "dID] = @Original_OrdID));\r\nSELECT KitID, OrdID FROM KitList WHERE (KitID = @KitI" +
+ "D)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KitID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KitID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KitID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "KitID", global::System.Data.DataRowVersion.Current, 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[3];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT * from KitList";
+ 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_KL_getByBatch";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_KL_getByOrder";
+ 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, "", "", ""));
+ }
+
+ [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.KitListDataTable 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.KitListDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ 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")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_App.KitListDataTable getByBatch(global::System.Nullable BatchID) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((BatchID.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_App.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")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_App.KitListDataTable getByOrder(global::System.Nullable OrdID) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((OrdID.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(OrdID.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].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")]
+ public virtual int Update(DS_App.KitListDataTable 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, "KitList");
+ }
+
+ [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_KitID, int Original_OrdID) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_KitID));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_OrdID));
+ 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 OrdID) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrdID));
+ 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 OrdID, int Original_KitID, int Original_OrdID, int KitID) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrdID));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_KitID));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_OrdID));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(KitID));
+ 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 OrdID, int Original_KitID, int Original_OrdID) {
+ return this.Update(OrdID, Original_KitID, Original_OrdID, Original_KitID);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -12128,6 +12873,8 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
private OffOrd2ItemTableAdapter _offOrd2ItemTableAdapter;
+ private KitListTableAdapter _kitListTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -12241,6 +12988,20 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
}
}
+ [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 KitListTableAdapter KitListTableAdapter {
+ get {
+ return this._kitListTableAdapter;
+ }
+ set {
+ this._kitListTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -12288,6 +13049,10 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
&& (this._offOrd2ItemTableAdapter.Connection != null))) {
return this._offOrd2ItemTableAdapter.Connection;
}
+ if (((this._kitListTableAdapter != null)
+ && (this._kitListTableAdapter.Connection != null))) {
+ return this._kitListTableAdapter.Connection;
+ }
return null;
}
set {
@@ -12322,6 +13087,9 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
if ((this._offOrd2ItemTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._kitListTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -12351,6 +13119,15 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
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._batchReqListTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -12422,6 +13199,14 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
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._batchReqListTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.BatchReqList.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -12512,6 +13297,14 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
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)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._kitListTableAdapter.Update(deletedRows));
+ 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)
@@ -12602,6 +13395,11 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
+ if (((this._kitListTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._kitListTableAdapter.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" +
@@ -12698,6 +13496,15 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
adaptersWithAcceptChangesDuringUpdate.Add(this._offOrd2ItemTableAdapter.Adapter);
}
}
+ if ((this._kitListTableAdapter != null)) {
+ revertConnections.Add(this._kitListTableAdapter, this._kitListTableAdapter.Connection);
+ this._kitListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._kitListTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._kitListTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._kitListTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._kitListTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -12784,6 +13591,10 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
this._offOrd2ItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._offOrd2ItemTableAdapter]));
this._offOrd2ItemTableAdapter.Transaction = null;
}
+ if ((this._kitListTableAdapter != null)) {
+ this._kitListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._kitListTableAdapter]));
+ this._kitListTableAdapter.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.cs b/AppData/DS_App.cs
new file mode 100644
index 0000000..02111b2
--- /dev/null
+++ b/AppData/DS_App.cs
@@ -0,0 +1,8 @@
+namespace AppData
+{
+
+
+ partial class DS_App
+ {
+ }
+}
diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd
index 341ac8c..489631d 100644
--- a/AppData/DS_App.xsd
+++ b/AppData/DS_App.xsd
@@ -341,18 +341,18 @@ FROM v_SheetList
- DELETE FROM [dbo].[OrderList] WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)))
+ DELETE FROM [dbo].[OrderList] WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdDtmx = 1 AND [OrdDtmx] IS NULL) OR ([OrdDtmx] = @Original_OrdDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([KitQty] = @Original_KitQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)))
-
-
+
+
-
+
@@ -362,17 +362,16 @@ FROM v_SheetList
- INSERT INTO [dbo].[OrderList] ([OrdID], [OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [OrderQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdID, @OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @OrderQty, @ImportDate, @ImportUser, @OrdCodOrig);
-SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)
+ INSERT INTO [dbo].[OrderList] ([OrdType], [DestPlant], [FamilyCode], [OrderExtCode], [OrderDesc], [OrderNote], [KitQty], [ImportDate], [ImportUser], [OrdCodOrig]) VALUES (@OrdType, @DestPlant, @FamilyCode, @OrderExtCode, @OrderDesc, @OrderNote, @KitQty, @ImportDate, @ImportUser, @OrdCodOrig);
+SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdDtmx, OrderExtCode, OrderDesc, OrderNote, KitQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = SCOPE_IDENTITY())
-
-
+
@@ -380,24 +379,24 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
-
- SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM dbo.OrderList
+
+ SELECT *
+FROM dbo.OrderList
- UPDATE [dbo].[OrderList] SET [OrdID] = @OrdID, [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [OrderQty] = @OrderQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdCodDtmx = 1 AND [OrdCodDtmx] IS NULL) OR ([OrdCodDtmx] = @Original_OrdCodDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([OrderQty] = @Original_OrderQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)));
-SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDesc, OrderNote, OrderQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)
+ UPDATE [dbo].[OrderList] SET [OrdType] = @OrdType, [DestPlant] = @DestPlant, [FamilyCode] = @FamilyCode, [OrderExtCode] = @OrderExtCode, [OrderDesc] = @OrderDesc, [OrderNote] = @OrderNote, [KitQty] = @KitQty, [ImportDate] = @ImportDate, [ImportUser] = @ImportUser, [OrdCodOrig] = @OrdCodOrig WHERE (([OrdID] = @Original_OrdID) AND ([OrdType] = @Original_OrdType) AND ([DestPlant] = @Original_DestPlant) AND ([FamilyCode] = @Original_FamilyCode) AND ((@IsNull_OrdDtmx = 1 AND [OrdDtmx] IS NULL) OR ([OrdDtmx] = @Original_OrdDtmx)) AND ([OrderExtCode] = @Original_OrderExtCode) AND ([OrderDesc] = @Original_OrderDesc) AND ([OrderNote] = @Original_OrderNote) AND ([KitQty] = @Original_KitQty) AND ([ImportDate] = @Original_ImportDate) AND ([ImportUser] = @Original_ImportUser) AND ((@IsNull_OrdCodOrig = 1 AND [OrdCodOrig] IS NULL) OR ([OrdCodOrig] = @Original_OrdCodOrig)));
+SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdDtmx, OrderExtCode, OrderDesc, OrderNote, KitQty, ImportDate, ImportUser, OrdCodOrig FROM OrderList WHERE (OrdID = @OrdID)
-
-
+
@@ -405,16 +404,17 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
-
-
+
+
-
+
+
@@ -429,10 +429,10 @@ SELECT OrdID, OrdType, DestPlant, FamilyCode, OrdCodDtmx, OrderExtCode, OrderDes
-
+
@@ -589,7 +589,7 @@ SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, Ite
-
+
@@ -602,7 +602,7 @@ SELECT ItemID, ItemStatus, OrdID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, Ite
-
+
dbo.stp_IL_getByBatch
@@ -1096,6 +1096,76 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
+
+
+
+
+
+ DELETE FROM [KitList] WHERE (([KitID] = @Original_KitID) AND ([OrdID] = @Original_OrdID))
+
+
+
+
+
+
+
+
+ INSERT INTO [KitList] ([OrdID]) VALUES (@OrdID);
+SELECT KitID, OrdID FROM KitList WHERE (KitID = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+ SELECT * from KitList
+
+
+
+
+
+ UPDATE [KitList] SET [OrdID] = @OrdID WHERE (([KitID] = @Original_KitID) AND ([OrdID] = @Original_OrdID));
+SELECT KitID, OrdID FROM KitList WHERE (KitID = @KitID)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_KL_getByBatch
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_KL_getByOrder
+
+
+
+
+
+
+
+
+
@@ -1104,7 +1174,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1136,7 +1206,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1158,7 +1228,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1213,7 +1283,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1266,26 +1336,26 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
-
+
-
+
+
-
+
@@ -1293,12 +1363,12 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
-
+
@@ -1354,7 +1424,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1387,7 +1457,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1403,7 +1473,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1419,7 +1489,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1443,7 +1513,7 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
-
+
@@ -1451,6 +1521,14 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
+
+
+
+
+
+
+
+
@@ -1499,13 +1577,18 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
+
+
+
+
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss
index c898f64..9f439d0 100644
--- a/AppData/DS_App.xss
+++ b/AppData/DS_App.xss
@@ -4,58 +4,47 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
- 396
- 152
+ 329
+ 150
- 321
- 152
+ 275
+ 150
-
+
- 594
- 79
+ 1197
+ 146
- 688
- 79
+ 1114
+ 146
-
-
-
- 1110
- 172
-
-
- 988
- 172
-
-
-
-
+
1029
@@ -67,5 +56,29 @@
+
+
+
+ 527
+ 137
+
+
+ 588
+ 137
+
+
+
+
+
+
+ 769
+ 132
+
+
+ 861
+ 132
+
+
+
\ No newline at end of file
diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs
index 8c64db9..7dd69ac 100644
--- a/AppData/DataLayer.cs
+++ b/AppData/DataLayer.cs
@@ -12,6 +12,7 @@ namespace AppData
public DS_AppTableAdapters.BinsTableAdapter taBN;
public DS_AppTableAdapters.CartsTableAdapter taCR;
public DS_AppTableAdapters.ItemListTableAdapter taIL;
+ public DS_AppTableAdapters.KitListTableAdapter taKL;
public DS_AppTableAdapters.MaterialsTableAdapter taMat;
public DS_AppTableAdapters.OfflineOrderListTableAdapter taOffOL;
public DS_AppTableAdapters.OffOrd2ItemTableAdapter taOO2I;
@@ -37,6 +38,7 @@ namespace AppData
taBN.Connection.ConnectionString = connString;
taCR.Connection.ConnectionString = connString;
taIL.Connection.ConnectionString = connString;
+ taKL.Connection.ConnectionString = connString;
taMat.Connection.ConnectionString = connString;
taOffOL.Connection.ConnectionString = connString;
taOO2I.Connection.ConnectionString = connString;
@@ -54,6 +56,7 @@ namespace AppData
taBN = new DS_AppTableAdapters.BinsTableAdapter();
taCR = new DS_AppTableAdapters.CartsTableAdapter();
taIL = new DS_AppTableAdapters.ItemListTableAdapter();
+ taKL = new DS_AppTableAdapters.KitListTableAdapter();
taMat = new DS_AppTableAdapters.MaterialsTableAdapter();
taOffOL = new DS_AppTableAdapters.OfflineOrderListTableAdapter();
taOO2I = new DS_AppTableAdapters.OffOrd2ItemTableAdapter();