/// <summary> /// Constructor for the form /// </summary> /// <param name="referringForm">the form from which this form was opened</param> public AddDiagnosisForm(ViewVisitForm referringForm) { InitializeComponent(); this.theDiagnosisController = new DiagnosisController(); this.referringForm = referringForm; this.referringForm.Enabled = false; }
/// <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(); }
/// <summary> /// Constructor for the edit visit information form /// </summary> /// <param name="viewVisitForm">the referring form</param> public EditVisitForm(ViewVisitForm viewVisitForm, int appointmentId, int nurseId) { InitializeComponent(); this.viewVisitForm = viewVisitForm; this.theVisitController = new VisitController(); this.theAppointmentController = new AppointmentController(); this.theAppointment = this.theAppointmentController.GetAppointment(appointmentId); this.nurseId = nurseId; this.InitializeFormData(); }
/// <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(); }