Esempio n. 1
0
        public static string GetErrorTypeAbbreviation(enums.ImportExceptionType errorType)
        {
            var retVal = string.Empty;

            switch (errorType)
            {
            case enums.ImportExceptionType.NotSet:
                break;

            case enums.ImportExceptionType.MissingMarket:
                retVal = "Market";
                break;

            case enums.ImportExceptionType.MissingFeature:
                retVal = "Feature";
                break;

            case enums.ImportExceptionType.MissingDerivative:
                retVal = "BMC";
                break;

            case enums.ImportExceptionType.MissingTrim:
                retVal = "Trim";
                break;

            case enums.ImportExceptionType.NoFeatureCode:
                retVal = "No Feature";
                break;

            case enums.ImportExceptionType.NoHistoricFeature:
                retVal = "Historic";
                break;

            case enums.ImportExceptionType.NoOxoFeature:
                retVal = "OXO";
                break;

            case enums.ImportExceptionType.NoBmc:
                retVal = "No BMC";
                break;

            case enums.ImportExceptionType.NoHistoricDerivative:
                retVal = "Historic";
                break;

            case enums.ImportExceptionType.NoOxoDerivative:
                retVal = "OXO";
                break;

            case enums.ImportExceptionType.NoDpck:
                retVal = "No Trim";
                break;

            case enums.ImportExceptionType.NoHistoricTrim:
                retVal = "Historic";
                break;

            case enums.ImportExceptionType.NoOxoTrim:
                retVal = "OXO";
                break;

            case enums.ImportExceptionType.NoSpecialFeature:
                retVal = "Spec. Feature";
                break;

            default:
                throw new ArgumentOutOfRangeException("errorType", errorType, null);
            }
            return(retVal);
        }
 public bool HasExceptions(enums.ImportExceptionType ofType)
 {
     return(HasExceptions() && Exceptions.CurrentPage.Where(e => e.ErrorType == ofType).Any());
 }