partial void OnRetailCatalogProductChanging(global::Microsoft.Dynamics.DataEntities.RetailCatalogProduct value);
Пример #2
0
        public static RetailCatalogProductCategory CreateRetailCatalogProductCategory(string catalogNumber,
                                                                                      string displayProductNumber,
                                                                                      string categoryName,
                                                                                      string categoryHierarchyName,
                                                                                      global::Microsoft.Dynamics.DataEntities.RetailCatalogProduct retailCatalogProduct,
                                                                                      global::Microsoft.Dynamics.DataEntities.ProductCategory productCategory)
        {
            RetailCatalogProductCategory retailCatalogProductCategory = new RetailCatalogProductCategory();

            retailCatalogProductCategory.CatalogNumber         = catalogNumber;
            retailCatalogProductCategory.DisplayProductNumber  = displayProductNumber;
            retailCatalogProductCategory.CategoryName          = categoryName;
            retailCatalogProductCategory.CategoryHierarchyName = categoryHierarchyName;
            if ((retailCatalogProduct == null))
            {
                throw new global::System.ArgumentNullException("retailCatalogProduct");
            }
            retailCatalogProductCategory.RetailCatalogProduct = retailCatalogProduct;
            if ((productCategory == null))
            {
                throw new global::System.ArgumentNullException("productCategory");
            }
            retailCatalogProductCategory.ProductCategory = productCategory;
            return(retailCatalogProductCategory);
        }
        public static RetailCatalogInternalOrganizationProductAttributeValue CreateRetailCatalogInternalOrganizationProductAttributeValue(string catalogNumber,
                                                                                                                                          string partyNumber,
                                                                                                                                          string displayProductNumber,
                                                                                                                                          string attributeGroupName,
                                                                                                                                          string attributeName,
                                                                                                                                          string attributeTypeName,
                                                                                                                                          int integerValue,
                                                                                                                                          decimal decimalValue,
                                                                                                                                          global::System.DateTimeOffset dateTimeValue,
                                                                                                                                          decimal currencyValue,
                                                                                                                                          global::Microsoft.Dynamics.DataEntities.RetailCatalogInternalOrganization retailCatalogInternalOrganization,
                                                                                                                                          global::Microsoft.Dynamics.DataEntities.RetailCatalogProduct retailCatalogProduct,
                                                                                                                                          global::Microsoft.Dynamics.DataEntities.RetailCatalog retailCatalog)
        {
            RetailCatalogInternalOrganizationProductAttributeValue retailCatalogInternalOrganizationProductAttributeValue = new RetailCatalogInternalOrganizationProductAttributeValue();

            retailCatalogInternalOrganizationProductAttributeValue.CatalogNumber        = catalogNumber;
            retailCatalogInternalOrganizationProductAttributeValue.PartyNumber          = partyNumber;
            retailCatalogInternalOrganizationProductAttributeValue.DisplayProductNumber = displayProductNumber;
            retailCatalogInternalOrganizationProductAttributeValue.AttributeGroupName   = attributeGroupName;
            retailCatalogInternalOrganizationProductAttributeValue.AttributeName        = attributeName;
            retailCatalogInternalOrganizationProductAttributeValue.AttributeTypeName    = attributeTypeName;
            retailCatalogInternalOrganizationProductAttributeValue.IntegerValue         = integerValue;
            retailCatalogInternalOrganizationProductAttributeValue.DecimalValue         = decimalValue;
            retailCatalogInternalOrganizationProductAttributeValue.DateTimeValue        = dateTimeValue;
            retailCatalogInternalOrganizationProductAttributeValue.CurrencyValue        = currencyValue;
            if ((retailCatalogInternalOrganization == null))
            {
                throw new global::System.ArgumentNullException("retailCatalogInternalOrganization");
            }
            retailCatalogInternalOrganizationProductAttributeValue.RetailCatalogInternalOrganization = retailCatalogInternalOrganization;
            if ((retailCatalogProduct == null))
            {
                throw new global::System.ArgumentNullException("retailCatalogProduct");
            }
            retailCatalogInternalOrganizationProductAttributeValue.RetailCatalogProduct = retailCatalogProduct;
            if ((retailCatalog == null))
            {
                throw new global::System.ArgumentNullException("retailCatalog");
            }
            retailCatalogInternalOrganizationProductAttributeValue.RetailCatalog = retailCatalog;
            return(retailCatalogInternalOrganizationProductAttributeValue);
        }
        public static RetailCatalogProductAttributeValue CreateRetailCatalogProductAttributeValue(string catalogNumber,
                                                                                                  string categoryHierarchyName,
                                                                                                  string categoryName,
                                                                                                  string displayProductNumber,
                                                                                                  string attributeGroupName,
                                                                                                  string attributeName,
                                                                                                  string attributeTypeName,
                                                                                                  int integerValue,
                                                                                                  decimal decimalValue,
                                                                                                  global::System.DateTimeOffset dateTimeValue,
                                                                                                  decimal currencyValue,
                                                                                                  global::Microsoft.Dynamics.DataEntities.ProductCategory productCategory,
                                                                                                  global::Microsoft.Dynamics.DataEntities.ProductCategoryHierarchy productCategoryHierarchy,
                                                                                                  global::Microsoft.Dynamics.DataEntities.RetailCatalog retailCatalog,
                                                                                                  global::Microsoft.Dynamics.DataEntities.RetailCatalogProduct retailCatalogProduct)
        {
            RetailCatalogProductAttributeValue retailCatalogProductAttributeValue = new RetailCatalogProductAttributeValue();

            retailCatalogProductAttributeValue.CatalogNumber         = catalogNumber;
            retailCatalogProductAttributeValue.CategoryHierarchyName = categoryHierarchyName;
            retailCatalogProductAttributeValue.CategoryName          = categoryName;
            retailCatalogProductAttributeValue.DisplayProductNumber  = displayProductNumber;
            retailCatalogProductAttributeValue.AttributeGroupName    = attributeGroupName;
            retailCatalogProductAttributeValue.AttributeName         = attributeName;
            retailCatalogProductAttributeValue.AttributeTypeName     = attributeTypeName;
            retailCatalogProductAttributeValue.IntegerValue          = integerValue;
            retailCatalogProductAttributeValue.DecimalValue          = decimalValue;
            retailCatalogProductAttributeValue.DateTimeValue         = dateTimeValue;
            retailCatalogProductAttributeValue.CurrencyValue         = currencyValue;
            if ((productCategory == null))
            {
                throw new global::System.ArgumentNullException("productCategory");
            }
            retailCatalogProductAttributeValue.ProductCategory = productCategory;
            if ((productCategoryHierarchy == null))
            {
                throw new global::System.ArgumentNullException("productCategoryHierarchy");
            }
            retailCatalogProductAttributeValue.ProductCategoryHierarchy = productCategoryHierarchy;
            if ((retailCatalog == null))
            {
                throw new global::System.ArgumentNullException("retailCatalog");
            }
            retailCatalogProductAttributeValue.RetailCatalog = retailCatalog;
            if ((retailCatalogProduct == null))
            {
                throw new global::System.ArgumentNullException("retailCatalogProduct");
            }
            retailCatalogProductAttributeValue.RetailCatalogProduct = retailCatalogProduct;
            return(retailCatalogProductAttributeValue);
        }