コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {
            string  sqlString = " select * from BranchName order by BrName";
            DataSet UserList  = objServiceHandler.ExecuteQuery(sqlString);


            DropDownListBranchNameList.DataSource = UserList;
            DropDownListBranchNameList.DataBind();


            string  sqlString1 = " select * from AccCon_Head order by con_head";
            DataSet conHead    = objServiceHandler.ExecuteQuery(sqlString1);


            DropDownListConHead.DataSource = conHead;
            DropDownListConHead.DataBind();


            string  sqlString2            = " select * from AccChartOfAccountsMaster order by AccountsName";
            DataSet MasterChartOfAccounts = objServiceHandler.ExecuteQuery(sqlString2);


            DropDownListAccountsHead.DataSource = MasterChartOfAccounts;
            DropDownListAccountsHead.DataBind();
        }
    }
コード例 #2
0
    protected void btnFindByAccountName_Click(object sender, EventArgs e)
    {
        if (DropDownListBranchNameList.Text == "")
        {
            LblMsg.Text = "First Select branch ";
            DropDownListBranchNameList.Focus();

            return;
        }
        loadGrid_withAccountsName();
    }
コード例 #3
0
    protected void btnCon_head_Click(object sender, EventArgs e)
    {
        if (DropDownListBranchNameList.Text == "")
        {
            LblMsg.Text = "First Select branch ";
            DropDownListBranchNameList.Focus();

            return;
        }
        loadGrid_withConHead();
    }