コード例 #1
0
    //绑定我被授权的列表
    protected void BindDataList2(int page = 0)
    {
        string user       = GetEmployee().Id;
        int    type       = 0;
        string procName   = tbxTitle.Text.ToString().Trim();
        string startTime1 = tbxBeginTime.Value.ToString().Trim();
        string startTime2 = tbxEndTime.Value.ToString().Trim();
        int    count      = 0;

        if (page != 0)
        {
            this.AspNetPager2.CurrentPageIndex = page;
        }
        count = (int)BPMHelp.GetAuthorCount(type, user, procName, startTime1, startTime2);
        this.AspNetPager2.RecordCount = count;
        DataTable dt = BPMHelp.GetAuthorList(type, user, procName, startTime1, startTime2, this.AspNetPager2.CurrentPageIndex, this.AspNetPager2.PageSize);

        lblList2.DataSource = dt;
        lblList2.DataBind();
    }