diff --git a/C2P/C2P.csproj b/C2P/C2P.csproj index 772b2a7..21e7336 100644 --- a/C2P/C2P.csproj +++ b/C2P/C2P.csproj @@ -322,7 +322,9 @@ + + @@ -599,6 +601,13 @@ mod_displayHor.ascx + + mod_fileUploader.ascx + ASPXCodeBehind + + + mod_fileUploader.ascx + mod_lemmiVocab.ascx ASPXCodeBehind @@ -606,6 +615,13 @@ mod_lemmiVocab.ascx + + mod_MaRepActData.ascx + ASPXCodeBehind + + + mod_MaRepActData.ascx + mod_marginReport.ascx ASPXCodeBehind diff --git a/C2P/StdCostList.aspx b/C2P/StdCostList.aspx index 91ee33f..2965ce5 100644 --- a/C2P/StdCostList.aspx +++ b/C2P/StdCostList.aspx @@ -9,4 +9,8 @@
Export report in formato tabellare delle righe del dettalgio di costo da vista v_StdCostList +
+ <%----%> + +
diff --git a/C2P/StdCostList.aspx.cs b/C2P/StdCostList.aspx.cs index 385e884..f66ddd5 100644 --- a/C2P/StdCostList.aspx.cs +++ b/C2P/StdCostList.aspx.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using SteamWare; namespace C2P { @@ -11,7 +12,11 @@ namespace C2P { protected void Page_Load(object sender, EventArgs e) { - + if (!Page.IsPostBack) + { + // imposto iframe! con tutti i possibili valori di URL + repView.Src = string.Format(@"{0}/ReportViewer.aspx?ticket={1}&lingua={2}&QuoteType={3}&CodQuote={4}&QuoteRev={5}", memLayer.ML.confReadString("reportsUrl"), Request.QueryString["ticket"], user_std.UtSn.lingua, Request.QueryString["QuoteType"], Request.QueryString["CodQuote"], Request.QueryString["QuoteRev"]); + } } } } \ No newline at end of file diff --git a/C2P/StdCostList.aspx.designer.cs b/C2P/StdCostList.aspx.designer.cs index ab0c601..e035d1c 100644 --- a/C2P/StdCostList.aspx.designer.cs +++ b/C2P/StdCostList.aspx.designer.cs @@ -3,15 +3,22 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace C2P -{ - - - public partial class StdCostList - { +namespace C2P { + + + public partial class StdCostList { + + /// + /// repView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlIframe repView; } } diff --git a/C2P/Web.config b/C2P/Web.config index 567e8a2..81ffdb2 100644 --- a/C2P/Web.config +++ b/C2P/Web.config @@ -25,6 +25,8 @@ + + @@ -57,7 +59,7 @@ --> - + diff --git a/C2P/WebUserControls/mod_MaRepActData.ascx b/C2P/WebUserControls/mod_MaRepActData.ascx new file mode 100644 index 0000000..6709d39 --- /dev/null +++ b/C2P/WebUserControls/mod_MaRepActData.ascx @@ -0,0 +1,30 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_MaRepActData.ascx.cs" Inherits="C2P.WebUserControls.mod_MaRepActData" %> +<%@ Register Src="~/WebUserControls/mod_display.ascx" TagName="mod_display" TagPrefix="uc1" %> + + + +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ diff --git a/C2P/WebUserControls/mod_MaRepActData.ascx.cs b/C2P/WebUserControls/mod_MaRepActData.ascx.cs new file mode 100644 index 0000000..d7f6081 --- /dev/null +++ b/C2P/WebUserControls/mod_MaRepActData.ascx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace C2P.WebUserControls +{ + public partial class mod_MaRepActData : SteamWare.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/C2P/WebUserControls/mod_MaRepActData.ascx.designer.cs b/C2P/WebUserControls/mod_MaRepActData.ascx.designer.cs new file mode 100644 index 0000000..df4939c --- /dev/null +++ b/C2P/WebUserControls/mod_MaRepActData.ascx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace C2P.WebUserControls { + + + public partial class mod_MaRepActData { + + /// + /// FormView1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.FormView FormView1; + + /// + /// odsStats control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsStats; + } +} diff --git a/C2P/WebUserControls/mod_fileUploader.ascx b/C2P/WebUserControls/mod_fileUploader.ascx new file mode 100644 index 0000000..06cb5d5 --- /dev/null +++ b/C2P/WebUserControls/mod_fileUploader.ascx @@ -0,0 +1,13 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_fileUploader.ascx.cs" Inherits="C2P.WebUserControls.mod_fileUploader" %> + + + + + + + +
+ +
+
+
diff --git a/C2P/WebUserControls/mod_fileUploader.ascx.cs b/C2P/WebUserControls/mod_fileUploader.ascx.cs new file mode 100644 index 0000000..cdb2026 --- /dev/null +++ b/C2P/WebUserControls/mod_fileUploader.ascx.cs @@ -0,0 +1,74 @@ +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace C2P.WebUserControls +{ + /// + /// + /// + public partial class mod_fileUploader : SteamWare.UserControl + { + /// + /// effettuato upload file! + /// + public event EventHandler eh_uploadDone; + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + this.Page.Form.Enctype = "multipart/form-data"; + } + /// + /// caricamento file! + /// + /// + /// + protected void btnUpload_Click(object sender, EventArgs e) + { + if (FileUploadControl.HasFile) + { + try + { + if (FileUploadControl.PostedFile.ContentType == contTypeFilt && contTypeFilt != "") + { + //if (FileUploadControl.PostedFile.ContentLength < 102400000) + //{ + //string filename = Path.GetFileName(FileUploadControl.FileName); + //FileUploadControl.SaveAs(Server.MapPath("~/") + filename); + + string fileDest = string.Format(@"{0}\{1}", memLayer.ML.confReadString("importDataFolder"), FileUploadControl.FileName); + FileUploadControl.SaveAs(fileDest); + + StatusLabel.Text = string.Format("Upload status: File uploaded! - size: {0} kb", FileUploadControl.PostedFile.ContentLength / 1024); + if (eh_uploadDone != null) + { + eh_uploadDone(this, new EventArgs()); + } + //} + //else + // StatusLabel.Text = "Upload status: The file has to be less than 100 Mb!"; + } + else + StatusLabel.Text = string.Format("{0} - {1}", traduci("ERR-FU-001"), contTypeFilt); + } + catch (Exception ex) + { + StatusLabel.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message; + } + + } + } + /// + /// content type permesso + /// + public string contTypeFilt { get; set; } + } +} \ No newline at end of file diff --git a/C2P/WebUserControls/mod_fileUploader.ascx.designer.cs b/C2P/WebUserControls/mod_fileUploader.ascx.designer.cs new file mode 100644 index 0000000..90719c6 --- /dev/null +++ b/C2P/WebUserControls/mod_fileUploader.ascx.designer.cs @@ -0,0 +1,51 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace C2P.WebUserControls { + + + public partial class mod_fileUploader { + + /// + /// UpdatePanel1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.UpdatePanel UpdatePanel1; + + /// + /// FileUploadControl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.FileUpload FileUploadControl; + + /// + /// btnUpload control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnUpload; + + /// + /// StatusLabel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label StatusLabel; + } +} diff --git a/C2P/WebUserControls/mod_marginReport.ascx b/C2P/WebUserControls/mod_marginReport.ascx index e954cc6..c88514d 100644 --- a/C2P/WebUserControls/mod_marginReport.ascx +++ b/C2P/WebUserControls/mod_marginReport.ascx @@ -1,7 +1,9 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_marginReport.ascx.cs" Inherits="C2P.WebUserControls.mod_marginReport" %> +<%@ Register Src="~/WebUserControls/mod_fileUploader.ascx" TagName="mod_fileUploader" TagPrefix="uc2" %> +<%@ Register Src="~/WebUserControls/mod_MaRepActData.ascx" TagName="mod_MaRepActData" TagPrefix="uc1" %> +
- <%--
--%>
 <%: traduci("MarginReportDataIn") %> @@ -13,17 +15,44 @@  <%: traduci("MarginReportAnalisys") %>
- <%--
--%>
-
- Caricamento Dati -
+
- Per procedere seguire le 3 fasi (IN - PROC - ANALISYS) +

<%: traduci("HMaRepTitle") %>

+ <%: traduci("HMaRepBody") %> +
+
+

<%: traduci("HMaRepActData") %>

+
+
+ +
+
+
+
+

Step 1

+
+
+

<%: traduci("HMaRepLoadData") %>

+
+
+ +
+
+

Step 2

Processing Dati +
+ EXEC [tmp].[importOrdersHistRaw] +
+ EXEC [tmp].[convertOrdersHistRaw] +
+ EXEC [ext].[stp_mergeOrdersHist] +
+ EXEC dbo.stp_QLR_insNew
+

Step 3

<%: traduci("MarginReport") %> diff --git a/C2P/WebUserControls/mod_marginReport.ascx.cs b/C2P/WebUserControls/mod_marginReport.ascx.cs index 7c8e7a9..e51440e 100644 --- a/C2P/WebUserControls/mod_marginReport.ascx.cs +++ b/C2P/WebUserControls/mod_marginReport.ascx.cs @@ -1,4 +1,5 @@ -using System; +using SteamWare; +using System; using System.Collections.Generic; using System.Linq; using System.Web; @@ -26,12 +27,12 @@ namespace C2P.WebUserControls LinkButton lBtn = ((LinkButton)sender); setModVisibility(lBtn.CommandArgument); } - /// + /// /// sistemazione della visibilità dei moduli di dettaglio/editing /// private void setModVisibility(string req) { - divHelp.Visible = false; + //divHelp.Visible = false; divDataIn.Visible = false; divDataProc.Visible = false; divAnalisys.Visible = false; @@ -47,7 +48,7 @@ namespace C2P.WebUserControls divAnalisys.Visible = true; break; default: - divHelp.Visible = true; + //divHelp.Visible = true; break; } } diff --git a/C2P/WebUserControls/mod_marginReport.ascx.designer.cs b/C2P/WebUserControls/mod_marginReport.ascx.designer.cs index 7ad1bf4..391dd0f 100644 --- a/C2P/WebUserControls/mod_marginReport.ascx.designer.cs +++ b/C2P/WebUserControls/mod_marginReport.ascx.designer.cs @@ -39,6 +39,24 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.LinkButton lbExtrPar; + /// + /// divHelp control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divHelp; + + /// + /// mod_MaRepActData1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::C2P.WebUserControls.mod_MaRepActData mod_MaRepActData1; + /// /// divDataIn control. /// @@ -49,13 +67,13 @@ namespace C2P.WebUserControls { protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDataIn; /// - /// divHelp control. + /// mod_fileUploader1 control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divHelp; + protected global::C2P.WebUserControls.mod_fileUploader mod_fileUploader1; /// /// divDataProc control. diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index 23e4148..bcb82c6 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 8ab85b9..34a8f47 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 942a7b5..5afaca9 100644 Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ diff --git a/C2P/temp/PlaceHolder.file b/C2P/temp/PlaceHolder.file deleted file mode 100644 index 5f28270..0000000 --- a/C2P/temp/PlaceHolder.file +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/C2P_Data/DS_Utility.xsd b/C2P_Data/DS_Utility.xsd index c057fba..1fb0ecf 100644 --- a/C2P_Data/DS_Utility.xsd +++ b/C2P_Data/DS_Utility.xsd @@ -305,6 +305,27 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke + + + + + + SELECT FromDate, ToDate, NumOrderRows, NumOrders, NumItem, NumClients FROM dbo.v_MarginReportStats + + + + + + + + + + + + + + + @@ -313,7 +334,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -333,7 +354,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -353,7 +374,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -373,7 +394,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -393,7 +414,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -413,7 +434,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -443,7 +464,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -464,7 +485,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -484,7 +505,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -504,7 +525,7 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke - + @@ -524,6 +545,18 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke + + + + + + + + + + + + diff --git a/C2P_Data/DS_Utility.xss b/C2P_Data/DS_Utility.xss index d14a856..2382082 100644 --- a/C2P_Data/DS_Utility.xss +++ b/C2P_Data/DS_Utility.xss @@ -4,18 +4,19 @@ 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 cddbc17..64bd96c 100644 --- a/C2P_Data/DS_Utility1.Designer.cs +++ b/C2P_Data/DS_Utility1.Designer.cs @@ -44,6 +44,8 @@ namespace C2P_Data { private PickListTradDataTable tablePickListTrad; + private v_MarginReportStatsDataTable tablev_MarginReportStats; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -102,6 +104,9 @@ namespace C2P_Data { if ((ds.Tables["PickListTrad"] != null)) { base.Tables.Add(new PickListTradDataTable(ds.Tables["PickListTrad"])); } + if ((ds.Tables["v_MarginReportStats"] != null)) { + base.Tables.Add(new v_MarginReportStatsDataTable(ds.Tables["v_MarginReportStats"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -220,6 +225,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 v_MarginReportStatsDataTable v_MarginReportStats { + get { + return this.tablev_MarginReportStats; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -317,6 +332,9 @@ namespace C2P_Data { if ((ds.Tables["PickListTrad"] != null)) { base.Tables.Add(new PickListTradDataTable(ds.Tables["PickListTrad"])); } + if ((ds.Tables["v_MarginReportStats"] != null)) { + base.Tables.Add(new v_MarginReportStatsDataTable(ds.Tables["v_MarginReportStats"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -410,6 +428,12 @@ namespace C2P_Data { this.tablePickListTrad.InitVars(); } } + this.tablev_MarginReportStats = ((v_MarginReportStatsDataTable)(base.Tables["v_MarginReportStats"])); + if ((initTable == true)) { + if ((this.tablev_MarginReportStats != null)) { + this.tablev_MarginReportStats.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -440,6 +464,8 @@ namespace C2P_Data { base.Tables.Add(this.tablev_selPlant); this.tablePickListTrad = new PickListTradDataTable(); base.Tables.Add(this.tablePickListTrad); + this.tablev_MarginReportStats = new v_MarginReportStatsDataTable(); + base.Tables.Add(this.tablev_MarginReportStats); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -502,6 +528,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 ShouldSerializev_MarginReportStats() { + 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) { @@ -587,6 +619,9 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void PickListTradRowChangeEventHandler(object sender, PickListTradRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_MarginReportStatsRowChangeEventHandler(object sender, v_MarginReportStatsRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -3406,6 +3441,323 @@ namespace C2P_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_MarginReportStatsDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnFromDate; + + private global::System.Data.DataColumn columnToDate; + + private global::System.Data.DataColumn columnNumOrderRows; + + private global::System.Data.DataColumn columnNumOrders; + + private global::System.Data.DataColumn columnNumItem; + + private global::System.Data.DataColumn columnNumClients; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_MarginReportStatsDataTable() { + this.TableName = "v_MarginReportStats"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_MarginReportStatsDataTable(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 v_MarginReportStatsDataTable(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 FromDateColumn { + get { + return this.columnFromDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ToDateColumn { + get { + return this.columnToDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumOrderRowsColumn { + get { + return this.columnNumOrderRows; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumOrdersColumn { + get { + return this.columnNumOrders; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumItemColumn { + get { + return this.columnNumItem; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumClientsColumn { + get { + return this.columnNumClients; + } + } + + [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 v_MarginReportStatsRow this[int index] { + get { + return ((v_MarginReportStatsRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_MarginReportStatsRowChangeEventHandler v_MarginReportStatsRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_MarginReportStatsRowChangeEventHandler v_MarginReportStatsRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_MarginReportStatsRowChangeEventHandler v_MarginReportStatsRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_MarginReportStatsRowChangeEventHandler v_MarginReportStatsRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_MarginReportStatsRow(v_MarginReportStatsRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_MarginReportStatsRow Addv_MarginReportStatsRow(System.DateTime FromDate, System.DateTime ToDate, int NumOrderRows, int NumOrders, int NumItem, int NumClients) { + v_MarginReportStatsRow rowv_MarginReportStatsRow = ((v_MarginReportStatsRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + FromDate, + ToDate, + NumOrderRows, + NumOrders, + NumItem, + NumClients}; + rowv_MarginReportStatsRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_MarginReportStatsRow); + return rowv_MarginReportStatsRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_MarginReportStatsDataTable cln = ((v_MarginReportStatsDataTable)(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 v_MarginReportStatsDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnFromDate = base.Columns["FromDate"]; + this.columnToDate = base.Columns["ToDate"]; + this.columnNumOrderRows = base.Columns["NumOrderRows"]; + this.columnNumOrders = base.Columns["NumOrders"]; + this.columnNumItem = base.Columns["NumItem"]; + this.columnNumClients = base.Columns["NumClients"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnFromDate = new global::System.Data.DataColumn("FromDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFromDate); + this.columnToDate = new global::System.Data.DataColumn("ToDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnToDate); + this.columnNumOrderRows = new global::System.Data.DataColumn("NumOrderRows", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumOrderRows); + this.columnNumOrders = new global::System.Data.DataColumn("NumOrders", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumOrders); + this.columnNumItem = new global::System.Data.DataColumn("NumItem", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumItem); + this.columnNumClients = new global::System.Data.DataColumn("NumClients", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumClients); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_MarginReportStatsRow Newv_MarginReportStatsRow() { + return ((v_MarginReportStatsRow)(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 v_MarginReportStatsRow(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(v_MarginReportStatsRow); + } + + [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.v_MarginReportStatsRowChanged != null)) { + this.v_MarginReportStatsRowChanged(this, new v_MarginReportStatsRowChangeEvent(((v_MarginReportStatsRow)(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.v_MarginReportStatsRowChanging != null)) { + this.v_MarginReportStatsRowChanging(this, new v_MarginReportStatsRowChangeEvent(((v_MarginReportStatsRow)(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.v_MarginReportStatsRowDeleted != null)) { + this.v_MarginReportStatsRowDeleted(this, new v_MarginReportStatsRowChangeEvent(((v_MarginReportStatsRow)(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.v_MarginReportStatsRowDeleting != null)) { + this.v_MarginReportStatsRowDeleting(this, new v_MarginReportStatsRowChangeEvent(((v_MarginReportStatsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_MarginReportStatsRow(v_MarginReportStatsRow 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 = "v_MarginReportStatsDataTable"; + 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. /// @@ -3967,6 +4319,189 @@ namespace C2P_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_MarginReportStatsRow : global::System.Data.DataRow { + + private v_MarginReportStatsDataTable tablev_MarginReportStats; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_MarginReportStatsRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_MarginReportStats = ((v_MarginReportStatsDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime FromDate { + get { + try { + return ((global::System.DateTime)(this[this.tablev_MarginReportStats.FromDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FromDate\' in table \'v_MarginReportStats\' is DBNull.", e); + } + } + set { + this[this.tablev_MarginReportStats.FromDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime ToDate { + get { + try { + return ((global::System.DateTime)(this[this.tablev_MarginReportStats.ToDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ToDate\' in table \'v_MarginReportStats\' is DBNull.", e); + } + } + set { + this[this.tablev_MarginReportStats.ToDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumOrderRows { + get { + try { + return ((int)(this[this.tablev_MarginReportStats.NumOrderRowsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumOrderRows\' in table \'v_MarginReportStats\' is DBNull.", e); + } + } + set { + this[this.tablev_MarginReportStats.NumOrderRowsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumOrders { + get { + try { + return ((int)(this[this.tablev_MarginReportStats.NumOrdersColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumOrders\' in table \'v_MarginReportStats\' is DBNull.", e); + } + } + set { + this[this.tablev_MarginReportStats.NumOrdersColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumItem { + get { + try { + return ((int)(this[this.tablev_MarginReportStats.NumItemColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumItem\' in table \'v_MarginReportStats\' is DBNull.", e); + } + } + set { + this[this.tablev_MarginReportStats.NumItemColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumClients { + get { + try { + return ((int)(this[this.tablev_MarginReportStats.NumClientsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumClients\' in table \'v_MarginReportStats\' is DBNull.", e); + } + } + set { + this[this.tablev_MarginReportStats.NumClientsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFromDateNull() { + return this.IsNull(this.tablev_MarginReportStats.FromDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFromDateNull() { + this[this.tablev_MarginReportStats.FromDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsToDateNull() { + return this.IsNull(this.tablev_MarginReportStats.ToDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetToDateNull() { + this[this.tablev_MarginReportStats.ToDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNumOrderRowsNull() { + return this.IsNull(this.tablev_MarginReportStats.NumOrderRowsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNumOrderRowsNull() { + this[this.tablev_MarginReportStats.NumOrderRowsColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNumOrdersNull() { + return this.IsNull(this.tablev_MarginReportStats.NumOrdersColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNumOrdersNull() { + this[this.tablev_MarginReportStats.NumOrdersColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNumItemNull() { + return this.IsNull(this.tablev_MarginReportStats.NumItemColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNumItemNull() { + this[this.tablev_MarginReportStats.NumItemColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNumClientsNull() { + return this.IsNull(this.tablev_MarginReportStats.NumClientsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNumClientsNull() { + this[this.tablev_MarginReportStats.NumClientsColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -4306,6 +4841,40 @@ namespace C2P_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_MarginReportStatsRowChangeEvent : global::System.EventArgs { + + private v_MarginReportStatsRow 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 v_MarginReportStatsRowChangeEvent(v_MarginReportStatsRow 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 v_MarginReportStatsRow 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 { @@ -6455,6 +7024,179 @@ 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 v_MarginReportStatsTableAdapter : 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 v_MarginReportStatsTableAdapter() { + 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 = "v_MarginReportStats"; + tableMapping.ColumnMappings.Add("FromDate", "FromDate"); + tableMapping.ColumnMappings.Add("ToDate", "ToDate"); + tableMapping.ColumnMappings.Add("NumOrderRows", "NumOrderRows"); + tableMapping.ColumnMappings.Add("NumOrders", "NumOrders"); + tableMapping.ColumnMappings.Add("NumItem", "NumItem"); + tableMapping.ColumnMappings.Add("NumClients", "NumClients"); + 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 = "SELECT FromDate, ToDate, NumOrderRows, NumOrders, NumItem, NumClients FROM dbo.v_" + + "MarginReportStats"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [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.v_MarginReportStatsDataTable 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_Utility.v_MarginReportStatsDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_MarginReportStatsDataTable dataTable = new DS_Utility.v_MarginReportStatsDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/C2P_Report/bin/C2P_Data.dll b/C2P_Report/bin/C2P_Data.dll index 8ab85b9..34a8f47 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 f53c5fb..82fca05 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 942a7b5..5afaca9 100644 Binary files a/C2P_Report/bin/SteamWare.dll and b/C2P_Report/bin/SteamWare.dll differ