protected void GeneratePdf(object sender, EventArgs eventArgs)
        {
            string requestGroup = LogsPal.GetRequestGroup(Identifier.Value);

            bool success = PdfMethods.GeneratePdfPal(requestGroup, rptViewerDemandesPdf);

            //bool success = PdfMethods.GeneratePdfPalSolo(Identifier.Value, rptViewerDemandesPdf);
            if (success)
            {
                collapseElmPdf.Attributes["class"] = "collapse show";
            }
        }
Exemple #2
0
        protected void GeneratePdf(object sender, EventArgs eventArgs)
        {
            bool success;

            if (Origin.Value == "NOT_PAL")
            {
                success = PdfMethods.GeneratePdf(Identifier.Value, Cote.Value, rptViewerArchiviste);
            }
            else if (Origin.Value == "CONSULTER")
            {
                success = PdfMethods.GeneratePdfConsult(LogsPal.GetRequestGroup(Cote.Value), rptViewerArchiviste);
            }
            else
            {
                success = PdfMethods.GeneratePdfPal(LogsPal.GetRequestGroup(Cote.Value), rptViewerArchiviste);
            }

            if (success)
            {
                collapseElm.Attributes["class"] = "collapse show";
            }
        }