Beispiel #1
0
    protected void Button3_Click(object sender, EventArgs e)
    {
        if (ordernum.Text != "")
        {
            Label1.Visible = false;
            Model.order myorder = new Model.order();
            myorder.ordernum = ordernum.Text;
            BLL.BLLorderselect blll = new BLL.BLLorderselect();
            int result = blll.pageint1(myorder);
            AspNetPager1.RecordCount = result;

            LoadDataInfo1();
            if (result == 0)
            {
                Label1.Visible       = true;
                GridView1.DataSource = null;
                GridView1.DataBind();
                AspNetPager1.Visible = false;
            }
        }
        else
        {
            Label1.Visible       = true;
            GridView1.DataSource = null;
            GridView1.DataBind();
            AspNetPager1.Visible = false;
        }
    }
Beispiel #2
0
    protected void Button3_Click(object sender, EventArgs e)
    {
        if (ordernum.Text != "")
        {
            Label1.Visible = false;
            Model.order myorder = new Model.order();
            myorder.ordernum = ordernum.Text;
            BLL.BLLorderselect blll = new BLL.BLLorderselect();
            int result = blll.pageint1(myorder);
            AspNetPager1.RecordCount = result;

            LoadDataInfo1();
            if (result == 0)
            {
                Label1.Visible = true;
                GridView1.DataSource = null;
                GridView1.DataBind();
                AspNetPager1.Visible = false;
            }
        }
        else
        {
            Label1.Visible = true;
            GridView1.DataSource = null;
            GridView1.DataBind();
            AspNetPager1.Visible = false;
        }
    }
Beispiel #3
0
 public void LoadDataInfo()
 {
     BLL.BLLorderselect blll = new BLL.BLLorderselect();
     DataSet ds = blll.pagebind(AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1), AspNetPager1.PageSize);
     GridView1.DataSource = ds.Tables[0];
     GridView1.DataBind();
 }
Beispiel #4
0
    public void LoadDataInfo()
    {
        BLL.BLLorderselect blll = new BLL.BLLorderselect();
        DataSet            ds   = blll.pagebind(AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1), AspNetPager1.PageSize);

        GridView1.DataSource = ds.Tables[0];
        GridView1.DataBind();
    }
Beispiel #5
0
    public void aa()
    {
        BLL.BLLorderselect blll = new BLL.BLLorderselect();
        int result = blll.pageint();
        AspNetPager1.RecordCount = result;

        LoadDataInfo();
    }
Beispiel #6
0
 public void LoadDataInfo1()
 {
     Model .order myorder=new Model.order ();
     myorder .ordernum =ordernum .Text ;
     BLL.BLLorderselect blll = new BLL.BLLorderselect();
     DataSet ds = blll.pagebind1(AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1), AspNetPager1.PageSize,myorder );
     GridView1.DataSource = ds.Tables[0];
     GridView1.DataBind();
 }
Beispiel #7
0
    public void LoadDataInfo1()
    {
        Model.order myorder = new Model.order();
        myorder.ordernum = ordernum.Text;
        BLL.BLLorderselect blll = new BLL.BLLorderselect();
        DataSet            ds   = blll.pagebind1(AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1), AspNetPager1.PageSize, myorder);

        GridView1.DataSource = ds.Tables[0];
        GridView1.DataBind();
    }
Beispiel #8
0
    public void aa()
    {
        BLL.BLLorderselect blll = new BLL.BLLorderselect();
        int result = blll.pageint();

        AspNetPager1.RecordCount = result;


        LoadDataInfo();
    }
Beispiel #9
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Delete")
        {
            Model.order mymodel = new Model.order();
            mymodel.id = Convert.ToInt32(e.CommandArgument);
            BLL.BLLorderselect blll = new BLL.BLLorderselect();
            int result = blll.delete(mymodel);

            if (result > 0)
            {
                Response.Write("<script>alert('删除成功!');location.href='orderselect.aspx'</script>");
            }
            GridView1.DataBind();
        }
    }
Beispiel #10
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Delete")
        {
            Model.order mymodel = new Model.order();
            mymodel.id = Convert .ToInt32 ( e.CommandArgument);
            BLL.BLLorderselect blll = new BLL.BLLorderselect();
            int result = blll.delete(mymodel );

            if (result > 0)
            {
                Response.Write("<script>alert('删除成功!');location.href='orderselect.aspx'</script>");
            }
            GridView1.DataBind();
        }
    }