public ActionResult GetAdminList()
        {
            int    pageIndex = WebUtil.GetFormValue <int>("pageIndex", 1);
            int    pageSize  = WebUtil.GetFormValue <int>("pageSize", 15);
            string userCode  = WebUtil.GetFormValue <string>("userCode", string.Empty);
            string userName  = WebUtil.GetFormValue <string>("userName", string.Empty);
            string roleNum   = WebUtil.GetFormValue <string>("roleNum", string.Empty);
            string departNum = WebUtil.GetFormValue <string>("departNum", string.Empty);
            string search    = WebUtil.GetFormValue <string>("search", string.Empty);

            PageInfo pageInfo = new PageInfo()
            {
                PageIndex = pageIndex, PageSize = pageSize
            };
            AdminProvider provider = new AdminProvider();
            AdminEntity   entity   = new AdminEntity();

            if (!search.IsEmpty())
            {
                entity.Where("UserCode", ECondition.Like, "%" + search + "%");
                entity.Or("RealName", ECondition.Like, "%" + search + "%");
                entity.Or("UserName", ECondition.Like, "%" + search + "%");
            }
            else
            {
                if (!userCode.IsEmpty())
                {
                    entity.Where("UserCode", ECondition.Like, "%" + userCode + "%");
                    entity.Or("RealName", ECondition.Like, "%" + userCode + "%");
                }
                if (!userName.IsEmpty())
                {
                    entity.Where("UserName", ECondition.Like, "%" + userName + "%");
                }
                if (!roleNum.IsEmpty())
                {
                    entity.And(a => a.RoleNum == roleNum);
                }
                if (!departNum.IsEmpty())
                {
                    entity.And(a => a.DepartNum == departNum);
                }
            }
            List <AdminEntity> listResult = provider.GetList(entity, ref pageInfo);
            string             json       = ConvertJson.ListToJson <AdminEntity>(listResult, "List");

            this.ReturnJson.AddProperty("Data", new JsonObject(json));
            this.ReturnJson.AddProperty("RowCount", pageInfo.RowCount);
            return(Content(this.ReturnJson.ToString()));
        }