예제 #1
0
 /// <summary>
 /// Constructor for form
 /// </summary>
 /// <param name="theViewVisitForm"></param>
 public OrderNewLabTestForm(ViewVisitForm theViewVisitForm)
 {
     this.theLabTestController          = new LabTestController();
     this.theConductedLabTestController = new ConductedLabTestController();
     this.referringForm         = theViewVisitForm;
     this.referringForm.Enabled = false;
     InitializeComponent();
     this.SetLabTestListBox();
 }
예제 #2
0
 /// <summary>
 /// Constructor for the form
 /// </summary>
 /// <param name="theVisit">The Visit object being managed in the form</param>
 public ViewVisitForm(Visit theVisit)
 {
     InitializeComponent();
     this.theDiagnosisController        = new DiagnosisController();
     this.theConductedLabTestController = new ConductedLabTestController();
     this.theVisit = theVisit ?? throw new ArgumentNullException("theVisit", "The visit object cannot be null.");
     this.LoadDiagnosis();
     this.EnableDisableButtons();
     this.LoadTests();
 }
예제 #3
0
 /// <summary>
 /// Constructor for the form
 /// </summary>
 /// <param name="testCode">the test code associated with the conducted test (part of the key)</param>
 /// <param name="referringForm">the referring ViewVisitForm</param>
 public EnterLabTestResultForm(int testCode, ViewVisitForm referringForm)
 {
     InitializeComponent();
     this.referringForm = referringForm;
     this.testCode      = testCode;
     this.theConductedLabTestController = new ConductedLabTestController();
     this.currentConductedLabTest       = this.GetCurrentConductedLabTest();
     if (this.currentConductedLabTest.Results != null)
     {
         string boxMessage = "The lab result has already been recorded and cannot be edited.";
         string boxTitle   = "Lab Test Result Previously Recorded";
         MessageBox.Show(boxMessage, boxTitle);
         this.Close();
     }
     this.referringForm.Enabled = false;
     this.SetPrefilledValues();
 }