예제 #1
0
        public bool CheckAccessSilent(string objectid, string attribute)
        {
            BOUser current_user = mAccountant.CurrentAuthUser;

            if (current_user.CheckAccess(objectid, attribute))
            {
                return(true);
            }
            return(false);
        }
        public static bool CheckAccessSilent(string action)
        {
            BOUser current_user = AccountantPool.Instance.CurrentAccountant.User;

            if (current_user.CheckAccess(action))
            {
                return(true);
            }
            return(false);
        }
예제 #3
0
        public bool CheckAccess(string objectid, string attribute)
        {
            BOUser current_user = mAccountant.CurrentAuthUser;

            if (current_user.CheckAccess(objectid, attribute))
            {
                return(true);
            }
            else
            {
                MessageBox.Show(string.Format("Your current role as {0} does not allow you to access this feature", current_user.Role));
                return(false);
            }
        }
        public static bool CheckAccess(string action)
        {
            BOUser current_user = AccountantPool.Instance.CurrentAccountant.User;

            if (current_user.CheckAccess(action))
            {
                return(true);
            }
            else
            {
                Util.WinFormUtil.Alert(string.Format("Your current role as {0} does not allow you to access this feature", current_user.Role));
                return(false);
            }
        }