예제 #1
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();
        }
    }
    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();
        fundCode       = bcContent.FundCode.ToString();
        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();

            SignatoryDropDownList.DataSource     = reportObj.dtFillSignatory();
            SignatoryDropDownList.DataTextField  = "NAME";
            SignatoryDropDownList.DataValueField = "ID";
            SignatoryDropDownList.DataBind();
        }
    }
    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();
        }
    }