예제 #1
0
 public bool Load(uint id)
 {
     MessageLogManager.LogMessage("CLIN REPORT MANAGER - LR(bI) ==> Loading CLIN Report...");
     try
     {
         report = reports[id];
         MessageLogManager.LogMessage("CLIN REPORT MANAGER - LR(bI) ==> CLIN Report loaded: " + report.FullFileName);
     } catch (Exception e)
     {
         MessageLogManager.LogMessage("CLIN REPORT MANAGER - LR(bI) ==> CLIN Report failed to load: " + id.ToString() + "\n" + e.Message + "\n" + e.InnerException + "\n" + e.Source + "\n" + e.TargetSite);
         return(false);
     }
     return(true);
 }
예제 #2
0
 public bool Load(string @fullReportName)
 {
     MessageLogManager.LogMessage("CLIN REPORT MANAGER - LR+CR ==> Loading CLIN Report...");
     if (((report = (CLINReport)LoadReport(fullReportName)) != null || Create()) && SaveReport(report.FullFileName, report))
     {
         if (!reports.ContainsKey(report.Id))
         {
             reports.Add(report.Id, report);
         }
         MessageLogManager.LogMessage("CLIN REPORT MANAGER - LR+CR ==> CLIN Report loaded:\n" + report.FullFileName);
         return(true);
     }
     MessageLogManager.LogMessage("CLIN REPORT MANAGER - LR+CR ==> CLIN Report failed to load: " + fullReportName);
     return(false);
 }
예제 #3
0
 private bool Create()
 {
     MessageLogManager.LogMessage("CLIN REPORT MANAGER - CR ==> Creating CLIN Report...");
     try
     {
         uint id = (uint)GetLastReportNumberID(CLINDirectory);
         report = new CLINReport(id, CLINDirectory);
         MessageLogManager.LogMessage("CLIN REPORT MANAGER - CR ==> CLIN Report created: " + report.FullFileName);
         return(true);
     } catch (Exception e)
     {
         MessageLogManager.LogMessage("CLIN REPORT MANAGER - CR ==> CLIN Report failed to create:\n" + e.Message + "\n" + e.InnerException + "\n" + e.Source + "\n" + e.TargetSite);
         return(false);
     }
 }