Ejemplo n.º 1
0
        public DefaultConverter(Dictionary <string, string> hierarchy, ProductModel pm, string vtPackagePath)
        {
            _pm = pm;
            this.vtPackagePath = vtPackagePath;
            _parseUtils        = new ParseUtils(hierarchy, pm);
            var productModelStructure = _pm.ProductModelStructure;

            _variableLookup = PMUtils.GetVariables(productModelStructure);
            scopeVariables  = new List <IVariableDefinition> {
                new StringVariable(MODEL_VARIABLE),
                new StringVariable(COUNTRY_VARIABLE),
                new StringVariable(VARIANT_VARIABLE)
            };
        }
 public SalesValidityRuleConverter(DBReader dbReader, ProductModel model)
 {
     _dbReader       = dbReader;
     _model          = model;
     _variableLookup = PMUtils.GetVariables(_model.ProductModelStructure);
 }
Ejemplo n.º 3
0
 public ParseUtils(Dictionary <string, string> hierarchy, ProductModel pm)
 {
     Hierarchy       = hierarchy;
     _variableLookup = PMUtils.GetVariables(pm.ProductModelStructure);
 }
Ejemplo n.º 4
0
 public HierarchyRelationConverter(DBReader dbReader, ProductModel model)
 {
     _model          = model;
     _variableLookup = PMUtils.GetVariables(_model.ProductModelStructure);
 }