7d289a3b64
pulizia codice...
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using SteamWare;
|
|
using System;
|
|
|
|
public partial class report_impianti : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
// traduzioni
|
|
traduciObj();
|
|
// popolo valori default
|
|
setDefaultValues();
|
|
}
|
|
|
|
public string traduci(object lemma)
|
|
{
|
|
return user_std.UtSn.Traduci(lemma.ToString());
|
|
}
|
|
|
|
private void traduciObj()
|
|
{
|
|
lblPrintReportImpianti.Text = traduci("lblPrintReportImpianti");
|
|
lblIntestazioneReportImpianti.Text = traduci("lblIntestazioneReportImpianti");
|
|
lnkGuidaPerReport.Text = traduci("lnkGuidaPerReport");
|
|
lnkGuidaPerReport.NavigateUrl = string.Format("~/help/{0}/index.html", user_std.UtSn.lingua);
|
|
}
|
|
private void setDefaultValues()
|
|
{
|
|
hlExportPdf.NavigateUrl = formattaUrl();
|
|
}
|
|
|
|
private string formattaUrl()
|
|
{
|
|
return String.Format(memLayer.ML.confReadString("exportFormat1"), Convert.ToInt32(reportRichiesto.ElencoMacchine));
|
|
}
|
|
|
|
protected void btnPrint_Click(object sender, EventArgs e)
|
|
{
|
|
reportPrinter.obj.printReport(reportRichiesto.ElencoMacchine, memLayer.ML.confReadString("stampanteRichiesteMtz"), "");
|
|
}
|
|
}
|