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);
     }
 }
Esempio n. 2
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);
         }
     }
 }