void LoadEmployeePersonnelDetails(object sender, EventArgs e) { try { ATTPerson person = BLLPerson.GetPersonWithPersonnelAttributeByID(double.Parse(this.txtPersonID.Text)); this.txtFName_Rqd.Text = person.FirstName.ToString().Trim(); this.txtMName.Text = person.MidName.ToString().Trim(); this.txtSurName_Rqd.Text = person.SurName.ToString().Trim(); this.txtDOB_DT.Text = person.DOB.ToString().Trim(); if (person.Gender.ToString().Trim() != "") { this.ddlGender.SelectedValue = person.Gender.ToString().Trim(); } if (person.MaritalStatus.ToString().Trim() != "") { this.ddlMarStatus.SelectedValue = person.MaritalStatus.ToString().Trim(); } if (person.CountryId.ToString() != "") { this.ddlCountry.SelectedValue = person.CountryId.ToString(); } if (person.BirthDistrict.ToString() != "") { this.ddlBirthDistrict.SelectedValue = person.BirthDistrict.ToString(); } if (person.ReligionId.ToString() != "") { this.ddlReligion.SelectedValue = person.ReligionId.ToString(); } this.LoadPersonAttributes(person); } catch (Exception ex) { this.lblStatusMessage.Text = ex.Message; this.programmaticModalPopup.Show(); } }
public static ATTLawyerPerson GetLawyerWithDetailInfoByID(double PID) { try { ATTLawyerPerson obj = new ATTLawyerPerson(); ATTPerson objPerson = BLLPerson.GetPersonWithPersonnelAttributeByID(PID); //ATTPerson GetPersonWithPersonnelAttributeByID obj.PId = PID; obj.FirstName = objPerson.FirstName; obj.MidName = objPerson.MidName; obj.SurName = objPerson.SurName; obj.Gender = objPerson.Gender; obj.DOB = objPerson.DOB; obj.MaritalStatus = objPerson.MaritalStatus; obj.CountryId = objPerson.CountryId; obj.BirthDistrict = objPerson.BirthDistrict; obj.ReligionId = objPerson.ReligionId; obj.Photo = objPerson.Photo; obj.LstPersonAddress = objPerson.LstPersonAddress; obj.LstPersonPhone = objPerson.LstPersonPhone; obj.LstPersonEMail = objPerson.LstPersonEMail; obj.LstPersonQualification = objPerson.LstPersonQualification; obj.LstLawyer = BLLLawyer.GetLawyerDetails(PID); return(obj); } catch (Exception ex) { throw(ex); } }