コード例 #1
0
ファイル: RunningUser.cs プロジェクト: jiri-theimer/cormen
        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
ファイル: j04UserRoleBL.cs プロジェクト: jiri-theimer/cormen
        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);
            }
        }