Exemple #1
0
        public static ServerRuleTypeEnum ToServerRuleTypeEnum(this ApplicableRuleType ruleType)
        {
            switch (ruleType)
            {
            case ApplicableRuleType.AutoRoute:
                return(ServerRuleTypeEnum.AutoRoute);

            case ApplicableRuleType.StudyAutoRoute:
                return(ServerRuleTypeEnum.StudyAutoRoute);

            case ApplicableRuleType.StudyDelete:
                return(ServerRuleTypeEnum.StudyDelete);

            case ApplicableRuleType.Tier1Retention:
                return(ServerRuleTypeEnum.Tier1Retention);

            case ApplicableRuleType.OnlineRetention:
                return(ServerRuleTypeEnum.OnlineRetention);

            case ApplicableRuleType.StudyCompress:
                return(ServerRuleTypeEnum.StudyCompress);

            case ApplicableRuleType.SopCompress:
                return(ServerRuleTypeEnum.SopCompress);

            case ApplicableRuleType.DataAccess:
                return(ServerRuleTypeEnum.DataAccess);

            case ApplicableRuleType.StudyQualityControl:
                return(ServerRuleTypeEnum.StudyQualityControl);

            default:
                throw new ArgumentOutOfRangeException("ruleType");
            }
        }
Exemple #2
0
 /// <summary>
 /// Specifies the type of rule for which an action operator is valid.
 /// </summary>
 /// <param name="ruleType"></param>
 public ActionApplicabilityAttribute(ApplicableRuleType ruleType)
 {
     this.RuleType = ruleType;
 }
		/// <summary>
		/// Specifies the type of rule for which an action operator is valid.
		/// </summary>
		/// <param name="ruleType"></param>
		public ActionApplicabilityAttribute(ApplicableRuleType ruleType)
		{
			this.RuleType = ruleType;
		}