diff --git a/C2P/WebUserControls/mod_PackageMan.ascx b/C2P/WebUserControls/mod_PackageMan.ascx index 3c3b4b1..dfdffc1 100644 --- a/C2P/WebUserControls/mod_PackageMan.ascx +++ b/C2P/WebUserControls/mod_PackageMan.ascx @@ -1,35 +1,32 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_PackageMan.ascx.cs" Inherits="C2P.WebUserControls.mod_PackageMan" %>
- <%: traduci("btnNewRawMat") %> + <%: traduci("btnNewPackage") %>
- + - + - + - - - - - - - - - - - + + + + + + + + - + @@ -38,26 +35,25 @@ - + - + - + + + + - - - - - - - - - + + + + +
diff --git a/C2P/WebUserControls/mod_PackageMan.ascx.cs b/C2P/WebUserControls/mod_PackageMan.ascx.cs index bf5733a..46616b2 100644 --- a/C2P/WebUserControls/mod_PackageMan.ascx.cs +++ b/C2P/WebUserControls/mod_PackageMan.ascx.cs @@ -22,7 +22,6 @@ namespace C2P.WebUserControls txtNewVal.Text = ""; } } - /// /// inserisco nel db il nuovo lemma... /// @@ -32,24 +31,6 @@ namespace C2P.WebUserControls { creaNuovo(); } - /// - /// creazione nuovo lemma - /// - private void creaNuovo() - { - if (txtNewVal.Text != "") - { - // inserisco - DtProxy.man.taRMD.insertQuery(txtNewVal.Text.Trim()); - // metto in campo ricerca... - memLayer.ML.setSessionVal("valoreCercato", txtNewVal.Text.Trim()); - // svuoto campo text - txtNewVal.Text = ""; - // riparto... - Response.Redirect(user_std.pagCorrente); - } - } - /// /// dimensione pagina grid view /// @@ -103,7 +84,6 @@ namespace C2P.WebUserControls // seleziono la riga corrente... grView.SelectedIndex = e.NewEditIndex; } - /// /// resetta la selezione dei valori in caso di modifiche su altri controlli /// @@ -112,5 +92,24 @@ namespace C2P.WebUserControls grView.SelectedIndex = -1; grView.DataBind(); } + + + /// + /// creazione nuovo lemma + /// + private void creaNuovo() + { + if (txtNewVal.Text != "") + { + // inserisco + DtProxy.man.taPD.insertQuery(txtNewVal.Text.Trim(), txtNewVal.Text.Trim(), 0, 1); + // metto in campo ricerca... + memLayer.ML.setSessionVal("valoreCercato", txtNewVal.Text.Trim()); + // svuoto campo text + txtNewVal.Text = ""; + // riparto... + Response.Redirect(user_std.pagCorrente); + } + } } } \ No newline at end of file diff --git a/C2P/WebUserControls/mod_RawMatMan.ascx b/C2P/WebUserControls/mod_RawMatMan.ascx index 9efe39f..e307d62 100644 --- a/C2P/WebUserControls/mod_RawMatMan.ascx +++ b/C2P/WebUserControls/mod_RawMatMan.ascx @@ -7,7 +7,7 @@
- + @@ -25,8 +25,10 @@ - + + + diff --git a/C2P/WebUserControls/mod_RawMatMan.ascx.cs b/C2P/WebUserControls/mod_RawMatMan.ascx.cs index 0cb315f..5ea2d50 100644 --- a/C2P/WebUserControls/mod_RawMatMan.ascx.cs +++ b/C2P/WebUserControls/mod_RawMatMan.ascx.cs @@ -21,7 +21,6 @@ namespace C2P.WebUserControls txtNewVal.Text = ""; } } - /// /// inserisco nel db il nuovo lemma... /// @@ -31,24 +30,6 @@ namespace C2P.WebUserControls { creaNuovo(); } - /// - /// creazione nuovo lemma - /// - private void creaNuovo() - { - if (txtNewVal.Text != "") - { - // inserisco - DtProxy.man.taRMD.insertQuery(txtNewVal.Text.Trim()); - // metto in campo ricerca... - memLayer.ML.setSessionVal("valoreCercato", txtNewVal.Text.Trim()); - // svuoto campo text - txtNewVal.Text = ""; - // riparto... - Response.Redirect(user_std.pagCorrente); - } - } - /// /// dimensione pagina grid view /// @@ -101,8 +82,7 @@ namespace C2P.WebUserControls { // seleziono la riga corrente... grView.SelectedIndex = e.NewEditIndex; - } - + } /// /// resetta la selezione dei valori in caso di modifiche su altri controlli /// @@ -111,6 +91,23 @@ namespace C2P.WebUserControls grView.SelectedIndex = -1; grView.DataBind(); } - + + /// + /// creazione nuovo lemma + /// + private void creaNuovo() + { + if (txtNewVal.Text != "") + { + // inserisco + DtProxy.man.taRMD.insertQuery(txtNewVal.Text.Trim()); + // metto in campo ricerca... + memLayer.ML.setSessionVal("valoreCercato", txtNewVal.Text.Trim()); + // svuoto campo text + txtNewVal.Text = ""; + // riparto... + Response.Redirect(user_std.pagCorrente); + } + } } } \ No newline at end of file diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index 6202d78..6742408 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 404546b..8b6be87 100644 Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ diff --git a/C2P/bin/SteamWare.dll b/C2P/bin/SteamWare.dll index ebfc6dd..1eb05a0 100644 Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ diff --git a/C2P_Data/App.Config b/C2P_Data/App.Config index 1d5feeb..c51b1f9 100644 --- a/C2P_Data/App.Config +++ b/C2P_Data/App.Config @@ -5,7 +5,9 @@ - + diff --git a/C2P_Data/DS_Quotes.Designer.cs b/C2P_Data/DS_Quotes.Designer.cs index 6bab91d..6739f15 100644 --- a/C2P_Data/DS_Quotes.Designer.cs +++ b/C2P_Data/DS_Quotes.Designer.cs @@ -50,6 +50,8 @@ namespace C2P_Data { private stp_chekLastRevQuoteDataTable tablestp_chekLastRevQuote; + private PackagDetDataTable tablePackagDet; + private global::System.Data.DataRelation relationFK_QuoteRM_QuoteList; private global::System.Data.DataRelation relationFK_QuoteWorkExt_QuoteList; @@ -127,6 +129,9 @@ namespace C2P_Data { if ((ds.Tables["stp_chekLastRevQuote"] != null)) { base.Tables.Add(new stp_chekLastRevQuoteDataTable(ds.Tables["stp_chekLastRevQuote"])); } + if ((ds.Tables["PackagDet"] != null)) { + base.Tables.Add(new PackagDetDataTable(ds.Tables["PackagDet"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -275,6 +280,16 @@ 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 PackagDetDataTable PackagDet { + get { + return this.tablePackagDet; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -381,6 +396,9 @@ namespace C2P_Data { if ((ds.Tables["stp_chekLastRevQuote"] != null)) { base.Tables.Add(new stp_chekLastRevQuoteDataTable(ds.Tables["stp_chekLastRevQuote"])); } + if ((ds.Tables["PackagDet"] != null)) { + base.Tables.Add(new PackagDetDataTable(ds.Tables["PackagDet"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -492,6 +510,12 @@ namespace C2P_Data { this.tablestp_chekLastRevQuote.InitVars(); } } + this.tablePackagDet = ((PackagDetDataTable)(base.Tables["PackagDet"])); + if ((initTable == true)) { + if ((this.tablePackagDet != null)) { + this.tablePackagDet.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"]; @@ -533,6 +557,8 @@ namespace C2P_Data { base.Tables.Add(this.tableprtQuote); this.tablestp_chekLastRevQuote = new stp_chekLastRevQuoteDataTable(); base.Tables.Add(this.tablestp_chekLastRevQuote); + this.tablePackagDet = new PackagDetDataTable(); + base.Tables.Add(this.tablePackagDet); this.relationFK_QuoteRM_QuoteList = new global::System.Data.DataRelation("FK_QuoteRM_QuoteList", new global::System.Data.DataColumn[] { this.tableQuoteList.QuoteTypeColumn, this.tableQuoteList.CodQuoteColumn, @@ -653,6 +679,12 @@ namespace C2P_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializePackagDet() { + 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) { @@ -747,6 +779,9 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void stp_chekLastRevQuoteRowChangeEventHandler(object sender, stp_chekLastRevQuoteRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void PackagDetRowChangeEventHandler(object sender, PackagDetRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -10881,6 +10916,311 @@ namespace C2P_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class PackagDetDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodPackag; + + private global::System.Data.DataColumn columnPackagDesc; + + private global::System.Data.DataColumn columnRMCost; + + private global::System.Data.DataColumn columnRMWeight; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PackagDetDataTable() { + this.TableName = "PackagDet"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal PackagDetDataTable(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 PackagDetDataTable(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 CodPackagColumn { + get { + return this.columnCodPackag; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PackagDescColumn { + get { + return this.columnPackagDesc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RMCostColumn { + get { + return this.columnRMCost; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RMWeightColumn { + get { + return this.columnRMWeight; + } + } + + [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 PackagDetRow this[int index] { + get { + return ((PackagDetRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PackagDetRowChangeEventHandler PackagDetRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PackagDetRowChangeEventHandler PackagDetRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PackagDetRowChangeEventHandler PackagDetRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PackagDetRowChangeEventHandler PackagDetRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddPackagDetRow(PackagDetRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PackagDetRow AddPackagDetRow(string CodPackag, string PackagDesc, decimal RMCost, decimal RMWeight) { + PackagDetRow rowPackagDetRow = ((PackagDetRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodPackag, + PackagDesc, + RMCost, + RMWeight}; + rowPackagDetRow.ItemArray = columnValuesArray; + this.Rows.Add(rowPackagDetRow); + return rowPackagDetRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PackagDetRow FindByCodPackag(string CodPackag) { + return ((PackagDetRow)(this.Rows.Find(new object[] { + CodPackag}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + PackagDetDataTable cln = ((PackagDetDataTable)(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 PackagDetDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnCodPackag = base.Columns["CodPackag"]; + this.columnPackagDesc = base.Columns["PackagDesc"]; + this.columnRMCost = base.Columns["RMCost"]; + this.columnRMWeight = base.Columns["RMWeight"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnCodPackag = new global::System.Data.DataColumn("CodPackag", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodPackag); + this.columnPackagDesc = new global::System.Data.DataColumn("PackagDesc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPackagDesc); + this.columnRMCost = new global::System.Data.DataColumn("RMCost", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRMCost); + this.columnRMWeight = new global::System.Data.DataColumn("RMWeight", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRMWeight); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodPackag}, true)); + this.columnCodPackag.AllowDBNull = false; + this.columnCodPackag.Unique = true; + this.columnCodPackag.MaxLength = 50; + this.columnPackagDesc.AllowDBNull = false; + this.columnPackagDesc.MaxLength = 250; + this.columnRMCost.AllowDBNull = false; + this.columnRMWeight.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PackagDetRow NewPackagDetRow() { + return ((PackagDetRow)(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 PackagDetRow(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(PackagDetRow); + } + + [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.PackagDetRowChanged != null)) { + this.PackagDetRowChanged(this, new PackagDetRowChangeEvent(((PackagDetRow)(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.PackagDetRowChanging != null)) { + this.PackagDetRowChanging(this, new PackagDetRowChangeEvent(((PackagDetRow)(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.PackagDetRowDeleted != null)) { + this.PackagDetRowDeleted(this, new PackagDetRowChangeEvent(((PackagDetRow)(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.PackagDetRowDeleting != null)) { + this.PackagDetRowDeleting(this, new PackagDetRowChangeEvent(((PackagDetRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemovePackagDetRow(PackagDetRow 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 = "PackagDetDataTable"; + 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. /// @@ -17931,6 +18271,65 @@ namespace C2P_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class PackagDetRow : global::System.Data.DataRow { + + private PackagDetDataTable tablePackagDet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal PackagDetRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablePackagDet = ((PackagDetDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodPackag { + get { + return ((string)(this[this.tablePackagDet.CodPackagColumn])); + } + set { + this[this.tablePackagDet.CodPackagColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string PackagDesc { + get { + return ((string)(this[this.tablePackagDet.PackagDescColumn])); + } + set { + this[this.tablePackagDet.PackagDescColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal RMCost { + get { + return ((decimal)(this[this.tablePackagDet.RMCostColumn])); + } + set { + this[this.tablePackagDet.RMCostColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal RMWeight { + get { + return ((decimal)(this[this.tablePackagDet.RMWeightColumn])); + } + set { + this[this.tablePackagDet.RMWeightColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -18372,6 +18771,40 @@ namespace C2P_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class PackagDetRowChangeEvent : global::System.EventArgs { + + private PackagDetRow 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 PackagDetRowChangeEvent(PackagDetRow 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 PackagDetRow 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 { @@ -24735,6 +25168,519 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas } } + /// + ///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 PackagDetTableAdapter : 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 PackagDetTableAdapter() { + 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 = "PackagDet"; + tableMapping.ColumnMappings.Add("CodPackag", "CodPackag"); + tableMapping.ColumnMappings.Add("PackagDesc", "PackagDesc"); + tableMapping.ColumnMappings.Add("RMCost", "RMCost"); + tableMapping.ColumnMappings.Add("RMWeight", "RMWeight"); + 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].[PackagDet] WHERE (([CodPackag] = @Original_CodPackag) AND ([Pa" + + "ckagDesc] = @Original_PackagDesc) AND ([RMCost] = @Original_RMCost) AND ([RMWeig" + + "ht] = @Original_RMWeight))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PackagDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackagDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RMCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "RMCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "RMWeight", 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].[PackagDet] ([CodPackag], [PackagDesc], [RMCost], [RMWeight]) V" + + "ALUES (@CodPackag, @PackagDesc, @RMCost, @RMWeight);\r\nSELECT CodPackag, PackagDe" + + "sc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag = @CodPackag)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackagDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackagDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RMCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "RMCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "RMWeight", 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].[PackagDet] SET [CodPackag] = @CodPackag, [PackagDesc] = @PackagDesc, [RMCost] = @RMCost, [RMWeight] = @RMWeight WHERE (([CodPackag] = @Original_CodPackag) AND ([PackagDesc] = @Original_PackagDesc) AND ([RMCost] = @Original_RMCost) AND ([RMWeight] = @Original_RMWeight)); +SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag = @CodPackag)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackagDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackagDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RMCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "RMCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "RMWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PackagDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackagDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RMCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "RMCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 4, "RMWeight", 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 CodPackag, PackagDesc, RMCost, RMWeight FROM dbo.PackagDet"; + 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_PD_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_CodPackag", 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_PD_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("@CodPackag", 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("@PackagDesc", global::System.Data.SqlDbType.NVarChar, 250, 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("@RMCost", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RMWeight", 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_PD_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("@CodPackag", 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("@PackagDesc", global::System.Data.SqlDbType.NVarChar, 250, 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("@RMCost", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RMWeight", 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_CodPackag", 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.PackagDetDataTable 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.PackagDetDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Quotes.PackagDetDataTable dataTable = new DS_Quotes.PackagDetDataTable(); + 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.PackagDetDataTable 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, "PackagDet"); + } + + [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_CodPackag, string Original_PackagDesc, decimal Original_RMCost, decimal Original_RMWeight) { + if ((Original_CodPackag == null)) { + throw new global::System.ArgumentNullException("Original_CodPackag"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodPackag)); + } + if ((Original_PackagDesc == null)) { + throw new global::System.ArgumentNullException("Original_PackagDesc"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_PackagDesc)); + } + this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_RMCost)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_RMWeight)); + 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 CodPackag, string PackagDesc, decimal RMCost, decimal RMWeight) { + if ((CodPackag == null)) { + throw new global::System.ArgumentNullException("CodPackag"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodPackag)); + } + if ((PackagDesc == null)) { + throw new global::System.ArgumentNullException("PackagDesc"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PackagDesc)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(RMCost)); + this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(RMWeight)); + 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 CodPackag, string PackagDesc, decimal RMCost, decimal RMWeight, string Original_CodPackag, string Original_PackagDesc, decimal Original_RMCost, decimal Original_RMWeight) { + if ((CodPackag == null)) { + throw new global::System.ArgumentNullException("CodPackag"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodPackag)); + } + if ((PackagDesc == null)) { + throw new global::System.ArgumentNullException("PackagDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PackagDesc)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(RMCost)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(RMWeight)); + if ((Original_CodPackag == null)) { + throw new global::System.ArgumentNullException("Original_CodPackag"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodPackag)); + } + if ((Original_PackagDesc == null)) { + throw new global::System.ArgumentNullException("Original_PackagDesc"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_PackagDesc)); + } + this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_RMCost)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_RMWeight)); + 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(string PackagDesc, decimal RMCost, decimal RMWeight, string Original_CodPackag, string Original_PackagDesc, decimal Original_RMCost, decimal Original_RMWeight) { + return this.Update(Original_CodPackag, PackagDesc, RMCost, RMWeight, Original_CodPackag, Original_PackagDesc, Original_RMCost, Original_RMWeight); + } + + [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, false)] + public virtual int deleteQuery(string Original_CodPackag) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_CodPackag == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodPackag)); + } + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] + public virtual int insertQuery(string CodPackag, string PackagDesc, global::System.Nullable RMCost, global::System.Nullable RMWeight) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((CodPackag == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodPackag)); + } + if ((PackagDesc == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(PackagDesc)); + } + if ((RMCost.HasValue == true)) { + command.Parameters[3].Value = ((decimal)(RMCost.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((RMWeight.HasValue == true)) { + command.Parameters[4].Value = ((decimal)(RMWeight.Value)); + } + else { + command.Parameters[4].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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int updateQuery(string CodPackag, string PackagDesc, global::System.Nullable RMCost, global::System.Nullable RMWeight, string Original_CodPackag) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((CodPackag == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodPackag)); + } + if ((PackagDesc == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(PackagDesc)); + } + if ((RMCost.HasValue == true)) { + command.Parameters[3].Value = ((decimal)(RMCost.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((RMWeight.HasValue == true)) { + command.Parameters[4].Value = ((decimal)(RMWeight.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_CodPackag == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(Original_CodPackag)); + } + 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 /// @@ -24757,6 +25703,8 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas private QuoteOCTableAdapter _quoteOCTableAdapter; + private PackagDetTableAdapter _packagDetTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -24842,6 +25790,20 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas } } + [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 PackagDetTableAdapter PackagDetTableAdapter { + get { + return this._packagDetTableAdapter; + } + set { + this._packagDetTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -24881,6 +25843,10 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas && (this._quoteOCTableAdapter.Connection != null))) { return this._quoteOCTableAdapter.Connection; } + if (((this._packagDetTableAdapter != null) + && (this._packagDetTableAdapter.Connection != null))) { + return this._packagDetTableAdapter.Connection; + } return null; } set { @@ -24909,6 +25875,9 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas if ((this._quoteOCTableAdapter != null)) { count = (count + 1); } + if ((this._packagDetTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -24965,6 +25934,15 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas 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)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -25015,6 +25993,14 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas 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)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -25025,6 +26011,14 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas [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._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._quoteOCTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -25129,6 +26123,11 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._packagDetTableAdapter != null) + && (this.MatchTableAdapterConnection(this._packagDetTableAdapter.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" + @@ -25206,6 +26205,15 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas adaptersWithAcceptChangesDuringUpdate.Add(this._quoteOCTableAdapter.Adapter); } } + if ((this._packagDetTableAdapter != null)) { + revertConnections.Add(this._packagDetTableAdapter, this._packagDetTableAdapter.Connection); + this._packagDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._packagDetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._packagDetTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._packagDetTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._packagDetTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -25284,6 +26292,10 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas this._quoteOCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._quoteOCTableAdapter])); this._quoteOCTableAdapter.Transaction = null; } + if ((this._packagDetTableAdapter != null)) { + this._packagDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._packagDetTableAdapter])); + this._packagDetTableAdapter.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.xsd b/C2P_Data/DS_Quotes.xsd index 6a39713..5e8fb4b 100644 --- a/C2P_Data/DS_Quotes.xsd +++ b/C2P_Data/DS_Quotes.xsd @@ -2,9 +2,10 @@ - + + @@ -1494,6 +1495,105 @@ FROM RawMatDet + + + + + + DELETE FROM [dbo].[PackagDet] WHERE (([CodPackag] = @Original_CodPackag) AND ([PackagDesc] = @Original_PackagDesc) AND ([RMCost] = @Original_RMCost) AND ([RMWeight] = @Original_RMWeight)) + + + + + + + + + + + INSERT INTO [dbo].[PackagDet] ([CodPackag], [PackagDesc], [RMCost], [RMWeight]) VALUES (@CodPackag, @PackagDesc, @RMCost, @RMWeight); +SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag = @CodPackag) + + + + + + + + + + + SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM dbo.PackagDet + + + + + + UPDATE [dbo].[PackagDet] SET [CodPackag] = @CodPackag, [PackagDesc] = @PackagDesc, [RMCost] = @RMCost, [RMWeight] = @RMWeight WHERE (([CodPackag] = @Original_CodPackag) AND ([PackagDesc] = @Original_PackagDesc) AND ([RMCost] = @Original_RMCost) AND ([RMWeight] = @Original_RMWeight)); +SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag = @CodPackag) + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_PD_deleteQuery + + + + + + + + + + + dbo.stp_PD_insertQuery + + + + + + + + + + + + + + dbo.stp_PD_updateQuery + + + + + + + + + + + + + @@ -2857,6 +2957,28 @@ FROM RawMatDet + + + + + + + + + + + + + + + + + + + + + + @@ -2916,6 +3038,10 @@ FROM RawMatDet + + + + diff --git a/C2P_Data/DS_Quotes.xss b/C2P_Data/DS_Quotes.xss index 72a61f8..88d9bb1 100644 --- a/C2P_Data/DS_Quotes.xss +++ b/C2P_Data/DS_Quotes.xss @@ -4,24 +4,25 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - + + + + + + + + + + + + + + - + 462 @@ -33,7 +34,7 @@ - + 462 @@ -45,7 +46,7 @@ - + 645 @@ -61,7 +62,7 @@ - + 559 @@ -73,7 +74,7 @@ - + 745 diff --git a/C2P_Data/DtProxy.cs b/C2P_Data/DtProxy.cs index 0b431af..3004810 100644 --- a/C2P_Data/DtProxy.cs +++ b/C2P_Data/DtProxy.cs @@ -57,6 +57,7 @@ namespace C2P_Data /// protected virtual void avvioTableAdapters() { + taPD = new DS_QuotesTableAdapters.PackagDetTableAdapter(); taQL = new DS_QuotesTableAdapters.QuoteListTableAdapter(); taQFQ = new DS_QuotesTableAdapters.QuoteFull_QTableAdapter(); taQRM = new DS_QuotesTableAdapters.QuoteRMTableAdapter(); @@ -84,6 +85,7 @@ namespace C2P_Data { string connStr = memLayer.ML.confReadString("C2PConnectionString"); // connections del db vocabolario + taPD.Connection.ConnectionString = connStr; taQL.Connection.ConnectionString = connStr; taQFQ.Connection.ConnectionString = connStr; taQRM.Connection.ConnectionString = connStr; @@ -109,6 +111,7 @@ namespace C2P_Data #region area public + public DS_QuotesTableAdapters.PackagDetTableAdapter taPD; public DS_QuotesTableAdapters.QuoteListTableAdapter taQL; public DS_QuotesTableAdapters.QuoteFull_QTableAdapter taQFQ; public DS_QuotesTableAdapters.QuoteRMTableAdapter taQRM; diff --git a/C2P_Data/Properties/Settings.Designer.cs b/C2P_Data/Properties/Settings.Designer.cs index 8146f06..9c91981 100644 --- a/C2P_Data/Properties/Settings.Designer.cs +++ b/C2P_Data/Properties/Settings.Designer.cs @@ -34,5 +34,16 @@ namespace C2P_Data.Properties { return ((string)(this["C2PConnectionString"])); } } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=C2P_Data;Persist Security Info" + + "=True;User ID=sa;Password=keyhammer")] + public string C2P_DataConnectionString { + get { + return ((string)(this["C2P_DataConnectionString"])); + } + } } } diff --git a/C2P_Data/Properties/Settings.settings b/C2P_Data/Properties/Settings.settings index f6b5b8c..0453696 100644 --- a/C2P_Data/Properties/Settings.settings +++ b/C2P_Data/Properties/Settings.settings @@ -10,5 +10,13 @@ </SerializableConnectionString> Data Source=10.74.82.217\SQL2008R2;Initial Catalog=C2P;Persist Security Info=True;User ID=sa;Password=keyhammer;MultipleActiveResultSets=True;Application Name=EntityFramework + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <ConnectionString>Data Source=10.74.82.217\SQL2008R2;Initial Catalog=C2P_Data;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString> + <ProviderName>System.Data.SqlClient</ProviderName> +</SerializableConnectionString> + Data Source=10.74.82.217\SQL2008R2;Initial Catalog=C2P_Data;Persist Security Info=True;User ID=sa;Password=keyhammer + \ No newline at end of file diff --git a/C2P_Report/bin/C2P_Data.dll b/C2P_Report/bin/C2P_Data.dll index 404546b..8b6be87 100644 Binary files a/C2P_Report/bin/C2P_Data.dll and b/C2P_Report/bin/C2P_Data.dll differ diff --git a/C2P_Report/bin/C2P_Report.dll b/C2P_Report/bin/C2P_Report.dll index 9b8671e..c9a58cf 100644 Binary files a/C2P_Report/bin/C2P_Report.dll and b/C2P_Report/bin/C2P_Report.dll differ diff --git a/C2P_Report/bin/SteamWare.dll b/C2P_Report/bin/SteamWare.dll index ebfc6dd..1eb05a0 100644 Binary files a/C2P_Report/bin/SteamWare.dll and b/C2P_Report/bin/SteamWare.dll differ