Fix metodi invio RDS da nuovo traccaito dati con multi-RDS
This commit is contained in:
@@ -53,8 +53,7 @@ namespace NKC_WF.Controllers
|
||||
name = "default",
|
||||
template = "missing.rdlc",
|
||||
printerName = "Microsoft Print to PDF",
|
||||
deviceInfoParam = currDevInfoParam,
|
||||
rdsName = "stp_prt_missing"
|
||||
deviceInfoParam = currDevInfoParam
|
||||
};
|
||||
answ.Add(currConf);
|
||||
}
|
||||
|
||||
@@ -40,14 +40,15 @@ namespace NKC_WF.Controllers
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// Carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...) e restituisce Dictionary [nome RDS / tab RDS]
|
||||
/// </summary>
|
||||
/// <param name="tipoReport"></param>
|
||||
/// <param name="keyParam">cod UDC</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, string keyParam)
|
||||
private Dictionary<string, DataTable> caricaDati(reportRichiesto tipoReport, string keyParam)
|
||||
{
|
||||
int intIdx = 0;
|
||||
Dictionary<string, DataTable> answ = new Dictionary<string, DataTable>();
|
||||
DataTable tab = new DataTable();
|
||||
switch (tipoReport)
|
||||
{
|
||||
@@ -66,15 +67,17 @@ namespace NKC_WF.Controllers
|
||||
case reportRichiesto.partLabel:
|
||||
int.TryParse(keyParam, out intIdx);
|
||||
tab = (DataTable)DataLayer.man.taIL.getByKey(intIdx);
|
||||
answ.Add("stp_prt_PartLabel", tab);
|
||||
break;
|
||||
case reportRichiesto.stackLabel:
|
||||
int.TryParse(keyParam, out intIdx);
|
||||
tab = (DataTable)DataLayer.man.taRepStack.GetData(intIdx);
|
||||
answ.Add("stp_prt_StackLabel", tab);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
@@ -147,16 +150,16 @@ namespace NKC_WF.Controllers
|
||||
if (tabPJQ.Count > 0)
|
||||
{
|
||||
reportData currReport = new reportData();
|
||||
DataTable currTab;
|
||||
Dictionary<string, DataTable> currRdsData;
|
||||
// ciclo!
|
||||
foreach (var pjReq in tabPJQ)
|
||||
{
|
||||
currTab = caricaDati(reportByTipo(pjReq.TipoReport), pjReq.KeyParam);
|
||||
currRdsData = caricaDati(reportByTipo(pjReq.TipoReport), pjReq.KeyParam);
|
||||
// in base alla coda --> recupero i dati
|
||||
currReport = new reportData()
|
||||
{
|
||||
ticketNum = pjReq.IdxPrintJob.ToString(),
|
||||
rdsTable = currTab
|
||||
rdsData = currRdsData
|
||||
};
|
||||
answ.Add(currReport);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user