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());
        FundCodeTextBox.Text   = fundCode.ToString();
        BranchCodeTextBox.Text = branchCode.ToString();

        RegNoTextBox.Focus();



        if (!IsPostBack)
        {
            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 = 'REP' AND SL_REP_TR_RN_NO IS NULL  ORDER BY RECEIPT_NO DESC ");
            moneyReceipDropDownList.DataTextField  = "RECEIPT_NO";
            moneyReceipDropDownList.DataValueField = "ID";
            moneyReceipDropDownList.DataBind();
        }
    }
示例#2
0
    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());
        FundCodeTextBox.Text   = fundCode.ToString();
        BranchCodeTextBox.Text = branchCode.ToString();

        RegNoTextBox.Focus();



        if (!IsPostBack)
        {
            //UnitRepurchase unitRepObj = new UnitRepurchase();
            //regObj.BranchCode = BranchCodeTextBox.Text.Trim().ToUpper().ToString();
            //regObj.FundCode = FundCodeTextBox.Text.Trim().ToUpper().ToString();
            //RepNoTextBox.Text = unitRepBLObj.getMaxRepurchaseNo(regObj).ToString();
            //unitRepObj.RepurchaseNo = unitRepBLObj.getMaxRepurchaseNo(regObj) - 1;
            //RepDateTextBox.Text = unitRepBLObj.getLastRepDate(regObj, unitRepObj).ToString("dd-MMM-yyyy");
            //RepRateTextBox.Text = unitRepBLObj.getLastRepRate(regObj, unitRepObj).ToString();
        }
    }
示例#3
0
    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());
        FundCodeTextBox.Text   = fundCode.ToString();
        BranchCodeTextBox.Text = branchCode.ToString();

        RegNoTextBox.Focus();



        if (!IsPostBack)
        {
            LienbankNameDropDownList.DataSource     = opendMFDAO.dtFillBankName();
            LienbankNameDropDownList.DataTextField  = "BANK_NAME";
            LienbankNameDropDownList.DataValueField = "BANK_CODE";
            LienbankNameDropDownList.DataBind();
        }
    }