diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll
index 559c4c7..e40bf99 100644
Binary files a/C2P/bin/C2P.dll and b/C2P/bin/C2P.dll differ
diff --git a/C2P/bin/C2P_Data.dll b/C2P/bin/C2P_Data.dll
index 452c0d4..587ac0a 100644
Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ
diff --git a/C2P_CronJob/bin/Release/C2P_CronJob.application b/C2P_CronJob/bin/Release/C2P_CronJob.application
index 546dc62..9d9eb9b 100644
--- a/C2P_CronJob/bin/Release/C2P_CronJob.application
+++ b/C2P_CronJob/bin/Release/C2P_CronJob.application
@@ -11,7 +11,7 @@
- /Uu0ivAZbYLmopl8rzrA1M56UWc=
+ b2uHaXW1irG4pVJgcRl50IIPoog=
diff --git a/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest b/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest
index fcded2f..19c603d 100644
--- a/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest
+++ b/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest
@@ -74,19 +74,19 @@
- xIm3PLCj4c+eqJeAN9K98w4KANc=
+ 3F0k09XENGVr8CZufWCIRxiboRM=
-
+
- bktr3kCr6XPZ9eJCIz6m0XzSpEg=
+ smqvRWWgn6zvqU5ixorWo0nMW+c=
diff --git a/C2P_CronJob/bin/Release/C2P_Data.dll b/C2P_CronJob/bin/Release/C2P_Data.dll
index 452c0d4..587ac0a 100644
Binary files a/C2P_CronJob/bin/Release/C2P_Data.dll and b/C2P_CronJob/bin/Release/C2P_Data.dll differ
diff --git a/C2P_Data/DS_Quotes.Designer.cs b/C2P_Data/DS_Quotes.Designer.cs
index 1db7b3a..fb34b1b 100644
--- a/C2P_Data/DS_Quotes.Designer.cs
+++ b/C2P_Data/DS_Quotes.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -56,6 +56,10 @@ namespace C2P_Data {
private PlantsDetDataTable tablePlantsDet;
+ private UtilitiesDataTable tableUtilities;
+
+ private Cost2PlantDataTable tableCost2Plant;
+
private global::System.Data.DataRelation relationFK_QuoteRM_QuoteList;
private global::System.Data.DataRelation relationFK_QuoteWorkExt_QuoteList;
@@ -66,6 +70,8 @@ namespace C2P_Data {
private global::System.Data.DataRelation relationFK_QuoteExtra_QuoteList;
+ private global::System.Data.DataRelation relationFK_Cost2Plant_PlantsDet;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -142,6 +148,12 @@ namespace C2P_Data {
if ((ds.Tables["PlantsDet"] != null)) {
base.Tables.Add(new PlantsDetDataTable(ds.Tables["PlantsDet"]));
}
+ if ((ds.Tables["Utilities"] != null)) {
+ base.Tables.Add(new UtilitiesDataTable(ds.Tables["Utilities"]));
+ }
+ if ((ds.Tables["Cost2Plant"] != null)) {
+ base.Tables.Add(new Cost2PlantDataTable(ds.Tables["Cost2Plant"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -320,6 +332,26 @@ namespace C2P_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public UtilitiesDataTable Utilities {
+ get {
+ return this.tableUtilities;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public Cost2PlantDataTable Cost2Plant {
+ get {
+ return this.tableCost2Plant;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -435,6 +467,12 @@ namespace C2P_Data {
if ((ds.Tables["PlantsDet"] != null)) {
base.Tables.Add(new PlantsDetDataTable(ds.Tables["PlantsDet"]));
}
+ if ((ds.Tables["Utilities"] != null)) {
+ base.Tables.Add(new UtilitiesDataTable(ds.Tables["Utilities"]));
+ }
+ if ((ds.Tables["Cost2Plant"] != null)) {
+ base.Tables.Add(new Cost2PlantDataTable(ds.Tables["Cost2Plant"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -564,11 +602,24 @@ namespace C2P_Data {
this.tablePlantsDet.InitVars();
}
}
+ this.tableUtilities = ((UtilitiesDataTable)(base.Tables["Utilities"]));
+ if ((initTable == true)) {
+ if ((this.tableUtilities != null)) {
+ this.tableUtilities.InitVars();
+ }
+ }
+ this.tableCost2Plant = ((Cost2PlantDataTable)(base.Tables["Cost2Plant"]));
+ if ((initTable == true)) {
+ if ((this.tableCost2Plant != null)) {
+ this.tableCost2Plant.InitVars();
+ }
+ }
this.relationFK_QuoteRM_QuoteList = this.Relations["FK_QuoteRM_QuoteList"];
this.relationFK_QuoteWorkExt_QuoteList = this.Relations["FK_QuoteWorkExt_QuoteList"];
this.relationFK_QuoteWorkInt_QuoteList = this.Relations["FK_QuoteWorkInt_QuoteList"];
this.relationFK_QuoteParam_QuoteList = this.Relations["FK_QuoteParam_QuoteList"];
this.relationFK_QuoteExtra_QuoteList = this.Relations["FK_QuoteExtra_QuoteList"];
+ this.relationFK_Cost2Plant_PlantsDet = this.Relations["FK_Cost2Plant_PlantsDet"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -611,6 +662,10 @@ namespace C2P_Data {
base.Tables.Add(this.tableAgentsDet);
this.tablePlantsDet = new PlantsDetDataTable();
base.Tables.Add(this.tablePlantsDet);
+ this.tableUtilities = new UtilitiesDataTable();
+ base.Tables.Add(this.tableUtilities);
+ this.tableCost2Plant = new Cost2PlantDataTable();
+ base.Tables.Add(this.tableCost2Plant);
this.relationFK_QuoteRM_QuoteList = new global::System.Data.DataRelation("FK_QuoteRM_QuoteList", new global::System.Data.DataColumn[] {
this.tableQuoteList.QuoteTypeColumn,
this.tableQuoteList.CodQuoteColumn,
@@ -651,6 +706,10 @@ namespace C2P_Data {
this.tableQuoteOC.CodQuoteColumn,
this.tableQuoteOC.QuoteRevColumn}, false);
this.Relations.Add(this.relationFK_QuoteExtra_QuoteList);
+ this.relationFK_Cost2Plant_PlantsDet = new global::System.Data.DataRelation("FK_Cost2Plant_PlantsDet", new global::System.Data.DataColumn[] {
+ this.tablePlantsDet.CodPlantColumn}, new global::System.Data.DataColumn[] {
+ this.tableCost2Plant.CodPlantColumn}, false);
+ this.Relations.Add(this.relationFK_Cost2Plant_PlantsDet);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -749,6 +808,18 @@ namespace C2P_Data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeUtilities() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeCost2Plant() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -852,6 +923,12 @@ namespace C2P_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void PlantsDetRowChangeEventHandler(object sender, PlantsDetRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void UtilitiesRowChangeEventHandler(object sender, UtilitiesRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void Cost2PlantRowChangeEventHandler(object sender, Cost2PlantRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -11887,6 +11964,666 @@ namespace C2P_Data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class UtilitiesDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodUtil;
+
+ private global::System.Data.DataColumn columnCodPlant;
+
+ private global::System.Data.DataColumn columnUnitCost;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public UtilitiesDataTable() {
+ this.TableName = "Utilities";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal UtilitiesDataTable(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", "4.0.0.0")]
+ protected UtilitiesDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn CodUtilColumn {
+ get {
+ return this.columnCodUtil;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodPlantColumn {
+ get {
+ return this.columnCodPlant;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn UnitCostColumn {
+ get {
+ return this.columnUnitCost;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public UtilitiesRow this[int index] {
+ get {
+ return ((UtilitiesRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event UtilitiesRowChangeEventHandler UtilitiesRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event UtilitiesRowChangeEventHandler UtilitiesRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event UtilitiesRowChangeEventHandler UtilitiesRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event UtilitiesRowChangeEventHandler UtilitiesRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddUtilitiesRow(UtilitiesRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public UtilitiesRow AddUtilitiesRow(string CodUtil, string CodPlant, decimal UnitCost) {
+ UtilitiesRow rowUtilitiesRow = ((UtilitiesRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodUtil,
+ CodPlant,
+ UnitCost};
+ rowUtilitiesRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowUtilitiesRow);
+ return rowUtilitiesRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public UtilitiesRow FindByCodUtilCodPlant(string CodUtil, string CodPlant) {
+ return ((UtilitiesRow)(this.Rows.Find(new object[] {
+ CodUtil,
+ CodPlant})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ UtilitiesDataTable cln = ((UtilitiesDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new UtilitiesDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnCodUtil = base.Columns["CodUtil"];
+ this.columnCodPlant = base.Columns["CodPlant"];
+ this.columnUnitCost = base.Columns["UnitCost"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnCodUtil = new global::System.Data.DataColumn("CodUtil", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodUtil);
+ this.columnCodPlant = new global::System.Data.DataColumn("CodPlant", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodPlant);
+ this.columnUnitCost = new global::System.Data.DataColumn("UnitCost", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUnitCost);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodUtil,
+ this.columnCodPlant}, true));
+ this.columnCodUtil.AllowDBNull = false;
+ this.columnCodUtil.MaxLength = 50;
+ this.columnCodPlant.AllowDBNull = false;
+ this.columnCodPlant.MaxLength = 50;
+ this.columnUnitCost.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public UtilitiesRow NewUtilitiesRow() {
+ return ((UtilitiesRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new UtilitiesRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(UtilitiesRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.UtilitiesRowChanged != null)) {
+ this.UtilitiesRowChanged(this, new UtilitiesRowChangeEvent(((UtilitiesRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.UtilitiesRowChanging != null)) {
+ this.UtilitiesRowChanging(this, new UtilitiesRowChangeEvent(((UtilitiesRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.UtilitiesRowDeleted != null)) {
+ this.UtilitiesRowDeleted(this, new UtilitiesRowChangeEvent(((UtilitiesRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.UtilitiesRowDeleting != null)) {
+ this.UtilitiesRowDeleting(this, new UtilitiesRowChangeEvent(((UtilitiesRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveUtilitiesRow(UtilitiesRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_Quotes ds = new DS_Quotes();
+ 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 = "UtilitiesDataTable";
+ 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 the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class Cost2PlantDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodPlant;
+
+ private global::System.Data.DataColumn columnProcessNum;
+
+ private global::System.Data.DataColumn columnFC;
+
+ private global::System.Data.DataColumn columnVC;
+
+ private global::System.Data.DataColumn columnOH;
+
+ private global::System.Data.DataColumn columnSC;
+
+ private global::System.Data.DataColumn columnQuotaPlantStd;
+
+ private global::System.Data.DataColumn columnQuotaManStd;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Cost2PlantDataTable() {
+ this.TableName = "Cost2Plant";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Cost2PlantDataTable(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", "4.0.0.0")]
+ protected Cost2PlantDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn CodPlantColumn {
+ get {
+ return this.columnCodPlant;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ProcessNumColumn {
+ get {
+ return this.columnProcessNum;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn FCColumn {
+ get {
+ return this.columnFC;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn VCColumn {
+ get {
+ return this.columnVC;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn OHColumn {
+ get {
+ return this.columnOH;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn SCColumn {
+ get {
+ return this.columnSC;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QuotaPlantStdColumn {
+ get {
+ return this.columnQuotaPlantStd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QuotaManStdColumn {
+ get {
+ return this.columnQuotaManStd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public Cost2PlantRow this[int index] {
+ get {
+ return ((Cost2PlantRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Cost2PlantRowChangeEventHandler Cost2PlantRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Cost2PlantRowChangeEventHandler Cost2PlantRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Cost2PlantRowChangeEventHandler Cost2PlantRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Cost2PlantRowChangeEventHandler Cost2PlantRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddCost2PlantRow(Cost2PlantRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Cost2PlantRow AddCost2PlantRow(PlantsDetRow parentPlantsDetRowByFK_Cost2Plant_PlantsDet, string ProcessNum, decimal FC, decimal VC, decimal OH, decimal SC, decimal QuotaPlantStd, decimal QuotaManStd) {
+ Cost2PlantRow rowCost2PlantRow = ((Cost2PlantRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ ProcessNum,
+ FC,
+ VC,
+ OH,
+ SC,
+ QuotaPlantStd,
+ QuotaManStd};
+ if ((parentPlantsDetRowByFK_Cost2Plant_PlantsDet != null)) {
+ columnValuesArray[0] = parentPlantsDetRowByFK_Cost2Plant_PlantsDet[0];
+ }
+ rowCost2PlantRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowCost2PlantRow);
+ return rowCost2PlantRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Cost2PlantRow FindByCodPlantProcessNum(string CodPlant, string ProcessNum) {
+ return ((Cost2PlantRow)(this.Rows.Find(new object[] {
+ CodPlant,
+ ProcessNum})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ Cost2PlantDataTable cln = ((Cost2PlantDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new Cost2PlantDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnCodPlant = base.Columns["CodPlant"];
+ this.columnProcessNum = base.Columns["ProcessNum"];
+ this.columnFC = base.Columns["FC"];
+ this.columnVC = base.Columns["VC"];
+ this.columnOH = base.Columns["OH"];
+ this.columnSC = base.Columns["SC"];
+ this.columnQuotaPlantStd = base.Columns["QuotaPlantStd"];
+ this.columnQuotaManStd = base.Columns["QuotaManStd"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnCodPlant = new global::System.Data.DataColumn("CodPlant", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodPlant);
+ this.columnProcessNum = new global::System.Data.DataColumn("ProcessNum", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnProcessNum);
+ this.columnFC = new global::System.Data.DataColumn("FC", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFC);
+ this.columnVC = new global::System.Data.DataColumn("VC", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnVC);
+ this.columnOH = new global::System.Data.DataColumn("OH", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOH);
+ this.columnSC = new global::System.Data.DataColumn("SC", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnSC);
+ this.columnQuotaPlantStd = new global::System.Data.DataColumn("QuotaPlantStd", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQuotaPlantStd);
+ this.columnQuotaManStd = new global::System.Data.DataColumn("QuotaManStd", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQuotaManStd);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodPlant,
+ this.columnProcessNum}, true));
+ this.columnCodPlant.AllowDBNull = false;
+ this.columnCodPlant.MaxLength = 50;
+ this.columnProcessNum.AllowDBNull = false;
+ this.columnProcessNum.MaxLength = 50;
+ this.columnFC.AllowDBNull = false;
+ this.columnVC.AllowDBNull = false;
+ this.columnOH.AllowDBNull = false;
+ this.columnSC.AllowDBNull = false;
+ this.columnQuotaPlantStd.AllowDBNull = false;
+ this.columnQuotaManStd.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Cost2PlantRow NewCost2PlantRow() {
+ return ((Cost2PlantRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new Cost2PlantRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(Cost2PlantRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.Cost2PlantRowChanged != null)) {
+ this.Cost2PlantRowChanged(this, new Cost2PlantRowChangeEvent(((Cost2PlantRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.Cost2PlantRowChanging != null)) {
+ this.Cost2PlantRowChanging(this, new Cost2PlantRowChangeEvent(((Cost2PlantRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.Cost2PlantRowDeleted != null)) {
+ this.Cost2PlantRowDeleted(this, new Cost2PlantRowChangeEvent(((Cost2PlantRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.Cost2PlantRowDeleting != null)) {
+ this.Cost2PlantRowDeleting(this, new Cost2PlantRowChangeEvent(((Cost2PlantRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveCost2PlantRow(Cost2PlantRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_Quotes ds = new DS_Quotes();
+ 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 = "Cost2PlantDataTable";
+ 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.
///
@@ -19101,6 +19838,179 @@ namespace C2P_Data {
this[this.tablePlantsDet.ChargeColumn] = value;
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Cost2PlantRow[] GetCost2PlantRows() {
+ if ((this.Table.ChildRelations["FK_Cost2Plant_PlantsDet"] == null)) {
+ return new Cost2PlantRow[0];
+ }
+ else {
+ return ((Cost2PlantRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Cost2Plant_PlantsDet"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class UtilitiesRow : global::System.Data.DataRow {
+
+ private UtilitiesDataTable tableUtilities;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal UtilitiesRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableUtilities = ((UtilitiesDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodUtil {
+ get {
+ return ((string)(this[this.tableUtilities.CodUtilColumn]));
+ }
+ set {
+ this[this.tableUtilities.CodUtilColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodPlant {
+ get {
+ return ((string)(this[this.tableUtilities.CodPlantColumn]));
+ }
+ set {
+ this[this.tableUtilities.CodPlantColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal UnitCost {
+ get {
+ return ((decimal)(this[this.tableUtilities.UnitCostColumn]));
+ }
+ set {
+ this[this.tableUtilities.UnitCostColumn] = value;
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class Cost2PlantRow : global::System.Data.DataRow {
+
+ private Cost2PlantDataTable tableCost2Plant;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Cost2PlantRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableCost2Plant = ((Cost2PlantDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodPlant {
+ get {
+ return ((string)(this[this.tableCost2Plant.CodPlantColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.CodPlantColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string ProcessNum {
+ get {
+ return ((string)(this[this.tableCost2Plant.ProcessNumColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.ProcessNumColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal FC {
+ get {
+ return ((decimal)(this[this.tableCost2Plant.FCColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.FCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal VC {
+ get {
+ return ((decimal)(this[this.tableCost2Plant.VCColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.VCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal OH {
+ get {
+ return ((decimal)(this[this.tableCost2Plant.OHColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.OHColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal SC {
+ get {
+ return ((decimal)(this[this.tableCost2Plant.SCColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.SCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal QuotaPlantStd {
+ get {
+ return ((decimal)(this[this.tableCost2Plant.QuotaPlantStdColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.QuotaPlantStdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal QuotaManStd {
+ get {
+ return ((decimal)(this[this.tableCost2Plant.QuotaManStdColumn]));
+ }
+ set {
+ this[this.tableCost2Plant.QuotaManStdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public PlantsDetRow PlantsDetRow {
+ get {
+ return ((PlantsDetRow)(this.GetParentRow(this.Table.ParentRelations["FK_Cost2Plant_PlantsDet"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Cost2Plant_PlantsDet"]);
+ }
+ }
}
///
@@ -19646,6 +20556,74 @@ namespace C2P_Data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class UtilitiesRowChangeEvent : global::System.EventArgs {
+
+ private UtilitiesRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public UtilitiesRowChangeEvent(UtilitiesRow 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", "4.0.0.0")]
+ public UtilitiesRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class Cost2PlantRowChangeEvent : global::System.EventArgs {
+
+ private Cost2PlantRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Cost2PlantRowChangeEvent(Cost2PlantRow 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", "4.0.0.0")]
+ public Cost2PlantRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace C2P_Data.DS_QuotesTableAdapters {
@@ -27551,6 +28529,1136 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
}
}
+ ///
+ ///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 UtilitiesTableAdapter : 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", "4.0.0.0")]
+ public UtilitiesTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "Utilities";
+ tableMapping.ColumnMappings.Add("CodUtil", "CodUtil");
+ tableMapping.ColumnMappings.Add("CodPlant", "CodPlant");
+ tableMapping.ColumnMappings.Add("UnitCost", "UnitCost");
+ 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].[Utilities] WHERE (([CodUtil] = @Original_CodUtil) AND ([CodPla" +
+ "nt] = @Original_CodPlant) AND ([UnitCost] = @Original_UnitCost))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodUtil", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodUtil", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "UnitCost", 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].[Utilities] ([CodUtil], [CodPlant], [UnitCost]) VALUES (@CodUti" +
+ "l, @CodPlant, @UnitCost);\r\nSELECT CodUtil, CodPlant, UnitCost FROM Utilities WHE" +
+ "RE (CodPlant = @CodPlant) AND (CodUtil = @CodUtil)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodUtil", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodUtil", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "UnitCost", 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].[Utilities] SET [CodUtil] = @CodUtil, [CodPlant] = @CodPlant, [UnitCost] = @UnitCost WHERE (([CodUtil] = @Original_CodUtil) AND ([CodPlant] = @Original_CodPlant) AND ([UnitCost] = @Original_UnitCost));
+SELECT CodUtil, CodPlant, UnitCost FROM Utilities WHERE (CodPlant = @CodPlant) AND (CodUtil = @CodUtil)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodUtil", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodUtil", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "UnitCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodUtil", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodUtil", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "UnitCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::C2P_Data.Properties.Settings.Default.C2PConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodUtil, CodPlant, UnitCost FROM dbo.Utilities";
+ 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_Utilities_deleteQuery";
+ 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("@Original_CodUtil", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_Utilities_insertQuery";
+ 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("@CodUtil", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitCost", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_Utilities_updateQuery";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodUtil", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitCost", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodUtil", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_Quotes.UtilitiesDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Quotes.UtilitiesDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Quotes.UtilitiesDataTable dataTable = new DS_Quotes.UtilitiesDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Quotes.UtilitiesDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Quotes dataSet) {
+ return this.Adapter.Update(dataSet, "Utilities");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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(string Original_CodUtil, string Original_CodPlant, decimal Original_UnitCost) {
+ if ((Original_CodUtil == null)) {
+ throw new global::System.ArgumentNullException("Original_CodUtil");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodUtil));
+ }
+ if ((Original_CodPlant == null)) {
+ throw new global::System.ArgumentNullException("Original_CodPlant");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodPlant));
+ }
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_UnitCost));
+ 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", "4.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(string CodUtil, string CodPlant, decimal UnitCost) {
+ if ((CodUtil == null)) {
+ throw new global::System.ArgumentNullException("CodUtil");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodUtil));
+ }
+ if ((CodPlant == null)) {
+ throw new global::System.ArgumentNullException("CodPlant");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodPlant));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(UnitCost));
+ 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", "4.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(string CodUtil, string CodPlant, decimal UnitCost, string Original_CodUtil, string Original_CodPlant, decimal Original_UnitCost) {
+ if ((CodUtil == null)) {
+ throw new global::System.ArgumentNullException("CodUtil");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodUtil));
+ }
+ if ((CodPlant == null)) {
+ throw new global::System.ArgumentNullException("CodPlant");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodPlant));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(UnitCost));
+ if ((Original_CodUtil == null)) {
+ throw new global::System.ArgumentNullException("Original_CodUtil");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodUtil));
+ }
+ if ((Original_CodPlant == null)) {
+ throw new global::System.ArgumentNullException("Original_CodPlant");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodPlant));
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Original_UnitCost));
+ 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", "4.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(decimal UnitCost, string Original_CodUtil, string Original_CodPlant, decimal Original_UnitCost) {
+ return this.Update(Original_CodUtil, Original_CodPlant, UnitCost, Original_CodUtil, Original_CodPlant, Original_UnitCost);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteQuery(string Original_CodUtil, string Original_CodPlant) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_CodUtil == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_CodUtil));
+ }
+ if ((Original_CodPlant == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Original_CodPlant));
+ }
+ 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(string CodUtil, string CodPlant, global::System.Nullable UnitCost) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ if ((CodUtil == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodUtil));
+ }
+ if ((CodPlant == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(CodPlant));
+ }
+ if ((UnitCost.HasValue == true)) {
+ command.Parameters[3].Value = ((decimal)(UnitCost.Value));
+ }
+ else {
+ command.Parameters[3].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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(string CodUtil, string CodPlant, global::System.Nullable UnitCost, string Original_CodUtil, string Original_CodPlant) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((CodUtil == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodUtil));
+ }
+ if ((CodPlant == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(CodPlant));
+ }
+ if ((UnitCost.HasValue == true)) {
+ command.Parameters[3].Value = ((decimal)(UnitCost.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodUtil == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(Original_CodUtil));
+ }
+ if ((Original_CodPlant == null)) {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[5].Value = ((string)(Original_CodPlant));
+ }
+ 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;
+ }
+ }
+
+ ///
+ ///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 Cost2PlantTableAdapter : 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", "4.0.0.0")]
+ public Cost2PlantTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "Cost2Plant";
+ tableMapping.ColumnMappings.Add("CodPlant", "CodPlant");
+ tableMapping.ColumnMappings.Add("ProcessNum", "ProcessNum");
+ tableMapping.ColumnMappings.Add("FC", "FC");
+ tableMapping.ColumnMappings.Add("VC", "VC");
+ tableMapping.ColumnMappings.Add("OH", "OH");
+ tableMapping.ColumnMappings.Add("SC", "SC");
+ tableMapping.ColumnMappings.Add("QuotaPlantStd", "QuotaPlantStd");
+ tableMapping.ColumnMappings.Add("QuotaManStd", "QuotaManStd");
+ 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].[Cost2Plant] WHERE (([CodPlant] = @Original_CodPlant) AND ([ProcessNum] = @Original_ProcessNum) AND ([FC] = @Original_FC) AND ([VC] = @Original_VC) AND ([OH] = @Original_OH) AND ([SC] = @Original_SC) AND ([QuotaPlantStd] = @Original_QuotaPlantStd) AND ([QuotaManStd] = @Original_QuotaManStd))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "FC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "VC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OH", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "OH", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "SC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaPlantStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaPlantStd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaManStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaManStd", 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].[Cost2Plant] ([CodPlant], [ProcessNum], [FC], [VC], [OH], [SC], [QuotaPlantStd], [QuotaManStd]) VALUES (@CodPlant, @ProcessNum, @FC, @VC, @OH, @SC, @QuotaPlantStd, @QuotaManStd);
+SELECT CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd FROM Cost2Plant WHERE (CodPlant = @CodPlant) AND (ProcessNum = @ProcessNum)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "FC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "VC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OH", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "OH", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "SC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaPlantStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaPlantStd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaManStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaManStd", 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].[Cost2Plant] SET [CodPlant] = @CodPlant, [ProcessNum] = @ProcessNum, [FC] = @FC, [VC] = @VC, [OH] = @OH, [SC] = @SC, [QuotaPlantStd] = @QuotaPlantStd, [QuotaManStd] = @QuotaManStd WHERE (([CodPlant] = @Original_CodPlant) AND ([ProcessNum] = @Original_ProcessNum) AND ([FC] = @Original_FC) AND ([VC] = @Original_VC) AND ([OH] = @Original_OH) AND ([SC] = @Original_SC) AND ([QuotaPlantStd] = @Original_QuotaPlantStd) AND ([QuotaManStd] = @Original_QuotaManStd));
+SELECT CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd FROM Cost2Plant WHERE (CodPlant = @CodPlant) AND (ProcessNum = @ProcessNum)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "FC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "VC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OH", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "OH", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "SC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaPlantStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaPlantStd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaManStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaManStd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProcessNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "FC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "VC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OH", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "OH", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "SC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaPlantStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaPlantStd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaManStd", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "QuotaManStd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::C2P_Data.Properties.Settings.Default.C2PConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd FROM dbo." +
+ "Cost2Plant";
+ 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_Cost2Plant_deleteQuery";
+ 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("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessNum", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_Cost2Plant_insertQuery";
+ 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("@CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessNum", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OH", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SC", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaPlantStd", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaManStd", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_Cost2Plant_updateQuery";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessNum", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OH", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SC", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaPlantStd", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaManStd", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 4, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProcessNum", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_Quotes.Cost2PlantDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Quotes.Cost2PlantDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Quotes.Cost2PlantDataTable dataTable = new DS_Quotes.Cost2PlantDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Quotes.Cost2PlantDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Quotes dataSet) {
+ return this.Adapter.Update(dataSet, "Cost2Plant");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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(string Original_CodPlant, string Original_ProcessNum, decimal Original_FC, decimal Original_VC, decimal Original_OH, decimal Original_SC, decimal Original_QuotaPlantStd, decimal Original_QuotaManStd) {
+ if ((Original_CodPlant == null)) {
+ throw new global::System.ArgumentNullException("Original_CodPlant");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodPlant));
+ }
+ if ((Original_ProcessNum == null)) {
+ throw new global::System.ArgumentNullException("Original_ProcessNum");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ProcessNum));
+ }
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_FC));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_VC));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_OH));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_SC));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_QuotaPlantStd));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((decimal)(Original_QuotaManStd));
+ 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", "4.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(string CodPlant, string ProcessNum, decimal FC, decimal VC, decimal OH, decimal SC, decimal QuotaPlantStd, decimal QuotaManStd) {
+ if ((CodPlant == null)) {
+ throw new global::System.ArgumentNullException("CodPlant");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodPlant));
+ }
+ if ((ProcessNum == null)) {
+ throw new global::System.ArgumentNullException("ProcessNum");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProcessNum));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(FC));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(VC));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(OH));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(SC));
+ this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(QuotaPlantStd));
+ this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(QuotaManStd));
+ 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", "4.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(
+ string CodPlant,
+ string ProcessNum,
+ decimal FC,
+ decimal VC,
+ decimal OH,
+ decimal SC,
+ decimal QuotaPlantStd,
+ decimal QuotaManStd,
+ string Original_CodPlant,
+ string Original_ProcessNum,
+ decimal Original_FC,
+ decimal Original_VC,
+ decimal Original_OH,
+ decimal Original_SC,
+ decimal Original_QuotaPlantStd,
+ decimal Original_QuotaManStd) {
+ if ((CodPlant == null)) {
+ throw new global::System.ArgumentNullException("CodPlant");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodPlant));
+ }
+ if ((ProcessNum == null)) {
+ throw new global::System.ArgumentNullException("ProcessNum");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProcessNum));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(FC));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(VC));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(OH));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(SC));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(QuotaPlantStd));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(QuotaManStd));
+ if ((Original_CodPlant == null)) {
+ throw new global::System.ArgumentNullException("Original_CodPlant");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodPlant));
+ }
+ if ((Original_ProcessNum == null)) {
+ throw new global::System.ArgumentNullException("Original_ProcessNum");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_ProcessNum));
+ }
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_FC));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((decimal)(Original_VC));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_OH));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_SC));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Original_QuotaPlantStd));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(Original_QuotaManStd));
+ 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", "4.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(decimal FC, decimal VC, decimal OH, decimal SC, decimal QuotaPlantStd, decimal QuotaManStd, string Original_CodPlant, string Original_ProcessNum, decimal Original_FC, decimal Original_VC, decimal Original_OH, decimal Original_SC, decimal Original_QuotaPlantStd, decimal Original_QuotaManStd) {
+ return this.Update(Original_CodPlant, Original_ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd, Original_CodPlant, Original_ProcessNum, Original_FC, Original_VC, Original_OH, Original_SC, Original_QuotaPlantStd, Original_QuotaManStd);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteQuery(string Original_CodPlant, string Original_ProcessNum) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_CodPlant == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_CodPlant));
+ }
+ if ((Original_ProcessNum == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Original_ProcessNum));
+ }
+ 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(string CodPlant, string ProcessNum, global::System.Nullable FC, global::System.Nullable VC, global::System.Nullable OH, global::System.Nullable SC, global::System.Nullable QuotaPlantStd, global::System.Nullable QuotaManStd) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ if ((CodPlant == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodPlant));
+ }
+ if ((ProcessNum == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(ProcessNum));
+ }
+ if ((FC.HasValue == true)) {
+ command.Parameters[3].Value = ((decimal)(FC.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((VC.HasValue == true)) {
+ command.Parameters[4].Value = ((decimal)(VC.Value));
+ }
+ else {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((OH.HasValue == true)) {
+ command.Parameters[5].Value = ((decimal)(OH.Value));
+ }
+ else {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((SC.HasValue == true)) {
+ command.Parameters[6].Value = ((decimal)(SC.Value));
+ }
+ else {
+ command.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((QuotaPlantStd.HasValue == true)) {
+ command.Parameters[7].Value = ((decimal)(QuotaPlantStd.Value));
+ }
+ else {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((QuotaManStd.HasValue == true)) {
+ command.Parameters[8].Value = ((decimal)(QuotaManStd.Value));
+ }
+ else {
+ command.Parameters[8].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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(string CodPlant, string ProcessNum, global::System.Nullable FC, global::System.Nullable VC, global::System.Nullable OH, global::System.Nullable SC, global::System.Nullable QuotaPlantStd, global::System.Nullable QuotaManStd, string Original_CodPlant, string Original_ProcessNum) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((CodPlant == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodPlant));
+ }
+ if ((ProcessNum == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(ProcessNum));
+ }
+ if ((FC.HasValue == true)) {
+ command.Parameters[3].Value = ((decimal)(FC.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((VC.HasValue == true)) {
+ command.Parameters[4].Value = ((decimal)(VC.Value));
+ }
+ else {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((OH.HasValue == true)) {
+ command.Parameters[5].Value = ((decimal)(OH.Value));
+ }
+ else {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((SC.HasValue == true)) {
+ command.Parameters[6].Value = ((decimal)(SC.Value));
+ }
+ else {
+ command.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((QuotaPlantStd.HasValue == true)) {
+ command.Parameters[7].Value = ((decimal)(QuotaPlantStd.Value));
+ }
+ else {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((QuotaManStd.HasValue == true)) {
+ command.Parameters[8].Value = ((decimal)(QuotaManStd.Value));
+ }
+ else {
+ command.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodPlant == null)) {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[9].Value = ((string)(Original_CodPlant));
+ }
+ if ((Original_ProcessNum == null)) {
+ command.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[10].Value = ((string)(Original_ProcessNum));
+ }
+ 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;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -27579,6 +29687,10 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
private PlantsDetTableAdapter _plantsDetTableAdapter;
+ private UtilitiesTableAdapter _utilitiesTableAdapter;
+
+ private Cost2PlantTableAdapter _cost2PlantTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -27706,6 +29818,34 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 UtilitiesTableAdapter UtilitiesTableAdapter {
+ get {
+ return this._utilitiesTableAdapter;
+ }
+ set {
+ this._utilitiesTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 Cost2PlantTableAdapter Cost2PlantTableAdapter {
+ get {
+ return this._cost2PlantTableAdapter;
+ }
+ set {
+ this._cost2PlantTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -27757,6 +29897,14 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
&& (this._plantsDetTableAdapter.Connection != null))) {
return this._plantsDetTableAdapter.Connection;
}
+ if (((this._utilitiesTableAdapter != null)
+ && (this._utilitiesTableAdapter.Connection != null))) {
+ return this._utilitiesTableAdapter.Connection;
+ }
+ if (((this._cost2PlantTableAdapter != null)
+ && (this._cost2PlantTableAdapter.Connection != null))) {
+ return this._cost2PlantTableAdapter.Connection;
+ }
return null;
}
set {
@@ -27794,6 +29942,12 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
if ((this._plantsDetTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._utilitiesTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._cost2PlantTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -27805,57 +29959,12 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateUpdatedRows(DS_Quotes dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) {
int result = 0;
- if ((this._quoteRMTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._plantsDetTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.PlantsDet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._quoteRMTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._quoteWorkExtTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.QuoteWorkExt.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._quoteWorkExtTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._quoteWorkIntTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.QuoteWorkInt.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._quoteWorkIntTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._quoteParamTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.QuoteParam.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._quoteParamTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._quoteOCTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._quoteOCTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._packagDetTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.PackagDet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._packagDetTableAdapter.Update(updatedRows));
+ result = (result + this._plantsDetTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -27868,12 +29977,75 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._plantsDetTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.PlantsDet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._packagDetTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.PackagDet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._plantsDetTableAdapter.Update(updatedRows));
+ result = (result + this._packagDetTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._quoteOCTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._quoteOCTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._quoteParamTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.QuoteParam.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._quoteParamTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._quoteWorkIntTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.QuoteWorkInt.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._quoteWorkIntTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._quoteWorkExtTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.QuoteWorkExt.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._quoteWorkExtTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._quoteRMTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._quoteRMTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._utilitiesTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Utilities.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._utilitiesTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._cost2PlantTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Cost2Plant.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._cost2PlantTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -27887,51 +30059,11 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateInsertedRows(DS_Quotes dataSet, global::System.Collections.Generic.List allAddedRows) {
int result = 0;
- if ((this._quoteRMTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._plantsDetTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.PlantsDet.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._quoteRMTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._quoteWorkExtTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.QuoteWorkExt.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._quoteWorkExtTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._quoteWorkIntTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.QuoteWorkInt.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._quoteWorkIntTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._quoteParamTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.QuoteParam.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._quoteParamTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._quoteOCTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._quoteOCTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._packagDetTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.PackagDet.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._packagDetTableAdapter.Update(addedRows));
+ result = (result + this._plantsDetTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -27943,11 +30075,67 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
allAddedRows.AddRange(addedRows);
}
}
- if ((this._plantsDetTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.PlantsDet.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._packagDetTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.PackagDet.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._plantsDetTableAdapter.Update(addedRows));
+ result = (result + this._packagDetTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._quoteOCTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._quoteOCTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._quoteParamTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.QuoteParam.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._quoteParamTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._quoteWorkIntTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.QuoteWorkInt.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._quoteWorkIntTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._quoteWorkExtTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.QuoteWorkExt.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._quoteWorkExtTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._quoteRMTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._quoteRMTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._utilitiesTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Utilities.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._utilitiesTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._cost2PlantTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Cost2Plant.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._cost2PlantTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -27961,51 +30149,27 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(DS_Quotes dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._plantsDetTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.PlantsDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._cost2PlantTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Cost2Plant.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._plantsDetTableAdapter.Update(deletedRows));
+ result = (result + this._cost2PlantTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._agentsDetTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AgentsDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._utilitiesTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Utilities.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._agentsDetTableAdapter.Update(deletedRows));
+ result = (result + this._utilitiesTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._packagDetTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.PackagDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._quoteRMTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._packagDetTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._quoteOCTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._quoteOCTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._quoteParamTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.QuoteParam.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._quoteParamTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._quoteWorkIntTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.QuoteWorkInt.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._quoteWorkIntTableAdapter.Update(deletedRows));
+ result = (result + this._quoteRMTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -28017,11 +30181,51 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._quoteRMTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._quoteWorkIntTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.QuoteWorkInt.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._quoteRMTableAdapter.Update(deletedRows));
+ result = (result + this._quoteWorkIntTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._quoteParamTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.QuoteParam.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._quoteParamTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._quoteOCTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._quoteOCTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._packagDetTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.PackagDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._packagDetTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._agentsDetTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AgentsDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._agentsDetTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._plantsDetTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.PlantsDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._plantsDetTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -28104,6 +30308,16 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._utilitiesTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._utilitiesTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._cost2PlantTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._cost2PlantTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -28208,6 +30422,24 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
adaptersWithAcceptChangesDuringUpdate.Add(this._plantsDetTableAdapter.Adapter);
}
}
+ if ((this._utilitiesTableAdapter != null)) {
+ revertConnections.Add(this._utilitiesTableAdapter, this._utilitiesTableAdapter.Connection);
+ this._utilitiesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._utilitiesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._utilitiesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._utilitiesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._utilitiesTableAdapter.Adapter);
+ }
+ }
+ if ((this._cost2PlantTableAdapter != null)) {
+ revertConnections.Add(this._cost2PlantTableAdapter, this._cost2PlantTableAdapter.Connection);
+ this._cost2PlantTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._cost2PlantTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._cost2PlantTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._cost2PlantTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._cost2PlantTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -28298,6 +30530,14 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)";
this._plantsDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._plantsDetTableAdapter]));
this._plantsDetTableAdapter.Transaction = null;
}
+ if ((this._utilitiesTableAdapter != null)) {
+ this._utilitiesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._utilitiesTableAdapter]));
+ this._utilitiesTableAdapter.Transaction = null;
+ }
+ if ((this._cost2PlantTableAdapter != null)) {
+ this._cost2PlantTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cost2PlantTableAdapter]));
+ this._cost2PlantTableAdapter.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/C2P_Data/DS_Quotes.cs b/C2P_Data/DS_Quotes.cs
index a964100..f39d3fa 100644
--- a/C2P_Data/DS_Quotes.cs
+++ b/C2P_Data/DS_Quotes.cs
@@ -1,7 +1,9 @@
-namespace C2P_Data {
-
-
- public partial class DS_Quotes {
+namespace C2P_Data
+{
+
+
+ public partial class DS_Quotes
+ {
}
}
diff --git a/C2P_Data/DS_Quotes.xsd b/C2P_Data/DS_Quotes.xsd
index 536e248..44d7a55 100644
--- a/C2P_Data/DS_Quotes.xsd
+++ b/C2P_Data/DS_Quotes.xsd
@@ -5,12 +5,12 @@
-
+
-
+
SELECT *
@@ -1087,7 +1087,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
SELECT * FROM QuoteFull_S
@@ -1195,7 +1195,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraServCost
@@ -1498,7 +1498,7 @@ FROM RawMatDet
-
+
DELETE FROM [dbo].[PackagDet] WHERE (([CodPackag] = @Original_CodPackag) AND ([PackagDesc] = @Original_PackagDesc) AND ([RMCost] = @Original_RMCost) AND ([RMWeight] = @Original_RMWeight))
@@ -1597,7 +1597,7 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
-
+
DELETE FROM [dbo].[AgentsDet] WHERE (([CodAg] = @Original_CodAg) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ([QuotaProvvAg] = @Original_QuotaProvvAg))
@@ -1696,7 +1696,7 @@ SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM AgentsDet WHERE (CodAg = @C
-
+
DELETE FROM [dbo].[PlantsDet] WHERE (([CodPlant] = @Original_CodPlant) AND ([Descript] = @Original_Descript) AND ([Charge] = @Original_Charge))
@@ -1786,6 +1786,229 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
+
+
+
+
+
+ DELETE FROM [dbo].[Utilities] WHERE (([CodUtil] = @Original_CodUtil) AND ([CodPlant] = @Original_CodPlant) AND ([UnitCost] = @Original_UnitCost))
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Utilities] ([CodUtil], [CodPlant], [UnitCost]) VALUES (@CodUtil, @CodPlant, @UnitCost);
+SELECT CodUtil, CodPlant, UnitCost FROM Utilities WHERE (CodPlant = @CodPlant) AND (CodUtil = @CodUtil)
+
+
+
+
+
+
+
+
+
+ SELECT CodUtil, CodPlant, UnitCost FROM dbo.Utilities
+
+
+
+
+
+ UPDATE [dbo].[Utilities] SET [CodUtil] = @CodUtil, [CodPlant] = @CodPlant, [UnitCost] = @UnitCost WHERE (([CodUtil] = @Original_CodUtil) AND ([CodPlant] = @Original_CodPlant) AND ([UnitCost] = @Original_UnitCost));
+SELECT CodUtil, CodPlant, UnitCost FROM Utilities WHERE (CodPlant = @CodPlant) AND (CodUtil = @CodUtil)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Utilities_deleteQuery
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Utilities_insertQuery
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Utilities_updateQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[Cost2Plant] WHERE (([CodPlant] = @Original_CodPlant) AND ([ProcessNum] = @Original_ProcessNum) AND ([FC] = @Original_FC) AND ([VC] = @Original_VC) AND ([OH] = @Original_OH) AND ([SC] = @Original_SC) AND ([QuotaPlantStd] = @Original_QuotaPlantStd) AND ([QuotaManStd] = @Original_QuotaManStd))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Cost2Plant] ([CodPlant], [ProcessNum], [FC], [VC], [OH], [SC], [QuotaPlantStd], [QuotaManStd]) VALUES (@CodPlant, @ProcessNum, @FC, @VC, @OH, @SC, @QuotaPlantStd, @QuotaManStd);
+SELECT CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd FROM Cost2Plant WHERE (CodPlant = @CodPlant) AND (ProcessNum = @ProcessNum)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd FROM dbo.Cost2Plant
+
+
+
+
+
+ UPDATE [dbo].[Cost2Plant] SET [CodPlant] = @CodPlant, [ProcessNum] = @ProcessNum, [FC] = @FC, [VC] = @VC, [OH] = @OH, [SC] = @SC, [QuotaPlantStd] = @QuotaPlantStd, [QuotaManStd] = @QuotaManStd WHERE (([CodPlant] = @Original_CodPlant) AND ([ProcessNum] = @Original_ProcessNum) AND ([FC] = @Original_FC) AND ([VC] = @Original_VC) AND ([OH] = @Original_OH) AND ([SC] = @Original_SC) AND ([QuotaPlantStd] = @Original_QuotaPlantStd) AND ([QuotaManStd] = @Original_QuotaManStd));
+SELECT CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd FROM Cost2Plant WHERE (CodPlant = @CodPlant) AND (ProcessNum = @ProcessNum)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Cost2Plant_deleteQuery
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Cost2Plant_insertQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Cost2Plant_updateQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1794,7 +2017,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -1925,7 +2148,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -1961,7 +2184,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -1986,7 +2209,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -2066,7 +2289,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -2103,7 +2326,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -2173,7 +2396,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -2456,7 +2679,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -2723,7 +2946,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -2744,7 +2967,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -2817,14 +3040,14 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
-
+
@@ -3142,14 +3365,14 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
-
+
@@ -3171,7 +3394,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -3199,7 +3422,7 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
-
+
@@ -3220,6 +3443,53 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3291,14 +3561,25 @@ SELECT CodPlant, Descript, Charge FROM PlantsDet WHERE (CodPlant = @CodPlant)
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/C2P_Data/DS_Quotes.xss b/C2P_Data/DS_Quotes.xss
index a56def0..843034b 100644
--- a/C2P_Data/DS_Quotes.xss
+++ b/C2P_Data/DS_Quotes.xss
@@ -4,27 +4,29 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
462
@@ -36,7 +38,7 @@
-
+
462
@@ -48,7 +50,7 @@
-
+
645
@@ -64,7 +66,7 @@
-
+
559
@@ -76,19 +78,27 @@
-