예제 #1
0
파일: MyGroupBLL.cs 프로젝트: holdbase/IES2
 public bool MyGroup_Del(Group model)
 {
     return MyGroupDAL.MyGroup_Del(model);
 }
예제 #2
0
파일: MyGroupBLL.cs 프로젝트: holdbase/IES2
 public bool MyGroup_Edit(Group model)
 {
     return MyGroupDAL.MyGroup_Edit(model);
 }
예제 #3
0
 /// <summary>
 /// 新增或修改我的联系组 
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public void MyGroup_Edit(HttpContext context)
 {
     Group model = new Group
     {
         GroupID = Convert.ToInt32(context.Request["GroupID"]),
         Name = context.Request["Name"],
         User = UserService.CurrentUser.UserID,
         Users = context.Request["Users"]
     };
     IES.G2S.CourseLive.BLL.Test.MyGroupBLL bll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL();
     bool flag = bll.MyGroup_Edit(model);
     if (flag == true)
     {
         context.Response.Write("1");
     }
     else
     {
         context.Response.Write("False");
     }
 }
예제 #4
0
 /// <summary>
 ///  删除我的联系组 
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public void MyGroup_Del(HttpContext context)
 {
     Group model = new Group
     {
         GroupID = Convert.ToInt32(context.Request["GroupID"])
     };
     IES.G2S.CourseLive.BLL.Test.MyGroupBLL bll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL();
     bool flag = bll.MyGroup_Del(model);
     if (flag == true)
     {
         context.Response.Write("1");
     }
     else if (flag == false)
     {
         context.Response.Write("2");
     }
 }
예제 #5
0
파일: MyGroupDAL.cs 프로젝트: holdbase/IES2
 /// <summary>
 /// 新增或修改我的联系组 
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static bool MyGroup_Edit(Group model)
 {
     try
     {
         using (var conn = DbHelper.CCService())
         {
             var p = new DynamicParameters();
             p.Add("@GroupID", model.GroupID);
             p.Add("@GroupName", model.Name);
             p.Add("@User", model.User);
             p.Add("@Users", model.Users);
             conn.Execute("MyGroup_Edit", p, commandType: CommandType.StoredProcedure);
             return true;
         }
     }
     catch (Exception e)
     {
         return false;
     }
 }
예제 #6
0
 public static bool MyGroup_Edit(int GroupID,string Name,string Users)
 {
     string userid = IESCookie.GetCookieValue("ies");
     Group model = new Group { GroupID = GroupID, Name = Name, User = int.Parse(userid), Users = Users };
     return new MyGroupBLL().MyGroup_Edit(model);
 }
예제 #7
0
 public static bool MyGroup_Del(int GroupID)
 {
     Group model = new Group { GroupID = GroupID };
     return new MyGroupBLL().MyGroup_Del(model);
 }