public void Initialize(Assembly configAssembly, MasterData configRoleData, DetailData configCodeData, IArticleConfigFactory configFactory)
        {
            IArticleMasterCollection masterBundle = new ArticleMasterCollection();

            masterBundle.LoadConfigData(configAssembly, configRoleData, configFactory);

            detailBundle.LoadConfigData(masterBundle, configCodeData, configFactory);
        }
        public void LoadConfigData(Assembly configAssembly, IEnumerable <ConfigData> configList, IArticleConfigFactory configFactory)
        {
            IEnumerable <ConfigPair> configTypeList = configList.Select((c) => (new ConfigPair(
                                                                                    c.Role, configFactory.CreateMasterItem(configAssembly, c.Role, c.Name, c.Path)))).ToList();

            ConfigureModel(configTypeList);
        }
Beispiel #3
0
        public void LoadConfigData(IArticleMasterCollection masterStore, IEnumerable <ConfigData> configList, IArticleConfigFactory configFactory)
        {
            IEnumerable <ConfigPair> configTypeList = configList.Select((c) =>
                                                                        (new ConfigPair(c.Code,
                                                                                        configFactory.CreateDetailItem(masterStore, c.Code, c.Name,
                                                                                                                       c.Role, c.Gang, c.Type, c.Bind,
                                                                                                                       c.TaxingType, c.HealthType, c.SocialType, c.Path)))).ToList();

            ConfigureModel(configTypeList);

            ConfigureModelDependency();
        }
Beispiel #4
0
        public MatrixusService(IArticleConfigFactory configFactory, IArticleConfigProfile configProfile)
        {
            InternalConfigFactory = configFactory;

            InternalConfigProfile = configProfile;
        }