예제 #1
0
 //联系组树
 public void ContactzTreeList(HttpContext context)
 {
     MyGroup model = new MyGroup
     {
         Key="",
         UserID = UserService.CurrentUser.UserID,
     };
     int PageIndex = Convert.ToInt32(context.Request["PageIndex"]);
     int PageSize = Convert.ToInt32(context.Request["PageSize"]);
     IES.G2S.CourseLive.BLL.Test.MyGroupBLL mygroupbll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL();
     List<MyGroup> list = mygroupbll.MyGroup_List(model,PageIndex,PageSize);
     if (list != null)
     {
         context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(list));
     }
     else
     {
         context.Response.Write("False");
     }
 }
예제 #2
0
파일: MyGroupBLL.cs 프로젝트: holdbase/IES2
 //联系组列表
 public List<MyGroup> MyGroup_List(MyGroup model, int PageIndex, int PageSize)
 {
     return MyGroupDAL.MyGroup_List(model, PageIndex, PageSize);
 }
예제 #3
0
파일: MyGroupDAL.cs 프로젝트: holdbase/IES2
 //联系组列表
 public static List<MyGroup> MyGroup_List(MyGroup model, int PageIndex, int PageSize)
 {
     try
     {
         using (var conn = DbHelper.CCService())
         {
             var p = new DynamicParameters();
             p.Add("@Key", model.Key);
             p.Add("@UserID", model.UserID);
             p.Add("@PageIndex", PageIndex);
             p.Add("@PageSize", PageSize);
             return conn.Query<MyGroup>("MyGroup_List", p, commandType: CommandType.StoredProcedure).ToList();
         }
     }
     catch (Exception e)
     {
         return new List<MyGroup>();
     }
 }
예제 #4
0
 public static List<MyGroup> MyGroup_List(string Key, int PageIndex, int PageSize)
 {
     string userid = IESCookie.GetCookieValue("ies");
     MyGroup model = new MyGroup {UserID = int.Parse(userid), Key = Key };
     return new MyGroupBLL().MyGroup_List(model,PageIndex,PageSize);
 }