/// <summary> /// 获取列表 /// </summary> public string GetListData() { var service = new cUserService(new SessionManager().CurrentUserLoginInfo); IList <UserInfo> data = new List <UserInfo>(); string content = string.Empty; string key = "YearEvent"; data = service.GetUserListByRoleCode(key); var jsonData = new JsonData(); jsonData.totalCount = data.Count.ToString(); jsonData.data = data; content = jsonData.ToJSON(); return(content); }