private void QueryData()
    {
        int page_index = this.GridPagerControl1.PageIndex;
        int page_count = this.GridPagerControl1.PageCount;

        SysUserInfo curr_user = this.GetCurrentUserInfo();

        if (curr_user == null)
        {
            this.Response.Write("user is null");
            return;
        }

        List <FormApproveInfo> list = FormApproveBiz.QueryApprovePage(
            this.GridPagerControl1.PageSize,
            ref page_index,
            curr_user.UserId,
            this.textbox_form_no.Text,
            out page_count);

        this.GridView1.DataSource = list;
        this.GridView1.DataBind();

        this.GridPagerControl1.PageCount = page_count;
        this.GridPagerControl1.PageIndex = page_index;
    }
Exemple #2
0
    private void BindData()
    {
        List <FormApproveInfo> listFormApprove = FormApproveBiz.GetApproveList(m_FormId, m_FormNo);

        GridViewAproveList.DataSource = listFormApprove.OrderBy(cs => cs.AppSerial);
        GridViewAproveList.DataBind();
    }