コード例 #1
0
 public int ActionInit()
 {
     using (var helper = new SqlHelper())
     {
         var count = new InternalSys_Action(helper).ActionInit();
         return(count);
     }
 }
コード例 #2
0
 public int GetActionNumByColumn(int columnid)
 {
     using (var helper = new SqlHelper())
     {
         int r = new InternalSys_Action(helper).GetActionNumByColumn(columnid);
         return(r);
     }
 }
コード例 #3
0
 public List <Sys_Action> Permissionlist(int columnid = 0)
 {
     using (var helper = new SqlHelper())
     {
         List <Sys_Action> r = new InternalSys_Action(helper).Permissionlist(columnid);
         return(r);
     }
 }
コード例 #4
0
 /*判断用户是否可以访问权限对应的地址*/
 public bool Iscanvisit(string Requestfile, int userid)
 {
     using (var helper = new SqlHelper())
     {
         bool r = new InternalSys_Action(helper).Iscanvisit(Requestfile, userid);
         return(r);
     }
 }
コード例 #5
0
 /*判断链接地址是不是包含在权限对应的地址中*/
 public bool Isactionurl(string Requestfile)
 {
     using (var helper = new SqlHelper())
     {
         bool r = new InternalSys_Action(helper).Isactionurl(Requestfile);
         return(r);
     }
 }
コード例 #6
0
        public List <Sys_Action> GetActionsByColumnId(int userid, int funcId, out int totalcount)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).GetActionsByColumnId(userid, funcId, out totalcount);

                return(list);
            }
        }
コード例 #7
0
        public List <Sys_Action> GetAllRoleFuncByUser(int userid, out int totalcount)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).GetAllRoleFuncByUser(userid, out totalcount);

                return(list);
            }
        }
コード例 #8
0
        public IList <Sys_Action> GetActionsByGroupdId(string groupid, out int totalcount)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).GetActionsByGroupdId(groupid, out totalcount);

                return(list);
            }
        }
コード例 #9
0
        public IList <Sys_Action> GetActionsByColumnId(int columnid, out int totalcount)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).GetActionsByColumnId(columnid, out totalcount);

                return(list);
            }
        }
コード例 #10
0
        public int EditAction(Sys_Action sysaction)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).EditAction(sysaction);

                return(list);
            }
        }
コード例 #11
0
        public Sys_Action GetActionById(int actionid)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).GetActionById(actionid);

                return(list);
            }
        }
コード例 #12
0
        public List <Sys_Action> PermissionPageList(int pageindex, int pagesize, out int totalcount)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).PermissionPageList(pageindex, pagesize, out totalcount);

                return(list);
            }
        }
コード例 #13
0
        public List <Sys_Action> GetAllAction(out int totalcount)
        {
            using (var helper = new SqlHelper())
            {
                var list = new InternalSys_Action(helper).GetAllAction(out totalcount);

                return(list);
            }
        }