コード例 #1
0
        private DocsPaWR.ReportProcedimentoRequest CreaRequest()
        {
            DocsPaWR.ReportProcedimentoRequest request = new DocsPaWR.ReportProcedimentoRequest();
            request.IdAmm          = UserManager.GetInfoUser().idAmministrazione;
            request.IdProcedimento = this.ddl_proceeding_type.SelectedValue;
            request.Anno           = this.txt_anno.Text;

            return(request);
        }
コード例 #2
0
 public static DocsPaWR.ReportProcedimentoResponse GetProcedimentiReport(DocsPaWR.ReportProcedimentoRequest request)
 {
     try
     {
         return(docsPaWS.GetReportProcedimento(request));
     }
     catch (Exception ex)
     {
         UIManager.AdministrationManager.DiagnosticError(ex);
         return(null);
     }
 }
コード例 #3
0
        protected void ProceedingsBtnPrint_Click(object sender, EventArgs e)
        {
            DocsPaWR.ReportProcedimentoRequest request = this.CreaRequest();

            DocsPaWR.ReportProcedimentoResponse response = ProceedingsManager.GetProcedimentiReport(request);

            if (response != null && response.Success)
            {
                if (response.Doc != null && response.Doc.content != null)
                {
                    this.UpPnlDocumentData.Visible = true;
                    FileManager.setSelectedFileReport(this, response.Doc, "../popup");
                    this.frame.Attributes["src"] = "../Summaries/PDFViewer.aspx";

                    this.UpPnlDocumentData.Update();
                    this.UpPnlContentDxSx.Update();
                }
                else
                {
                    string msg = "ProceedingsReportNoDataFound";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');} else {parent.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');}", true);

                    this.UpPnlDocumentData.Visible = false;
                    this.UpPnlDocumentData.Update();
                    this.UpPnlContentDxSx.Update();
                }
            }
            else
            {
                string msg = "ProceedingsReportError";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'error', '');} else {parent.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');}", true);

                this.UpPnlDocumentData.Visible = false;
                this.UpPnlDocumentData.Update();
                this.UpPnlContentDxSx.Update();
            }
        }