コード例 #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
ファイル: ProductModel.cs プロジェクト: quanhv86/vilandtravel
        public ProductModel()
        {
            Locales = new List <ProductLocalizedModel>();
            ProductPictureModels           = new List <ProductPictureModel>();
            CopyProductModel               = new CopyProductModel();
            AddPictureModel                = new ProductPictureModel();
            AddSpecificationAttributeModel = new AddProductSpecificationAttributeModel();
            ProductEditorSettingsModel     = new ProductEditorSettingsModel();
            StockQuantityHistory           = new StockQuantityHistoryModel();

            //AvailableBasepriceUnits = new List<SelectListItem>();
            //AvailableBasepriceBaseUnits = new List<SelectListItem>();
            AvailableProductTemplates  = new List <SelectListItem>();
            AvailableTaxCategories     = new List <SelectListItem>();
            AvailableProductAttributes = new List <SelectListItem>();
            ProductsTypesSupportedByProductTemplates = new Dictionary <int, IList <SelectListItem> >();


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

            SelectedDestinationIds = new List <int>();
            AvailableDestinations  = 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>();
        }
コード例 #3
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();
        }
コード例 #4
0
 public static ProductEditorSettings ToEntity(this ProductEditorSettingsModel model, ProductEditorSettings destination)
 {
     return(model.MapTo(destination));
 }