public List<SycDepositType> GetAll() { List<SycDepositType> sycDepositType = null; try { sycDepositType = (DcSystemConfiguration.GetTable<SycDepositType>()).ToList<SycDepositType>(); } catch (Exception ex) { ErrorWriter.WriteError(ex, "FunctionName --> GetDataTable", RequestPage); } return sycDepositType; }
protected void ddlDepositType_SelectedIndexChanged(object sender, EventArgs e) { //msg = new Message("", GlobalEnum.MessageStatus.Alert, GlobalEnum.MessageCss.Alert); //ConfirmationMessage1.SetMessage(msg); ConfirmationMessage1.EnableViewState = false; int s = Convert.ToInt32(ddlDepositType.SelectedValue); cSycDepositType = new CSycDepositType(HttpContext.Current.Request.RawUrl); var sycDepositType = cSycDepositType.GetBySycDepositTypeId(s); //Normal savings if(sycDepositType.SycDepositCategoryId == 1) { ddlInterestTransfer.Visible = false; } //Recurring savings else if (sycDepositType.SycDepositCategoryId == 2) { ddlInterestTransfer.Visible = false; } //fixed savings else if (sycDepositType.SycDepositCategoryId == 3) { ddlInterestTransfer.Visible = true; ddlInterestTransfer.DataSource = null; if ( sycDepositType.SycInterestCalculationPeriodId == 5) { cSycInterestCalculationType = new CSycInterestCalculationType(HttpContext.Current.Request.RawUrl); var sycInterestCalculationType = cSycInterestCalculationType.GetAll(); ddlInterestTransfer.DataSource = sycInterestCalculationType; ddlInterestTransfer.DataTextField = sycInterestCalculationType; //ddlInterestTransfer.DataValueField = sycInterestCalculationType.ToList(); //ddlInterestTransfer.DataBind(); } else { cMamAccountOpeningDepositType = new CMamAccountOpening(HttpContext.Current.Request.RawUrl); var mamAccountOpeningDepositType = cMamAccountOpeningDepositType.GetAll(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)