private void laodResitentInfo() { Resident resident = ResidentManager.GetResidentByID(int.Parse(Request.QueryString["ResidentID"])); lblAdmittedFrom.Text = resident.AdmissionFrom; lblPrimaryLanguage.Text = resident.ExtraField8; lblPhysicianName.Text = resident.AttendingPhysician; lblResidentName.Text = resident.Name; lblProperty.Text = resident.ExtraField7; }
private void laodResitentInfo() { try { Resident resident = ResidentManager.GetResidentByID(int.Parse(Request.QueryString["ResidentID"])); lblAdmittedFrom.Text = resident.AdmissionFrom; lblPharmacyPreference.Text = resident.PharmacyPreference + (resident.PharmacyPreferenceTelephone != ""? (", " + resident.PharmacyPreferenceTelephone):""); lblPhysicianName.Text = resident.AttendingPhysician; lblResidentName.Text = resident.Name; lblProperty.Text = resident.ExtraField7; lblCompnayName.Text = resident.ExtraField9; lblAllergy.Text = resident.ExtraField11; } catch (Exception ex) {} }
private void laodResitentInfo() { Resident resident = ResidentManager.GetResidentByID(int.Parse(Request.QueryString["ResidentID"])); txtPhysician.Text = resident.AttendingPhysician; }
private void showResidentData() { Resident resident = new Resident(); resident = ResidentManager.GetResidentByID(Int32.Parse(Request.QueryString["residentID"])); txtName.Text = resident.Name; txtAdmissionDate.Text = CheckNullDate(resident.AdmissionDate);//.ToString("dd MMM yyyy"); txtAdmissionFrom.Text = resident.AdmissionFrom; txtUsualOccupation.Text = resident.UsualOccupation; txtPlaceOfBirth.Text = resident.PlaceOfBirth; txtUsualAddress.Text = resident.UsualAddress; txtTelephone.Text = resident.Telephone; txtRace.Text = resident.Race; txtAge.Text = resident.Age.ToString(); txtDateOfBirth.Text = CheckNullDate(resident.DateOfBirth);//.ToString("dd MMM yyyy"); txtSex.Text = resident.Sex; txtMaritalStatus.Text = resident.MaritalStatus; txtHeight.Text = resident.Height; txtWeight.Text = resident.Weight; txtReligion.Text = resident.Religion; txtClergyman.Text = resident.Clergyman; txtChurchSynagogue.Text = resident.ChurchSynagogue; txtChurchSynagogueTelephone.Text = resident.ChurchSynagogueTelephone; txtAddress.Text = resident.Address; txtAddressTelephone.Text = resident.AddressTelephone; txtSocialSecurity.Text = resident.SocialSecurity; txtMedicare.Text = resident.Medicare; txtMedicaid.Text = resident.Medicaid; txtInsurance.Text = resident.Insurance; txtInsuranceAddress.Text = resident.InsuranceAddress; txtInsuranceAddressTelephone.Text = resident.InsuranceAddressTelephone; txtPolicy.Text = resident.Policy; txtInsuranceGroup.Text = resident.InsuranceGroup; txtInsuranceGroupNo.Text = resident.InsuranceGroupNo; txtResponsibleParty.Text = resident.ResponsibleParty; txtResponsiblePartyRelationship.Text = resident.ResponsiblePartyRelationship; txtResponsiblePartyAddress.Text = resident.ResponsiblePartyAddress; txtResponsiblePartyTelephone.Text = resident.ResponsiblePartyTelephone; txtPowerOfAttorney.Text = resident.PowerOfAttorney; txtPowerOfAttorneyAddress.Text = resident.PowerOfAttorneyAddress; txtPowerOfAttorneyRelationship.Text = resident.PowerOfAttorneyRelationship; txtPowerOfAttorneyTelephone.Text = resident.PowerOfAttorneyTelephone; txtNearestRelativeOrGuardian.Text = resident.NearestRelativeOrGuardian; txtNearestRelativeOrGuardianRelationship.Text = resident.NearestRelativeOrGuardianRelationship; txtNearestRelativeOrGuardianAddress.Text = resident.NearestRelativeOrGuardianAddress; txtNearestRelativeOrGuardianTelephone.Text = resident.NearestRelativeOrGuardianTelephone; txtNotifyInCaseOfEmergency.Text = resident.NotifyInCaseOfEmergency; txtNotifyInCaseOfEmergencyRelationship.Text = resident.NotifyInCaseOfEmergencyRelationship; txtNotifyInCaseOfEmergencyAddress.Text = resident.NotifyInCaseOfEmergencyAddress; txtNotifyInCaseOfEmergencyTelephone.Text = resident.NotifyInCaseOfEmergencyTelephone; txtHospitalPreference.Text = resident.HospitalPreference; txtHospitalPreferenceTelephone.Text = resident.HospitalPreferenceTelephone; txtHospitalPreferenceEmail.Text = resident.HospitalPreferenceEmail; txtFuneralHomePreference.Text = resident.FuneralHomePreference; txtFuneralHomePreferenceTelephone.Text = resident.FuneralHomePreferenceTelephone; txtPharmacyPreference.Text = resident.PharmacyPreference; txtPharmacyPreferenceTelephone.Text = resident.PharmacyPreferenceTelephone; txtDentist.Text = resident.Dentist; txtDentistTelephone.Text = resident.DentistTelephone; txtAttendingPhysician.Text = resident.AttendingPhysician; txtAttendingPhysicianAddress.Text = resident.AttendingPhysicianAddress; txtAttendingPhysicianTelephone.Text = resident.AttendingPhysicianTelephone; txtAlternatePhysician.Text = resident.AlternatePhysician; txtAlternatePhysicianAddress.Text = resident.AlternatePhysicianAddress; txtAlternatePhysicianTelephone.Text = resident.AlternatePhysicianTelephone; txtDateofLastPhysicalExam.Text = CheckNullDate(resident.DateofLastPhysicalExam);//.ToString("dd MMM yyyy"); txtYearlyPhysicalDue.Text = resident.YearlyPhysicalDue; txtDiagnosis.Text = resident.Diagnosis; txtAllergies.Text = resident.Allergies; txtDischargedOrExpiredDate.Text = CheckNullDate(resident.DischargedOrExpiredDate);//.ToString("dd MMM yyyy"); txtDischargedOrExpiredReason.Text = resident.DischargedOrExpiredReason; cbIsWithoutMDApproval.Checked = resident.IsWithoutMDApproval; txtReleasedTo.Text = resident.ReleasedTo; txtNewAddress.Text = resident.NewAddress; txtPlaceOfDeathAddressnCitynCountynState.Text = resident.PlaceOfDeathAddressnCitynCountynState; txtPrecinctNo.Text = resident.PrecinctNo; txtMorticianName.Text = resident.MorticianName; txtSignature.Text = resident.Signature; ddlPropertyID.SelectedValue = resident.ExtraField1; txtExtraField8.Text = resident.ExtraField8; ddlStatus.SelectedValue = resident.ExtraField10 == "InActive" ? "InActive" : "Active"; }
protected void btnUpdate_Click(object sender, EventArgs e) { Resident resident = new Resident(); resident = ResidentManager.GetResidentByID(Int32.Parse(Request.QueryString["residentID"])); Resident tempResident = new Resident(); tempResident.ResidentID = resident.ResidentID; tempResident.Name = txtName.Text; tempResident.AdmissionDate = ChangeTheDate(txtAdmissionDate.Text); tempResident.AdmissionFrom = txtAdmissionFrom.Text; tempResident.UsualOccupation = txtUsualOccupation.Text; tempResident.PlaceOfBirth = txtPlaceOfBirth.Text; tempResident.UsualAddress = txtUsualAddress.Text; tempResident.Telephone = txtTelephone.Text; tempResident.Race = txtRace.Text; tempResident.Age = Int32.Parse(txtAge.Text); tempResident.DateOfBirth = ChangeTheDate(txtDateOfBirth.Text); tempResident.Sex = txtSex.Text; tempResident.MaritalStatus = txtMaritalStatus.Text; tempResident.Height = txtHeight.Text; tempResident.Weight = txtWeight.Text; tempResident.Religion = txtReligion.Text; tempResident.Clergyman = txtClergyman.Text; tempResident.ChurchSynagogue = txtChurchSynagogue.Text; tempResident.ChurchSynagogueTelephone = txtChurchSynagogueTelephone.Text; tempResident.Address = txtAddress.Text; tempResident.AddressTelephone = txtAddressTelephone.Text; tempResident.SocialSecurity = txtSocialSecurity.Text; tempResident.Medicare = txtMedicare.Text; tempResident.Medicaid = txtMedicaid.Text; tempResident.Insurance = txtInsurance.Text; tempResident.InsuranceAddress = txtInsuranceAddress.Text; tempResident.InsuranceAddressTelephone = txtInsuranceAddressTelephone.Text; tempResident.Policy = txtPolicy.Text; tempResident.InsuranceGroup = txtInsuranceGroup.Text; tempResident.InsuranceGroupNo = txtInsuranceGroupNo.Text; tempResident.ResponsibleParty = txtResponsibleParty.Text; tempResident.ResponsiblePartyRelationship = txtResponsiblePartyRelationship.Text; tempResident.ResponsiblePartyAddress = txtResponsiblePartyAddress.Text; tempResident.ResponsiblePartyTelephone = txtResponsiblePartyTelephone.Text; tempResident.PowerOfAttorney = txtPowerOfAttorney.Text; tempResident.PowerOfAttorneyAddress = txtPowerOfAttorneyAddress.Text; tempResident.PowerOfAttorneyRelationship = txtPowerOfAttorneyRelationship.Text; tempResident.PowerOfAttorneyTelephone = txtPowerOfAttorneyTelephone.Text; tempResident.NearestRelativeOrGuardian = txtNearestRelativeOrGuardian.Text; tempResident.NearestRelativeOrGuardianRelationship = txtNearestRelativeOrGuardianRelationship.Text; tempResident.NearestRelativeOrGuardianAddress = txtNearestRelativeOrGuardianAddress.Text; tempResident.NearestRelativeOrGuardianTelephone = txtNearestRelativeOrGuardianTelephone.Text; tempResident.NotifyInCaseOfEmergency = txtNotifyInCaseOfEmergency.Text; tempResident.NotifyInCaseOfEmergencyRelationship = txtNotifyInCaseOfEmergencyRelationship.Text; tempResident.NotifyInCaseOfEmergencyAddress = txtNotifyInCaseOfEmergencyAddress.Text; tempResident.NotifyInCaseOfEmergencyTelephone = txtNotifyInCaseOfEmergencyTelephone.Text; tempResident.HospitalPreference = txtHospitalPreference.Text; tempResident.HospitalPreferenceTelephone = txtHospitalPreferenceTelephone.Text; tempResident.HospitalPreferenceEmail = txtHospitalPreferenceEmail.Text; tempResident.FuneralHomePreference = txtFuneralHomePreference.Text; tempResident.FuneralHomePreferenceTelephone = txtFuneralHomePreferenceTelephone.Text; tempResident.PharmacyPreference = txtPharmacyPreference.Text; tempResident.PharmacyPreferenceTelephone = txtPharmacyPreferenceTelephone.Text; tempResident.Dentist = txtDentist.Text; tempResident.DentistTelephone = txtDentistTelephone.Text; tempResident.AttendingPhysician = txtAttendingPhysician.Text; tempResident.AttendingPhysicianAddress = txtAttendingPhysicianAddress.Text; tempResident.AttendingPhysicianTelephone = txtAttendingPhysicianTelephone.Text; tempResident.AlternatePhysician = txtAlternatePhysician.Text; tempResident.AlternatePhysicianAddress = txtAlternatePhysicianAddress.Text; tempResident.AlternatePhysicianTelephone = txtAlternatePhysicianTelephone.Text; tempResident.DateofLastPhysicalExam = ChangeTheDate(txtDateofLastPhysicalExam.Text); tempResident.YearlyPhysicalDue = txtYearlyPhysicalDue.Text; tempResident.Diagnosis = txtDiagnosis.Text; tempResident.Allergies = txtAllergies.Text; tempResident.DischargedOrExpiredDate = ChangeTheDate(txtDischargedOrExpiredDate.Text); tempResident.DischargedOrExpiredReason = txtDischargedOrExpiredReason.Text; tempResident.IsWithoutMDApproval = cbIsWithoutMDApproval.Checked; tempResident.ReleasedTo = txtReleasedTo.Text; tempResident.NewAddress = txtNewAddress.Text; tempResident.PlaceOfDeathAddressnCitynCountynState = txtPlaceOfDeathAddressnCitynCountynState.Text; tempResident.PrecinctNo = txtPrecinctNo.Text; tempResident.MorticianName = txtMorticianName.Text; tempResident.Signature = txtSignature.Text; tempResident.ExtraField1 = ddlPropertyID.SelectedValue; tempResident.ExtraField2 = resident.ExtraField2; tempResident.ExtraField3 = resident.ExtraField3; tempResident.ExtraField4 = DateTime.Now.ToString("MM/dd/yyyy hh:mm tt"); tempResident.ExtraField5 = getLogin().FirstName + " " + getLogin().MiddleName + " " + getLogin().LastName; tempResident.ExtraField6 = ""; tempResident.ExtraField7 = ""; tempResident.ExtraField8 = txtExtraField8.Text; tempResident.ExtraField9 = ""; tempResident.ExtraField10 = ddlStatus.SelectedValue; bool result = ResidentManager.UpdateResident(tempResident); lblMsg1.Visible = true; lblMsg2.Visible = true; lblMsg3.Visible = true; //Response.Redirect("AdminResidentDisplay.aspx"); }