/// <summary> /// Generate constraints based on the passed list of SPLH /// </summary> /// <param name="entity"></param> internal ConstraintModel(ConfigService.Constraint entity) { this.MaxBoxWeight = entity.MaxBoxWeight; this.MaxSkuWithinBox = entity.MaxSkuWithinBox; this.IsSingleStyleColor = entity.IsSingleStyleColor; this.RequiredMinSkuPieces = entity.RequiredMinSkuPieces; this.RequiredMaxSkuPieces = entity.RequiredMaxSkuPieces; }
internal CustomerConstraintEditorModel(ConfigService.Constraint entity) : base(entity) { OrigRequiredMinSkuPieces = this.RequiredMinSkuPieces; OrigRequiredMaxSkuPieces = this.RequiredMaxSkuPieces; OrigMaxBoxWeight = this.MaxBoxWeight; OrigMaxSkuWithinBox = this.MaxSkuWithinBox; OrigIsSingleStyleColor = this.IsSingleStyleColor; }