Ejemplo n.º 1
0
    protected void query_Click(object sender, EventArgs e)
    {
        Label2.Text    = "";
        Label2.Visible = false;

        ProfitBudgetAdapter pba = new ProfitBudgetAdapter();

        T_ProfitBudget item = new T_ProfitBudget();

        sale_bill_no = this.txt_sale_bill_no.Text.Trim();

        //判断是否提交过
        DataSet ds = pba.getProfitBudgetSummaryByID(sale_bill_no);

        if (ds.Tables[0].Rows.Count > 0)
        {
            Label2.Text    = "该销售订单号已经提交过利润预算!";
            Label2.Visible = true;
            return;
        }

        item.SaleBillNo = sale_bill_no;
        ds = pba.getSEOrderInfo(item);
        if (ds.Tables[0].Rows.Count > 0)
        {
            finterid = Int32.Parse(ds.Tables[0].Rows[0][0].ToString());
            show(ds);
        }
    }
Ejemplo n.º 2
0
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        ProfitBudgetAdapter pba  = new ProfitBudgetAdapter();
        T_ProfitBudget      item = new T_ProfitBudget();

        sale_bill_no    = this.txt_sale_bill_no.Text.Trim();
        item.SaleBillNo = sale_bill_no;
        show(pba.getSEOrderInfo(item));
    }