From 5bced7aa0fd16cd5fc424ef6eb5490ceae41ad68 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 28 Apr 2014 16:18:05 +0200 Subject: [PATCH] Vers 0.6.54: Prima release con report stampa pdf integrato --- C2P/C2P.csproj | 2 + C2P/RepOffers.aspx | 7 +- C2P/RepOffers.aspx.cs | 20 +- C2P/RepOffers.aspx.designer.cs | 4 +- C2P/Reports/ReportOffers.rdl | 2012 ++++++++++++++++++++++++++++++++ C2P/Reports/ReportOffers.rdlc | 2012 ++++++++++++++++++++++++++++++++ C2P/bin/C2P.dll | Bin 341504 -> 423936 bytes C2P/bin/C2P_Data.dll | Bin 296960 -> 297472 bytes C2P/bin/SteamWare.dll | Bin 500224 -> 501248 bytes C2P/bin/SteamWare.xml | 15 + C2P_Data/DS_Quotes.Designer.cs | 63 +- C2P_Data/DS_Quotes.xsd | 35 +- VersGen/C2P.cs | 4 +- VersGen/C2P.tt | 4 +- 14 files changed, 4136 insertions(+), 42 deletions(-) create mode 100644 C2P/Reports/ReportOffers.rdl create mode 100644 C2P/Reports/ReportOffers.rdlc diff --git a/C2P/C2P.csproj b/C2P/C2P.csproj index 8a7db02..3862141 100644 --- a/C2P/C2P.csproj +++ b/C2P/C2P.csproj @@ -341,6 +341,8 @@ + + diff --git a/C2P/RepOffers.aspx b/C2P/RepOffers.aspx index 34bc4de..1bc8b60 100644 --- a/C2P/RepOffers.aspx +++ b/C2P/RepOffers.aspx @@ -1,12 +1,13 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.Master" AutoEventWireup="true" CodeBehind="RepOffers.aspx.cs" Inherits="C2P.RepOffers" %> -<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %> +<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %> - - +
+ +
diff --git a/C2P/RepOffers.aspx.cs b/C2P/RepOffers.aspx.cs index ec4d0ea..615c5ac 100644 --- a/C2P/RepOffers.aspx.cs +++ b/C2P/RepOffers.aspx.cs @@ -1,5 +1,8 @@ -using System; +using C2P_Data; +using Microsoft.Reporting.WebForms; +using System; using System.Collections.Generic; +using System.Data; using System.Linq; using System.Web; using System.Web.UI; @@ -11,7 +14,22 @@ namespace C2P { protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ReportOffers.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; + LocalReport localReport = ReportOffers.LocalReport; + localReport.ReportPath = @".\Reports\ReportOffers.rdlc"; + + DataTable tabVoc = new DataTable(); + DataTable tabQuote = new DataTable(); + tabVoc = (DataTable)SteamWare.selDataVoc.mgr.getVocabolarioByLemma("IT", "prt1"); // HARD CODED lingua e lemma iniziale!!! + tabQuote = (DataTable)DtProxy.man.taQFQ.repOffersByTicket(1); // hard coded ticket 1 !!! + + localReport.DataSources.Add(new ReportDataSource("dsVocabolario", tabVoc)); + localReport.DataSources.Add(new ReportDataSource("dsQuoteFull_Q_Data", tabQuote)); + + } } } } \ No newline at end of file diff --git a/C2P/RepOffers.aspx.designer.cs b/C2P/RepOffers.aspx.designer.cs index 1a032f8..d631f8b 100644 --- a/C2P/RepOffers.aspx.designer.cs +++ b/C2P/RepOffers.aspx.designer.cs @@ -13,12 +13,12 @@ namespace C2P { public partial class RepOffers { /// - /// Rpt control. + /// ReportOffers control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::Microsoft.Reporting.WebForms.ReportViewer Rpt; + protected global::Microsoft.Reporting.WebForms.ReportViewer ReportOffers; } } diff --git a/C2P/Reports/ReportOffers.rdl b/C2P/Reports/ReportOffers.rdl new file mode 100644 index 0000000..91337eb --- /dev/null +++ b/C2P/Reports/ReportOffers.rdl @@ -0,0 +1,2012 @@ + + + + + + + + + 7.69134in + + + + + 0.36979in + + + + + true + true + + + + + PREZZO BASE STANDARD ARTICOLO + + + + + + + Textbox14 + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.57972in + + + + + + + true + + + + + =Fields!ClientName.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_ClientName",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodClient.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 2.08518in + + + + + + + true + + + + + =Fields!HoleNumDies.Value + + + + + + + HoleNumDies + 0.08381cm + 7.51099cm + 0.6cm + 3.29375cm + + + =Variables!FillColorCod.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!ItemDescr.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodItem",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodifProfilo",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_ClasseMerc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodClientAssoc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodItemGroup",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_UnitWeight",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_RawMat",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodifProfilo.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!ClasseMerc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodClientAssoc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodItemGroup.Value + + + + + + + QuoteRev + 2.48381cm + 7.51099cm + 0.6cm + 3.29375cm + 12 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!UnitWeight.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!ClientNameAssoc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!RawMat.Value + + + + + + + HoleNumDies + 3.68381cm + 7.51099cm + 0.6cm + 3.29375cm + 15 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 1.27268in + + + + + + + true + true + + + + + =First(Fields!Traduzione.Value, "dsVocabolario") + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Lookup + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + First + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key1.Value + + + Between + + + + + =Fields!Key1.Value + + + + + After + + + + + Between + + + + + + + =Parameters!Authoriz.Value>2 + + + + + =Parameters!Authoriz.Value<>1 + + + + + + + + + dsQuoteFull_Q_Data + 0.2cm + 0.2cm + 4.30737in + 7.69134in + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + + + 17.00542cm + + + + + 20cm + + 29.7cm + 21cm + 0.5cm + 0.5cm + 1cm + 1cm + 1.27cm + + + + + + + Textbox14 + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.57972in + + + + + + + true + + + + + =Fields!ClientName.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_ClientName",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodClient.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 2.08518in + + + + + + + true + + + + + =Fields!HoleNumDies.Value + + + + + + + HoleNumDies + 0.08381cm + 7.51099cm + 0.6cm + 3.29375cm + + + =Variables!FillColorCod.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!ItemDescr.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodItem",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodifProfilo",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_ClasseMerc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodClientAssoc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_CodItemGroup",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_UnitWeight",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 2pt + 2pt + + + + true + + + + + =Lookup("prt1_RawMat",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodifProfilo.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!ClasseMerc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodClientAssoc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!CodItemGroup.Value + + + + + + + QuoteRev + 2.48381cm + 7.51099cm + 0.6cm + 3.29375cm + 12 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!UnitWeight.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!ClientNameAssoc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =Fields!RawMat.Value + + + + + + + HoleNumDies + 3.68381cm + 7.51099cm + 0.6cm + 3.29375cm + 15 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 2pt + 2pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 1.27268in + + + + + + + true + true + + + + + =First(Fields!Traduzione.Value, "dsVocabolario") + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Lookup + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + First + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key1.Value + + + Between + + + + + =Fields!Key1.Value + + + + + After + + + + + Between + + + + + + + =Parameters!Authoriz.Value>2 + + + + + =Parameters!Authoriz.Value<>1 + + + + + + + + + dsQuoteFull_Q_Data + 0.2cm + 0.2cm + 4.30737in + 7.69134in + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + + + 17.00542cm + + + + + 20cm + + 29.7cm + 21cm + 0.5cm + 0.5cm + 1cm + 1cm + 1.27cm +