Example #1
0
    protected void bindGv()
    {
        System.Collections.Generic.List <int> prjState = new System.Collections.Generic.List <int>
        {
            1,
            2,
            3,
            4,
            14,
            15,
            16,
            18,
            19
        };
        string text          = this.txtName.Text;
        int    countAtGiveUp = TenderInfo.GetCountAtGiveUp(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtOwner.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, prjState, null, base.UserCode, text, 4);

        this.AspNetPager1.RecordCount = countAtGiveUp;
        this.AspNetPager1.PageSize    = NBasePage.pagesize;
        DataTable allAtGiveUp = TenderInfo.GetAllAtGiveUp(this.txtPrjName.Text, this.txtPrjCode.Text, this.txtOwner.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, prjState, null, base.UserCode, text, false, 4, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize);

        this.gvDataInfo.DataSource = allAtGiveUp;
        this.gvDataInfo.DataBind();
    }