public P9AHospPDFBuilder(string ResourcePath, P9AHOSPReportModel P9AHOSPModel, string FileName)
        {
            if (P9AHOSPModel == null)
            {
                throw new ArgumentNullException("P9AHOSPReportModel is null");
            }
            _ViewModel = P9AHOSPModel;

            sFilePDF      = FileName;
            _resourcePath = ResourcePath;
        }
Exemplo n.º 2
0
 public bool ShowP9AHOSP(P9AHOSPReportModel p9A, string sFilePDF)
 {
     bRet = false;
     try
     {
         P9AHospPDFBuilder p9Maker = new P9AHospPDFBuilder(resourcePath, p9A, sFilePDF);
         p9Maker.GetP9AHOSPPDF();
         return(true);
     }
     catch (Exception ex)
     {
         Utils.ShowError(ex);
         return(false);
     }
 }