protected void Page_Load(object sender, EventArgs e) { WebObjects.EnumToListBox(typeof(TheCancerProject.Core.GeneralExam), ddlGeneralExam); //WebObjects.EnumToListBox(typeof(TheCancerProject.Core.Texture), ddlTexture); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.LocationOfLesion), ddlLocationOfLesion); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.QuadrantLocated), ddlQuadrantLocated); Patient patient = SessionObjects.ThePatient; if (patient != null && patient.TheGeneralExamination != null) { txtWeight.Value = patient.TheGeneralExamination.Weight; txtHeight.Value = patient.TheGeneralExamination.Height; txtBMI.Value = patient.TheGeneralExamination.BMI; txtBSA.Value = patient.TheGeneralExamination.BSA; txtTemperature.Value = patient.TheGeneralExamination.Temperature; txtShape.Value = patient.TheGeneralExamination.Shape; txtOtherObservations.Value = patient.TheGeneralExamination.OtherObservations; txtColorOfSkinArea.Value = patient.TheGeneralExamination.ColorOfSkinArea; txtBloodPressure.Value = patient.TheGeneralExamination.BloodPressure; txtRespiratoryRate.Value = patient.TheGeneralExamination.RespiratoryRate; txtHeartSounds.Value = patient.TheGeneralExamination.HeartSounds; txtPulseRRate.Value = patient.TheGeneralExamination.PulseRate; ddlSymmetry.SelectedValue = Enum.GetName(typeof(Symmetry), SessionObjects.ThePatient.TheGeneralExamination.TheSymmetry); WebObjects.displayStoredSelectedListBoxValues(patient.TheGeneralExamination.TheGeneralExam, ddlGeneralExam); //WebObjects.displayStoredSelectedListBoxValues(patient.TheGeneralExamination.TheTexture, ddlTexture); WebObjects.displayStoredSelectedListBoxValues(patient.TheGeneralExamination.TheLocationOfLesion, ddlLocationOfLesion); WebObjects.displayStoredSelectedListBoxValues(patient.TheGeneralExamination.QuadrantLocated, ddlQuadrantLocated); } }
protected void Page_Load(object sender, EventArgs e) { WebObjects.EnumToListBox(typeof(TheCancerProject.Core.AxillaryLymphNodes), ddlAxillaryLymphNodes); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.SupraclavicularNodes), ddlSupraClavicularNodes); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.AnteriorChestWallNodules), ddlAnteriorChestWallNodules); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.LocationOfLesions), ddlLocationOfLesions); Patient patient = SessionObjects.ThePatient; if (patient != null && patient.TheBreastAndAxillaryExamination != null) { chkElevated.Checked = patient.TheBreastAndAxillaryExamination.Elevated; chkDeviated.Checked = patient.TheBreastAndAxillaryExamination.Deviated; chkCracks.Checked = patient.TheBreastAndAxillaryExamination.Cracks; chkFissure.Checked = patient.TheBreastAndAxillaryExamination.Fissure; chkUlcer.Checked = patient.TheBreastAndAxillaryExamination.Ulcer; chkScales.Checked = patient.TheBreastAndAxillaryExamination.Scale; chkDischarge.Checked = patient.TheBreastAndAxillaryExamination.Discharge; txtFindingsUnderBreast.Value = patient.TheBreastAndAxillaryExamination.FindingsUnderBreast; txtFindingsWithArmsOnHips.Value = patient.TheBreastAndAxillaryExamination.FindingsUnderArms; txtNumberOfLesions.Value = patient.TheBreastAndAxillaryExamination.NumberOfLesions; txtSize.Value = patient.TheBreastAndAxillaryExamination.Size; txtAreolaColour.Value = patient.TheBreastAndAxillaryExamination.AreolaColor; txtSurface.Value = patient.TheBreastAndAxillaryExamination.Surface; //chkFissures.Checked = patient.TheBreastAndAxillaryExamination.Elevated; ddlBreastWithLesion.SelectedValue = Enum.GetName(typeof(BreastWithLesion), SessionObjects.ThePatient.TheBreastAndAxillaryExamination.TheBreastWithLesion); ddlTemperature.SelectedValue = Enum.GetName(typeof(Temperature), SessionObjects.ThePatient.TheBreastAndAxillaryExamination.TheTemperature); ddlAppearance.SelectedValue = Enum.GetName(typeof(Appearance), SessionObjects.ThePatient.TheBreastAndAxillaryExamination.Appearance); ddlTypeOfDischarge.SelectedValue = Enum.GetName(typeof(TypeOfDischarge), SessionObjects.ThePatient.TheBreastAndAxillaryExamination.TypeOfDischarge); WebObjects.displayStoredSelectedListBoxValues(patient.TheBreastAndAxillaryExamination.TheAxillaryLymphNodes, ddlAxillaryLymphNodes); WebObjects.displayStoredSelectedListBoxValues(patient.TheBreastAndAxillaryExamination.TheSupraclavicularNodes, ddlSupraClavicularNodes); WebObjects.displayStoredSelectedListBoxValues(patient.TheBreastAndAxillaryExamination.TheAnteriorChestWallNodules, ddlAnteriorChestWallNodules); WebObjects.displayStoredSelectedListBoxValues(patient.TheBreastAndAxillaryExamination.TheLocationOfLesions, ddlLocationOfLesions); } }
protected void Page_Load(object sender, EventArgs e) { WebObjects.EnumToListBox(typeof(TheCancerProject.Core.PresentedComplaints), ddlPresentingComplaints); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.Cause), ddlCause); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.Complications), ddlComplications); WebObjects.EnumToListBox(typeof(TheCancerProject.Core.Care), ddlCare); #region displays the values from DB (including Listbox values) long theID = 1; Complaints theComp = new ComplaintsDAO().Retrieve(theID); TxtDuration.Value = theComp.DurationOfComplaints; txtHistoryOfComplaints.Value = theComp.HistoryOfPresentingComplaints; WebObjects.displayStoredSelectedListBoxValues(theComp.TheComplaints, ddlPresentingComplaints); WebObjects.displayStoredSelectedListBoxValues(theComp.TheComplications, ddlComplications); WebObjects.displayStoredSelectedListBoxValues(theComp.TheCause, ddlCause); WebObjects.displayStoredSelectedListBoxValues(theComp.TheCare, ddlCare); #endregion Patient patient = SessionObjects.ThePatient; if (patient != null && patient.TheComplaints != null) { TxtDuration.Value = patient.TheComplaints.DurationOfComplaints; txtHistoryOfComplaints.Value = patient.TheComplaints.HistoryOfPresentingComplaints; WebObjects.displayStoredSelectedListBoxValues(patient.TheComplaints.TheComplaints, ddlPresentingComplaints); WebObjects.displayStoredSelectedListBoxValues(patient.TheComplaints.TheComplications, ddlComplications); WebObjects.displayStoredSelectedListBoxValues(patient.TheComplaints.TheCause, ddlCause); WebObjects.displayStoredSelectedListBoxValues(patient.TheComplaints.TheCare, ddlCare); } }
protected void Page_Load(object sender, EventArgs e) { WebObjects.EnumToListBox(typeof(TheCancerProject.Core.PastMedicalHistory), ddlPastMedHistory); Patient patient = SessionObjects.ThePatient; if (patient != null && patient.ThePreliminaryExamination != null) { txtAllergicReactions.Value = patient.ThePreliminaryExamination.AllergicReactions; txtDurationOfMenses.Value = patient.ThePreliminaryExamination.DurationOfMenses; txtLengthOfMenstrualCycle.Value = patient.ThePreliminaryExamination.LengthOfMestrualCycle; txtParity.Value = patient.ThePreliminaryExamination.Parity; txtPastSurgicalHistory.Value = patient.ThePreliminaryExamination.PastSurgicalHistory; txtRoutineMedications.Value = patient.ThePreliminaryExamination.RoutineMedications; WebObjects.displayStoredSelectedListBoxValues(patient.ThePreliminaryExamination.MedicalHistory, ddlPastMedHistory); } }