public static RetailInternalOrganizationProductAttributeValue CreateRetailInternalOrganizationProductAttributeValue(string partyNumber,
                                                                                                                            string displayProductNumber,
                                                                                                                            string attributeGroupName,
                                                                                                                            string attributeName,
                                                                                                                            string attributeTypeName,
                                                                                                                            int integerValue,
                                                                                                                            decimal decimalValue,
                                                                                                                            global::System.DateTimeOffset dateTimeValue,
                                                                                                                            decimal currencyValue,
                                                                                                                            global::Microsoft.Dynamics.DataEntities.AttributeGroup attributeGroup,
                                                                                                                            global::Microsoft.Dynamics.DataEntities.RetailInternalOrganization retailInternalOrganization)
        {
            RetailInternalOrganizationProductAttributeValue retailInternalOrganizationProductAttributeValue = new RetailInternalOrganizationProductAttributeValue();

            retailInternalOrganizationProductAttributeValue.PartyNumber          = partyNumber;
            retailInternalOrganizationProductAttributeValue.DisplayProductNumber = displayProductNumber;
            retailInternalOrganizationProductAttributeValue.AttributeGroupName   = attributeGroupName;
            retailInternalOrganizationProductAttributeValue.AttributeName        = attributeName;
            retailInternalOrganizationProductAttributeValue.AttributeTypeName    = attributeTypeName;
            retailInternalOrganizationProductAttributeValue.IntegerValue         = integerValue;
            retailInternalOrganizationProductAttributeValue.DecimalValue         = decimalValue;
            retailInternalOrganizationProductAttributeValue.DateTimeValue        = dateTimeValue;
            retailInternalOrganizationProductAttributeValue.CurrencyValue        = currencyValue;
            if ((attributeGroup == null))
            {
                throw new global::System.ArgumentNullException("attributeGroup");
            }
            retailInternalOrganizationProductAttributeValue.AttributeGroup = attributeGroup;
            if ((retailInternalOrganization == null))
            {
                throw new global::System.ArgumentNullException("retailInternalOrganization");
            }
            retailInternalOrganizationProductAttributeValue.RetailInternalOrganization = retailInternalOrganization;
            return(retailInternalOrganizationProductAttributeValue);
        }
 partial void OnAttributeGroupChanging(global::Microsoft.Dynamics.DataEntities.AttributeGroup value);
Example #3
0
        public static RetailInternalOrganizationAttributeGroup CreateRetailInternalOrganizationAttributeGroup(string partyNumber, string attributeGroupName, decimal attributeGroupDisplayOrder, global::Microsoft.Dynamics.DataEntities.AttributeGroup attributeGroup, global::Microsoft.Dynamics.DataEntities.RetailInternalOrganization retailInternalOrganization)
        {
            RetailInternalOrganizationAttributeGroup retailInternalOrganizationAttributeGroup = new RetailInternalOrganizationAttributeGroup();

            retailInternalOrganizationAttributeGroup.PartyNumber                = partyNumber;
            retailInternalOrganizationAttributeGroup.AttributeGroupName         = attributeGroupName;
            retailInternalOrganizationAttributeGroup.AttributeGroupDisplayOrder = attributeGroupDisplayOrder;
            if ((attributeGroup == null))
            {
                throw new global::System.ArgumentNullException("attributeGroup");
            }
            retailInternalOrganizationAttributeGroup.AttributeGroup = attributeGroup;
            if ((retailInternalOrganization == null))
            {
                throw new global::System.ArgumentNullException("retailInternalOrganization");
            }
            retailInternalOrganizationAttributeGroup.RetailInternalOrganization = retailInternalOrganization;
            return(retailInternalOrganizationAttributeGroup);
        }