Ejemplo n.º 1
0
        public ActionResult GetPopedomsByRoleIDStr(int id)
        {
            List <Popedoms> list   = PopedomRoleBLL.GetPopedomsByRoleID(id);
            var             listed = from s in list
                                     select new
            {
                s.PopName
            };

            return(Json(listed));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取所有权限
        /// </summary>
        /// <returns></returns>
        public ActionResult GetPopedomsAll()
        {
            List <Popedoms> list   = PopedomRoleBLL.GetPopedomsAll();
            var             listed = from s in list select new {
                s.PopID,
                s.PopParentID,
                s.PopName,
                s.PopDesc,
                s.PopIsMenu,
            };

            return(Json(listed));
        }
Ejemplo n.º 3
0
 public ActionResult EditRolePopedoms(int id, List <int?> list)
 {
     try
     {
         if (PopedomRoleBLL.EditRolePopedoms(id, list) > 0)
         {
             return(Content("edit_yes"));
         }
         else
         {
             return(Content("edit_no"));
         }
     }
     catch (Exception ex)
     {
         return(Content(ex.Message));
     }
 }