Beispiel #1
0
        public ItemMethodSettings Copy()
        {
            ItemMethodSettings dto = new ItemMethodSettings();

            dto.IdMethod           = IdMethod;
            dto.IdRatingSet        = IdRatingSet;
            dto.InheritsFromFather = InheritsFromFather;
            dto.IsFuzzyMethod      = IsFuzzyMethod;
            dto.UseManualWeights   = UseManualWeights;
            return(dto);
        }
Beispiel #2
0
        public static dtoItemMethodSettings Create(ItemMethodSettings item, Boolean useFatherManualWeights)
        {
            DssError error = DssError.None;

            if (item.IdMethod < 1 && !item.InheritsFromFather)
            {
                error = DssError.MissingMethod;
            }
            if (item.IdRatingSet < 1 && !item.UseManualWeights)
            {
                error = error | DssError.MissingRatingSet;
            }
            return(Create(item, useFatherManualWeights, false, error));
        }
Beispiel #3
0
        public static dtoItemMethodSettings Create(ItemMethodSettings item, Boolean useFatherManualWeights, Boolean isDefaultForChildren, DssError error = DssError.None)
        {
            dtoItemMethodSettings dto = new dtoItemMethodSettings();

            dto.IdMethod               = item.IdMethod;
            dto.IdRatingSet            = item.IdRatingSet;
            dto.InheritsFromFather     = item.InheritsFromFather;
            dto.IsFuzzyMethod          = item.IsFuzzyMethod;
            dto.UseManualWeights       = item.UseManualWeights;
            dto.UseOrderedWeights      = item.UseOrderedWeights;
            dto.UseFatherManualWeights = useFatherManualWeights;
            dto.IsDefaultForChildren   = isDefaultForChildren;
            dto.Error = error;
            return(dto);
        }
Beispiel #4
0
 public virtual Boolean HasDssFuzzyErrors(lm.Comol.Core.Dss.Domain.Templates.ItemMethodSettings settings)
 {
     return(UseDss && (!MethodSettings.IsFuzzyMethod && IsFuzzy));
 }