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
+
+
+
+
+
+
+ ClientName1
+ 0.07937cm
+ 7.51099cm
+ 0.6cm
+ 12.02501cm
+
+
+ =Variables!FillColorCod.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_ClientName",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ 0.07937cm
+ 0.6cm
+ 6.46875cm
+ 1
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ prt1_CodClient
+ 0.67937cm
+ 0.6cm
+ 6.46875cm
+ 2
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!CodClient.Value
+
+
+
+
+
+
+ 0.67937cm
+ 7.51099cm
+ 0.6cm
+ 5.06645cm
+ 3
+
+
+ =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
+
+
+
+
+
+
+ QuoteRev
+ 0.68381cm
+ 10.94585cm
+ 0.6cm
+ 8.59016cm
+ 1
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodItem",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ prt1_CodItem
+ 0.08381cm
+ 0.6cm
+ 6.46875cm
+ 2
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodifProfilo",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 0.68381cm
+ 0.6cm
+ 6.46875cm
+ 3
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_ClasseMerc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 1.28381cm
+ 0.6cm
+ 6.46875cm
+ 4
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodClientAssoc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 1.88381cm
+ 0.6cm
+ 6.46875cm
+ 5
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodItemGroup",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 2.48381cm
+ 0.6cm
+ 6.46875cm
+ 6
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_UnitWeight",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 3.08381cm
+ 0.6cm
+ 6.46875cm
+ 7
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_RawMat",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 3.68381cm
+ 0.6cm
+ 6.46875cm
+ 8
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!CodifProfilo.Value
+
+
+
+
+
+
+ QuoteRev
+ 0.08381cm
+ 10.94584cm
+ 0.6cm
+ 8.59016cm
+ 9
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!ClasseMerc.Value
+
+
+
+
+
+
+ QuoteRev
+ 1.28381cm
+ 10.94584cm
+ 0.6cm
+ 8.59016cm
+ 10
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!CodClientAssoc.Value
+
+
+
+
+
+
+ QuoteRev
+ 1.88381cm
+ 7.51099cm
+ 0.6cm
+ 3.29375cm
+ 11
+
+
+ =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
+
+
+
+
+
+
+ QuoteRev
+ 3.08381cm
+ 7.51099cm
+ 0.6cm
+ 3.29375cm
+ 13
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!ClientNameAssoc.Value
+
+
+
+
+
+
+ QuoteRev
+ 1.88381cm
+ 10.94585cm
+ 0.6cm
+ 8.59016cm
+ 14
+
+
+ =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")
+
+
+
+
+
+
+ Textbox11
+ 0.476cm
+ 3.79203cm
+ 0.6cm
+ 4.29917cm
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox11
+ 0.476cm
+ 12.30154cm
+ 0.6cm
+ 5.48979cm
+ 1
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Lookup
+
+
+
+
+
+
+ Textbox13
+ 0.476cm
+ 9.18953cm
+ 0.6cm
+ 2.5cm
+ 2
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ First
+
+
+
+
+
+
+ Textbox15
+ 0.476cm
+ 0.34396cm
+ 0.6cm
+ 2.5cm
+ 3
+
+
+ 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
+
+
+ 0
+
+
+ DB_C2P
+ None
+ 40dc9b6f-bd23-4531-abf1-9e05da0cc955
+
+
+
+
+
+ DB_C2P
+
+
+ =Parameters!Lingua.Value
+
+
+ /*
+ Lingua LB ( Label ) mi serve per debug dei campi
+*/
+
+SELECT Lingua,
+ 'prt1_'+ Lemma AS Lemma,
+ CASE WHEN @Lingua = 'LB' THEN Lemma ELSE Traduzione END AS Traduzione -- il lemma corrisponde ai campi
+ FROM Vocabolario
+ WHERE Lemma IN ( 'ClientName'
+ ,'CodClient'
+ ,'CodItem'
+ ,'ItemDescr'
+ ,'CodifProfilo'
+ ,'ClasseMerc'
+ ,'CodClientAssoc'
+ ,'ClientNameAssoc'
+ ,'CodItemGroup'
+ ,'UnitWeight'
+ ,'RawMat'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'RawMatFullCost'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'BatchQty'
+ ,'ProvvCost'
+ ,'CodInco','TipoDies'
+ ,'CodDiesGroup'
+ ,'DiamDies'
+ ,'DiesPrice'
+ ,'HoleNumDies'
+ ,'DiesExpLife'
+ ,'NumDiesInList'
+ ,'DiesEOLife'
+ ,'NumDiesExaust'
+ ,'CodPlant'
+ ,'HoleNumDies'
+ ,'KeyAMIL'
+ ,'KgTeo'
+ ,'WSR01'
+ ,'NumSMED'
+ ,'MSR01'
+ ,'NetProd01'
+ ,'CodPackag'
+ ,'NetProd04'
+ ,'QuotaMan'
+ ,'LivPackage'
+ ,'LivPackageDet'
+ ,'PkgDesc'
+ ,'PRMWeight'
+ ,'DSR'
+ ,'PWeight'
+ ,'PTare'
+ ,'FSR'
+ ,'RefCost01'
+ ,'SellCost01'
+ ,'EECost'
+ ,'GasCost'
+ ,'DiesCost'
+ ,'RefCost04'
+ ,'SellCost04'
+ ,'PackCost'
+ ,'ProvvCost'
+ ,'TranspCost'
+ ,'VC4UG01'
+ ,'VC4UG04'
+ ,'SC4UG01'
+ ,'FVC'
+ ,'P_FVC'
+ ,'CPS'
+ ,'P_CPS'
+ ,'FC4UG04'
+ ,'P_FC4UG04'
+ ,'FullCost'
+ ,'P_FullCost'
+ ,'MinPrice'
+ ,'P_MinPrice'
+ ,'Charge'
+ ,'PriceOff'
+ ,'P_PriceOff'
+ ,'NetMar'
+ ,'FCShield'
+ ,'PckSur'
+ )
+AND Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese
+ THEN 'EN'
+ ELSE @Lingua
+ END
+ true
+
+
+
+ Lemma
+ System.String
+
+
+ Traduzione
+ System.String
+
+
+ Lingua
+ System.String
+
+
+
+
+
+ DB_C2P
+
+
+ =Parameters!Ticket.Value
+
+
+ /*
+ Se decidiamo di separare le traduzioni dei lemmi tra Applicazione e stampa basta usare la prima cte come insert
+ nella tabella vocabolario e poi sostituire la cte con la tabella vocabolario stessa
+*/
+
+-- DECLARE @Lingua VARCHAR(2) = 'LB';
+
+DECLARE @Lingua VARCHAR(2) = 'LB';
+
+SELECT
+ -- chiave
+ [Vers]
+ ,[QuoteType]
+ ,[CodQuote]
+ ,[QuoteRev]
+ -- valori
+ ,[BatchQty]
+ ,[Charge]
+ ,[ClasseMerc]
+ ,[ClientName]
+ ,[ClientNameAssoc]
+ ,[CodClient]
+ ,[CodClientAssoc]
+ ,[CodDiesGroup]
+ ,[CodifProfilo]
+ ,[CodInco]
+ ,[CodItem]
+ ,[CodItemGroup]
+ ,[CodPackag]
+ ,[CodPlant]
+ ,[CPS]
+ ,[DiamDies]
+ ,[DiesCost]
+ ,[DiesEOLife]
+ ,[DiesExpLife]
+ ,[DiesPrice]
+ ,[DSR]
+ ,[EECost]
+ ,[FC4UG01]
+ ,[FC4UG04]
+ ,[FCShield]
+ ,[FSR]
+ ,[FullCost]
+ ,[FVC]
+ ,[GasCost]
+ ,[HoleNumDies]
+ ,[IdxQState]
+ ,[ItemDescr]
+ ,[KeyAM]
+ ,[KeyAMIL]
+ ,[KgTeo]
+ ,[LivPackage]
+ ,[LivPackageDett]
+ ,[MinPrice]
+ ,[MSR01]
+ ,[NetMar]
+ ,[NetProd01]
+ ,[NetProd04]
+ ,[Note]
+ ,[NumDiesExaust]
+ ,[NumDiesInList]
+ ,[NumSMED]
+ ,[OH4UG01]
+ ,[P_CPS]
+ ,[P_FC4UG04]
+ ,[P_FullCost]
+ ,[P_FVC]
+ ,[P_MinPrice]
+ ,[P_PriceOff]
+ ,[PackCost]
+ ,[PckSur]
+ ,[PkgDesc]
+ ,[PriceOff]
+ ,[PRMWeight]
+ ,[ProvvCost]
+ ,[PTare]
+ ,[PWeight]
+ ,[QuotaMan]
+ ,[RawMat]
+ ,[RawMatCost]
+ ,[RawMatExtraCost]
+ ,[RawMatFullCost]
+ ,[RefCost01]
+ ,[RefCost04]
+ ,[SC4UG01]
+ ,[SellCost01]
+ ,[SellCost04]
+ ,[TipoDies]
+ ,[TranspCost]
+ ,[UnitWeight]
+ ,[VC4UG01]
+ ,[VC4UG04]
+ ,[WSR01]
+FROM dbo.v_QuoteFull_Q AS qf
+INNER JOIN dbo.ReportPrintTicket AS prt
+ ON qf.QuoteType = dbo.f_prt_getParameter ( 'QuoteType', prt.Chiave , '&')
+ AND qf.CodQuote = dbo.f_prt_getParameter ( 'CodQuote' , prt.Chiave , '&')
+ AND qf.QuoteRev = dbo.f_prt_getParameter ( 'QuoteRev' , prt.Chiave , '&')
+ AND prt.Ticket = @Ticket
+
+/* OLD VERSION
+WITH Cte AS -- carico i lemmi dei campi che mi servono per la stampa
+(
+SELECT Lingua,
+ 'prt1_'+ Lemma AS Lemma,
+ CASE WHEN @Lingua = 'LB'
+ THEN Lemma
+ ELSE Traduzione END
+ AS Traduzione -- il lemma corrisponde ai campi
+FROM Vocabolario
+WHERE Lemma IN ( 'ClientName'
+ ,'CodClient'
+ ,'CodItem'
+ ,'ItemDescr'
+ ,'CodifProfilo'
+ ,'ClasseMerc'
+ ,'CodClientAssoc'
+ ,'ClientNameAssoc'
+ ,'CodItemGroup'
+ ,'UnitWeight'
+ ,'RawMat'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'RawMatFullCost'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'BatchQty'
+ ,'ProvvCost'
+ ,'CodInco','TipoDies'
+ ,'CodDiesGroup'
+ ,'DiamDies'
+ ,'DiesPrice'
+ ,'HoleNumDies'
+ ,'DiesExpLife'
+ ,'NumDiesInList'
+ ,'DiesEOLife'
+ ,'NumDiesExaust'
+ ,'CodPlant'
+ ,'HoleNumDies'
+ ,'KeyAMIL'
+ ,'KgTeo'
+ ,'WSR01'
+ ,'NumSMED'
+ ,'MSR01'
+ ,'NetProd01'
+ ,'CodPackag'
+ ,'NetProd04'
+ ,'QuotaMan'
+ ,'LivPackage'
+ ,'LivPackageDet'
+ ,'PkgDesc'
+ ,'PRMWeight'
+ ,'DSR'
+ ,'PWeight'
+ ,'PTare'
+ ,'FSR'
+ ,'RefCost01'
+ ,'SellCost01'
+ ,'EECost'
+ ,'GasCost'
+ ,'DiesCost'
+ ,'RefCost04'
+ ,'SellCost04'
+ ,'PackCost'
+ ,'ProvvCost'
+ ,'TranspCost'
+ ,'VC4UG01'
+ ,'VC4UG04'
+ ,'SC4UG01'
+ ,'FVC'
+ ,'P_FVC'
+ ,'CPS'
+ ,'P_CPS'
+ ,'FC4UG04'
+ ,'P_FC4UG04'
+ ,'FullCost'
+ ,'P_FullCost'
+ ,'MinPrice'
+ ,'P_MinPrice'
+ ,'Charge'
+ ,'PriceOff'
+ ,'P_PriceOff'
+ ,'NetMar'
+ ,'FCShield'
+ ,'PckSur'
+ )
+),
+ctepvt AS ( -- faccio pivot dei lemmi e loro traduzioni
+ SELECT
+ Lingua,
+ [prt1_BatchQty],
+ [prt1_Charge],
+ [prt1_ClasseMerc],
+ [prt1_ClientName],
+ [prt1_ClientNameAssoc],
+ [prt1_CodClient],
+ [prt1_CodClientAssoc],
+ [prt1_CodDiesGroup],
+ [prt1_CodifProfilo],
+ [prt1_CodInco],
+ [prt1_CodItem],
+ [prt1_CodItemGroup],
+ [prt1_CodPackag],
+ [prt1_CodPlant],
+ [prt1_CPS],
+ [prt1_DiamDies],
+ [prt1_DiesCost],
+ [prt1_DiesEOLife],
+ [prt1_DiesExpLife],
+ [prt1_DiesPrice],
+ [prt1_DSR],
+ [prt1_EECost],
+ [prt1_FC4UG04],
+ [prt1_FCShield],
+ [prt1_FSR],
+ [prt1_FullCost],
+ [prt1_FVC],
+ [prt1_GasCost],
+ [prt1_HoleNumDies],
+ [prt1_ItemDescr],
+ [prt1_KeyAMIL],
+ [prt1_KgTeo],
+ [prt1_LivPackage],
+ [prt1_LivPackageDet],
+ [prt1_MinPrice],
+ [prt1_MSR01],
+ [prt1_NetMar],
+ [prt1_NetProd01],
+ [prt1_NetProd04],
+ [prt1_NumDiesExaust],
+ [prt1_NumDiesInList],
+ [prt1_NumSMED],
+ [prt1_P_CPS],
+ [prt1_P_FC4UG04],
+ [prt1_P_FullCost],
+ [prt1_P_FVC],
+ [prt1_P_MinPrice],
+ [prt1_P_PriceOff],
+ [prt1_PackCost],
+ [prt1_PckSur],
+ [prt1_PkgDesc],
+ [prt1_PriceOff],
+ [prt1_PRMWeight],
+ [prt1_ProvvCost],
+ [prt1_PTare],
+ [prt1_PWeight],
+ [prt1_QuotaMan],
+ [prt1_RawMat],
+ [prt1_RawMatCost],
+ [prt1_RawMatExtraCost],
+ [prt1_RawMatFullCost],
+ [prt1_RefCost01],
+ [prt1_RefCost04],
+ [prt1_SC4UG01],
+ [prt1_SellCost01],
+ [prt1_SellCost04],
+ [prt1_TipoDies],
+ [prt1_TranspCost],
+ [prt1_UnitWeight],
+ [prt1_VC4UG01],
+ [prt1_VC4UG04],
+ [prt1_WSR01]
+ FROM ( SELECT * FROM cte
+ WHERE Lemma Like 'prt1%' ) AS tab -- al momento non serve ma se mettiamo i lemmi separati con prt1_ in vocabolario
+ PIVOT ( MIN ( Traduzione ) -- possiamo semplicemente sostituire la tab vocabolario alla cte
+ FOR Lemma IN (
+ [prt1_BatchQty],
+ [prt1_Charge],
+ [prt1_ClasseMerc],
+ [prt1_ClientName],
+ [prt1_ClientNameAssoc],
+ [prt1_CodClient],
+ [prt1_CodClientAssoc],
+ [prt1_CodDiesGroup],
+ [prt1_CodifProfilo],
+ [prt1_CodInco],
+ [prt1_CodItem],
+ [prt1_CodItemGroup],
+ [prt1_CodPackag],
+ [prt1_CodPlant],
+ [prt1_CPS],
+ [prt1_DiamDies],
+ [prt1_DiesCost],
+ [prt1_DiesEOLife],
+ [prt1_DiesExpLife],
+ [prt1_DiesPrice],
+ [prt1_DSR],
+ [prt1_EECost],
+ [prt1_FC4UG04],
+ [prt1_FCShield],
+ [prt1_FSR],
+ [prt1_FullCost],
+ [prt1_FVC],
+ [prt1_GasCost],
+ [prt1_HoleNumDies],
+ [prt1_ItemDescr],
+ [prt1_KeyAMIL],
+ [prt1_KgTeo],
+ [prt1_LivPackage],
+ [prt1_LivPackageDet],
+ [prt1_MinPrice],
+ [prt1_MSR01],
+ [prt1_NetMar],
+ [prt1_NetProd01],
+ [prt1_NetProd04],
+ [prt1_NumDiesExaust],
+ [prt1_NumDiesInList],
+ [prt1_NumSMED],
+ [prt1_P_CPS],
+ [prt1_P_FC4UG04],
+ [prt1_P_FullCost],
+ [prt1_P_FVC],
+ [prt1_P_MinPrice],
+ [prt1_P_PriceOff],
+ [prt1_PackCost],
+ [prt1_PckSur],
+ [prt1_PkgDesc],
+ [prt1_PriceOff],
+ [prt1_PRMWeight],
+ [prt1_ProvvCost],
+ [prt1_PTare],
+ [prt1_PWeight],
+ [prt1_QuotaMan],
+ [prt1_RawMat],
+ [prt1_RawMatCost],
+ [prt1_RawMatExtraCost],
+ [prt1_RawMatFullCost],
+ [prt1_RefCost01],
+ [prt1_RefCost04],
+ [prt1_SC4UG01],
+ [prt1_SellCost01],
+ [prt1_SellCost04],
+ [prt1_TipoDies],
+ [prt1_TranspCost],
+ [prt1_UnitWeight],
+ [prt1_VC4UG01],
+ [prt1_VC4UG04],
+ [prt1_WSR01] ) ) AS pvt
+)
+SELECT
+ -- chiave
+ [Vers]
+ ,[QuoteType]
+ ,[CodQuote]
+ ,[QuoteRev]
+ -- valori
+ ,[BatchQty]
+ ,[Charge]
+ ,[ClasseMerc]
+ ,[ClientName]
+ ,[ClientNameAssoc]
+ ,[CodClient]
+ ,[CodClientAssoc]
+ ,[CodDiesGroup]
+ ,[CodifProfilo]
+ ,[CodInco]
+ ,[CodItem]
+ ,[CodItemGroup]
+ ,[CodPackag]
+ ,[CodPlant]
+ ,[CPS]
+ ,[DiamDies]
+ ,[DiesCost]
+ ,[DiesEOLife]
+ ,[DiesExpLife]
+ ,[DiesPrice]
+ ,[DSR]
+ ,[EECost]
+ ,[FC4UG01]
+ ,[FC4UG04]
+ ,[FCShield]
+ ,[FSR]
+ ,[FullCost]
+ ,[FVC]
+ ,[GasCost]
+ ,[HoleNumDies]
+ ,[IdxQState]
+ ,[ItemDescr]
+ ,[KeyAM]
+ ,[KeyAMIL]
+ ,[KgTeo]
+ ,[LivPackage]
+ ,[LivPackageDett]
+ ,[MinPrice]
+ ,[MSR01]
+ ,[NetMar]
+ ,[NetProd01]
+ ,[NetProd04]
+ ,[Note]
+ ,[NumDiesExaust]
+ ,[NumDiesInList]
+ ,[NumSMED]
+ ,[OH4UG01]
+ ,[P_CPS]
+ ,[P_FC4UG04]
+ ,[P_FullCost]
+ ,[P_FVC]
+ ,[P_MinPrice]
+ ,[P_PriceOff]
+ ,[PackCost]
+ ,[PckSur]
+ ,[PkgDesc]
+ ,[PriceOff]
+ ,[PRMWeight]
+ ,[ProvvCost]
+ ,[PTare]
+ ,[PWeight]
+ ,[QuotaMan]
+ ,[RawMat]
+ ,[RawMatCost]
+ ,[RawMatExtraCost]
+ ,[RawMatFullCost]
+ ,[RefCost01]
+ ,[RefCost04]
+ ,[SC4UG01]
+ ,[SellCost01]
+ ,[SellCost04]
+ ,[TipoDies]
+ ,[TranspCost]
+ ,[UnitWeight]
+ ,[VC4UG01]
+ ,[VC4UG04]
+ ,[WSR01]
+ -- lemmi x traduzione etichette campi
+ ,ctepvt.*
+FROM dbo.v_QuoteFull_Q
+INNER JOIN ctepvt
+-- ON ctepvt.Lingua = 'EN' -- qui va messa la variabile della lingua di stampa
+-- ON ctepvt.Lingua = @Lingua -- 'EN' -- qui va messa la variabile della lingua di stampa
+ON ctepvt.Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese
+ THEN 'EN'
+ ELSE @Lingua
+ END
+*/
+
+
+
+ =Fields!QuoteType.Value+CStr(Fields!CodQuote.Value)+CStr(Fields!QuoteRev.Value)
+
+
+ Vers
+ System.String
+
+
+ QuoteType
+ System.String
+
+
+ CodQuote
+ System.Int64
+
+
+ QuoteRev
+ System.Int32
+
+
+ BatchQty
+ System.Int32
+
+
+ Charge
+ System.Decimal
+
+
+ ClasseMerc
+ System.String
+
+
+ ClientName
+ System.String
+
+
+ ClientNameAssoc
+ System.String
+
+
+ CodClient
+ System.String
+
+
+ CodClientAssoc
+ System.String
+
+
+ CodDiesGroup
+ System.String
+
+
+ CodifProfilo
+ System.String
+
+
+ CodInco
+ System.String
+
+
+ CodItem
+ System.String
+
+
+ CodItemGroup
+ System.String
+
+
+ CodPackag
+ System.String
+
+
+ CodPlant
+ System.String
+
+
+ CPS
+ System.Decimal
+
+
+ DiamDies
+ System.Decimal
+
+
+ DiesCost
+ System.Decimal
+
+
+ DiesEOLife
+ System.Decimal
+
+
+ DiesExpLife
+ System.Decimal
+
+
+ DiesPrice
+ System.Decimal
+
+
+ DSR
+ System.Decimal
+
+
+ EECost
+ System.Decimal
+
+
+ FC4UG01
+ System.Decimal
+
+
+ FC4UG04
+ System.Decimal
+
+
+ FCShield
+ System.Decimal
+
+
+ FSR
+ System.Decimal
+
+
+ FullCost
+ System.Decimal
+
+
+ FVC
+ System.Decimal
+
+
+ GasCost
+ System.Decimal
+
+
+ HoleNumDies
+ System.Int32
+
+
+ IdxQState
+ System.Int32
+
+
+ ItemDescr
+ System.String
+
+
+ KeyAM
+ System.String
+
+
+ KeyAMIL
+ System.String
+
+
+ KgTeo
+ System.Decimal
+
+
+ LivPackage
+ System.String
+
+
+ LivPackageDett
+ System.String
+
+
+ MinPrice
+ System.Decimal
+
+
+ MSR01
+ System.Decimal
+
+
+ NetMar
+ System.Decimal
+
+
+ NetProd01
+ System.Decimal
+
+
+ NetProd04
+ System.Decimal
+
+
+ Note
+ System.String
+
+
+ NumDiesExaust
+ System.Decimal
+
+
+ NumDiesInList
+ System.Decimal
+
+
+ NumSMED
+ System.Decimal
+
+
+ OH4UG01
+ System.Decimal
+
+
+ P_CPS
+ System.Decimal
+
+
+ P_FC4UG04
+ System.Decimal
+
+
+ P_FullCost
+ System.Decimal
+
+
+ P_FVC
+ System.Decimal
+
+
+ P_MinPrice
+ System.Decimal
+
+
+ P_PriceOff
+ System.Decimal
+
+
+ PackCost
+ System.Decimal
+
+
+ PckSur
+ System.Decimal
+
+
+ PkgDesc
+ System.String
+
+
+ PriceOff
+ System.Decimal
+
+
+ PRMWeight
+ System.Decimal
+
+
+ ProvvCost
+ System.Decimal
+
+
+ PTare
+ System.Decimal
+
+
+ PWeight
+ System.Decimal
+
+
+ QuotaMan
+ System.Decimal
+
+
+ RawMat
+ System.String
+
+
+ RawMatCost
+ System.Decimal
+
+
+ RawMatExtraCost
+ System.Decimal
+
+
+ RawMatFullCost
+ System.Decimal
+
+
+ RefCost01
+ System.Decimal
+
+
+ RefCost04
+ System.Decimal
+
+
+ SC4UG01
+ System.Decimal
+
+
+ SellCost01
+ System.Decimal
+
+
+ SellCost04
+ System.Decimal
+
+
+ TipoDies
+ System.String
+
+
+ TranspCost
+ System.Decimal
+
+
+ UnitWeight
+ System.Decimal
+
+
+ VC4UG01
+ System.Decimal
+
+
+ VC4UG04
+ System.Decimal
+
+
+ WSR01
+ System.Decimal
+
+
+
+
+
+
+ String
+
+
+ 1
+
+
+ true
+
+
+
+ 1
+
+
+
+ 2
+
+
+
+ 3
+
+
+
+
+
+
+ String
+
+
+ IT
+
+
+ true
+
+
+
+ EN
+
+
+
+ IT
+
+
+
+ LB
+
+
+
+
+
+
+ String
+
+
+ 1
+
+
+ true
+
+
+ it-IT
+
+
+ Cornsilk
+
+
+ #dce6f1
+
+
+ Tahoma
+
+
+ 10pt
+
+
+ Arial
+
+
+ 10pt
+
+
+ Verdana
+
+
+ 10pt
+
+
+ WhiteSmoke
+
+
+ true
+ Cm
+ c4ce053f-8bda-4cd7-9dc4-743930d28177
+
\ No newline at end of file
diff --git a/C2P/Reports/ReportOffers.rdlc b/C2P/Reports/ReportOffers.rdlc
new file mode 100644
index 0000000..91337eb
--- /dev/null
+++ b/C2P/Reports/ReportOffers.rdlc
@@ -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
+
+
+
+
+
+
+ ClientName1
+ 0.07937cm
+ 7.51099cm
+ 0.6cm
+ 12.02501cm
+
+
+ =Variables!FillColorCod.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_ClientName",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ 0.07937cm
+ 0.6cm
+ 6.46875cm
+ 1
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ prt1_CodClient
+ 0.67937cm
+ 0.6cm
+ 6.46875cm
+ 2
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!CodClient.Value
+
+
+
+
+
+
+ 0.67937cm
+ 7.51099cm
+ 0.6cm
+ 5.06645cm
+ 3
+
+
+ =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
+
+
+
+
+
+
+ QuoteRev
+ 0.68381cm
+ 10.94585cm
+ 0.6cm
+ 8.59016cm
+ 1
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodItem",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ prt1_CodItem
+ 0.08381cm
+ 0.6cm
+ 6.46875cm
+ 2
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodifProfilo",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 0.68381cm
+ 0.6cm
+ 6.46875cm
+ 3
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_ClasseMerc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 1.28381cm
+ 0.6cm
+ 6.46875cm
+ 4
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodClientAssoc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 1.88381cm
+ 0.6cm
+ 6.46875cm
+ 5
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_CodItemGroup",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 2.48381cm
+ 0.6cm
+ 6.46875cm
+ 6
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_UnitWeight",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 3.08381cm
+ 0.6cm
+ 6.46875cm
+ 7
+
+
+ =Variables!FillColorEtich.Value
+ 20pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Lookup("prt1_RawMat",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox52
+ 3.68381cm
+ 0.6cm
+ 6.46875cm
+ 8
+
+
+ =Variables!FillColorEtich.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!CodifProfilo.Value
+
+
+
+
+
+
+ QuoteRev
+ 0.08381cm
+ 10.94584cm
+ 0.6cm
+ 8.59016cm
+ 9
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!ClasseMerc.Value
+
+
+
+
+
+
+ QuoteRev
+ 1.28381cm
+ 10.94584cm
+ 0.6cm
+ 8.59016cm
+ 10
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!CodClientAssoc.Value
+
+
+
+
+
+
+ QuoteRev
+ 1.88381cm
+ 7.51099cm
+ 0.6cm
+ 3.29375cm
+ 11
+
+
+ =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
+
+
+
+
+
+
+ QuoteRev
+ 3.08381cm
+ 7.51099cm
+ 0.6cm
+ 3.29375cm
+ 13
+
+
+ =Variables!FillColorDescr.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+
+
+
+
+ =Fields!ClientNameAssoc.Value
+
+
+
+
+
+
+ QuoteRev
+ 1.88381cm
+ 10.94585cm
+ 0.6cm
+ 8.59016cm
+ 14
+
+
+ =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")
+
+
+
+
+
+
+ Textbox11
+ 0.476cm
+ 3.79203cm
+ 0.6cm
+ 4.29917cm
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ =Lookup("prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario")
+
+
+
+
+
+
+ Textbox11
+ 0.476cm
+ 12.30154cm
+ 0.6cm
+ 5.48979cm
+ 1
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Lookup
+
+
+
+
+
+
+ Textbox13
+ 0.476cm
+ 9.18953cm
+ 0.6cm
+ 2.5cm
+ 2
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ First
+
+
+
+
+
+
+ Textbox15
+ 0.476cm
+ 0.34396cm
+ 0.6cm
+ 2.5cm
+ 3
+
+
+ 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
+
+
+ 0
+
+
+ DB_C2P
+ None
+ 40dc9b6f-bd23-4531-abf1-9e05da0cc955
+
+
+
+
+
+ DB_C2P
+
+
+ =Parameters!Lingua.Value
+
+
+ /*
+ Lingua LB ( Label ) mi serve per debug dei campi
+*/
+
+SELECT Lingua,
+ 'prt1_'+ Lemma AS Lemma,
+ CASE WHEN @Lingua = 'LB' THEN Lemma ELSE Traduzione END AS Traduzione -- il lemma corrisponde ai campi
+ FROM Vocabolario
+ WHERE Lemma IN ( 'ClientName'
+ ,'CodClient'
+ ,'CodItem'
+ ,'ItemDescr'
+ ,'CodifProfilo'
+ ,'ClasseMerc'
+ ,'CodClientAssoc'
+ ,'ClientNameAssoc'
+ ,'CodItemGroup'
+ ,'UnitWeight'
+ ,'RawMat'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'RawMatFullCost'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'BatchQty'
+ ,'ProvvCost'
+ ,'CodInco','TipoDies'
+ ,'CodDiesGroup'
+ ,'DiamDies'
+ ,'DiesPrice'
+ ,'HoleNumDies'
+ ,'DiesExpLife'
+ ,'NumDiesInList'
+ ,'DiesEOLife'
+ ,'NumDiesExaust'
+ ,'CodPlant'
+ ,'HoleNumDies'
+ ,'KeyAMIL'
+ ,'KgTeo'
+ ,'WSR01'
+ ,'NumSMED'
+ ,'MSR01'
+ ,'NetProd01'
+ ,'CodPackag'
+ ,'NetProd04'
+ ,'QuotaMan'
+ ,'LivPackage'
+ ,'LivPackageDet'
+ ,'PkgDesc'
+ ,'PRMWeight'
+ ,'DSR'
+ ,'PWeight'
+ ,'PTare'
+ ,'FSR'
+ ,'RefCost01'
+ ,'SellCost01'
+ ,'EECost'
+ ,'GasCost'
+ ,'DiesCost'
+ ,'RefCost04'
+ ,'SellCost04'
+ ,'PackCost'
+ ,'ProvvCost'
+ ,'TranspCost'
+ ,'VC4UG01'
+ ,'VC4UG04'
+ ,'SC4UG01'
+ ,'FVC'
+ ,'P_FVC'
+ ,'CPS'
+ ,'P_CPS'
+ ,'FC4UG04'
+ ,'P_FC4UG04'
+ ,'FullCost'
+ ,'P_FullCost'
+ ,'MinPrice'
+ ,'P_MinPrice'
+ ,'Charge'
+ ,'PriceOff'
+ ,'P_PriceOff'
+ ,'NetMar'
+ ,'FCShield'
+ ,'PckSur'
+ )
+AND Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese
+ THEN 'EN'
+ ELSE @Lingua
+ END
+ true
+
+
+
+ Lemma
+ System.String
+
+
+ Traduzione
+ System.String
+
+
+ Lingua
+ System.String
+
+
+
+
+
+ DB_C2P
+
+
+ =Parameters!Ticket.Value
+
+
+ /*
+ Se decidiamo di separare le traduzioni dei lemmi tra Applicazione e stampa basta usare la prima cte come insert
+ nella tabella vocabolario e poi sostituire la cte con la tabella vocabolario stessa
+*/
+
+-- DECLARE @Lingua VARCHAR(2) = 'LB';
+
+DECLARE @Lingua VARCHAR(2) = 'LB';
+
+SELECT
+ -- chiave
+ [Vers]
+ ,[QuoteType]
+ ,[CodQuote]
+ ,[QuoteRev]
+ -- valori
+ ,[BatchQty]
+ ,[Charge]
+ ,[ClasseMerc]
+ ,[ClientName]
+ ,[ClientNameAssoc]
+ ,[CodClient]
+ ,[CodClientAssoc]
+ ,[CodDiesGroup]
+ ,[CodifProfilo]
+ ,[CodInco]
+ ,[CodItem]
+ ,[CodItemGroup]
+ ,[CodPackag]
+ ,[CodPlant]
+ ,[CPS]
+ ,[DiamDies]
+ ,[DiesCost]
+ ,[DiesEOLife]
+ ,[DiesExpLife]
+ ,[DiesPrice]
+ ,[DSR]
+ ,[EECost]
+ ,[FC4UG01]
+ ,[FC4UG04]
+ ,[FCShield]
+ ,[FSR]
+ ,[FullCost]
+ ,[FVC]
+ ,[GasCost]
+ ,[HoleNumDies]
+ ,[IdxQState]
+ ,[ItemDescr]
+ ,[KeyAM]
+ ,[KeyAMIL]
+ ,[KgTeo]
+ ,[LivPackage]
+ ,[LivPackageDett]
+ ,[MinPrice]
+ ,[MSR01]
+ ,[NetMar]
+ ,[NetProd01]
+ ,[NetProd04]
+ ,[Note]
+ ,[NumDiesExaust]
+ ,[NumDiesInList]
+ ,[NumSMED]
+ ,[OH4UG01]
+ ,[P_CPS]
+ ,[P_FC4UG04]
+ ,[P_FullCost]
+ ,[P_FVC]
+ ,[P_MinPrice]
+ ,[P_PriceOff]
+ ,[PackCost]
+ ,[PckSur]
+ ,[PkgDesc]
+ ,[PriceOff]
+ ,[PRMWeight]
+ ,[ProvvCost]
+ ,[PTare]
+ ,[PWeight]
+ ,[QuotaMan]
+ ,[RawMat]
+ ,[RawMatCost]
+ ,[RawMatExtraCost]
+ ,[RawMatFullCost]
+ ,[RefCost01]
+ ,[RefCost04]
+ ,[SC4UG01]
+ ,[SellCost01]
+ ,[SellCost04]
+ ,[TipoDies]
+ ,[TranspCost]
+ ,[UnitWeight]
+ ,[VC4UG01]
+ ,[VC4UG04]
+ ,[WSR01]
+FROM dbo.v_QuoteFull_Q AS qf
+INNER JOIN dbo.ReportPrintTicket AS prt
+ ON qf.QuoteType = dbo.f_prt_getParameter ( 'QuoteType', prt.Chiave , '&')
+ AND qf.CodQuote = dbo.f_prt_getParameter ( 'CodQuote' , prt.Chiave , '&')
+ AND qf.QuoteRev = dbo.f_prt_getParameter ( 'QuoteRev' , prt.Chiave , '&')
+ AND prt.Ticket = @Ticket
+
+/* OLD VERSION
+WITH Cte AS -- carico i lemmi dei campi che mi servono per la stampa
+(
+SELECT Lingua,
+ 'prt1_'+ Lemma AS Lemma,
+ CASE WHEN @Lingua = 'LB'
+ THEN Lemma
+ ELSE Traduzione END
+ AS Traduzione -- il lemma corrisponde ai campi
+FROM Vocabolario
+WHERE Lemma IN ( 'ClientName'
+ ,'CodClient'
+ ,'CodItem'
+ ,'ItemDescr'
+ ,'CodifProfilo'
+ ,'ClasseMerc'
+ ,'CodClientAssoc'
+ ,'ClientNameAssoc'
+ ,'CodItemGroup'
+ ,'UnitWeight'
+ ,'RawMat'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'RawMatFullCost'
+ ,'RawMatCost'
+ ,'RawMatExtraCost'
+ ,'BatchQty'
+ ,'ProvvCost'
+ ,'CodInco','TipoDies'
+ ,'CodDiesGroup'
+ ,'DiamDies'
+ ,'DiesPrice'
+ ,'HoleNumDies'
+ ,'DiesExpLife'
+ ,'NumDiesInList'
+ ,'DiesEOLife'
+ ,'NumDiesExaust'
+ ,'CodPlant'
+ ,'HoleNumDies'
+ ,'KeyAMIL'
+ ,'KgTeo'
+ ,'WSR01'
+ ,'NumSMED'
+ ,'MSR01'
+ ,'NetProd01'
+ ,'CodPackag'
+ ,'NetProd04'
+ ,'QuotaMan'
+ ,'LivPackage'
+ ,'LivPackageDet'
+ ,'PkgDesc'
+ ,'PRMWeight'
+ ,'DSR'
+ ,'PWeight'
+ ,'PTare'
+ ,'FSR'
+ ,'RefCost01'
+ ,'SellCost01'
+ ,'EECost'
+ ,'GasCost'
+ ,'DiesCost'
+ ,'RefCost04'
+ ,'SellCost04'
+ ,'PackCost'
+ ,'ProvvCost'
+ ,'TranspCost'
+ ,'VC4UG01'
+ ,'VC4UG04'
+ ,'SC4UG01'
+ ,'FVC'
+ ,'P_FVC'
+ ,'CPS'
+ ,'P_CPS'
+ ,'FC4UG04'
+ ,'P_FC4UG04'
+ ,'FullCost'
+ ,'P_FullCost'
+ ,'MinPrice'
+ ,'P_MinPrice'
+ ,'Charge'
+ ,'PriceOff'
+ ,'P_PriceOff'
+ ,'NetMar'
+ ,'FCShield'
+ ,'PckSur'
+ )
+),
+ctepvt AS ( -- faccio pivot dei lemmi e loro traduzioni
+ SELECT
+ Lingua,
+ [prt1_BatchQty],
+ [prt1_Charge],
+ [prt1_ClasseMerc],
+ [prt1_ClientName],
+ [prt1_ClientNameAssoc],
+ [prt1_CodClient],
+ [prt1_CodClientAssoc],
+ [prt1_CodDiesGroup],
+ [prt1_CodifProfilo],
+ [prt1_CodInco],
+ [prt1_CodItem],
+ [prt1_CodItemGroup],
+ [prt1_CodPackag],
+ [prt1_CodPlant],
+ [prt1_CPS],
+ [prt1_DiamDies],
+ [prt1_DiesCost],
+ [prt1_DiesEOLife],
+ [prt1_DiesExpLife],
+ [prt1_DiesPrice],
+ [prt1_DSR],
+ [prt1_EECost],
+ [prt1_FC4UG04],
+ [prt1_FCShield],
+ [prt1_FSR],
+ [prt1_FullCost],
+ [prt1_FVC],
+ [prt1_GasCost],
+ [prt1_HoleNumDies],
+ [prt1_ItemDescr],
+ [prt1_KeyAMIL],
+ [prt1_KgTeo],
+ [prt1_LivPackage],
+ [prt1_LivPackageDet],
+ [prt1_MinPrice],
+ [prt1_MSR01],
+ [prt1_NetMar],
+ [prt1_NetProd01],
+ [prt1_NetProd04],
+ [prt1_NumDiesExaust],
+ [prt1_NumDiesInList],
+ [prt1_NumSMED],
+ [prt1_P_CPS],
+ [prt1_P_FC4UG04],
+ [prt1_P_FullCost],
+ [prt1_P_FVC],
+ [prt1_P_MinPrice],
+ [prt1_P_PriceOff],
+ [prt1_PackCost],
+ [prt1_PckSur],
+ [prt1_PkgDesc],
+ [prt1_PriceOff],
+ [prt1_PRMWeight],
+ [prt1_ProvvCost],
+ [prt1_PTare],
+ [prt1_PWeight],
+ [prt1_QuotaMan],
+ [prt1_RawMat],
+ [prt1_RawMatCost],
+ [prt1_RawMatExtraCost],
+ [prt1_RawMatFullCost],
+ [prt1_RefCost01],
+ [prt1_RefCost04],
+ [prt1_SC4UG01],
+ [prt1_SellCost01],
+ [prt1_SellCost04],
+ [prt1_TipoDies],
+ [prt1_TranspCost],
+ [prt1_UnitWeight],
+ [prt1_VC4UG01],
+ [prt1_VC4UG04],
+ [prt1_WSR01]
+ FROM ( SELECT * FROM cte
+ WHERE Lemma Like 'prt1%' ) AS tab -- al momento non serve ma se mettiamo i lemmi separati con prt1_ in vocabolario
+ PIVOT ( MIN ( Traduzione ) -- possiamo semplicemente sostituire la tab vocabolario alla cte
+ FOR Lemma IN (
+ [prt1_BatchQty],
+ [prt1_Charge],
+ [prt1_ClasseMerc],
+ [prt1_ClientName],
+ [prt1_ClientNameAssoc],
+ [prt1_CodClient],
+ [prt1_CodClientAssoc],
+ [prt1_CodDiesGroup],
+ [prt1_CodifProfilo],
+ [prt1_CodInco],
+ [prt1_CodItem],
+ [prt1_CodItemGroup],
+ [prt1_CodPackag],
+ [prt1_CodPlant],
+ [prt1_CPS],
+ [prt1_DiamDies],
+ [prt1_DiesCost],
+ [prt1_DiesEOLife],
+ [prt1_DiesExpLife],
+ [prt1_DiesPrice],
+ [prt1_DSR],
+ [prt1_EECost],
+ [prt1_FC4UG04],
+ [prt1_FCShield],
+ [prt1_FSR],
+ [prt1_FullCost],
+ [prt1_FVC],
+ [prt1_GasCost],
+ [prt1_HoleNumDies],
+ [prt1_ItemDescr],
+ [prt1_KeyAMIL],
+ [prt1_KgTeo],
+ [prt1_LivPackage],
+ [prt1_LivPackageDet],
+ [prt1_MinPrice],
+ [prt1_MSR01],
+ [prt1_NetMar],
+ [prt1_NetProd01],
+ [prt1_NetProd04],
+ [prt1_NumDiesExaust],
+ [prt1_NumDiesInList],
+ [prt1_NumSMED],
+ [prt1_P_CPS],
+ [prt1_P_FC4UG04],
+ [prt1_P_FullCost],
+ [prt1_P_FVC],
+ [prt1_P_MinPrice],
+ [prt1_P_PriceOff],
+ [prt1_PackCost],
+ [prt1_PckSur],
+ [prt1_PkgDesc],
+ [prt1_PriceOff],
+ [prt1_PRMWeight],
+ [prt1_ProvvCost],
+ [prt1_PTare],
+ [prt1_PWeight],
+ [prt1_QuotaMan],
+ [prt1_RawMat],
+ [prt1_RawMatCost],
+ [prt1_RawMatExtraCost],
+ [prt1_RawMatFullCost],
+ [prt1_RefCost01],
+ [prt1_RefCost04],
+ [prt1_SC4UG01],
+ [prt1_SellCost01],
+ [prt1_SellCost04],
+ [prt1_TipoDies],
+ [prt1_TranspCost],
+ [prt1_UnitWeight],
+ [prt1_VC4UG01],
+ [prt1_VC4UG04],
+ [prt1_WSR01] ) ) AS pvt
+)
+SELECT
+ -- chiave
+ [Vers]
+ ,[QuoteType]
+ ,[CodQuote]
+ ,[QuoteRev]
+ -- valori
+ ,[BatchQty]
+ ,[Charge]
+ ,[ClasseMerc]
+ ,[ClientName]
+ ,[ClientNameAssoc]
+ ,[CodClient]
+ ,[CodClientAssoc]
+ ,[CodDiesGroup]
+ ,[CodifProfilo]
+ ,[CodInco]
+ ,[CodItem]
+ ,[CodItemGroup]
+ ,[CodPackag]
+ ,[CodPlant]
+ ,[CPS]
+ ,[DiamDies]
+ ,[DiesCost]
+ ,[DiesEOLife]
+ ,[DiesExpLife]
+ ,[DiesPrice]
+ ,[DSR]
+ ,[EECost]
+ ,[FC4UG01]
+ ,[FC4UG04]
+ ,[FCShield]
+ ,[FSR]
+ ,[FullCost]
+ ,[FVC]
+ ,[GasCost]
+ ,[HoleNumDies]
+ ,[IdxQState]
+ ,[ItemDescr]
+ ,[KeyAM]
+ ,[KeyAMIL]
+ ,[KgTeo]
+ ,[LivPackage]
+ ,[LivPackageDett]
+ ,[MinPrice]
+ ,[MSR01]
+ ,[NetMar]
+ ,[NetProd01]
+ ,[NetProd04]
+ ,[Note]
+ ,[NumDiesExaust]
+ ,[NumDiesInList]
+ ,[NumSMED]
+ ,[OH4UG01]
+ ,[P_CPS]
+ ,[P_FC4UG04]
+ ,[P_FullCost]
+ ,[P_FVC]
+ ,[P_MinPrice]
+ ,[P_PriceOff]
+ ,[PackCost]
+ ,[PckSur]
+ ,[PkgDesc]
+ ,[PriceOff]
+ ,[PRMWeight]
+ ,[ProvvCost]
+ ,[PTare]
+ ,[PWeight]
+ ,[QuotaMan]
+ ,[RawMat]
+ ,[RawMatCost]
+ ,[RawMatExtraCost]
+ ,[RawMatFullCost]
+ ,[RefCost01]
+ ,[RefCost04]
+ ,[SC4UG01]
+ ,[SellCost01]
+ ,[SellCost04]
+ ,[TipoDies]
+ ,[TranspCost]
+ ,[UnitWeight]
+ ,[VC4UG01]
+ ,[VC4UG04]
+ ,[WSR01]
+ -- lemmi x traduzione etichette campi
+ ,ctepvt.*
+FROM dbo.v_QuoteFull_Q
+INNER JOIN ctepvt
+-- ON ctepvt.Lingua = 'EN' -- qui va messa la variabile della lingua di stampa
+-- ON ctepvt.Lingua = @Lingua -- 'EN' -- qui va messa la variabile della lingua di stampa
+ON ctepvt.Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese
+ THEN 'EN'
+ ELSE @Lingua
+ END
+*/
+
+
+
+ =Fields!QuoteType.Value+CStr(Fields!CodQuote.Value)+CStr(Fields!QuoteRev.Value)
+
+
+ Vers
+ System.String
+
+
+ QuoteType
+ System.String
+
+
+ CodQuote
+ System.Int64
+
+
+ QuoteRev
+ System.Int32
+
+
+ BatchQty
+ System.Int32
+
+
+ Charge
+ System.Decimal
+
+
+ ClasseMerc
+ System.String
+
+
+ ClientName
+ System.String
+
+
+ ClientNameAssoc
+ System.String
+
+
+ CodClient
+ System.String
+
+
+ CodClientAssoc
+ System.String
+
+
+ CodDiesGroup
+ System.String
+
+
+ CodifProfilo
+ System.String
+
+
+ CodInco
+ System.String
+
+
+ CodItem
+ System.String
+
+
+ CodItemGroup
+ System.String
+
+
+ CodPackag
+ System.String
+
+
+ CodPlant
+ System.String
+
+
+ CPS
+ System.Decimal
+
+
+ DiamDies
+ System.Decimal
+
+
+ DiesCost
+ System.Decimal
+
+
+ DiesEOLife
+ System.Decimal
+
+
+ DiesExpLife
+ System.Decimal
+
+
+ DiesPrice
+ System.Decimal
+
+
+ DSR
+ System.Decimal
+
+
+ EECost
+ System.Decimal
+
+
+ FC4UG01
+ System.Decimal
+
+
+ FC4UG04
+ System.Decimal
+
+
+ FCShield
+ System.Decimal
+
+
+ FSR
+ System.Decimal
+
+
+ FullCost
+ System.Decimal
+
+
+ FVC
+ System.Decimal
+
+
+ GasCost
+ System.Decimal
+
+
+ HoleNumDies
+ System.Int32
+
+
+ IdxQState
+ System.Int32
+
+
+ ItemDescr
+ System.String
+
+
+ KeyAM
+ System.String
+
+
+ KeyAMIL
+ System.String
+
+
+ KgTeo
+ System.Decimal
+
+
+ LivPackage
+ System.String
+
+
+ LivPackageDett
+ System.String
+
+
+ MinPrice
+ System.Decimal
+
+
+ MSR01
+ System.Decimal
+
+
+ NetMar
+ System.Decimal
+
+
+ NetProd01
+ System.Decimal
+
+
+ NetProd04
+ System.Decimal
+
+
+ Note
+ System.String
+
+
+ NumDiesExaust
+ System.Decimal
+
+
+ NumDiesInList
+ System.Decimal
+
+
+ NumSMED
+ System.Decimal
+
+
+ OH4UG01
+ System.Decimal
+
+
+ P_CPS
+ System.Decimal
+
+
+ P_FC4UG04
+ System.Decimal
+
+
+ P_FullCost
+ System.Decimal
+
+
+ P_FVC
+ System.Decimal
+
+
+ P_MinPrice
+ System.Decimal
+
+
+ P_PriceOff
+ System.Decimal
+
+
+ PackCost
+ System.Decimal
+
+
+ PckSur
+ System.Decimal
+
+
+ PkgDesc
+ System.String
+
+
+ PriceOff
+ System.Decimal
+
+
+ PRMWeight
+ System.Decimal
+
+
+ ProvvCost
+ System.Decimal
+
+
+ PTare
+ System.Decimal
+
+
+ PWeight
+ System.Decimal
+
+
+ QuotaMan
+ System.Decimal
+
+
+ RawMat
+ System.String
+
+
+ RawMatCost
+ System.Decimal
+
+
+ RawMatExtraCost
+ System.Decimal
+
+
+ RawMatFullCost
+ System.Decimal
+
+
+ RefCost01
+ System.Decimal
+
+
+ RefCost04
+ System.Decimal
+
+
+ SC4UG01
+ System.Decimal
+
+
+ SellCost01
+ System.Decimal
+
+
+ SellCost04
+ System.Decimal
+
+
+ TipoDies
+ System.String
+
+
+ TranspCost
+ System.Decimal
+
+
+ UnitWeight
+ System.Decimal
+
+
+ VC4UG01
+ System.Decimal
+
+
+ VC4UG04
+ System.Decimal
+
+
+ WSR01
+ System.Decimal
+
+
+
+
+
+
+ String
+
+
+ 1
+
+
+ true
+
+
+
+ 1
+
+
+
+ 2
+
+
+
+ 3
+
+
+
+
+
+
+ String
+
+
+ IT
+
+
+ true
+
+
+
+ EN
+
+
+
+ IT
+
+
+
+ LB
+
+
+
+
+
+
+ String
+
+
+ 1
+
+
+ true
+
+
+ it-IT
+
+
+ Cornsilk
+
+
+ #dce6f1
+
+
+ Tahoma
+
+
+ 10pt
+
+
+ Arial
+
+
+ 10pt
+
+
+ Verdana
+
+
+ 10pt
+
+
+ WhiteSmoke
+
+
+ true
+ Cm
+ c4ce053f-8bda-4cd7-9dc4-743930d28177
+
\ No newline at end of file
diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll
index 40526ad..4233eaa 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 3772ebc..421c2d3 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 2e1e623..fc853a7 100644
Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ
diff --git a/C2P/bin/SteamWare.xml b/C2P/bin/SteamWare.xml
index 46684d6..72e921e 100644
--- a/C2P/bin/SteamWare.xml
+++ b/C2P/bin/SteamWare.xml
@@ -3066,6 +3066,21 @@
+
+
+ tabella vocabolario per la lingua indicata
+
+
+
+
+
+
+ tabella vocabolario per la lingua indicata filtrato per lemma in modalità LIKE termine%
+
+ lingua desiderata
+ termine iniziale lemma da cercare
+
+
tabella lingue
diff --git a/C2P_Data/DS_Quotes.Designer.cs b/C2P_Data/DS_Quotes.Designer.cs
index fd94f04..1402fb6 100644
--- a/C2P_Data/DS_Quotes.Designer.cs
+++ b/C2P_Data/DS_Quotes.Designer.cs
@@ -12271,7 +12271,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[10];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[11];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "dbo.stp_QL_fullDataAll";
@@ -12333,38 +12333,44 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceOff", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection;
- this._commandCollection[7].CommandText = "dbo.stp_QLF_UpdCosts";
+ this._commandCollection[7].CommandText = "dbo.stp_prt_dsQuoteFull_Q_Data";
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceOff", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ticket", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[8].Connection = this.Connection;
- this._commandCollection[8].CommandText = "dbo.stp_QLF_UpdHead";
+ this._commandCollection[8].CommandText = "dbo.stp_QLF_UpdCosts";
this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClient", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].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, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMat", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchQty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 5, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceOff", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[9].Connection = this.Connection;
- this._commandCollection[9].CommandText = "dbo.stp_QLF_UpdQState";
+ this._commandCollection[9].CommandText = "dbo.stp_QLF_UpdHead";
this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxQState", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClient", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].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, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMat", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchQty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 5, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[10].Connection = this.Connection;
+ this._commandCollection[10].CommandText = "dbo.stp_QLF_UpdQState";
+ this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[10].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[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxQState", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -12570,8 +12576,25 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
[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, false)]
- public virtual DS_Quotes.QuoteFull_QDataTable updateCosts(string Original_QuoteType, global::System.Nullable Original_CodQuote, global::System.Nullable Original_QuoteRev, global::System.Nullable PriceOff) {
+ public virtual DS_Quotes.QuoteFull_QDataTable repOffersByTicket(global::System.Nullable Ticket) {
this.Adapter.SelectCommand = this.CommandCollection[7];
+ if ((Ticket.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Ticket.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Quotes.QuoteFull_QDataTable dataTable = new DS_Quotes.QuoteFull_QDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Quotes.QuoteFull_QDataTable updateCosts(string Original_QuoteType, global::System.Nullable Original_CodQuote, global::System.Nullable Original_QuoteRev, global::System.Nullable PriceOff) {
+ this.Adapter.SelectCommand = this.CommandCollection[8];
if ((Original_QuoteType == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -12606,7 +12629,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Quotes.QuoteFull_QDataTable updateHeaders(string Original_QuoteType, global::System.Nullable Original_CodQuote, global::System.Nullable Original_QuoteRev, string CodClient, string CodItem, string RawMat, global::System.Nullable RawMatCost, global::System.Nullable RawMatExtraCost, global::System.Nullable BatchQty, string CodInco, string Note) {
- this.Adapter.SelectCommand = this.CommandCollection[8];
+ this.Adapter.SelectCommand = this.CommandCollection[9];
if ((Original_QuoteType == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -12683,7 +12706,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Quotes.QuoteFull_QDataTable updateQState(string Original_QuoteType, global::System.Nullable Original_CodQuote, global::System.Nullable Original_QuoteRev, global::System.Nullable IdxQState) {
- this.Adapter.SelectCommand = this.CommandCollection[9];
+ this.Adapter.SelectCommand = this.CommandCollection[10];
if ((Original_QuoteType == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
diff --git a/C2P_Data/DS_Quotes.xsd b/C2P_Data/DS_Quotes.xsd
index 18bd053..363e1ee 100644
--- a/C2P_Data/DS_Quotes.xsd
+++ b/C2P_Data/DS_Quotes.xsd
@@ -933,6 +933,17 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
+
+
+
+ dbo.stp_prt_dsQuoteFull_Q_Data
+
+
+
+
+
+
+
@@ -992,7 +1003,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
@@ -1076,7 +1087,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
@@ -1112,7 +1123,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
@@ -1137,7 +1148,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
@@ -1217,7 +1228,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
@@ -1254,7 +1265,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
@@ -1324,7 +1335,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
+
@@ -1601,11 +1612,11 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/VersGen/C2P.cs b/VersGen/C2P.cs
index 2ebb780..af272d4 100644
--- a/VersGen/C2P.cs
+++ b/VersGen/C2P.cs
@@ -5,7 +5,7 @@
using System.Reflection;
-[assembly: AssemblyVersion("0.6.53.143")]
-[assembly: AssemblyFileVersion("0.6.53.143")]
+[assembly: AssemblyVersion("0.6.54.148")]
+[assembly: AssemblyFileVersion("0.6.54.148")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-2014")]
[assembly: AssemblyCompany("Steamware")]
diff --git a/VersGen/C2P.tt b/VersGen/C2P.tt
index 38af2be..50ded62 100644
--- a/VersGen/C2P.tt
+++ b/VersGen/C2P.tt
@@ -6,8 +6,8 @@
using System.Reflection;
-[assembly: AssemblyVersion("0.6.53.<#= this.RevisionNumber #>")]
-[assembly: AssemblyFileVersion("0.6.53.<#= this.RevisionNumber #>")]
+[assembly: AssemblyVersion("0.6.54.<#= this.RevisionNumber #>")]
+[assembly: AssemblyFileVersion("0.6.54.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+