Exemplo n.º 1
0
        /// <summary>
        /// 组织管理
        /// </summary>
        /// <param name="page">页数</param>
        /// <param name="pageNum">每页显示条数</param>
        /// <param name="strSearch">搜索内容</param>
        /// <returns></returns>
        public ActionResult OrganizeList(int page = 1, int pageSize = 15, string strSearch = "", string isCreate = "false")
        {
            ViewBag.IsCreate = isCreate;

            if (OrganizeService.QssGetOrgList(isCreate == "true" ? QssGetOrgType.create : QssGetOrgType.join, out string message, out IQueryable <Organize> model) != QssResult.Success)
            {
                return(Content(QssReturnHepler.QssGetReturnContent(message, "/Account/LogOff")));
            }
            return(View(model.OrderBy(p => p.Id).ToPagedList(page, pageSize)));
        }