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();

        // spanFundName.InnerText = opendMFDAO.GetFundName(fundCode.ToString());
//            fundCodeTextBox.Text = fundCode.ToString();
//            branchCodeTextBox.Text = branchCode.ToString();


        if (!IsPostBack)
        {
            fundNameDropDownList.DataSource     = opendMFDAO.dtFundList();
            fundNameDropDownList.DataTextField  = "FUND_NM";
            fundNameDropDownList.DataValueField = "FUND_CD";
            fundNameDropDownList.DataBind();
            branchNameDropDownList.DataSource     = opendMFDAO.dtBranchList();
            branchNameDropDownList.DataTextField  = "BR_NM";
            branchNameDropDownList.DataValueField = "BR_CD";
            branchNameDropDownList.DataBind();
        }
    }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null)
        {
            Response.Redirect("../Default.aspx");
        }
        if (!IsPostBack)
        {
            fundNameDropDownList.DataSource     = opendMFDAO.dtFundList();
            fundNameDropDownList.DataTextField  = "FUND_NM";
            fundNameDropDownList.DataValueField = "FUND_CD";
            fundNameDropDownList.DataBind();

            branchNameDropDownList.DataSource     = opendMFDAO.dtBranchList();
            branchNameDropDownList.DataTextField  = "BR_NM";
            branchNameDropDownList.DataValueField = "BR_CD";
            branchNameDropDownList.DataBind();

            menuCheckBoxList.DataSource     = opendMFDAO.getDtMenuList();
            menuCheckBoxList.DataTextField  = "M_NAME";
            menuCheckBoxList.DataValueField = "M_ID";
            menuCheckBoxList.DataBind();

            fundCheckBoxList.DataSource     = opendMFDAO.getFundForMenu();
            fundCheckBoxList.DataTextField  = "FUND_NM";
            fundCheckBoxList.DataValueField = "FUND_CD";
            fundCheckBoxList.DataBind();

            branchCheckBoxList.DataSource     = opendMFDAO.getBranchForMenu();
            branchCheckBoxList.DataTextField  = "BR_NM";
            branchCheckBoxList.DataValueField = "BR_CD";
            branchCheckBoxList.DataBind();
        }
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string fundCode   = "";
        string branchCode = "";

        if (BaseContent.IsSessionExpired())
        {
            Response.Redirect("../Default.aspx");
            return;
        }
        bcContent = (BaseClass)Session["BCContent"];

        fundCode   = bcContent.FundCode.ToString();
        branchCode = bcContent.BranchCode.ToString();

        if (!IsPostBack)
        {
            fundNameDropDownList.DataSource     = opendMFDAO.dtFundList();
            fundNameDropDownList.DataTextField  = "FUND_NM";
            fundNameDropDownList.DataValueField = "FUND_CD";
            fundNameDropDownList.DataBind();

            branchNameDropDownList.DataSource     = opendMFDAO.dtBranchList();
            branchNameDropDownList.DataTextField  = "BR_NM";
            branchNameDropDownList.DataValueField = "BR_CD";
            branchNameDropDownList.DataBind();

            //  assignBalance(fundCode);
        }
    }
示例#4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null)
        {
            Session.RemoveAll();
            Response.Redirect("../Default.aspx");
        }
        if (!IsPostBack)
        {
            UnitUser userObj = new UnitUser();

            userObj.UserID = (string)Session["UserID"].ToString();
            fundNameDropDownList.DataSource     = opendMFDAO.dtFundList(userObj);
            fundNameDropDownList.DataTextField  = "FUND_NM";
            fundNameDropDownList.DataValueField = "FUND_CD";
            fundNameDropDownList.DataBind();

            branchNameDropDownList.DataSource     = opendMFDAO.dtBranchList(userObj);
            branchNameDropDownList.DataTextField  = "BR_NM";
            branchNameDropDownList.DataValueField = "BR_CD";
            branchNameDropDownList.DataBind();
        }
    }