public JsonResult MemberList(GroupMemberListParame parame) { int totalSize = 0; List <GroupMemberModel> memberList = groupBll.GroupMemberList(parame, ref totalSize); return(Json(memberList, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 群成员列表 /// </summary> /// <param name="parame"></param> /// <param name="totalSize"></param> /// <returns></returns> public virtual List <GroupMemberModel> GroupMemberList(GroupMemberListParame parame, ref int totalSize) { List <GroupMemberModel> userList = new List <GroupMemberModel>(); DbCommand cmd = GetStoredProcCommand("P_Group_MemberList"); AddInParameter(cmd, "@GroupId", DbType.Int32, parame.GroupId); AddInParameter(cmd, "@PageSize", DbType.Int32, parame.PageSize); AddInParameter(cmd, "@LastId", DbType.Int32, parame.LastId); AddInParameter(cmd, "@Status", DbType.Int32, parame.Status); AddInParameter(cmd, "@Keyword", DbType.String, parame.KeyWord); AddOutParameter(cmd, "@TotalSize", DbType.Int32, 4); DataSet ds = ExecuteDataSet(cmd); int.TryParse(cmd.Parameters["@TotalSize"].Value.ToString(), out totalSize); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { userList = BuildToModelList(ds.Tables[0].Select()); } return(userList); }
/// <summary> /// 群成员列表 /// </summary> /// <param name="parame"></param> /// <param name="totalSize"></param> /// <returns></returns> public virtual List <GroupMemberModel> GroupMemberList(GroupMemberListParame parame, ref int totalSize) { return(groupDal.GroupMemberList(parame, ref totalSize)); }