public static ProductAttributeValue CreateProductAttributeValue(string productNumber,
                                                                        string attributeTypeName,
                                                                        string attributeName,
                                                                        int integerValue,
                                                                        decimal decimalValue,
                                                                        global::System.DateTimeOffset dateTimeValue,
                                                                        decimal currencyValue,
                                                                        global::Microsoft.Dynamics.DataEntities.ProductV2 product)
        {
            ProductAttributeValue productAttributeValue = new ProductAttributeValue();

            productAttributeValue.ProductNumber     = productNumber;
            productAttributeValue.AttributeTypeName = attributeTypeName;
            productAttributeValue.AttributeName     = attributeName;
            productAttributeValue.IntegerValue      = integerValue;
            productAttributeValue.DecimalValue      = decimalValue;
            productAttributeValue.DateTimeValue     = dateTimeValue;
            productAttributeValue.CurrencyValue     = currencyValue;
            if ((product == null))
            {
                throw new global::System.ArgumentNullException("product");
            }
            productAttributeValue.Product = product;
            return(productAttributeValue);
        }
예제 #2
0
        public static ProductCategoryAssignment CreateProductCategoryAssignment(string productNumber,
                                                                                string productCategoryName,
                                                                                string productCategoryHierarchyName,
                                                                                decimal displayOrder,
                                                                                global::Microsoft.Dynamics.DataEntities.ProductV2 productV2,
                                                                                global::Microsoft.Dynamics.DataEntities.ProductCategory productCategory)
        {
            ProductCategoryAssignment productCategoryAssignment = new ProductCategoryAssignment();

            productCategoryAssignment.ProductNumber                = productNumber;
            productCategoryAssignment.ProductCategoryName          = productCategoryName;
            productCategoryAssignment.ProductCategoryHierarchyName = productCategoryHierarchyName;
            productCategoryAssignment.DisplayOrder = displayOrder;
            if ((productV2 == null))
            {
                throw new global::System.ArgumentNullException("productV2");
            }
            productCategoryAssignment.ProductV2 = productV2;
            if ((productCategory == null))
            {
                throw new global::System.ArgumentNullException("productCategory");
            }
            productCategoryAssignment.ProductCategory = productCategory;
            return(productCategoryAssignment);
        }
예제 #3
0
        public static ProductDocumentAttachment CreateProductDocumentAttachment(string productNumber,
                                                                                string documentAttachmentTypeCode,
                                                                                string attachmentDescription,
                                                                                global::System.DateTimeOffset attachedDateTime,
                                                                                global::Microsoft.Dynamics.DataEntities.ProductV2 productV2,
                                                                                global::Microsoft.Dynamics.DataEntities.DocumentType documentAttachmentType)
        {
            ProductDocumentAttachment productDocumentAttachment = new ProductDocumentAttachment();

            productDocumentAttachment.ProductNumber = productNumber;
            productDocumentAttachment.DocumentAttachmentTypeCode = documentAttachmentTypeCode;
            productDocumentAttachment.AttachmentDescription      = attachmentDescription;
            productDocumentAttachment.AttachedDateTime           = attachedDateTime;
            if ((productV2 == null))
            {
                throw new global::System.ArgumentNullException("productV2");
            }
            productDocumentAttachment.ProductV2 = productV2;
            if ((documentAttachmentType == null))
            {
                throw new global::System.ArgumentNullException("documentAttachmentType");
            }
            productDocumentAttachment.DocumentAttachmentType = documentAttachmentType;
            return(productDocumentAttachment);
        }
예제 #4
0
 partial void OnProductV2Changing(global::Microsoft.Dynamics.DataEntities.ProductV2 value);
예제 #5
0
        public static EngineeringChangeRequestDependency CreateEngineeringChangeRequestDependency(string dependentProductNumber,
                                                                                                  string dependencyLegalEntityId,
                                                                                                  string dependencyTransactionDescription,
                                                                                                  string engineeringChangeRequestNumber,
                                                                                                  global::Microsoft.Dynamics.DataEntities.ProductV2 dependentProduct,
                                                                                                  global::Microsoft.Dynamics.DataEntities.EngineeringChangeRequestHeader engineeringChangeRequestHeader)
        {
            EngineeringChangeRequestDependency engineeringChangeRequestDependency = new EngineeringChangeRequestDependency();

            engineeringChangeRequestDependency.DependentProductNumber           = dependentProductNumber;
            engineeringChangeRequestDependency.DependencyLegalEntityId          = dependencyLegalEntityId;
            engineeringChangeRequestDependency.DependencyTransactionDescription = dependencyTransactionDescription;
            engineeringChangeRequestDependency.EngineeringChangeRequestNumber   = engineeringChangeRequestNumber;
            if ((dependentProduct == null))
            {
                throw new global::System.ArgumentNullException("dependentProduct");
            }
            engineeringChangeRequestDependency.DependentProduct = dependentProduct;
            if ((engineeringChangeRequestHeader == null))
            {
                throw new global::System.ArgumentNullException("engineeringChangeRequestHeader");
            }
            engineeringChangeRequestDependency.EngineeringChangeRequestHeader = engineeringChangeRequestHeader;
            return(engineeringChangeRequestDependency);
        }
예제 #6
0
        public static EngineeringChangeOrderProductWhereUsedAnalysis CreateEngineeringChangeOrderProductWhereUsedAnalysis(string dataAreaId,
                                                                                                                          decimal engineeringChangeOrderProductLineNumber,
                                                                                                                          string usedInProductNumber,
                                                                                                                          string engineeringChangeOrderNumber,
                                                                                                                          global::Microsoft.Dynamics.DataEntities.ProductV2 usedInProduct,
                                                                                                                          global::Microsoft.Dynamics.DataEntities.EngineeringChangeOrderProduct engineeringChangeOrderProduct)
        {
            EngineeringChangeOrderProductWhereUsedAnalysis engineeringChangeOrderProductWhereUsedAnalysis = new EngineeringChangeOrderProductWhereUsedAnalysis();

            engineeringChangeOrderProductWhereUsedAnalysis.dataAreaId = dataAreaId;
            engineeringChangeOrderProductWhereUsedAnalysis.EngineeringChangeOrderProductLineNumber = engineeringChangeOrderProductLineNumber;
            engineeringChangeOrderProductWhereUsedAnalysis.UsedInProductNumber          = usedInProductNumber;
            engineeringChangeOrderProductWhereUsedAnalysis.EngineeringChangeOrderNumber = engineeringChangeOrderNumber;
            if ((usedInProduct == null))
            {
                throw new global::System.ArgumentNullException("usedInProduct");
            }
            engineeringChangeOrderProductWhereUsedAnalysis.UsedInProduct = usedInProduct;
            if ((engineeringChangeOrderProduct == null))
            {
                throw new global::System.ArgumentNullException("engineeringChangeOrderProduct");
            }
            engineeringChangeOrderProductWhereUsedAnalysis.EngineeringChangeOrderProduct = engineeringChangeOrderProduct;
            return(engineeringChangeOrderProductWhereUsedAnalysis);
        }
        public static EngineeringProductVersion CreateEngineeringProductVersion(string productNumber, string engineeringVersionId, decimal versionNumber, global::Microsoft.Dynamics.DataEntities.ProductV2 productV2)
        {
            EngineeringProductVersion engineeringProductVersion = new EngineeringProductVersion();

            engineeringProductVersion.ProductNumber        = productNumber;
            engineeringProductVersion.EngineeringVersionId = engineeringVersionId;
            engineeringProductVersion.VersionNumber        = versionNumber;
            if ((productV2 == null))
            {
                throw new global::System.ArgumentNullException("productV2");
            }
            engineeringProductVersion.ProductV2 = productV2;
            return(engineeringProductVersion);
        }
예제 #8
0
        public static PhysicalProductDimensionDetails CreatePhysicalProductDimensionDetails(string productNumber,
                                                                                            string physicalUnitSymbol,
                                                                                            decimal physicalDepth,
                                                                                            decimal physicalWidth,
                                                                                            decimal physicalWeight,
                                                                                            decimal physicalHeight,
                                                                                            global::Microsoft.Dynamics.DataEntities.ProductV2 productV2,
                                                                                            global::Microsoft.Dynamics.DataEntities.UnitOfMeasure physicalUnitOfMeasure,
                                                                                            global::Microsoft.Dynamics.DataEntities.UnitOfMeasure volumeUnitOfMeasure,
                                                                                            global::Microsoft.Dynamics.DataEntities.UnitOfMeasure massDefinedUnitOfMeasure,
                                                                                            global::Microsoft.Dynamics.DataEntities.UnitOfMeasure lengthUnitOfMeasure)
        {
            PhysicalProductDimensionDetails physicalProductDimensionDetails = new PhysicalProductDimensionDetails();

            physicalProductDimensionDetails.ProductNumber      = productNumber;
            physicalProductDimensionDetails.PhysicalUnitSymbol = physicalUnitSymbol;
            physicalProductDimensionDetails.PhysicalDepth      = physicalDepth;
            physicalProductDimensionDetails.PhysicalWidth      = physicalWidth;
            physicalProductDimensionDetails.PhysicalWeight     = physicalWeight;
            physicalProductDimensionDetails.PhysicalHeight     = physicalHeight;
            if ((productV2 == null))
            {
                throw new global::System.ArgumentNullException("productV2");
            }
            physicalProductDimensionDetails.ProductV2 = productV2;
            if ((physicalUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("physicalUnitOfMeasure");
            }
            physicalProductDimensionDetails.PhysicalUnitOfMeasure = physicalUnitOfMeasure;
            if ((volumeUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("volumeUnitOfMeasure");
            }
            physicalProductDimensionDetails.VolumeUnitOfMeasure = volumeUnitOfMeasure;
            if ((massDefinedUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("massDefinedUnitOfMeasure");
            }
            physicalProductDimensionDetails.MassDefinedUnitOfMeasure = massDefinedUnitOfMeasure;
            if ((lengthUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("lengthUnitOfMeasure");
            }
            physicalProductDimensionDetails.LengthUnitOfMeasure = lengthUnitOfMeasure;
            return(physicalProductDimensionDetails);
        }