コード例 #1
0
 public static ChannelCategoryAttribute CreateChannelCategoryAttribute(string retailChannelId, 
             string productCategoryHierarchyName, 
             string productCategoryName, 
             string attributeName, 
             string attributeTypeName, 
             global::Microsoft.Dynamics.DataEntities.RetailChannel retailChannel, 
             global::Microsoft.Dynamics.DataEntities.ProductCategory productCategory)
 {
     ChannelCategoryAttribute channelCategoryAttribute = new ChannelCategoryAttribute();
     channelCategoryAttribute.RetailChannelId = retailChannelId;
     channelCategoryAttribute.ProductCategoryHierarchyName = productCategoryHierarchyName;
     channelCategoryAttribute.ProductCategoryName = productCategoryName;
     channelCategoryAttribute.AttributeName = attributeName;
     channelCategoryAttribute.AttributeTypeName = attributeTypeName;
     if ((retailChannel == null))
     {
         throw new global::System.ArgumentNullException("retailChannel");
     }
     channelCategoryAttribute.RetailChannel = retailChannel;
     if ((productCategory == null))
     {
         throw new global::System.ArgumentNullException("productCategory");
     }
     channelCategoryAttribute.ProductCategory = productCategory;
     return channelCategoryAttribute;
 }
コード例 #2
0
        public static RetailChannelPriceGroup CreateRetailChannelPriceGroup(string groupCode,
                                                                            string retailChannelId,
                                                                            global::Microsoft.Dynamics.DataEntities.OnlineChannel onlineChannel,
                                                                            global::Microsoft.Dynamics.DataEntities.RetailCallCenter retailCallCenter,
                                                                            global::Microsoft.Dynamics.DataEntities.RetailChannel retailChannel,
                                                                            global::Microsoft.Dynamics.DataEntities.RetailStore retailStore)
        {
            RetailChannelPriceGroup retailChannelPriceGroup = new RetailChannelPriceGroup();

            retailChannelPriceGroup.GroupCode       = groupCode;
            retailChannelPriceGroup.RetailChannelId = retailChannelId;
            if ((onlineChannel == null))
            {
                throw new global::System.ArgumentNullException("onlineChannel");
            }
            retailChannelPriceGroup.OnlineChannel = onlineChannel;
            if ((retailCallCenter == null))
            {
                throw new global::System.ArgumentNullException("retailCallCenter");
            }
            retailChannelPriceGroup.RetailCallCenter = retailCallCenter;
            if ((retailChannel == null))
            {
                throw new global::System.ArgumentNullException("retailChannel");
            }
            retailChannelPriceGroup.RetailChannel = retailChannel;
            if ((retailStore == null))
            {
                throw new global::System.ArgumentNullException("retailStore");
            }
            retailChannelPriceGroup.RetailStore = retailStore;
            return(retailChannelPriceGroup);
        }
コード例 #3
0
 partial void OnRetailChannelChanging(global::Microsoft.Dynamics.DataEntities.RetailChannel value);
コード例 #4
0
        public static RetailStoreAddressBook CreateRetailStoreAddressBook(string retailChannelId, string addressBookName, global::Microsoft.Dynamics.DataEntities.RetailChannel retailChannel, global::Microsoft.Dynamics.DataEntities.AddressBooks addressBooks)
        {
            RetailStoreAddressBook retailStoreAddressBook = new RetailStoreAddressBook();

            retailStoreAddressBook.RetailChannelId = retailChannelId;
            retailStoreAddressBook.AddressBookName = addressBookName;
            if ((retailChannel == null))
            {
                throw new global::System.ArgumentNullException("retailChannel");
            }
            retailStoreAddressBook.RetailChannel = retailChannel;
            if ((addressBooks == null))
            {
                throw new global::System.ArgumentNullException("addressBooks");
            }
            retailStoreAddressBook.AddressBooks = addressBooks;
            return(retailStoreAddressBook);
        }