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

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

            BEFTNDateDropDownList.DataSource     = unitRepBLObj.dtBEFTNDateList("0");
            BEFTNDateDropDownList.DataTextField  = "NAME";
            BEFTNDateDropDownList.DataValueField = "ID";
            BEFTNDateDropDownList.DataBind();
        }
    }
コード例 #2
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();

        // 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();
        }
    }
コード例 #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();


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

            DataTable dtChequeData = unitRepBLObj.dtGetChequePaymentData(" AND A.AUDITED_BY IS  NULL");
            SurrenderListGridView.DataSource = dtChequeData;
            SurrenderListGridView.DataBind();
        }
    }
コード例 #4
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();
        }
    }
コード例 #5
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);
        }
    }
コード例 #6
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();



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

            refixationDateFromDropDownList.DataSource     = reportObj.dtFillFixationDate(" ");
            refixationDateFromDropDownList.DataTextField  = "NAME";
            refixationDateFromDropDownList.DataValueField = "ID";
            refixationDateFromDropDownList.SelectedValue  = "0";
            refixationDateFromDropDownList.DataBind();

            refixationDateToDropDownList.DataSource     = reportObj.dtFillFixationDate(" ");
            refixationDateToDropDownList.DataTextField  = "NAME";
            refixationDateToDropDownList.DataValueField = "ID";
            refixationDateToDropDownList.SelectedValue  = "0";
            refixationDateToDropDownList.DataBind();

            effectiveDateFromDropDownList.DataSource     = reportObj.dtFillFixationDate(" ");
            effectiveDateFromDropDownList.DataTextField  = "NAME";
            effectiveDateFromDropDownList.DataValueField = "ID";
            effectiveDateFromDropDownList.SelectedValue  = "0";
            effectiveDateFromDropDownList.DataBind();

            effectiveDateToDropDownList.DataSource     = reportObj.dtFillFixationDate(" ");
            effectiveDateToDropDownList.DataTextField  = "NAME";
            effectiveDateToDropDownList.DataValueField = "ID";
            effectiveDateToDropDownList.SelectedValue  = "0";
            effectiveDateToDropDownList.DataBind();


            DataTable dtFundInfoDetails = reportObj.dtFundInfoDetails("   ");
            DataTable dtPriceDetails    = dtPriceDetails = reportObj.dtPriceDetails(" AND FUND_CD='" + dtFundInfoDetails.Rows[0]["FUND_CD"].ToString().ToUpper() + "'  AND REFIX_DT=(SELECT MAX (REFIX_DT) FROM PRICE_REFIX WHERE FUND_CD='" + dtFundInfoDetails.Rows[0]["FUND_CD"].ToString().ToUpper() + "') ");
            for (int looper = 1; looper < dtFundInfoDetails.Rows.Count; looper++)
            {
                DataTable dtprice = reportObj.dtPriceDetails(" AND FUND_CD='" + dtFundInfoDetails.Rows[looper]["FUND_CD"].ToString().ToUpper() + "'  AND REFIX_DT=(SELECT MAX (REFIX_DT) FROM PRICE_REFIX WHERE FUND_CD='" + dtFundInfoDetails.Rows[looper]["FUND_CD"].ToString().ToUpper() + "') ");
                dtPriceDetails.Merge(dtprice);
            }
            dvGridSurrender.Visible          = true;
            SurrenderListGridView.DataSource = dtPriceDetails;
            SurrenderListGridView.DataBind();
        }
    }
コード例 #7
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());

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

            Signatory1DropDownList.DataSource     = unitRepBLObj.dtGetSigantoryList();
            Signatory1DropDownList.DataTextField  = "NAME";
            Signatory1DropDownList.DataValueField = "ID";
            Signatory1DropDownList.SelectedValue  = "IAMCL309";
            Signatory1DropDownList.DataBind();

            Signatory2DropDownList.DataSource     = unitRepBLObj.dtGetSigantoryList();
            Signatory2DropDownList.DataTextField  = "NAME";
            Signatory2DropDownList.DataValueField = "ID";
            Signatory2DropDownList.SelectedValue  = "IAMCL535";
            Signatory2DropDownList.DataBind();

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

            DataTable dtChequeData = unitRepBLObj.dtGetChequePaymentDataWithVoucherNo(" AND A.AUDITED_BY IS NOT NULL AND A.VOUCHER_NO IS NULL  ");
            if (dtChequeData.Rows.Count > 0)
            {
                SurrenderListGridView.DataSource = dtChequeData;
                SurrenderListGridView.DataBind();
            }
        }
    }
コード例 #8
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();
        }
    }