/// <summary> /// 加载数据 /// </summary> private void BindData() { int rowCount; int pageCount; IList <Department> lstData = deptBll.GetList(null, anpPager.CurrentPageIndex, anpPager.PageSize, out rowCount, out pageCount); gvList.DataSource = lstData; gvList.DataBind(); anpPager.RecordCount = rowCount; }
/// <summary> /// 绑定部门下拉列表 /// </summary> private void BindDept() { IList <Department> lstDept = deptBll.GetList(null); WebCommon.BindDropDownList(ddlDept, lstDept, "DeptName", "DeptID"); }
public async Task <TData <List <DepartmentEntity> > > GetListJson([FromQuery] DepartmentListParam param) { var obj = await _departmentBLL.GetList(param); return(obj); }