Esempio n. 1
0
 public List<MyGroupUser> MyGroupUser_List(MyGroupUser model)
 {
     return MyGroupDAL.MyGroupUser_List(model);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public List<User> MyGroupUsers_GroupIDs_Get(MyGroupUser model)
 {
     return MyGroupDAL.MyGroupUsers_GroupIDs_Get(model);
 }
Esempio n. 4
0
 /// <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");
     }
 }
Esempio n. 5
0
 /// <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>();
     }
 }
Esempio n. 6
0
 /// <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>();
     }
 }
Esempio n. 7
0
 public static List<MyGroupUser> MyGroupUser_List(int GroupID, int UserType)
 {
     MyGroupUser model = new MyGroupUser { GroupID = GroupID, UserType = UserType };
     return new MyGroupBLL().MyGroupUser_List(model);
 }