Ejemplo n.º 1
0
        private void UpdateReportSignature(MassiveOperationReport report)
        {
            if (report != null)
            {
                List <string> idDocumentSigned = new List <string>();
                string        idDocumento      = string.Empty;
                foreach (DataRow row in report.GetDataSet().Tables[0].Rows)
                {
                    idDocumento = row["ObjId"].ToString().Replace("P", "").Replace("C", "");
                    string oggetto = (from i in this.ListaElementiLibroFirma
                                      where i.InfoDocumento.Docnumber.Equals(idDocumento)
                                      select i.InfoDocumento.Oggetto).FirstOrDefault();
                    ReportSignatureSelected.AddReportRow(
                        oggetto,
                        ((MassiveOperationReport.MassiveOperationResultEnum)Enum.Parse(typeof(MassiveOperationReport.MassiveOperationResultEnum),
                                                                                       row["Result"].ToString())), row["Details"].ToString());

                    if (row["Result"].ToString().Equals(MassiveOperationReport.MassiveOperationResultEnum.OK.ToString()))
                    {
                        this.ListIdDocumentSigned.Add(idDocumento);
                    }
                }
            }
            else
            {
                foreach (string id in this.ListCheck.Keys)
                {
                    string oggetto = (from i in this.ListaElementiLibroFirma where i.InfoDocumento.Docnumber.Equals(id.Replace("P", "").Replace("C", "")) select i.InfoDocumento.Oggetto).FirstOrDefault();
                    ReportSignatureSelected.AddReportRow(
                        oggetto,
                        MassiveOperationReport.MassiveOperationResultEnum.KO,
                        "Firma annullata dall'utente");
                }
            }
        }
Ejemplo n.º 2
0
        public void generateReport(MassiveOperationReport report, string titolo, bool isFasc)
        {
            this.grdReport.DataSource = report.GetDataSet();
            this.grdReport.DataBind();
            this.pnlReport.Visible = true;
            string template = (isFasc) ? "formatPdfExport_fasc.xml" : "formatPdfExport.xml";

            report.GenerateDataSetForExport(Server.MapPath(template), titolo);
        }
Ejemplo n.º 3
0
        private void GenerateReport(MassiveOperationReport report, string titolo)
        {
            this.grdReport.DataSource = report.GetDataSet();
            this.grdReport.DataBind();
            this.pnlReport.Visible = true;
            this.upReport.Update();

            this.plcMessage.Visible = false;
            this.UpPnlMessage.Update();

            this.BtnConfirm.Enabled = false;
            this.UpPnlButtons.Update();
        }
Ejemplo n.º 4
0
        public void GenerateReport(MassiveOperationReport report, string titolo)
        {
            this.grdReport.DataSource = report.GetDataSet();
            this.grdReport.DataBind();
            this.pnlReport.Visible = true;
            this.upReport.Update();

            string template = "../xml/massiveOp_formatPdfExport.xml";

            report.GenerateDataSetForExport(Server.MapPath(template), titolo);
            this.BtnReport.Visible = true;
            this.UpPnlButtons.Update();
        }
Ejemplo n.º 5
0
        private void generateReport(MassiveOperationReport report, string titolo)
        {
            this.grdReport.DataSource = report.GetDataSet();
            this.grdReport.DataBind();
            this.pnlReport.Visible = true;
            this.upReport.Update();

            string template = "../xml/massiveOp_formatPdfExport.xml";

            report.GenerateDataSetForExport(Server.MapPath(template), titolo);

            this.SignatureSelectedItemsCancel.Text     = Utils.Languages.GetLabelFromCode("SignatureSelectedItemsClose", UserManager.GetUserLanguage());
            this.SignatureSelectedItemsConfirm.Enabled = false;
            this.BtnReport.Visible = true;
            this.UpPnlButtons.Update();
        }
Ejemplo n.º 6
0
        public void generateReport(MassiveOperationReport report, string titolo, bool isFasc)
        {
            this.grdReport.DataSource = report.GetDataSet();
            this.grdReport.DataBind();
            this.pnlReport.Visible = true;
            this.upReport.Update();

            string template = (isFasc) ? "../xml/massiveOp_formatPdfExport_fasc.xml" : "../xml/massiveOp_formatPdfExport.xml";

            report.GenerateDataSetForExport(Server.MapPath(template), titolo);

            this.plcMessage.Visible = false;
            this.UpPnlMessage.Update();

            this.BtnConfirm.Enabled = false;
            this.BtnReport.Visible  = true;
            this.UpPnlButtons.Update();
        }