public List<MyGroupUser> MyGroupUser_List(MyGroupUser model) { return MyGroupDAL.MyGroupUser_List(model); }
public static List<MyGroupUser> MyGroupUser_List(int GroupID, int UserType) { MyGroupUser model = new MyGroupUser { GroupID = GroupID, UserType = UserType }; return new IES.G2S.CourseLive.BLL.Test.MyGroupBLL().MyGroupUser_List(model); }
public List<User> MyGroupUsers_GroupIDs_Get(MyGroupUser model) { return MyGroupDAL.MyGroupUsers_GroupIDs_Get(model); }
/// <summary> /// 获得我的联系组下的联系人 /// </summary> /// <param name="model"></param> /// <returns></returns> public void MyGroupUser_List(HttpContext context) { MyGroupUser model = new MyGroupUser { GroupID = Convert.ToInt32(context.Request["GroupID"]), UserType = Convert.ToInt32(context.Request["UserType"]) }; IES.G2S.CourseLive.BLL.Test.MyGroupBLL bll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL(); List<MyGroupUser> list = bll.MyGroupUser_List(model); if (list != null) { context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(list)); } else { context.Response.Write("False"); } }
/// <summary> /// 获得我的联系组下的联系人 /// </summary> /// <param name="model"></param> /// <returns></returns> public static List<MyGroupUser> MyGroupUser_List(MyGroupUser model) { try { using (var conn = DbHelper.CCService()) { var p = new DynamicParameters(); p.Add("@GroupID", model.GroupID); p.Add("@UserType", model.UserType); p.Add("@PageIndex", 1); p.Add("@PageSize", 10000); return conn.Query<MyGroupUser>("MyGroupUser_List", p, commandType: CommandType.StoredProcedure).ToList(); } } catch (Exception e) { return new List<MyGroupUser>(); } }
/// <summary> /// 获取我的联系组下的用户编号表 /// </summary> /// <param name="model"></param> /// <returns></returns> public static List<User> MyGroupUsers_GroupIDs_Get(MyGroupUser model) { try { using (var conn = DbHelper.CCService()) { var p = new DynamicParameters(); p.Add("@GroupIDs", model.GroupIDs); return conn.Query<User>("MyGroupUsers_GroupIDs_Get", p, commandType: CommandType.StoredProcedure).ToList(); } } catch (Exception e) { return new List<User>(); } }
public static List<MyGroupUser> MyGroupUser_List(int GroupID, int UserType) { MyGroupUser model = new MyGroupUser { GroupID = GroupID, UserType = UserType }; return new MyGroupBLL().MyGroupUser_List(model); }