Ejemplo n.º 1
0
        public ActionResult OperatorMgr()
        {
            Ajax.BLL.GroupRule      group     = new Ajax.BLL.GroupRule();
            List <Ajax.Model.Group> groupList = group.GetAllGroup();

            ViewBag.groupList      = groupList;
            ViewBag.CurrentGroupID = "c862b19d482c41f9a48f59bcc4c91fbe";            // MyTicket.CurrentTicket.GroupID;//当前用户所属的角色组
            return(View());
        }
Ejemplo n.º 2
0
 public ActionResult OperatorMgr()
 {
     Ajax.BLL.GroupRule group = new Ajax.BLL.GroupRule();
     List<Ajax.Model.Group> groupList = group.GetAllGroup();
     ViewBag.groupList = groupList;
     ViewBag.CurrentGroupID = "c862b19d482c41f9a48f59bcc4c91fbe";// MyTicket.CurrentTicket.GroupID;//当前用户所属的角色组
     return View();
 }
Ejemplo n.º 3
0
 public ActionResult GroupSelectList()
 {
     List<Group> groupList = new GroupRule().GetAllGroup();
     return Json(groupList, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 4
0
 public ActionResult DeleteGroup(string guids)
 {
     AjaxResult result = new AjaxResult();
     string[] guidArray = guids.Trim(';').Split(';');
     bool flag = new GroupRule().DeleteGroup(new List<string>(guidArray));
     if (flag)
     {
         result.Success = true;
         result.Message = "角色删除成功";
     }
     else
     {
         result.Success = false;
         result.Message = "已存在用户的角色不能删除";
     }
     return Json(result, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 5
0
 public ActionResult SelectGroup()
 {
     List<Group> groupList = new GroupRule().GetAllGroup();
     return PartialView(groupList);
 }
Ejemplo n.º 6
0
 public ActionResult SearchGroup(EasyUIGridParamModel param, Group group)
 {
     int itemCount = 0;
     List<dynamic> groupList = new GroupRule().SearchGroup(param, group, out itemCount);
     var showList = from groups in groupList
                    select new
                    {
                        ID = groups.ID,
                        NAME = groups.NAME
                    };
     return Json(new { total = itemCount, rows = showList }, JsonRequestBehavior.AllowGet);
 }