//邦定数据 private void BindData() { AspNetPager1.PageSize = iPageSize; pageindex = AspNetPager1.CurrentPageIndex; Tz888.Model.Sys.EmployeeInfoTab empMode = new Tz888.Model.Sys.EmployeeInfoTab(); empMode.EmployeeName = tbLoginName.Value.Trim(); //账号 empMode.DeptID = ddlDept.SelectedValue; //部门 empMode.sRole = ddlRole.SelectedValue; //角色 empMode.WorkType = ddlWorkType.SelectedValue; //岗位 empMode.sStatus = ddlStatus.SelectedValue; //状态 dt = loginbll.GetEmployeeList("page", ViewState["sort"].ToString(), 1, 1, 1, empMode); if (dt != null && dt.Rows.Count > 0) { AspNetPager1.RecordCount = Tz888.Common.Text.FormatData(dt.Rows[0]["RecordCount"].ToString().Trim()); } dt = null; dt = loginbll.GetEmployeeList("page", ViewState["sort"].ToString(), iPageSize, pageindex, 0, empMode); if (dt != null && dt.Rows.Count > 0) { rptEmployeeList.DataSource = dt; rptEmployeeList.DataBind(); } dt.Dispose(); dt = null; }