예제 #1
0
    private void show()
    {
        ProfitAccountingAdapter paa = new ProfitAccountingAdapter();
        DataSet ds = paa.getProfitBudgetSummary();

        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
예제 #2
0
    protected void btn_query_Click(object sender, EventArgs e)
    {
        string queryStr             = this.txt_sale_bill_no.Text.Trim();
        ProfitAccountingAdapter pba = new ProfitAccountingAdapter();

        if (String.IsNullOrEmpty(queryStr))
        {
            show(GridView2, pba.getProfitBudgetSummary());
        }
        else
        {
            show(GridView2, pba.getProfitBudgetSummaryByID(queryStr));
        }
    }
예제 #3
0
    private void GridViewBind()
    {
        ProfitAccountingAdapter pba = new ProfitAccountingAdapter();

        show(GridView2, pba.getProfitBudgetSummary());
    }