public void EditMode_FILLDATA(int id) { //rdo_new.Enabled = true; //rdo_old.Enabled = true; //rdo_local.Enabled = true; //rdo_outside.Enabled = true; objPatient = new Base_BLL_Patient(); objPatient.GetPatient(id); txtPatient_ID.Text = Convert.ToString(id); txtPatient_Name.Text = objPatient.FullName; if (objPatient.IsNew == 1) { rdo_new.Checked = true; rdo_old.Checked = false; } else { rdo_new.Checked = false; rdo_old.Checked = true; } if (objPatient.IsLocalite == 1) { rdo_local.Checked = true; rdo_outside.Checked = false; } else { rdo_local.Checked = false; rdo_outside.Checked = true; } rdo_new.Enabled = false; rdo_old.Enabled = false; rdo_local.Enabled = false; rdo_outside.Enabled = false; txt_appointmentDate.Text = objPatient.AppointmentDate; //Testing }
protected void FillData_EditMode() { obj_Patient.GetPatient(Convert.ToInt32(Request.QueryString["FK_PatientID"])); txt_PatientRegNo.Text = obj_Patient.PatientRegID; txt_FirstName.Text = obj_Patient.FirstName; txt_MiddelName.Text = obj_Patient.MiddleName; txt_LastName.Text = obj_Patient.LastName; txt_CurrentAddress.Text = obj_Patient.LocalAddress; txt_PermanentAddress.Text = obj_Patient.PermenentAddress; txt_ImageUrl.Text = obj_Patient.ImageUrl; img_PatientImage.ImageUrl = obj_Patient.ImageUrl; drp_Gender.SelectedValue = obj_Patient.Gender.ToString(); txt_DOB.Text = obj_Patient.Birthdate; txt_Age.Text = obj_Patient.Age.ToString(); drp_BloodGroup.SelectedValue = obj_Patient.BloodGroup; txt_PhoneNumber.Text = obj_Patient.PhoneNo; txt_MobileNumber.Text = obj_Patient.MobileNo; drp_MaritalStatus.SelectedValue = obj_Patient.MarritalStatus; chk_IsLocalite.Checked = Convert.ToBoolean(obj_Patient.IsLocalite); txt_Weight.Text = obj_Patient.Weight.ToString(); Base_BLL_CommonFunction.FillRefferedBy(drp_ReferredBy, Convert.ToInt32(Session["FK_HospitalID"])); drp_ReferredBy.SelectedValue = obj_Patient.RefferedBy.ToString(); Base_BLL_CommonFunction.FillCountry(drp_Country, Convert.ToInt32(Session["FK_HospitalID"])); drp_Country.SelectedValue = obj_Patient.Country.ToString(); Base_BLL_CommonFunction.FillState(drp_State, obj_Patient.Country, Convert.ToInt32(Session["FK_HospitalID"])); drp_State.SelectedValue = obj_Patient.State.ToString(); Base_BLL_CommonFunction.FillCity(drp_City, obj_Patient.Country, obj_Patient.State, Convert.ToInt32(Session["FK_HospitalID"])); drp_City.SelectedValue = obj_Patient.City.ToString(); chk_IsNew.Checked = Convert.ToBoolean(obj_Patient.IsNew); txt_Note.Text = obj_Patient.Note; }