Ejemplo n.º 1
0
    //绑定我被授权的列表
    protected void BindDataList4(int page = 0)
    {
        string user       = GetEmployee().FounderLoginId;
        int    type       = 0;
        string procName   = tbxTitle.Text.ToString().Trim();
        string startTime1 = tbxBeginTime.Value.ToString().Trim();
        string startTime2 = tbxEndTime.Value.ToString().Trim();

        if (page != 0)
        {
            this.AspNetPager4.CurrentPageIndex = page;
        }
        int       totalCount = 0;
        DataTable dt         = BPMHelp.GetOAAuthorizationList(type, user, procName, startTime1, startTime2, this.AspNetPager4.CurrentPageIndex, this.AspNetPager4.PageSize, out totalCount);

        this.AspNetPager4.RecordCount = totalCount;
        rpt4.DataSource = dt;
        rpt4.DataBind();
    }