private void DisplayLogs() { BackEndLogListQueryParams param = new BackEndLogListQueryParams() { StartDate = c.qsStartDateOfQuery, EndDate = c.qsEndDateOfQuery, Account = c.qsAccount, IsAccKw = c.qsIsAccKw, IP = c.qsIP, IsIpHeadKw = c.qsIsIpHeadKw, DescKw = c.qsDescKw, RangeMode = c.qsRangeMode }; param.PagedParams = new PagedListQueryParams() { BeginNum = 0, EndNum = 0, SortField = c.qsSortField, IsSortDesc = c.qsIsSortDesc }; param.AuthParams = new AuthenticationQueryParams() { CanReadSubItemOfOthers = empAuth.CanReadSubItemOfOthers(), CanReadSubItemOfCrew = empAuth.CanReadSubItemOfCrew(), CanReadSubItemOfSelf = empAuth.CanReadSubItemOfSelf(), MyAccount = c.GetEmpAccount(), MyDeptId = c.GetDeptId() }; // get total of items empAuth.GetBackEndLogList(param); // update pager and get begin end of item numbers int itemTotalCount = param.PagedParams.RowCount; ucDataPager.Initialize(itemTotalCount, c.qsPageCode); if (IsPostBack) { ucDataPager.RefreshPagerAfterPostBack(); } param.PagedParams = new PagedListQueryParams() { BeginNum = ucDataPager.BeginItemNumberOfPage, EndNum = ucDataPager.EndItemNumberOfPage, SortField = c.qsSortField, IsSortDesc = c.qsIsSortDesc }; List <BackEndLogForBackend> logs = empAuth.GetBackEndLogList(param); if (logs != null) { rptLogs.DataSource = logs; rptLogs.DataBind(); } if (c.qsPageCode > 1 || c.qsSortField != "") { ClientScript.RegisterStartupScript(this.GetType(), "isSearchPanelCollapsingAtBeginning", "isSearchPanelCollapsingAtBeginning = true;", true); } }