Beispiel #1
0
    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());
        fundCodeTextBox.Text   = fundCode.ToString();
        branchCodeTextBox.Text = branchCode.ToString();



        if (!IsPostBack)
        {
            DataTable dtOccupationList = opendMFDAO.dtOccopationList();
            OccupationDropDownList.DataSource     = dtOccupationList;
            OccupationDropDownList.DataTextField  = "DESCR";
            OccupationDropDownList.DataValueField = "CODE";
            OccupationDropDownList.DataBind();


            bankNameDropDownList.DataSource     = opendMFDAO.dtFillBankName(" CATE_CODE=1 ");
            bankNameDropDownList.DataTextField  = "BANK_NAME";
            bankNameDropDownList.DataValueField = "BANK_CODE";
            bankNameDropDownList.DataBind();

            IDbankNameDropDownList.DataSource     = opendMFDAO.dtFillBankName(" CATE_CODE IN (1,2,3) ");
            IDbankNameDropDownList.DataTextField  = "BANK_NAME";
            IDbankNameDropDownList.DataValueField = "BANK_CODE";
            IDbankNameDropDownList.DataBind();

            regTypeDropDownList.DataSource     = unitHolderRegBLObj.dtFillRegType();
            regTypeDropDownList.DataTextField  = "NAME";
            regTypeDropDownList.DataValueField = "CODE";
            regTypeDropDownList.DataBind();
            regTypeDropDownList.SelectedValue = "N";

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

            regNoTextBox.Text   = unitHolderRegBLObj.GetMaxRegNo(regObj).ToString();
            regObj.RegNumber    = (unitHolderRegBLObj.GetMaxRegNo(regObj) - 1).ToString();
            regDateTextBox.Text = unitHolderRegBLObj.getLastRegDate(regObj).ToString("dd-MMM-yyyy");
            regNoTextBox.Focus();
        }
    }
    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)
    {
        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());
        fundCodeTextBox.Text   = fundCode.ToString();
        branchCodeTextBox.Text = branchCode.ToString();


        saleNumberTextBox.Focus();
        //saleDateTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy");
        // holderDateofBirthTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy");
        if (!IsPostBack)
        {
            bankNameDropDownList.DataSource     = opendMFDAO.dtFillBankName(" CATE_CODE=1 ");
            bankNameDropDownList.DataTextField  = "BANK_NAME";
            bankNameDropDownList.DataValueField = "BANK_CODE";
            bankNameDropDownList.DataBind();
            CashAmountTextBox.Enabled      = false;
            MultiplePayTypeTextBox.Enabled = false;
        }
    }
    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)
        {
            bankNameDropDownList.DataSource     = opendMFDAO.dtFillBankName(" CATE_CODE=1 ");
            bankNameDropDownList.DataTextField  = "BANK_NAME";
            bankNameDropDownList.DataValueField = "BANK_CODE";
            bankNameDropDownList.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();


        // toRegDateTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy");
        // fromRegDateTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy"); ;
        ///holderDateofBirthTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy");

        if (!IsPostBack)
        {
            LienbankNameDropDownList.DataSource     = opendMFDAO.dtFillBankName();
            LienbankNameDropDownList.DataTextField  = "BANK_NAME";
            LienbankNameDropDownList.DataValueField = "BANK_CODE";
            LienbankNameDropDownList.DataBind();
        }
        else
        {
        }
    }
    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();
        BOTextBox.Focus();
        ///holderDateofBirthTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy");
        if (!IsPostBack)
        {
            DataTable dtOccupationList = opendMFDAO.dtOccopationList();
            holderOccupationDropDownList.DataSource     = dtOccupationList;
            holderOccupationDropDownList.DataTextField  = "DESCR";
            holderOccupationDropDownList.DataValueField = "CODE";
            holderOccupationDropDownList.DataBind();



            //bankNameDropDownList.DataSource = opendMFDAO.dtFillBankName(" CATE_CODE=1 " );
            //bankNameDropDownList.DataTextField = "BANK_NAME";
            //bankNameDropDownList.DataValueField = "BANK_CODE";
            //bankNameDropDownList.DataBind();

            IDbankNameDropDownList.DataSource     = opendMFDAO.dtFillBankName(" CATE_CODE=2 ");
            IDbankNameDropDownList.DataTextField  = "BANK_NAME";
            IDbankNameDropDownList.DataValueField = "BANK_CODE";
            IDbankNameDropDownList.DataBind();

            regTypeDropDownList.DataSource     = unitHolderRegBLObj.dtFillRegType();
            regTypeDropDownList.DataTextField  = "NAME";
            regTypeDropDownList.DataValueField = "CODE";
            regTypeDropDownList.DataBind();

            regDateTextBox.Text = DateTime.Today.ToString("dd-MMM-yyyy");
        }
    }