コード例 #1
0
        internal void AddDefaults(string VtPackagePath, string materialNbr)
        {
            var dbReader         = new DBReader(SapTablesConnectionString);
            var model            = dbReader.GetModelByMaterial(materialNbr);
            var pm               = LoadProductModel(@"C:\Users\robin\Google Drive\Documents\Customers\AGCO\Data\Models\With Rules\MF7726D6_AGCO.pmx");
            var defaults         = dbReader.GetDefaults(model);
            var hierarchyMapping = dbReader.GetHierarchyMapping();
            var defaultConverter = new DefaultConverter(hierarchyMapping, pm, VtPackagePath);

            defaultConverter.ConvertDefaults(defaults);
        }