Beispiel #1
0
        protected void ProjectImgStampaEtichette_Click(object o, EventArgs e)
        {
            //try
            //{
            //    this.EnumLabel = "1";
            //    PrintLabel_alreadyPrinted = false;
            //    PrintLabel_alreadyPrinted2 = false;
            //    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "print_labels", "ajaxModalPopupPrintLabel();", true);
            //}
            //catch (System.Exception ex)
            //{
            //    UIManager.AdministrationManager.DiagnosticError(ex);
            //    return;
            //}


            try
            {
                DocsPaWR.FileDocumento fileRep = ProjectManager.reportFascette(UIManager.ProjectManager.getProjectInSession().codice, null);

                HttpContext.Current.Session["visualReportAlreadyDownloaded" + Session.SessionID] = null;
                FileManager.setSelectedFileReport(this.Page, fileRep, "../popup");
                if (fileRep != null)
                {
                    exportDatiSessionManager session = new exportDatiSessionManager();
                    session.SetSessionExportFile(fileRep);
                }
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
Beispiel #2
0
 protected void DocumentImgPrintReceipt_Click(object sender, EventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(Utils.InitConfigurationKeys.GetValue("0", DBKeys.FE_RICEVUTA_PROTOCOLLO_PDF.ToString())) && Utils.InitConfigurationKeys.GetValue("0", DBKeys.FE_RICEVUTA_PROTOCOLLO_PDF.ToString()) == "1")
         {
             ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "PrintReceiptPDF", "ajaxModalPopupPrintReceiptPdf();", true);
         }
         else
         {
             HttpContext.Current.Session["visualReportAlreadyDownloaded" + Session.SessionID] = null;
             DocsPaWR.FileDocumento fileRep = DocumentManager.StampaRicevutaProtocolloRtf();
             FileManager.setSelectedFileReport(this.Page, fileRep, "../popup");
             if (fileRep != null)
             {
                 exportDatiSessionManager session = new exportDatiSessionManager();
                 session.SetSessionExportFile(fileRep);
             }
         }
     }
     catch (System.Exception ex)
     {
         UIManager.AdministrationManager.DiagnosticError(ex);
         return;
     }
 }