Пример #1
0
        public bool TestPermission(BO.UserPermFlag oneperm)
        {
            int x = (int)oneperm;
            int y = x & this.j04PermissionValue;

            if (y == x)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
        private bool TestOnePerm(BO.UserPermFlag oneperm, BO.j04UserRole rec)
        {
            int x = (int)oneperm;
            int y = x & rec.j04PermissionValue;

            if (y == x)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }