Пример #1
0
 public void Initialize(PEMR_HeaderAndFooterTemplate_A4_rpt reportParentTemplate,
                        PEMR_PatientMedicalRecordReportContainer_rpt report)
 {
     ActiveReport = report;
     activeHeaderAndFooterTemplateA4Rpt = reportParentTemplate;
     ActiveReport.CreateDocument();
     reportParentTemplate.CreateDocument();
     ActiveReport.Initialize(PEMRBusinessLogic.ActivePEMRObject);
     documentViewer1.DocumentSource = reportParentTemplate;
 }
 public void ShowPreviousVisitPEMR()
 {
     splitContainerControl1.Panel2.Controls.Clear();
     CommonViewsActions.ShowUserControl(ref _medicalRecordContainer, splitContainerControl1.Panel2);
     if (_medicalRecordContainer != null)
     {
         PEMR_HeaderAndFooterTemplate_A4_rpt          templateReport = new PEMR_HeaderAndFooterTemplate_A4_rpt();
         PEMR_PatientMedicalRecordReportContainer_rpt patientMedicalRecordReportContainer =
             new PEMR_PatientMedicalRecordReportContainer_rpt();
         patientMedicalRecordReportContainer.Initialize(PEMRBusinessLogic.ActivePEMRObject);
         templateReport =
             PEMR_HeaderAndFooterTemplate_A4_rpt.Initialize(patientMedicalRecordReportContainer, true);
         _medicalRecordContainer.Initialize(templateReport, patientMedicalRecordReportContainer);
     }
 }
Пример #3
0
 private void tabMain_SelectedPageChanged(object sender, TabPageChangedEventArgs e)
 {
     if (tabMain.SelectedTabPage.Name == "tabPEMR")
     {
         CommonViewsActions.ShowUserControl(ref _medicalRecordContainer, tabPEMR);
         if (_medicalRecordContainer != null)
         {
             PEMR_HeaderAndFooterTemplate_A4_rpt          templateReport = new PEMR_HeaderAndFooterTemplate_A4_rpt();
             PEMR_PatientMedicalRecordReportContainer_rpt patientMedicalRecordReportContainer =
                 new PEMR_PatientMedicalRecordReportContainer_rpt();
             patientMedicalRecordReportContainer.Initialize(PEMRBusinessLogic.ActivePEMRObject);
             templateReport =
                 PEMR_HeaderAndFooterTemplate_A4_rpt.Initialize(patientMedicalRecordReportContainer, true);
             _medicalRecordContainer.Initialize(templateReport, patientMedicalRecordReportContainer);
         }
     }
 }