Beispiel #1
0
        //constructor
        public NHIFPDFBuilder(NHIFReportModel nhifreportmodel,
                              string FileName)
        {
            if (nhifreportmodel == null)
            {
                throw new ArgumentNullException("NHIFReportModel is null");
            }
            _ViewModel = nhifreportmodel;

            sFilePDF = FileName;
        }
Beispiel #2
0
 public bool ShowNHIF(string app, NHIFReportModel nhifreportmodel, string sFilePDF)
 {
     bRet = false;
     try
     {
         if ("pdf".Equals(app.ToLower()))
         {
             NHIFPDFBuilder payPdfMaker = new NHIFPDFBuilder(nhifreportmodel, sFilePDF);
             payPdfMaker.GetPDF();
             return(true);
         }
         else
         {
             NHIFExcelBuilder pe = new NHIFExcelBuilder(nhifreportmodel, sFilePDF);
             pe.GetExcel();
             return(true);
         }
     }
     catch (Exception ex)
     {
         Utils.ShowError(ex);
         return(false);
     }
 }
 //constructor
 public NHIFExcelBuilder(NHIFReportModel nhifreportmodel, string FileName)
 {
     _nhifreportmodel = nhifreportmodel;
     sFileExcel       = FileName;
 }