示例#1
0
        protected override void LoadViewReferenceData(ProductModel model)
        {
            if (model == null)
            {
                return;
            }
            base.LoadViewReferenceData(model);

            ICatalogService catalogService = ServiceFactory.Instance.GetService <ICatalogService>();

            model.Catalogs = catalogService.SelectAll();

            IEnterpriseService enterpriseService = ServiceFactory.Instance.GetService <IEnterpriseService>();

            model.Owners = enterpriseService.SelectAll();
        }