protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); userVo = (UserVo)Session["userVo"]; customerVo = (CustomerVo)Session["CustomerVo"]; RMVo customerRMVo = new RMVo(); if (customerVo.SubType == "MNR") { trGuardianName.Visible = true; } else { trGuardianName.Visible = false; } if (userVo.UserType.Trim() == "Adviser" || userVo.UserType.Trim() == "RM" || userVo.UserType.Trim() == "Branch Man" || userVo.UserType.Trim() == "Advisor") { trDelete.Visible = true; } else { trDelete.Visible = false; } if (customerVo.ProfilingDate.Year == 1800 || customerVo.ProfilingDate == DateTime.MinValue) { lblProfilingDate.Text = ""; } else { lblProfilingDate.Text = customerVo.ProfilingDate.ToShortDateString().ToString(); } if (customerVo.Dob.Year == 1800 || customerVo.Dob == DateTime.MinValue) { lblDob.Text = ""; } else { lblDob.Text = customerVo.Dob.ToShortDateString().ToString(); } //hdnassociationcount.Value = customerBo.GetAssociationCount("C", customerVo.CustomerId).ToString(); lblGuardianName.Text = customerVo.ContactFirstName + " " + customerVo.ContactMiddleName + " " + customerVo.ContactLastName; lblName.Text = customerVo.FirstName.ToString() + " " + customerVo.MiddleName.ToString() + " " + customerVo.LastName.ToString(); lblCustCode.Text = customerVo.CustCode.ToString(); lblPanNum.Text = customerVo.PANNum.ToString(); lblCorrLine1.Text = customerVo.Adr1Line1.ToString(); lblCorrLine2.Text = customerVo.Adr1Line2.ToString(); lblCorrLine3.Text = customerVo.Adr1Line3.ToString(); lblCorrPinCode.Text = customerVo.Adr1PinCode.ToString(); lblCorrCity.Text = customerVo.Adr1City.ToString(); if (customerVo.BranchName != null && customerVo.BranchName.ToString() != "") { lblBranch.Text = customerVo.BranchName.ToString(); } else { lblBranch.Text = ""; } customerRMVo = adviserStaffBo.GetAdvisorStaffDetails(customerVo.RmId); if (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName != null && (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName).ToString() != "") { lblRM.Text = customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName; } else { lblRM.Text = ""; } if (customerVo.JobStartDate.Year == 1800 || customerVo.JobStartDate == DateTime.MinValue) { lblJobStart.Text = ""; } else { lblJobStart.Text = customerVo.JobStartDate.ToShortDateString().ToString(); } if (customerVo.ResidenceLivingDate.Year == 1800 || customerVo.ResidenceLivingDate == DateTime.MinValue) { lblLiving.Text = ""; } else { lblLiving.Text = customerVo.ResidenceLivingDate.ToShortDateString().ToString(); } if (customerVo.Adr1State == "") { lblCorrState.Text = ""; } else { lblCorrState.Text = XMLBo.GetStateName(path, customerVo.Adr1State.ToString()); } lblMotherMaiden.Text = customerVo.MothersMaidenName.ToString(); lblCorrCountry.Text = customerVo.Adr1Country.ToString(); lblPermLine1.Text = customerVo.Adr2Line1.ToString(); lblPermLine2.Text = customerVo.Adr2Line2.ToString(); lblPermLine3.Text = customerVo.Adr2Line3.ToString(); lblPermPinCode.Text = customerVo.Adr2PinCode.ToString(); lblPermCity.Text = customerVo.Adr2City.ToString(); if (customerVo.Adr2State == "") { lblPermState.Text = ""; } else { lblPermState.Text = XMLBo.GetStateName(path, customerVo.Adr2State.ToString()); } lblPermCountry.Text = customerVo.Adr2Country.ToString(); lblCompanyName.Text = customerVo.CompanyName.ToString(); lblOfcLine1.Text = customerVo.OfcAdrLine1.ToString(); lblOfcLine2.Text = customerVo.OfcAdrLine2.ToString(); lblOfcLine3.Text = customerVo.OfcAdrLine3.ToString(); lblOfcPinCode.Text = customerVo.OfcAdrPinCode.ToString(); lblOfcCity.Text = customerVo.OfcAdrCity.ToString(); if (customerVo.OfcAdrState == "") { lblOfcState.Text = ""; } else { lblOfcState.Text = XMLBo.GetStateName(path, customerVo.OfcAdrState.ToString()); } lblOfcCountry.Text = customerVo.OfcAdrCountry.ToString(); lblResPhone.Text = customerVo.ResISDCode.ToString() + "-" + customerVo.ResSTDCode.ToString() + "-" + customerVo.ResPhoneNum.ToString(); lblOfcPhone.Text = customerVo.OfcISDCode.ToString() + "-" + customerVo.OfcSTDCode.ToString() + "-" + customerVo.OfcPhoneNum.ToString(); lblOfcFax.Text = customerVo.OfcISDFax.ToString() + "-" + customerVo.OfcSTDFax.ToString() + "-" + customerVo.OfcFax.ToString(); lblResFax.Text = customerVo.ISDFax.ToString() + "-" + customerVo.STDFax.ToString() + "-" + customerVo.Fax.ToString(); lblMobile1.Text = customerVo.Mobile1.ToString(); lblMobile2.Text = customerVo.Mobile2.ToString(); lblEmail.Text = customerVo.Email.ToString(); lblAltEmail.Text = customerVo.AltEmail.ToString(); if (customerVo.DummyPAN == 1) { chkdummypan.Checked = true; } else { chkdummypan.Checked = false; } if (customerVo.IsProspect == 1) { chkprospect.Checked = true; } else { chkprospect.Checked = false; } if (customerVo.ViaSMS == 1) { chksms.Checked = true; } else { chksms.Checked = false; } if (customerVo.AlertViaEmail == 1) { chkmail.Checked = true; } else { chkmail.Checked = false; } if (customerVo.Occupation != null) { lblOccupation.Text = XMLBo.GetOccupationName(path, customerVo.Occupation.ToString()); } else { lblOccupation.Text = ""; } if (customerVo.MaritalStatus != null) { lblMaritalStatus.Text = XMLBo.GetMaritalStatusName(path, customerVo.MaritalStatus.ToString()); } else { lblMaritalStatus.Text = ""; } if (customerVo.MarriageDate.Year == 1800 || customerVo.MarriageDate == DateTime.MinValue) { lblMarriageDate.Text = ""; } else { lblMarriageDate.Text = customerVo.MarriageDate.ToShortDateString(); } if (customerVo.Qualification != null) { lblQualification.Text = XMLBo.GetQualificationName(path, customerVo.Qualification.ToString()); } else { lblQualification.Text = ""; } if (customerVo.Nationality != null) { lblNationality.Text = XMLBo.GetNationalityName(path, customerVo.Nationality.ToString()); } else { lblNationality.Text = ""; } lblRBIRefNo.Text = customerVo.RBIRefNum.ToString(); if (customerVo.RBIApprovalDate.Year == 1800 || customerVo.RBIApprovalDate == DateTime.MinValue) { lblRBIRefDate.Text = ""; } else { lblRBIRefDate.Text = customerVo.RBIApprovalDate.ToShortDateString().ToString(); } if (customerVo.Nationality != null) { lblNationality.Text = XMLBo.GetNationalityName(path, customerVo.Nationality.ToString()); } else { lblNationality.Text = ""; } lblType.Text = XMLBo.GetCustomerTypeName(path, customerVo.Type); lblSubType.Text = XMLBo.GetCustomerSubTypeName(path, customerVo.SubType); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewCustomerIndividualProfile.ascx:Page_Load()"); object[] objects = new object[3]; objects[0] = customerVo; objects[1] = path; objects[2] = userVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); userVo = (UserVo)Session["userVo"]; customerVo = (CustomerVo)Session["CustomerVo"]; if (userVo.UserType.Trim() == "Adviser" || userVo.UserType.Trim() == "RM" || userVo.UserType.Trim() == "Branch Man" || userVo.UserType.Trim() == "Advisor") { trDelete.Visible = true; } else { trDelete.Visible = false; } if (customerVo.ProfilingDate == DateTime.MinValue) { lblProfilingDate.Text = ""; } else { lblProfilingDate.Text = customerVo.ProfilingDate.ToShortDateString(); } lblType.Text = XMLBo.GetCustomerTypeName(path, customerVo.Type); lblSubType.Text = XMLBo.GetCustomerSubTypeName(path, customerVo.SubType); lblName.Text = customerVo.ContactFirstName + " " + customerVo.ContactMiddleName + " " + customerVo.ContactLastName; lblCustomerCode.Text = customerVo.CustCode.ToString(); lblPanNum.Text = customerVo.PANNum.ToString(); lblCompanyName.Text = customerVo.CompanyName; if (customerVo.BranchName != null) { lblBranch.Text = customerVo.BranchName.ToString(); } if (customerVo.RegistrationDate == DateTime.MinValue) { lblRegistrationDate.Text = ""; } else { lblRegistrationDate.Text = customerVo.RegistrationDate.ToShortDateString(); } if (customerVo.CommencementDate == DateTime.MinValue) { lblCommencementDate.Text = ""; } else { lblCommencementDate.Text = customerVo.CommencementDate.ToShortDateString(); } lblRegistrationNum.Text = customerVo.RegistrationNum.ToString(); lblRegistrationPlace.Text = customerVo.RegistrationPlace.ToString(); lblCompanyWebsite.Text = customerVo.CompanyWebsite.ToString(); if (customerVo.DummyPAN == 1) { chkdummypan.Checked = true; } else { chkdummypan.Checked = false; } //if (customerVo.IsProspect == 1) //{ // chkprospectn.Checked = true; //} //else //{ // chkprospectn.Checked = false; //} if (customerVo.ViaSMS == 1) { chksmsn.Checked = true; } else { chksmsn.Checked = false; } if (customerVo.AlertViaEmail == 1) { chkmailn.Checked = true; } else { chkmailn.Checked = false; } lblCustomerCode.Text = customerVo.CustCode.ToString(); customerRMVo = adviserStaffBo.GetAdvisorStaffDetails(customerVo.RmId); if (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName != null && (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName).ToString() != "") { lblRM.Text = customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName; } else { lblRM.Text = ""; } lblPanNum.Text = customerVo.PANNum.ToString(); lblCorrLine1.Text = customerVo.Adr1Line1.ToString(); lblCorrLine2.Text = customerVo.Adr1Line2.ToString(); lblCorrLine3.Text = customerVo.Adr1Line3.ToString(); lblCorrPinCode.Text = customerVo.Adr1PinCode.ToString(); lblCorrCity.Text = customerVo.Adr1City.ToString(); if (customerVo.Adr1State != "") { lblCorrState.Text = XMLBo.GetStateName(path, customerVo.Adr1State); } else { lblCorrState.Text = ""; } lblCorrCountry.Text = customerVo.Adr1Country.ToString(); lblPermLine1.Text = customerVo.Adr2Line1.ToString(); lblPermLine2.Text = customerVo.Adr2Line2.ToString(); lblPermLine3.Text = customerVo.Adr2Line3.ToString(); lblPermPinCode.Text = customerVo.Adr2PinCode.ToString(); lblPermCity.Text = customerVo.Adr2City.ToString(); if (customerVo.Adr2State.ToString() != string.Empty) { lblPermState.Text = XMLBo.GetStateName(path, customerVo.Adr2State); } else { lblPermState.Text = ""; } lblPermCountry.Text = customerVo.Adr2Country.ToString(); lblResPhone.Text = customerVo.ResISDCode.ToString() + "-" + customerVo.ResSTDCode.ToString() + "-" + customerVo.ResPhoneNum.ToString(); lblOfcPhone.Text = customerVo.OfcISDCode.ToString() + "-" + customerVo.OfcSTDCode.ToString() + "-" + customerVo.OfcPhoneNum.ToString(); lblResFax.Text = customerVo.Fax.ToString() + "-" + customerVo.ISDFax.ToString() + "-" + customerVo.STDFax.ToString(); lblEmail.Text = customerVo.Email.ToString(); lblAltEmail.Text = customerVo.AltEmail.ToString(); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewNonIndividualProfile.ascx:Page_Load()"); object[] objects = new object[2]; objects[0] = customerVo; objects[2] = userVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); userVo = (UserVo)Session["userVo"]; customerVo = (CustomerVo)Session["CustomerVo"]; dtCity = commonLookupBo.GetWERPLookupMasterValueList(8000, 0); ddlCorrAdrCity.DataSource = dtCity; ddlCorrAdrCity.DataTextField = "WCMV_Name"; ddlCorrAdrCity.DataValueField = "WCMV_LookupId"; ddlCorrAdrCity.DataBind(); ddlCorrAdrCity.Items.Insert(0, new ListItem("--SELECT--", "0")); ddlPermAdrCity.DataSource = dtCity; ddlPermAdrCity.DataTextField = "WCMV_Name"; ddlPermAdrCity.DataValueField = "WCMV_LookupId"; ddlPermAdrCity.DataBind(); ddlPermAdrCity.Items.Insert(0, new ListItem("--SELECT--", "0")); dtState = commonLookupBo.GetWERPLookupMasterValueList(14000, 0); ddlCorrAdrState.DataSource = dtState; ddlCorrAdrState.DataTextField = "WCMV_Name"; ddlCorrAdrState.DataValueField = "WCMV_LookupId"; ddlCorrAdrState.DataBind(); ddlCorrAdrState.Items.Insert(0, new ListItem("--SELECT--", "0")); ddlPermAdrState.DataSource = dtState; ddlPermAdrState.DataTextField = "WCMV_Name"; ddlPermAdrState.DataValueField = "WCMV_LookupId"; ddlPermAdrState.DataBind(); ddlPermAdrState.Items.Insert(0, new ListItem("--SELECT--", "0")); dtOccupation = commonLookupBo.GetWERPLookupMasterValueList(3000, 0);; ddlOccupation.DataSource = dtOccupation; ddlOccupation.DataTextField = "WCMV_Name"; ddlOccupation.DataValueField = "WCMV_LookupId"; ddlOccupation.DataBind(); ddlOccupation.Items.Insert(0, new ListItem("--SELECT--", "0")); if (userVo.UserType.Trim() == "Adviser" || userVo.UserType.Trim() == "RM" || userVo.UserType.Trim() == "Branch Man" || userVo.UserType.Trim() == "Advisor") { trDelete.Visible = true; } else { trDelete.Visible = false; } if (customerVo.ProfilingDate == DateTime.MinValue) { lblProfilingDate.Text = ""; } else { lblProfilingDate.Text = customerVo.ProfilingDate.ToShortDateString(); } lblType.Text = XMLBo.GetCustomerTypeName(path, customerVo.Type); lblSubType.Text = XMLBo.GetCustomerSubTypeName(path, customerVo.SubType); lblName.Text = customerVo.ContactFirstName + " " + customerVo.ContactMiddleName + " " + customerVo.ContactLastName; lblCustomerCode.Text = customerVo.CustCode.ToString(); if (customerVo.PANNum != null) { lblPanNum.Text = customerVo.PANNum.ToString(); } else { lblPanNum.Text = null; } if (customerVo.CompanyName != null) { lblCompanyName.Text = customerVo.CompanyName; } else { lblCompanyName.Text = null; } if (customerVo.BranchName != null) { lblBranch.Text = customerVo.BranchName.ToString(); } else { lblBranch.Text = null; } if (customerVo.RegistrationDate == DateTime.MinValue) { lblRegistrationDate.Text = null; } else { lblRegistrationDate.Text = customerVo.RegistrationDate.ToShortDateString(); } if (customerVo.CommencementDate == DateTime.MinValue) { lblCommencementDate.Text = null; } else { lblCommencementDate.Text = customerVo.CommencementDate.ToShortDateString(); } if (customerVo.RegistrationNum != null) { lblRegistrationNum.Text = customerVo.RegistrationNum.ToString(); } else { lblRegistrationNum.Text = null; } if (customerVo.RegistrationPlace != null) { lblRegistrationPlace.Text = customerVo.RegistrationPlace.ToString(); } else { lblRegistrationPlace.Text = null; } if (customerVo.CompanyWebsite != null) { lblCompanyWebsite.Text = customerVo.CompanyWebsite.ToString(); } else { lblCompanyWebsite.Text = null; } if (customerVo.DummyPAN == 1) { chkdummypan.Checked = true; } else { chkdummypan.Checked = false; } //if (customerVo.IsProspect == 1) //{ // chkprospectn.Checked = true; //} //else //{ // chkprospectn.Checked = false; //} if (customerVo.ViaSMS == 1) { chksmsn.Checked = true; } else { chksmsn.Checked = false; } if (customerVo.AlertViaEmail == 1) { chkmailn.Checked = true; } else { chkmailn.Checked = false; } lblCustomerCode.Text = customerVo.CustCode.ToString(); customerRMVo = adviserStaffBo.GetAdvisorStaffDetails(customerVo.RmId); if (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName != null && (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName).ToString() != "") { lblRM.Text = customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName; } else { lblRM.Text = ""; } if (customerVo.PANNum != null) { lblPanNum.Text = customerVo.PANNum.ToString(); } else { lblPanNum.Text = null; } if (customerVo.Adr1Line1 != null) { lblCorrLine1.Text = customerVo.Adr1Line1.ToString(); } else { lblCorrLine1.Text = null; } if (customerVo.Adr1Line2 != null) { lblCorrLine2.Text = customerVo.Adr1Line2.ToString(); } else { lblCorrLine2.Text = null; } if (customerVo.Adr1Line3 != null) { lblCorrLine3.Text = customerVo.Adr1Line3.ToString(); } else { lblCorrLine3.Text = null; } if (customerVo.Adr1PinCode != null) { lblCorrPinCode.Text = customerVo.Adr1PinCode.ToString(); } else { lblCorrPinCode.Text = null; } //if (customerVo.Adr1City != null) //{ // lblCorrCity.Text = customerVo.customerCity.ToString(); //} //else //{ // lblCorrCity.Text = null; //} //if (customerVo.Adr1State != "") //{ // lblCorrState.Text = customerVo.Adr1State.ToString(); //} //else //{ // lblCorrState.Text = null; //} if (customerVo.Adr1Country != "") { lblCorrCountry.Text = customerVo.Adr1Country.ToString(); } else { lblCorrCountry.Text = null; } if (customerVo.Adr2Line1 != null) { lblPermLine1.Text = customerVo.Adr2Line1.ToString(); } else { lblPermLine1.Text = null; } if (customerVo.Adr2Line2 != null) { lblPermLine2.Text = customerVo.Adr2Line2.ToString(); } else { lblPermLine2.Text = null; } if (customerVo.Adr2Line3 != null) { lblPermLine3.Text = customerVo.Adr2Line3.ToString(); } else { lblPermLine3.Text = null; } if (customerVo.Adr2PinCode != null) { lblPermPinCode.Text = customerVo.Adr2PinCode.ToString(); } else { lblPermPinCode.Text = null; } if (customerVo.Adr1City != null) { ddlCorrAdrCity.SelectedValue = customerVo.customerCity.ToString(); } else { ddlCorrAdrCity.SelectedValue = "--Select---"; } if (customerVo.Adr1State != "") { ddlCorrAdrState.SelectedValue = customerVo.Adr1State; } ddlPermAdrCity.SelectedValue = customerVo.PermanentCityId.ToString(); ddlPermAdrState.SelectedValue = customerVo.Adr2State.ToString(); if (customerVo.Adr2Country != null) { lblPermCountry.Text = customerVo.Adr2Country.ToString(); } else { lblPermCountry.Text = null; } lblResPhone.Text = customerVo.ResISDCode.ToString() + "-" + customerVo.ResSTDCode.ToString() + "-" + customerVo.ResPhoneNum.ToString(); lblOfcPhone.Text = customerVo.OfcISDCode.ToString() + "-" + customerVo.OfcSTDCode.ToString() + "-" + customerVo.OfcPhoneNum.ToString(); lblResFax.Text = customerVo.Fax.ToString() + "-" + customerVo.ISDFax.ToString() + "-" + customerVo.STDFax.ToString(); if (customerVo.Email != null) { lblEmail.Text = customerVo.Email.ToString(); } else { lblEmail.Text = null; } if (customerVo.AltEmail != null) { lblAltEmail.Text = customerVo.AltEmail.ToString(); } else { lblAltEmail.Text = null; } lblType.Text = XMLBo.GetCustomerTypeName(path, customerVo.Type); lblSubType.Text = XMLBo.GetCustomerSubTypeName(path, customerVo.SubType); if (customerVo.OccupationId != 0) { ddlOccupation.SelectedValue = customerVo.OccupationId.ToString(); } else { ddlOccupation.SelectedValue = null; } if (customerVo.AnnualIncome != null) { lblAnnualIncome.Text = customerVo.AnnualIncome.ToString(); } else { lblAnnualIncome.Text = null; } if (customerVo.Nationality != null) { lblNationality.Text = customerVo.Nationality.ToString(); } else { lblNationality.Text = null; } if (customerVo.MinNo1 != null) { lblMinNo1.Text = customerVo.MinNo1.ToString(); } else { lblMinNo1.Text = null; } if (customerVo.MinNo2 != null) { lblMinNo2.Text = customerVo.MinNo2.ToString(); } else { lblMinNo2.Text = null; } if (customerVo.MinNo3 != null) { lblMinNo3.Text = customerVo.MinNo3.ToString(); } { lblMinNo3.Text = null; } if (customerVo.ESCNo != null) { lblESCNo.Text = customerVo.ESCNo.ToString(); } else { lblESCNo.Text = null; } if (customerVo.UINNo != null) { lblUINNo.Text = customerVo.UINNo.ToString(); } else { lblUINNo.Text = null; } if (customerVo.POA != null) { lblPOA.Text = customerVo.POA.ToString(); } else { lblPOA.Text = null; } if (customerVo.GuardianName != null) { lblGuardianName.Text = customerVo.GuardianName.ToString(); } else { lblGuardianName.Text = null; } if (customerVo.GuardianRelation != null) { lblGuardianRelation.Text = customerVo.GuardianRelation.ToString(); } else { lblGuardianRelation.Text = null; } if (customerVo.ContactGuardianPANNum != null) { lblGuardianPANNum.Text = customerVo.ContactGuardianPANNum.ToString(); } else { lblGuardianPANNum.Text = null; } if (customerVo.GuardianMinNo != null) { lblGuardianMinNo.Text = customerVo.GuardianMinNo.ToString(); } else { lblGuardianMinNo.Text = null; } if (customerVo.GuardianDob == DateTime.MinValue) { lblGuardianDateOfBirth.Text = null; } else { lblGuardianDateOfBirth.Text = customerVo.GuardianDob.ToShortDateString(); } if (customerVo.OtherBankName != null) { lblOtherBankName.Text = customerVo.OtherBankName.ToString(); } else { lblOtherBankName.Text = null; } if (customerVo.TaxStatus != null) { lblTaxStatus.Text = customerVo.TaxStatus.ToString(); } else { lblTaxStatus.Text = null; } if (customerVo.Category != null) { lblCategory.Text = customerVo.Category.ToString(); } else { lblCategory.Text = null; } if (customerVo.Adr1City != null) { lblOtherCity.Text = customerVo.Adr1City.ToString(); } else { lblOtherCity.Text = null; } if (customerVo.Adr1State != null) { lblOtherState.Text = customerVo.Adr1State.ToString(); } else { lblOtherState.Text = null; } if (customerVo.OtherCountry != null) { lblOtherCountry.Text = customerVo.OtherCountry.ToString(); } else { lblOtherCountry.Text = null; } if (customerVo.Mobile1 != null) { lblMobile1.Text = customerVo.Mobile1.ToString(); } else { lblMobile1.Text = null; } if (customerVo.Mobile2 != null) { lblMobile2.Text = customerVo.Mobile2.ToString(); } else { lblMobile2.Text = null; } if (customerVo.SubBroker != null) { lblSubbroker.Text = customerVo.SubBroker.ToString(); } else { lblSubbroker.Text = null; } if (customerVo.Dob != DateTime.MinValue) { lblDOB.Text = customerVo.Dob.ToString(); } else { lblDOB.Text = null; } if (customerVo.MothersMaidenName != null) { lblmothersname.Text = customerVo.MothersMaidenName.ToString(); } else { lblmothersname.Text = null; } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewNonIndividualProfile.ascx:Page_Load()"); object[] objects = new object[2]; objects[0] = customerVo; objects[2] = userVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }