private void FindRegInfo() { UnitHolderRegistration regObj = new UnitHolderRegistration(); regObj.FundCode = fundCodeTextBox.Text; regObj.BranchCode = branchCodeTextBox.Text; regObj.RegNumber = regNoTextBox.Text; if (opendMFDAO.IsValidRegistration(regObj)) { DataTable dtHolderRegInfo = opendMFDAO.HolderRegInfo(regObj); if (dtHolderRegInfo.Rows.Count > 0) { NameLabel.Text = dtHolderRegInfo.Rows[0]["HNAME"].ToString(); DateLabel.Text = dtHolderRegInfo.Rows[0]["REG_DT"].Equals(DBNull.Value) ? "" : Convert.ToDateTime(dtHolderRegInfo.Rows[0]["REG_DT"].ToString()).ToString("dd-MMM-yyyy"); TypeLabel.Text = dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("N") ? "INDIVIDUAL" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("C") ? "CHARITY" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("I") ? "INSTITUTION" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("F") ? "FOREIGNER" : dtHolderRegInfo.Rows[0]["REG_TYPE"].ToString(); CIPLabel.Text = dtHolderRegInfo.Rows[0]["CIP"].Equals("N") ? "NO" : "YES"; IDLabel.Text = dtHolderRegInfo.Rows[0]["ID_FLAG"].Equals("N") ? "NO" : "YES"; } else { regNoTextBox.Focus(); ClearText(); ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('No Data Found');", true); } } else { regNoTextBox.Focus(); ClearText(); ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('Invalid Registration Number!! Please Enter Valid Registration Number');", true); } }
protected void regSaveButton_Click(object sender, EventArgs e) { UnitHolderRegistration regObj = new UnitHolderRegistration(); regObj.FundCode = fundCodeTextBox.Text.Trim(); regObj.BranchCode = branchCodeTextBox.Text.Trim(); regObj.RegDate = Convert.ToDateTime(regDateTextBox.Text.Trim().ToString()); regObj.RegNumber = regNoTextBox.Text.Trim(); regObj.RegType = regTypeDropDownList.SelectedValue; regObj.RegIsCIP = isCIPDropDownList.SelectedValue; regObj.IsIDAccount = isIDDropDownList.SelectedValue; if (isIDDropDownList.SelectedValue.ToString().ToUpper() == "Y") { regObj.IdBankID = Convert.ToInt32(IDbankNameDropDownList.SelectedValue.ToString()); regObj.IdBankBranchID = Convert.ToInt32(IDbranchNameDropDownList.SelectedValue.ToString()); } regObj.IdAccNo = IDAccNoTextBox.Text.Trim().ToString(); UnitHolderInfo unitHolderObj = new UnitHolderInfo(); unitHolderObj.HolderName = holderNameTextBox.Text.Trim(); unitHolderObj.HolderFMHName = holderFMTextBox.Text.Trim(); unitHolderObj.HolderMotherName = holderMotherTextBox.Text.Trim(); unitHolderObj.HolderAddress1 = holderAddress1TextBox.Text.Trim(); unitHolderObj.HolderAddress2 = holderAddress2TextBox.Text.Trim(); unitHolderObj.HolderOccupation = Convert.ToInt16(holderOccupationDropDownList.SelectedValue); unitHolderObj.HolderNationality = holderNationalityTextBox.Text.Trim(); unitHolderObj.HolderTIN = holderTINTextBox.Text.Trim(); unitHolderObj.HolderTelephone = holderTelphoneTextBox.Text.Trim(); unitHolderObj.HolderEmail = holderEmailTextBox.Text.Trim(); unitHolderObj.HolderMaritialStatus = holderMaritialStatusDropDownList.SelectedValue; unitHolderObj.HolderEduQua = holderEducationDropDownList.SelectedValue; unitHolderObj.HolderDateofBirth = holderDateofBirthTextBox.Text.Trim().ToString(); unitHolderObj.HolderCity = holderCityTextBox.Text.Trim(); unitHolderObj.HolderSex = holderSexDropDownList.SelectedValue; unitHolderObj.HolderReligion = holderReligionDropDownList.SelectedValue; unitHolderObj.HolderRemarks = holderRemarksTextBox.Text.Trim(); UnitJointHolderInfo jHolderObj = new UnitJointHolderInfo(); jHolderObj.JHolderName = jHolderNameTextBox.Text.Trim(); jHolderObj.JHolderFMHName = jHolderFMTextBox.Text.Trim(); jHolderObj.JHolderMotherName = jHolderMotherTextBox.Text.Trim().ToString().ToUpper(); jHolderObj.JHolderAddress1 = jHolderAddress1TextBox.Text.Trim(); jHolderObj.JHolderAddress2 = jHolderAddress2TextBox.Text.Trim(); jHolderObj.JHolderNationality = jHolderNantionalityTextBox.Text.Trim(); jHolderObj.JHolderOccupation = Convert.ToInt16(jHolderOccupationDropDownList.SelectedValue); UnitHolderNominee nomiObj = new UnitHolderNominee(); nomiObj.NomiControlNo = NomiControlNoTextBox.Text.Trim().ToString(); nomiObj.Nomi1Name = nomi1NameTextBox.Text.Trim(); nomiObj.Nomi1FMName = nomi1FMTextBox.Text.Trim(); nomiObj.Nomi1MotherName = nomi1MotherNameTextBox.Text.Trim().ToUpper().ToString(); nomiObj.Nomi1Address1 = nomi1Address1TextBox.Text.Trim(); nomiObj.Nomi1Address2 = nomi1Address2TextBox.Text.Trim(); nomiObj.Nomi1Occupation = Convert.ToInt16(nomi1OccupationDropDownList.SelectedValue); nomiObj.Nomi1Nationality = nomi1NationalityTextBox.Text.Trim(); nomiObj.Nomi1Relation = nomi1RelationDropDownList.SelectedValue; nomiObj.Nomi1Percentage = nomi1PtcTextBox.Text.Trim().ToString(); nomiObj.Nomi2Name = nomi2NameTextBox.Text.Trim(); nomiObj.Nomi2FMName = nomi2FMTextBox.Text.Trim(); nomiObj.Nomi2MotherName = nomi2MotherNameTextBox.Text.Trim().ToString().ToUpper(); nomiObj.Nomi2Address1 = nomi2Address1TextBox.Text.Trim(); nomiObj.Nomi2Address2 = nomi2Address2TextBox.Text.Trim(); nomiObj.Nomi2Occupation = Convert.ToInt16(nomi2OccupationDropDownList.SelectedValue); nomiObj.Nomi2Nationality = nomi2NationalityTextBox.Text.Trim(); nomiObj.Nomi2Relation = nomi2RelationDropDownList.SelectedValue; nomiObj.Nomi2Percentage = nomi2PtcTextBox.Text.Trim(); UnitHolderBankInfo bankInfoObj = new UnitHolderBankInfo(); if (bftnNoRadioButton.Checked) { bankInfoObj.IsBEFTN = "N"; } else if (bftnYesRadioButton.Checked) { bankInfoObj.IsBEFTN = "Y"; } bankInfoObj.IsBankInfo = isBankDropDownList.SelectedValue; if (isBankDropDownList.SelectedValue.ToString().ToUpper() == "Y") { bankInfoObj.BankAccountNo = bankAccTextBox.Text.Trim(); //bankInfoObj.BankName = bankNameDropDownList.SelectedItem.Text.Trim().ToString(); //bankInfoObj.BranchName = branchNameDropDownList.SelectedItem.Text.Trim().ToString(); //bankInfoObj.BankAddress = bankAddressTextBox.Text.Trim().ToString(); bankInfoObj.BankCode = bankNameDropDownList.SelectedValue.ToString(); bankInfoObj.BankBranchCode = branchNameDropDownList.SelectedValue.ToString(); } try { //if (unitHolderRegBLObj.IsDuplicateNomineeControlEdit(regObj, nomiObj)) //{ // ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('" + msgObj.Duplicate().ToString() + " " + "Nominee Control Number " + "');", true); //} //else if (unitHolderRegBLObj.CheckSanctionList(regObj, unitHolderObj) != "") { string errorMessage = unitHolderRegBLObj.CheckSanctionList(regObj, unitHolderObj); ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('Save Failed :" + errorMessage + "');", true); } else if (unitHolderRegBLObj.IsEditPermit(regObj.FundCode.ToString())) { string errorMessage = "Please Contact with Administrator"; ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('Save Failed :" + errorMessage + "');", true); } //else if (regObj.FundCode == "IAMPH") //{ // string errorMessage = "Please Contact with Administrator"; // ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('Save Failed :" + errorMessage + "');", true); //} else { unitHolderRegBLObj.SaveRegEditInfo(opendMFDAO.HolderRegInfo(regObj), opendMFDAO.dtNomineeRegInfo(regObj), userObj); // Backup Previous Information unitHolderRegBLObj.UpdateRegInfo(regObj, unitHolderObj, jHolderObj, nomiObj, bankInfoObj, userObj); //Update reg Info; ClearText(); // ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert(" msgObj.Success + ");", true); ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('" + msgObj.Success().ToString() + "');", true); //ClientScript.RegisterStartupScript(this.GetType(), "Reset Fields", "fnReset();", true); } } catch (Exception ex) { ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert ('" + msgObj.Error().ToString() + " " + ex.Message.Replace("'", "").ToString() + "');", true); } }
private void FindRegInfo() { UnitHolderRegistration regObj = new UnitHolderRegistration(); regObj.FundCode = fundCodeTextBox.Text; regObj.BranchCode = branchCodeTextBox.Text; regObj.RegNumber = regNoTextBox.Text; if (opendMFDAO.IsValidRegistration(regObj)) { DataTable dtHolderRegInfo = opendMFDAO.HolderRegInfo(regObj); if (dtHolderRegInfo.Rows.Count > 0) { DataTable dtNomineeList = commonGatewayObj.Select("SELECT NOMI_NO, NOMI_NO as NOMINEE FROM U_NOMINEE WHERE REG_BK='" + regObj.FundCode + "' AND REG_BR='" + regObj.BranchCode + "' AND REG_NO=" + regObj.RegNumber + " ORDER BY NOMI_NO"); NameLabel.Text = dtHolderRegInfo.Rows[0]["HNAME"].ToString(); DateLabel.Text = dtHolderRegInfo.Rows[0]["REG_DT"].Equals(DBNull.Value) ? "" : Convert.ToDateTime(dtHolderRegInfo.Rows[0]["REG_DT"].ToString()).ToString("dd-MMM-yyyy"); TypeLabel.Text = dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("N") ? "INDIVIDUAL" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("C") ? "CHARITY" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("I") ? "INSTITUTION" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("F") ? "FOREIGNER" : dtHolderRegInfo.Rows[0]["REG_TYPE"].ToString(); CIPLabel.Text = dtHolderRegInfo.Rows[0]["CIP"].Equals("N") ? "NO" : "YES"; IDLabel.Text = dtHolderRegInfo.Rows[0]["ID_FLAG"].Equals("N") ? "NO" : "YES"; if (dtNomineeList.Rows.Count > 0) { DataTable dtNomineeListDDL = new DataTable(); dtNomineeListDDL.Columns.Add("ID", typeof(string)); dtNomineeListDDL.Columns.Add("NOMI_NO", typeof(string)); DataRow drDDL; drDDL = dtNomineeListDDL.NewRow(); drDDL["ID"] = "0"; drDDL["NOMI_NO"] = " "; dtNomineeListDDL.Rows.Add(drDDL); for (int loop = 0; loop < dtNomineeList.Rows.Count; loop++) { drDDL = dtNomineeListDDL.NewRow(); drDDL["ID"] = dtNomineeList.Rows[loop]["NOMI_NO"].ToString(); drDDL["NOMI_NO"] = dtNomineeList.Rows[loop]["NOMINEE"].ToString(); dtNomineeListDDL.Rows.Add(drDDL); } NomiNumberDropDownList.DataSource = dtNomineeListDDL; NomiNumberDropDownList.DataTextField = "NOMI_NO"; NomiNumberDropDownList.DataValueField = "ID"; NomiNumberDropDownList.DataBind(); ClearText(); } else { regNoTextBox.Focus(); ClearText(); ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('No Nominee Found Found');", true); } } else { regNoTextBox.Focus(); ClearText(); ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('No Data Found');", true); } } else { regNoTextBox.Focus(); ClearText(); ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('Invalid Registration Number!! Please Enter Valid Registration Number');", true); } }
private void FindRegInfo() { UnitHolderRegistration regObj = new UnitHolderRegistration(); regObj.FundCode = fundCodeTextBox.Text; regObj.BranchCode = branchCodeTextBox.Text; regObj.RegNumber = regNoTextBox.Text; if (opendMFDAO.IsValidRegistration(regObj)) { DataTable dtHolderRegInfo = opendMFDAO.HolderRegInfo(regObj); if (dtHolderRegInfo.Rows.Count > 0) { DataTable dtJointHolder = opendMFDAO.dtJointHolderRegInfo(regObj); NameLabel.Text = dtHolderRegInfo.Rows[0]["HNAME"].ToString(); DateLabel.Text = dtHolderRegInfo.Rows[0]["REG_DT"].Equals(DBNull.Value) ? "" : Convert.ToDateTime(dtHolderRegInfo.Rows[0]["REG_DT"].ToString()).ToString("dd-MMM-yyyy"); TypeLabel.Text = dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("N") ? "INDIVIDUAL" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("C") ? "CHARITY" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("I") ? "INSTITUTION" : dtHolderRegInfo.Rows[0]["REG_TYPE"].Equals("F") ? "FOREIGNER" : dtHolderRegInfo.Rows[0]["REG_TYPE"].ToString(); CIPLabel.Text = dtHolderRegInfo.Rows[0]["CIP"].Equals("N") ? "NO" : "YES"; IDLabel.Text = dtHolderRegInfo.Rows[0]["ID_FLAG"].Equals("N") ? "NO" : "YES"; if (dtJointHolder.Rows.Count > 0) { NameTextBox.Text = dtJointHolder.Rows[0]["JNT_NAME"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_NAME"].ToString(); FMTextBox.Text = dtJointHolder.Rows[0]["JNT_FMH_NAME"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_FMH_NAME"].ToString(); MotherTextBox.Text = dtJointHolder.Rows[0]["JNT_MO_NAME"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_MO_NAME"].ToString(); spouceTextBox.Text = dtJointHolder.Rows[0]["SP_NAME"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["SP_NAME"].ToString(); NIDTextBox.Text = dtJointHolder.Rows[0]["NID"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["NID"].ToString();; passportTextBox.Text = dtJointHolder.Rows[0]["PASS_NO"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["PASS_NO"].ToString();; TINTextBox.Text = dtJointHolder.Rows[0]["TIN"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["TIN"].ToString();; birthCertNoTextBox.Text = dtJointHolder.Rows[0]["BIRTH_CERT_NO"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["BIRTH_CERT_NO"].ToString();; OccupationDropDownList.SelectedValue = dtJointHolder.Rows[0]["JNT_OCC_CODE"].Equals(DBNull.Value) ? "0" : dtJointHolder.Rows[0]["JNT_OCC_CODE"].ToString(); NationalityTextBox.Text = dtJointHolder.Rows[0]["JNT_NATIONALITY"].Equals(DBNull.Value) ? "BANGLADESHI" : dtJointHolder.Rows[0]["JNT_NATIONALITY"].ToString(); DateofBirthTextBox.Text = dtJointHolder.Rows[0]["JNT_B_DATE"].Equals(DBNull.Value) ? " " : dtJointHolder.Rows[0]["JNT_B_DATE"].ToString(); TelphoneTextBox.Text = dtJointHolder.Rows[0]["JNT_TEL_NO"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_TEL_NO"].ToString(); presentAddress1TextBox.Text = dtJointHolder.Rows[0]["JNT_ADDRS1"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_ADDRS1"].ToString(); presentAddress2TextBox.Text = dtJointHolder.Rows[0]["JNT_ADDRS2"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_ADDRS2"].ToString(); presentCityTextBox.Text = dtJointHolder.Rows[0]["JNT_CITY"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_CITY"].ToString(); parmanAddress1TextBox.Text = dtJointHolder.Rows[0]["PADDRESS1"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["PADDRESS1"].ToString(); parmanAddress2TextBox.Text = dtJointHolder.Rows[0]["PADDRESS2"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["PADDRESS2"].ToString(); parmentCityTextBox.Text = dtJointHolder.Rows[0]["PCITY"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["PCITY"].ToString(); SourceFundTextBox.Text = dtJointHolder.Rows[0]["SOURCE_FUND"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["SOURCE_FUND"].ToString(); EmailTextBox.Text = dtJointHolder.Rows[0]["JNT_EMAIL"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["JNT_EMAIL"].ToString(); MaritialStatusDropDownList.SelectedValue = dtJointHolder.Rows[0]["MAR_STAT"].Equals(DBNull.Value) ? "0" : dtJointHolder.Rows[0]["MAR_STAT"].ToString(); EducationDropDownList.SelectedValue = dtJointHolder.Rows[0]["EDU_QUA"].Equals(DBNull.Value) ? "0" : dtJointHolder.Rows[0]["EDU_QUA"].ToString(); SexDropDownList.SelectedValue = dtJointHolder.Rows[0]["SEX"].Equals(DBNull.Value) ? "0" : dtJointHolder.Rows[0]["SEX"].ToString(); ReligionDropDownList.SelectedValue = dtJointHolder.Rows[0]["RELIGION"].Equals(DBNull.Value) ? "0" : dtJointHolder.Rows[0]["RELIGION"].ToString(); RemarksTextBox.Text = dtJointHolder.Rows[0]["REMARKS"].Equals(DBNull.Value) ? "" : dtJointHolder.Rows[0]["REMARKS"].ToString(); } else { ClearText(); ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('No Joint Holder Information Found');", true); } } else { regNoTextBox.Focus(); ClearText(); DateLabel.Text = ""; TypeLabel.Text = ""; CIPLabel.Text = ""; IDLabel.Text = ""; NameLabel.Text = ""; ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('No Data Found');", true); } } else { regNoTextBox.Focus(); ClearText(); DateLabel.Text = ""; TypeLabel.Text = ""; CIPLabel.Text = ""; IDLabel.Text = ""; NameLabel.Text = ""; ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", "alert('Invalid Registration Number!! Please Enter Valid Registration Number');", true); } }
protected void regSaveButton_Click(object sender, EventArgs e) { UnitHolderRegistration regObj = new UnitHolderRegistration(); regObj.FundCode = fundCodeTextBox.Text.Trim(); regObj.BranchCode = branchCodeTextBox.Text.Trim(); regObj.RegDate = Convert.ToDateTime(regDateTextBox.Text.Trim().ToString()); regObj.RegNumber = regNoTextBox.Text.Trim(); if (IndividualButton.Checked) { regObj.RegType = regTypeDropDownList.SelectedValue; } else if (CompRadioButton.Checked) { regObj.RegType = regTypeDropDownList.SelectedValue; } regObj.RegIsCIP = isCIPDropDownList.SelectedValue; if (IDNoRadioButton.Checked) { regObj.IsIDAccount = "N"; } else if (IDYesRadioButton.Checked) { regObj.IsIDAccount = "Y"; regObj.IdBankID = Convert.ToInt16(IDbankNameDropDownList.SelectedValue.ToString()); regObj.IdBankBranchID = Convert.ToInt16(IDbranchNameDropDownList.SelectedValue.ToString()); } regObj.IdAccNo = IDAccNoTextBox.Text.Trim().ToString(); UnitHolderInfo unitHolderObj = new UnitHolderInfo(); unitHolderObj.HolderName = NameTextBox.Text.Trim(); unitHolderObj.HolderFMHName = FMTextBox.Text.Trim(); unitHolderObj.HolderMotherName = MotherTextBox.Text.Trim(); unitHolderObj.HolderSpouceName = spouceTextBox.Text.Trim(); unitHolderObj.HolderBONumber = holderBONumberTextBox.Text.Trim(); unitHolderObj.HolderOccupation = Convert.ToInt16(OccupationDropDownList.SelectedValue); unitHolderObj.HolderNationality = NationalityTextBox.Text.Trim(); unitHolderObj.HolderNID = NIDTextBox.Text.Trim(); unitHolderObj.HolderTIN = TINTextBox.Text.Trim(); if (TINTextBox.Text.Trim() != "") { if (TINTextBox.Text.Trim().Length == 12) { unitHolderObj.HolderTINFlag = "Y"; } else { unitHolderObj.HolderTINFlag = "N"; } } else { unitHolderObj.HolderTINFlag = "N"; } unitHolderObj.HolderPassport = passportTextBox.Text.Trim(); unitHolderObj.HolderBirthCertNo = birthCertNoTextBox.Text.Trim(); unitHolderObj.HolderAddress1 = presentAddress1TextBox.Text.Trim(); unitHolderObj.HolderAddress2 = presentAddress2TextBox.Text.Trim(); unitHolderObj.HolderCity = presentCityTextBox.Text.Trim(); unitHolderObj.HolderPermanAddress1 = parmanAddress1TextBox.Text.Trim(); unitHolderObj.HolderPermanAddress2 = parmanAddress2TextBox.Text.Trim(); unitHolderObj.HolderPermanCity = parmentCityTextBox.Text.Trim(); unitHolderObj.HolderMobile = MobileTextBox.Text.Trim(); unitHolderObj.HolderTelephone = TelphoneTextBox.Text.Trim(); unitHolderObj.HolderEmail = EmailTextBox.Text.Trim(); unitHolderObj.HolderMaritialStatus = MaritialStatusDropDownList.SelectedValue; unitHolderObj.HolderEduQua = EducationDropDownList.SelectedValue; unitHolderObj.HolderDateofBirth = DateofBirthTextBox.Text.Trim().ToString(); unitHolderObj.HolderSex = SexDropDownList.SelectedValue; unitHolderObj.HolderReligion = ReligionDropDownList.SelectedValue; unitHolderObj.HolderSourceFund = SourceFundTextBox.Text.Trim(); unitHolderObj.HolderRemarks = RemarksTextBox.Text.Trim(); unitHolderObj.HolderKYC = unitHolderRegBLObj.kycStatus(unitHolderObj); UnitHolderBankInfo bankInfoObj = new UnitHolderBankInfo(); if (BankYesRadioButton.Checked) { bankInfoObj.IsBankInfo = "Y"; if (bftnNoRadioButton.Checked) { bankInfoObj.IsBEFTN = "N"; } else { bankInfoObj.IsBEFTN = "Y"; } bankInfoObj.BankAccountNo = bankAccTextBox.Text.Trim().ToString(); bankInfoObj.BankCode = bankNameDropDownList.SelectedValue.ToString(); bankInfoObj.BankBranchCode = branchNameDropDownList.SelectedValue.ToString(); } else if (BankNORadioButton.Checked) { bankInfoObj.IsBankInfo = "N"; bankInfoObj.IsBEFTN = "N"; } try { if (unitHolderRegBLObj.CheckSanctionList(regObj, unitHolderObj) != "") { string errorMessage = unitHolderRegBLObj.CheckSanctionList(regObj, unitHolderObj); ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('Save Failed :" + errorMessage + "');", true); } else if (unitHolderRegBLObj.IsEditPermit(regObj.FundCode.ToString())) { string errorMessage = "Please Contact with Administrator"; ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('Save Failed :" + errorMessage + "');", true); } else if (isCIPDropDownList.SelectedValue == "0") { ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('Save Failed : CIP Can not be" + isCIPDropDownList.SelectedValue + "');", true); } else { unitHolderRegBLObj.SaveRegEditInfo(opendMFDAO.HolderRegInfo(regObj), userObj); // Backup Previous Information unitHolderRegBLObj.UpdateRegInfo(regObj, unitHolderObj, bankInfoObj, userObj); //Update reg Info; ClearText(); ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert('" + msgObj.Success().ToString() + "');", true); //ClientScript.RegisterStartupScript(this.GetType(), "Reset Fields", "fnReset();", true); } } catch (Exception ex) { ClientScript.RegisterStartupScript(this.GetType(), "Popup", "alert ('" + msgObj.Error().ToString() + " " + ex.Message.Replace("'", "").ToString() + "');", true); } }