Exemplo n.º 1
0
    protected void BindOADataList(int page = 0)
    {
        string founderUser = GetEmployee().FounderLoginId;
        string proName     = tbxTitle.Text.ToString().Trim();
        string startTime   = tbxBeginTime.Value.ToString().Trim();
        string endTime     = tbxEndTime.Value.ToString().Trim();

        int    count    = 0;
        string sourceOA = "OA";

        if (page != 0)
        {
            this.AspNetPager1.CurrentPageIndex = page;
        }

        DataTable dt = BPMHelp.GetArchiveList(founderUser, sourceOA, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize, proName, startTime, endTime, out count);

        //count = BPMHelp.GetArchiveCount(founderUser, sourceOA, proName, startTime, endTime);
        this.AspNetPager1.RecordCount = count;
        lblOAList.DataSource          = dt;
        lblOAList.DataBind();
    }