예제 #1
0
        /// <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;
        }
예제 #2
0
        /// <summary>
        /// 绑定部门下拉列表
        /// </summary>
        private void BindDept()
        {
            IList <Department> lstDept = deptBll.GetList(null);

            WebCommon.BindDropDownList(ddlDept, lstDept, "DeptName", "DeptID");
        }
예제 #3
0
        public async Task <TData <List <DepartmentEntity> > > GetListJson([FromQuery] DepartmentListParam param)
        {
            var obj = await _departmentBLL.GetList(param);

            return(obj);
        }