コード例 #1
0
        public ProductModel()
        {
            ProductPictureModels = new List <ProductPictureModel>();
            Locales                    = new List <ProductLocalizedModel>();
            CopyProductModel           = new CopyProductModel();
            AddPictureModel            = new ProductPictureModel();
            ProductEditorSettingsModel = new ProductEditorSettingsModel();

            AvailableProductTemplates = new List <SelectListItem>();
            ProductsTypesSupportedByProductTemplates = new Dictionary <int, IList <SelectListItem> >();

            AvailableVendors = new List <SelectListItem>();

            SelectedStoreIds = new List <int>();
            AvailableStores  = new List <SelectListItem>();

            SelectedCategoryIds = new List <int>();
            AvailableCategories = new List <SelectListItem>();

            SelectedCustomerRoleIds = new List <int>();
            AvailableCustomerRoles  = new List <SelectListItem>();

            RelatedProductSearchModel    = new RelatedProductSearchModel();
            AssociatedProductSearchModel = new AssociatedProductSearchModel();
            ProductPictureSearchModel    = new ProductPictureSearchModel();
        }
コード例 #2
0
        public ProductModel()
        {
            ProductPictureModels = new List <ProductPictureModel>();
            Locales          = new List <ProductLocalizedModel>();
            CopyProductModel = new CopyProductModel();
            AddPictureModel  = new ProductPictureModel();
            AddSpecificationAttributeModel  = new AddSpecificationAttributeToProductModel();
            ProductWarehouseInventoryModels = new List <ProductWarehouseInventoryModel>();
            ProductEditorSettingsModel      = new ProductEditorSettingsModel();
            StockQuantityHistory            = new StockQuantityHistoryModel();

            AvailableBasepriceUnits            = new List <SelectListItem>();
            AvailableBasepriceBaseUnits        = new List <SelectListItem>();
            AvailableProductTemplates          = new List <SelectListItem>();
            AvailableTaxCategories             = new List <SelectListItem>();
            AvailableDeliveryDates             = new List <SelectListItem>();
            AvailableProductAvailabilityRanges = new List <SelectListItem>();
            AvailableWarehouses = new List <SelectListItem>();
            ProductsTypesSupportedByProductTemplates = new Dictionary <int, IList <SelectListItem> >();

            AvailableVendors = new List <SelectListItem>();

            SelectedStoreIds = new List <int>();
            AvailableStores  = new List <SelectListItem>();

            SelectedManufacturerIds = new List <int>();
            AvailableManufacturers  = new List <SelectListItem>();

            SelectedCategoryIds = new List <int>();
            AvailableCategories = new List <SelectListItem>();

            SelectedCustomerRoleIds = new List <int>();
            AvailableCustomerRoles  = new List <SelectListItem>();

            SelectedDiscountIds = new List <int>();
            AvailableDiscounts  = new List <SelectListItem>();

            RelatedProductSearchModel                = new RelatedProductSearchModel();
            CrossSellProductSearchModel              = new CrossSellProductSearchModel();
            AssociatedProductSearchModel             = new AssociatedProductSearchModel();
            ProductPictureSearchModel                = new ProductPictureSearchModel();
            ProductSpecificationAttributeSearchModel = new ProductSpecificationAttributeSearchModel();
            ProductOrderSearchModel                = new ProductOrderSearchModel();
            TierPriceSearchModel                   = new TierPriceSearchModel();
            StockQuantityHistorySearchModel        = new StockQuantityHistorySearchModel();
            ProductAttributeMappingSearchModel     = new ProductAttributeMappingSearchModel();
            ProductAttributeCombinationSearchModel = new ProductAttributeCombinationSearchModel();
        }