aggiunto recupero cod lingua da URL x report...

This commit is contained in:
Samuele E. Locatelli
2014-05-09 16:29:01 +02:00
parent 8d11535720
commit a73317b59e
10 changed files with 12 additions and 2 deletions
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+12 -2
View File
@@ -28,7 +28,8 @@ namespace C2P_Report
ReportOffers.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
LocalReport localReport = ReportOffers.LocalReport;
// 0) recupero la richiesta di stampa: numero ticket!
// 0) recupero la richiesta di stampa: numero ticket! e lingua!
string lingua = "EN";
int ticket = 0;
try
{
@@ -36,6 +37,15 @@ namespace C2P_Report
}
catch
{ }
try
{
lingua = Request.QueryString["lingua"];
}
catch
{
lingua = "EN";
}
if (lingua == "" || lingua == null) lingua = "EN";
// 1) impostazione file report
localReport.ReportPath = @".\Reports\ReportOffers.rdlc";
@@ -43,7 +53,7 @@ namespace C2P_Report
// 2) caricamento tab dati
DataTable tabVoc = new DataTable();
DataTable tabQuote = new DataTable();
tabVoc = (DataTable)SteamWare.selDataVoc.mgr.getVocabolarioByLemma(SteamWare.user_std.UtSn.lingua, "C2P_prt1"); // HARD CODED lemma x report!!!
tabVoc = (DataTable)SteamWare.selDataVoc.mgr.getVocabolarioByLemma(lingua, "C2P_prt1"); // HARD CODED lemma x report!!!
tabQuote = (DataTable)DtProxy.man.taQFQ.repOffersByTicket(ticket);
// 3) inserimento dataset nel report
Binary file not shown.
Binary file not shown.
Binary file not shown.