protected void Page_Load(object sender, EventArgs e) { UnitHolderRegistration regObj = new UnitHolderRegistration(); if (BaseContent.IsSessionExpired()) { Response.Redirect("../Default.aspx"); return; } bcContent = (BaseClass)Session["BCContent"]; userObj.UserID = bcContent.LoginID.ToString(); string fundCode = bcContent.FundCode.ToString(); string branchCode = bcContent.BranchCode.ToString(); spanFundName.InnerText = opendMFDAO.GetFundName(fundCode.ToString()); if (!IsPostBack) { fundCodeDDL.DataSource = reportObj.dtFundCodeList(); fundCodeDDL.DataTextField = "NAME"; fundCodeDDL.DataValueField = "ID"; fundCodeDDL.SelectedValue = fundCode.ToString(); fundCodeDDL.DataBind(); FundCodeDDL_I.DataSource = reportObj.dtFundCodeList(); FundCodeDDL_I.DataTextField = "NAME"; FundCodeDDL_I.DataValueField = "ID"; FundCodeDDL_I.SelectedValue = fundCode.ToString(); FundCodeDDL_I.DataBind(); branchCodeDDL.DataSource = reportObj.dtBranchCodeList(); branchCodeDDL.DataTextField = "NAME"; branchCodeDDL.DataValueField = "ID"; branchCodeDDL.SelectedValue = branchCode.ToString(); branchCodeDDL.DataBind(); BranchCodeDDL_I.DataSource = reportObj.dtBranchCodeList(); BranchCodeDDL_I.DataTextField = "NAME"; BranchCodeDDL_I.DataValueField = "ID"; BranchCodeDDL_I.SelectedValue = branchCode.ToString(); BranchCodeDDL_I.DataBind(); regObj.FundCode = fundCode.ToString(); regObj.BranchCode = branchCode.ToString(); ReceiptDateTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy"); ReceiptNoTextBox.Text = unitSaleBLObj.GetMaxReceiptNo(regObj, "TR").ToString(); } }
protected void Page_Load(object sender, EventArgs e) { UnitHolderRegistration regObj = new UnitHolderRegistration(); if (BaseContent.IsSessionExpired()) { Response.Redirect("../Default.aspx"); return; } bcContent = (BaseClass)Session["BCContent"]; userObj.UserID = bcContent.LoginID.ToString(); fundCode = bcContent.FundCode.ToString(); branchCode = bcContent.BranchCode.ToString(); spanFundName.InnerText = opendMFDAO.GetFundName(fundCode.ToString()); if (!IsPostBack) { fundCodeDDL.DataSource = reportObj.dtFundCodeList(); fundCodeDDL.DataTextField = "NAME"; fundCodeDDL.DataValueField = "ID"; fundCodeDDL.SelectedValue = fundCode.ToString(); fundCodeDDL.DataBind(); branchCodeDDL.DataSource = reportObj.dtBranchCodeList(); branchCodeDDL.DataTextField = "NAME"; branchCodeDDL.DataValueField = "ID"; branchCodeDDL.SelectedValue = branchCode.ToString(); branchCodeDDL.DataBind(); regObj.FundCode = fundCode.ToString(); regObj.BranchCode = branchCode.ToString(); moneyReceipDropDownList.DataSource = unitSaleBLObj.dtMoneyRecieptforDDL(" AND REG_BK = '" + regObj.FundCode.ToString().ToUpper() + "' AND REG_BR = '" + regObj.BranchCode.ToString().ToUpper() + "'AND RECEIPT_TYPE = 'SL' AND SL_REP_TR_RN_NO IS NULL AND ACC_VOUCHER_NO IS NULL ORDER BY RECEIPT_NO DESC "); moneyReceipDropDownList.DataTextField = "RECEIPT_NO"; moneyReceipDropDownList.DataValueField = "ID"; moneyReceipDropDownList.DataBind(); agentNameDDL.DataSource = unitSaleBLObj.dtSellingAgentInfoforDDL(); agentNameDDL.DataTextField = "NAME"; agentNameDDL.DataValueField = "ID"; agentNameDDL.SelectedValue = "0"; agentNameDDL.DataBind(); agentNameDDL.Enabled = true; sellingAgentCodeTextBox.Enabled = true; } }
protected void Page_Load(object sender, EventArgs e) { if (BaseContent.IsSessionExpired()) { Response.Redirect("../Default.aspx"); return; } bcContent = (BaseClass)Session["BCContent"]; userObj.UserID = bcContent.LoginID.ToString(); string fundCode = bcContent.FundCode.ToString(); string branchCode = bcContent.BranchCode.ToString(); spanFundName.InnerText = opendMFDAO.GetFundName(fundCode.ToString()); regNoTextBox.Focus(); if (!IsPostBack) { fundCodeDDL.DataSource = reportObj.dtFundCodeList(); fundCodeDDL.DataTextField = "NAME"; fundCodeDDL.DataValueField = "ID"; fundCodeDDL.SelectedValue = fundCode.ToString(); fundCodeDDL.DataBind(); branchCodeDDL.DataSource = reportObj.dtBranchCodeList(); branchCodeDDL.DataTextField = "NAME"; branchCodeDDL.DataValueField = "ID"; branchCodeDDL.SelectedValue = branchCode.ToString(); branchCodeDDL.DataBind(); dateTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy"); } }
protected void Page_Load(object sender, EventArgs e) { if (BaseContent.IsSessionExpired()) { Response.Redirect("../Default.aspx"); return; } bcContent = (BaseClass)Session["BCContent"]; userObj.UserID = bcContent.LoginID.ToString(); string fundCode = bcContent.FundCode.ToString(); string branchCode = bcContent.BranchCode.ToString(); if (!IsPostBack) { fundCodeDDL.DataSource = reportObj.dtFundCodeList(); fundCodeDDL.DataTextField = "NAME"; fundCodeDDL.DataValueField = "ID"; fundCodeDDL.SelectedValue = fundCode.ToString(); fundCodeDDL.DataBind(); } }