public JsonResult GetEntdocListPager(int PageIndex, int PageSize, string SouStr) { EntdocDal dal = new EntdocDal(); int total = 0; var list = dal.GetEntdocListPager(PageIndex, PageSize, SouStr, ref total); var datalist = new { data = list, total = total }; return(Json(datalist)); }
/// <summary> /// 获取机构 /// </summary> /// <returns></returns> public JsonResult GetEntdoc() { try { //获取数据 EntdocDal dal = new EntdocDal(); List <Entdoc> entdocs = dal.EntdocList(); return(Json(new { success = true, list = entdocs })); } catch (Exception ex) { LogQueue.Write(LogType.Error, "Entdoc/GetEntdoc", ex.Message.ToString()); return(Json(new { success = false, message = "机构列表加载失败!" })); } }