Ejemplo n.º 1
0
		public static OpenFormSettings GetConfig()
		{
			OpenFormSettings result =
				(OpenFormSettings)ConfigurationBroker.GetSection("openFormSettings");

			if (result == null)
				result = new OpenFormSettings();

			return result;
		}
Ejemplo n.º 2
0
        public static OpenFormSettings GetConfig()
        {
            OpenFormSettings result =
                (OpenFormSettings)ConfigurationBroker.GetSection("openFormSettings");

            if (result == null)
            {
                result = new OpenFormSettings();
            }

            return(result);
        }
        /// <summary>
        /// 检查当前用户是否在Acl中
        /// </summary>
        /// <param name="process"></param>
        private void CheckCurrentUserInAcl(IWfProcess process)
        {
            bool continueCheck = true;

            OnIsCurrentUserInAcl(process, ref continueCheck);

            if (continueCheck)
            {
                foreach (IUserProcessAclChecker checker in OpenFormSettings.GetConfig().AclCheckers)
                {
                    checker.CheckUserInAcl(DeluxeIdentity.CurrentUser, process, ref continueCheck);

                    if (continueCheck == false)
                    {
                        break;
                    }
                }
            }
        }