diff --git a/C2P/ExistingProductOffer.aspx b/C2P/ExistingProductOffer.aspx index 1d5e3b6..8672af6 100644 --- a/C2P/ExistingProductOffer.aspx +++ b/C2P/ExistingProductOffer.aspx @@ -5,20 +5,44 @@ - fare clonando pagina QUOTE - - <%-- <%: traduci("CheckStd") %>--%> -
-
- Attenzione!
- con questa selezione -
-
- select pl.RawMat, CodItem, count(*) -from ProductionLog pl inner join DiesDet dd on pl.CodDies = dd.CodDies -where dd.CodItem = '1AN00001' -group by pl.RawMat, CodItem -
-
- cercare se ci siano dati x poter generare un offerta standard o se piuttosto si debba x forza passare al simulatore +
+
+
+

<%: traduci("ProductCode") %>

+
+
+
+
+ + +
+
+ +
+ + +
+ <%: traduci("RawMat") %> + +
+ +
+
+ <%: traduci("ExistingProduct")%> + <%: traduci("NewProduct")%> +
+
+
+
+
+ + + + + +
+
+
+
+
diff --git a/C2P/ExistingProductOffer.aspx.cs b/C2P/ExistingProductOffer.aspx.cs index 77fe3f1..1365267 100644 --- a/C2P/ExistingProductOffer.aspx.cs +++ b/C2P/ExistingProductOffer.aspx.cs @@ -7,10 +7,36 @@ using System.Web.UI.WebControls; namespace C2P { - public partial class ExistingProductOffer : System.Web.UI.Page + public partial class ExistingProductOffer : SteamWare.UserPage { protected void Page_Load(object sender, EventArgs e) { } + /// + /// url x rimbalzo offerta + /// + /// indica se nuovo prodotto o esistente + /// codice lega + /// + public string getUrl(object _isNew, object _rawMat) + { + string answ = ""; + bool isNew = false; + try + { + isNew = Convert.ToBoolean(_isNew); + } + catch + { } + if (isNew) + { + answ = string.Format("~/NewProductOffer?RawMat={0}&CodItem={1}", _rawMat, ddlProduct.SelectedValue); + } + else + { + answ = string.Format("~/Quote?RawMat={0}&CodItem={1}", _rawMat, ddlProduct.SelectedValue); + } + return answ; + } } } \ No newline at end of file diff --git a/C2P/ExistingProductOffer.aspx.designer.cs b/C2P/ExistingProductOffer.aspx.designer.cs index 22f9c53..039fe76 100644 --- a/C2P/ExistingProductOffer.aspx.designer.cs +++ b/C2P/ExistingProductOffer.aspx.designer.cs @@ -11,5 +11,50 @@ namespace C2P { public partial class ExistingProductOffer { + + /// + /// ddlProduct control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlProduct; + + /// + /// odsProducts control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsProducts; + + /// + /// lstView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ListView lstView; + + /// + /// repView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Repeater repView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; } } diff --git a/C2P/Web.config b/C2P/Web.config index 1184ce1..c4a5785 100644 --- a/C2P/Web.config +++ b/C2P/Web.config @@ -51,9 +51,9 @@ - + diff --git a/C2P/WebUserControls/mod_QuoteDet.ascx b/C2P/WebUserControls/mod_QuoteDet.ascx index 668c676..dcf7201 100644 --- a/C2P/WebUserControls/mod_QuoteDet.ascx +++ b/C2P/WebUserControls/mod_QuoteDet.ascx @@ -26,30 +26,16 @@ . - - - - - -
+
<%--
--%>
-  <%: traduci("HEADER") %> -
-
-  <%: traduci("COSTS") %> -
-
-  <%: traduci("EXTRUS-PARAM") %> -
-
-  <%: traduci("PACK-PARAM") %> -
-
- <%--
--%>
+  <%: traduci("HEADER") %>
+  <%: traduci("COSTS") %>
+  <%: traduci("EXTRUS-PARAM") %>
+  <%: traduci("PACK-PARAM") %>
<%--
--%>
@@ -57,15 +43,11 @@
-
-  <%: traduci("QUOTATION") %> -
-
-
+  <%: traduci("QUOTATION") %>
@@ -73,26 +55,11 @@
-  <%: traduci("nextIdxQState-01") %> -
-
-
+  <%: traduci("nextIdxQState-01") %>
-  <%: traduci("nextIdxQState-00") %> -
-
-  <%: traduci("nextIdxQState-02") %> -
-
-
+  <%: traduci("nextIdxQState-00") %>
+  <%: traduci("nextIdxQState-02") %>
-  <%: traduci("nextIdxQState-03") %> -
-
-
+  <%: traduci("nextIdxQState-03") %>
-  <%: traduci("createNewRev") %> -
-
- - +  <%: traduci("createNewRev") %> \ No newline at end of file diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index a8bd6fc..dfc3b4c 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 2347d6f..28006ea 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 048732e..f04be58 100644 Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ diff --git a/C2P_Data/C2P_Data.csproj b/C2P_Data/C2P_Data.csproj index 26e794e..234f1ed 100644 --- a/C2P_Data/C2P_Data.csproj +++ b/C2P_Data/C2P_Data.csproj @@ -52,6 +52,9 @@ True DS_Quotes.xsd + + DS_Utility.xsd + True True diff --git a/C2P_Data/DS_Utility.cs b/C2P_Data/DS_Utility.cs new file mode 100644 index 0000000..0398b98 --- /dev/null +++ b/C2P_Data/DS_Utility.cs @@ -0,0 +1,9 @@ +namespace C2P_Data +{ +} +namespace C2P_Data { + + + public partial class DS_Utility { + } +} diff --git a/C2P_Data/DS_Utility.xsd b/C2P_Data/DS_Utility.xsd index d183042..81f4add 100644 --- a/C2P_Data/DS_Utility.xsd +++ b/C2P_Data/DS_Utility.xsd @@ -228,6 +228,28 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke + + + + + + dbo.stp_checkOffers4Item + + + + + + + + + + + + + + + + @@ -366,6 +388,27 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke + + + + + + + + + + + + + + + + + + + + + @@ -395,5 +438,9 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke + + + + \ No newline at end of file diff --git a/C2P_Data/DS_Utility.xss b/C2P_Data/DS_Utility.xss index 3ef1243..5f42b1e 100644 --- a/C2P_Data/DS_Utility.xss +++ b/C2P_Data/DS_Utility.xss @@ -4,9 +4,15 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + + + + + + + \ No newline at end of file diff --git a/C2P_Data/DS_Utility1.Designer.cs b/C2P_Data/DS_Utility1.Designer.cs index 08e5d88..f8ef52d 100644 --- a/C2P_Data/DS_Utility1.Designer.cs +++ b/C2P_Data/DS_Utility1.Designer.cs @@ -36,6 +36,8 @@ namespace C2P_Data { private ReportPrintTicketDataTable tableReportPrintTicket; + private Offers4ItemDataTable tableOffers4Item; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -82,6 +84,9 @@ namespace C2P_Data { if ((ds.Tables["ReportPrintTicket"] != null)) { base.Tables.Add(new ReportPrintTicketDataTable(ds.Tables["ReportPrintTicket"])); } + if ((ds.Tables["Offers4Item"] != null)) { + base.Tables.Add(new Offers4ItemDataTable(ds.Tables["Offers4Item"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -160,6 +165,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 Offers4ItemDataTable Offers4Item { + get { + return this.tableOffers4Item; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -245,6 +260,9 @@ namespace C2P_Data { if ((ds.Tables["ReportPrintTicket"] != null)) { base.Tables.Add(new ReportPrintTicketDataTable(ds.Tables["ReportPrintTicket"])); } + if ((ds.Tables["Offers4Item"] != null)) { + base.Tables.Add(new Offers4ItemDataTable(ds.Tables["Offers4Item"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -314,6 +332,12 @@ namespace C2P_Data { this.tableReportPrintTicket.InitVars(); } } + this.tableOffers4Item = ((Offers4ItemDataTable)(base.Tables["Offers4Item"])); + if ((initTable == true)) { + if ((this.tableOffers4Item != null)) { + this.tableOffers4Item.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -336,6 +360,8 @@ namespace C2P_Data { base.Tables.Add(this.tablev_selIncoterms); this.tableReportPrintTicket = new ReportPrintTicketDataTable(); base.Tables.Add(this.tableReportPrintTicket); + this.tableOffers4Item = new Offers4ItemDataTable(); + base.Tables.Add(this.tableOffers4Item); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -374,6 +400,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 ShouldSerializeOffers4Item() { + 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) { @@ -447,6 +479,9 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void ReportPrintTicketRowChangeEventHandler(object sender, ReportPrintTicketRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void Offers4ItemRowChangeEventHandler(object sender, Offers4ItemRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2161,6 +2196,296 @@ namespace C2P_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class Offers4ItemDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnRawMat; + + private global::System.Data.DataColumn columnCodItem; + + private global::System.Data.DataColumn columnnumRec; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Offers4ItemDataTable() { + this.TableName = "Offers4Item"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Offers4ItemDataTable(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 Offers4ItemDataTable(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 RawMatColumn { + get { + return this.columnRawMat; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodItemColumn { + get { + return this.columnCodItem; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn numRecColumn { + get { + return this.columnnumRec; + } + } + + [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 Offers4ItemRow this[int index] { + get { + return ((Offers4ItemRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Offers4ItemRowChangeEventHandler Offers4ItemRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Offers4ItemRowChangeEventHandler Offers4ItemRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Offers4ItemRowChangeEventHandler Offers4ItemRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Offers4ItemRowChangeEventHandler Offers4ItemRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddOffers4ItemRow(Offers4ItemRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Offers4ItemRow AddOffers4ItemRow(string RawMat, string CodItem, int numRec) { + Offers4ItemRow rowOffers4ItemRow = ((Offers4ItemRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + RawMat, + CodItem, + numRec}; + rowOffers4ItemRow.ItemArray = columnValuesArray; + this.Rows.Add(rowOffers4ItemRow); + return rowOffers4ItemRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Offers4ItemRow FindByRawMat(string RawMat) { + return ((Offers4ItemRow)(this.Rows.Find(new object[] { + RawMat}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + Offers4ItemDataTable cln = ((Offers4ItemDataTable)(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 Offers4ItemDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnRawMat = base.Columns["RawMat"]; + this.columnCodItem = base.Columns["CodItem"]; + this.columnnumRec = base.Columns["numRec"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnRawMat = new global::System.Data.DataColumn("RawMat", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRawMat); + this.columnCodItem = new global::System.Data.DataColumn("CodItem", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodItem); + this.columnnumRec = new global::System.Data.DataColumn("numRec", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnumRec); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnRawMat}, true)); + this.columnRawMat.AllowDBNull = false; + this.columnRawMat.Unique = true; + this.columnRawMat.MaxLength = 50; + this.columnCodItem.MaxLength = 50; + this.columnnumRec.ReadOnly = true; + this.columnnumRec.Caption = "Column1"; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Offers4ItemRow NewOffers4ItemRow() { + return ((Offers4ItemRow)(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 Offers4ItemRow(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(Offers4ItemRow); + } + + [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.Offers4ItemRowChanged != null)) { + this.Offers4ItemRowChanged(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(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.Offers4ItemRowChanging != null)) { + this.Offers4ItemRowChanging(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(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.Offers4ItemRowDeleted != null)) { + this.Offers4ItemRowDeleted(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(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.Offers4ItemRowDeleting != null)) { + this.Offers4ItemRowDeleting(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveOffers4ItemRow(Offers4ItemRow 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_Utility ds = new DS_Utility(); + 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 = "Offers4ItemDataTable"; + 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. /// @@ -2512,6 +2837,88 @@ namespace C2P_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class Offers4ItemRow : global::System.Data.DataRow { + + private Offers4ItemDataTable tableOffers4Item; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Offers4ItemRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableOffers4Item = ((Offers4ItemDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string RawMat { + get { + return ((string)(this[this.tableOffers4Item.RawMatColumn])); + } + set { + this[this.tableOffers4Item.RawMatColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodItem { + get { + try { + return ((string)(this[this.tableOffers4Item.CodItemColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodItem\' in table \'Offers4Item\' is DBNull.", e); + } + } + set { + this[this.tableOffers4Item.CodItemColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int numRec { + get { + try { + return ((int)(this[this.tableOffers4Item.numRecColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'numRec\' in table \'Offers4Item\' is DBNull.", e); + } + } + set { + this[this.tableOffers4Item.numRecColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodItemNull() { + return this.IsNull(this.tableOffers4Item.CodItemColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodItemNull() { + this[this.tableOffers4Item.CodItemColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsnumRecNull() { + return this.IsNull(this.tableOffers4Item.numRecColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetnumRecNull() { + this[this.tableOffers4Item.numRecColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -2715,6 +3122,40 @@ namespace C2P_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class Offers4ItemRowChangeEvent : global::System.EventArgs { + + private Offers4ItemRow 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 Offers4ItemRowChangeEvent(Offers4ItemRow 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 Offers4ItemRow 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_UtilityTableAdapters { @@ -4149,6 +4590,190 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke } } + /// + ///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 Offers4ItemTableAdapter : 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 Offers4ItemTableAdapter() { + 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 = "Offers4Item"; + tableMapping.ColumnMappings.Add("RawMat", "RawMat"); + tableMapping.ColumnMappings.Add("CodItem", "CodItem"); + tableMapping.ColumnMappings.Add("Column1", "numRec"); + tableMapping.ColumnMappings.Add("numRec", "numRec"); + this._adapter.TableMappings.Add(tableMapping); + } + + [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.Proxima_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[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_checkOffers4Item"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItem", 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_Utility.Offers4ItemDataTable dataTable, string CodItem) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CodItem == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodItem)); + } + 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_Utility.Offers4ItemDataTable GetData(string CodItem) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CodItem == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodItem)); + } + DS_Utility.Offers4ItemDataTable dataTable = new DS_Utility.Offers4ItemDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/C2P_Data/DtProxy.cs b/C2P_Data/DtProxy.cs index 0965a71..a03ff5a 100644 --- a/C2P_Data/DtProxy.cs +++ b/C2P_Data/DtProxy.cs @@ -29,6 +29,7 @@ namespace C2P_Data taVSItm = new DS_UtilityTableAdapters.v_selItemsTableAdapter(); taVSRM = new DS_UtilityTableAdapters.v_selRawMatTableAdapter(); taRPT = new DS_UtilityTableAdapters.ReportPrintTicketTableAdapter(); + taO4I = new DS_UtilityTableAdapters.Offers4ItemTableAdapter(); } /// /// effettua setup dei connection strings da web.config della singola applicazione @@ -44,6 +45,7 @@ namespace C2P_Data taVSItm.Connection.ConnectionString = connStr; taVSRM.Connection.ConnectionString = connStr; taRPT.Connection.ConnectionString = connStr; + taO4I.Connection.ConnectionString = connStr; } #endregion @@ -57,6 +59,7 @@ namespace C2P_Data public DS_UtilityTableAdapters.v_selItemsTableAdapter taVSItm; public DS_UtilityTableAdapters.v_selRawMatTableAdapter taVSRM; public DS_UtilityTableAdapters.ReportPrintTicketTableAdapter taRPT; + public DS_UtilityTableAdapters.Offers4ItemTableAdapter taO4I; public static DtProxy man = new DtProxy(); diff --git a/C2P_Report/bin/C2P_Data.dll b/C2P_Report/bin/C2P_Data.dll index 2347d6f..28006ea 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 eb1ff8f..0c80947 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 048732e..f04be58 100644 Binary files a/C2P_Report/bin/SteamWare.dll and b/C2P_Report/bin/SteamWare.dll differ