public static UnitOfMeasureConversion CreateUnitOfMeasureConversion(string fromUnitSymbol,
                                                                            string toUnitSymbol,
                                                                            decimal innerOffset,
                                                                            decimal outerOffset,
                                                                            int numerator,
                                                                            decimal factor,
                                                                            int denominator,
                                                                            global::Microsoft.Dynamics.DataEntities.UnitOfMeasure fromUnitOfMeasure,
                                                                            global::Microsoft.Dynamics.DataEntities.UnitOfMeasure toUnitOfMeasure)
        {
            UnitOfMeasureConversion unitOfMeasureConversion = new UnitOfMeasureConversion();

            unitOfMeasureConversion.FromUnitSymbol = fromUnitSymbol;
            unitOfMeasureConversion.ToUnitSymbol   = toUnitSymbol;
            unitOfMeasureConversion.InnerOffset    = innerOffset;
            unitOfMeasureConversion.OuterOffset    = outerOffset;
            unitOfMeasureConversion.Numerator      = numerator;
            unitOfMeasureConversion.Factor         = factor;
            unitOfMeasureConversion.Denominator    = denominator;
            if ((fromUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("fromUnitOfMeasure");
            }
            unitOfMeasureConversion.FromUnitOfMeasure = fromUnitOfMeasure;
            if ((toUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("toUnitOfMeasure");
            }
            unitOfMeasureConversion.ToUnitOfMeasure = toUnitOfMeasure;
            return(unitOfMeasureConversion);
        }
 public static TradeAllowanceAgreementMerchandisingEventProductV2 CreateTradeAllowanceAgreementMerchandisingEventProductV2(string dataAreaId, 
             string tradeAllowanceAgreementMerchandisingEventId, 
             string customerAccountNumber, 
             string tradeAllowanceAgreementId, 
             string itemNumber, 
             string promotionalProductUnitSymbol, 
             string productColorId, 
             string productStyleId, 
             string productVersionId, 
             string productSizeId, 
             string productConfigurationId, 
             decimal weightingFactor, 
             global::Microsoft.Dynamics.DataEntities.UnitOfMeasure promotionalProductUnitOfMeasure, 
             global::Microsoft.Dynamics.DataEntities.ReleasedProductV2 releasedProduct, 
             global::Microsoft.Dynamics.DataEntities.TradeAllowanceAgreementMerchandisingEvent tradeAllowanceAgreementMerchandisingEvent)
 {
     TradeAllowanceAgreementMerchandisingEventProductV2 tradeAllowanceAgreementMerchandisingEventProductV2 = new TradeAllowanceAgreementMerchandisingEventProductV2();
     tradeAllowanceAgreementMerchandisingEventProductV2.dataAreaId = dataAreaId;
     tradeAllowanceAgreementMerchandisingEventProductV2.TradeAllowanceAgreementMerchandisingEventId = tradeAllowanceAgreementMerchandisingEventId;
     tradeAllowanceAgreementMerchandisingEventProductV2.CustomerAccountNumber = customerAccountNumber;
     tradeAllowanceAgreementMerchandisingEventProductV2.TradeAllowanceAgreementId = tradeAllowanceAgreementId;
     tradeAllowanceAgreementMerchandisingEventProductV2.ItemNumber = itemNumber;
     tradeAllowanceAgreementMerchandisingEventProductV2.PromotionalProductUnitSymbol = promotionalProductUnitSymbol;
     tradeAllowanceAgreementMerchandisingEventProductV2.ProductColorId = productColorId;
     tradeAllowanceAgreementMerchandisingEventProductV2.ProductStyleId = productStyleId;
     tradeAllowanceAgreementMerchandisingEventProductV2.ProductVersionId = productVersionId;
     tradeAllowanceAgreementMerchandisingEventProductV2.ProductSizeId = productSizeId;
     tradeAllowanceAgreementMerchandisingEventProductV2.ProductConfigurationId = productConfigurationId;
     tradeAllowanceAgreementMerchandisingEventProductV2.WeightingFactor = weightingFactor;
     if ((promotionalProductUnitOfMeasure == null))
     {
         throw new global::System.ArgumentNullException("promotionalProductUnitOfMeasure");
     }
     tradeAllowanceAgreementMerchandisingEventProductV2.PromotionalProductUnitOfMeasure = promotionalProductUnitOfMeasure;
     if ((releasedProduct == null))
     {
         throw new global::System.ArgumentNullException("releasedProduct");
     }
     tradeAllowanceAgreementMerchandisingEventProductV2.ReleasedProduct = releasedProduct;
     if ((tradeAllowanceAgreementMerchandisingEvent == null))
     {
         throw new global::System.ArgumentNullException("tradeAllowanceAgreementMerchandisingEvent");
     }
     tradeAllowanceAgreementMerchandisingEventProductV2.TradeAllowanceAgreementMerchandisingEvent = tradeAllowanceAgreementMerchandisingEvent;
     return tradeAllowanceAgreementMerchandisingEventProductV2;
 }
 partial void OnPromotionalProductUnitOfMeasureChanging(global::Microsoft.Dynamics.DataEntities.UnitOfMeasure value);
Exemplo n.º 4
0
 partial void OnIntegerUnitOfMeasureEntityChanging(global::Microsoft.Dynamics.DataEntities.UnitOfMeasure value);
 partial void OnBillBackQuantityUnitOfMeasureChanging(global::Microsoft.Dynamics.DataEntities.UnitOfMeasure value);
        public static TradeAllowanceAgreementMerchandisingEventBillBackLine CreateTradeAllowanceAgreementMerchandisingEventBillBackLine(string dataAreaId,
                                                                                                                                        string tradeAllowanceAgreementId,
                                                                                                                                        string customerAccountNumber,
                                                                                                                                        string tradeAllowanceAgreementMerchandisingEventId,
                                                                                                                                        string tradeAllowanceAgreementMerchandisingEventBillBackId,
                                                                                                                                        decimal lineNumber,
                                                                                                                                        decimal billBackAmount,
                                                                                                                                        decimal fromBillBackQuantity,
                                                                                                                                        decimal toBillBackQuantity,
                                                                                                                                        global::Microsoft.Dynamics.DataEntities.TradeAllowanceAgreementMerchandisingEventBillBack tradeAllowanceAgreementMerchandisingEventBillBack,
                                                                                                                                        global::Microsoft.Dynamics.DataEntities.UnitOfMeasure billBackQuantityUnitOfMeasure,
                                                                                                                                        global::Microsoft.Dynamics.DataEntities.Currency billBackAmountCurrency)
        {
            TradeAllowanceAgreementMerchandisingEventBillBackLine tradeAllowanceAgreementMerchandisingEventBillBackLine = new TradeAllowanceAgreementMerchandisingEventBillBackLine();

            tradeAllowanceAgreementMerchandisingEventBillBackLine.dataAreaId = dataAreaId;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.TradeAllowanceAgreementId = tradeAllowanceAgreementId;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.CustomerAccountNumber     = customerAccountNumber;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.TradeAllowanceAgreementMerchandisingEventId         = tradeAllowanceAgreementMerchandisingEventId;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.TradeAllowanceAgreementMerchandisingEventBillBackId = tradeAllowanceAgreementMerchandisingEventBillBackId;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.LineNumber           = lineNumber;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.BillBackAmount       = billBackAmount;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.FromBillBackQuantity = fromBillBackQuantity;
            tradeAllowanceAgreementMerchandisingEventBillBackLine.ToBillBackQuantity   = toBillBackQuantity;
            if ((tradeAllowanceAgreementMerchandisingEventBillBack == null))
            {
                throw new global::System.ArgumentNullException("tradeAllowanceAgreementMerchandisingEventBillBack");
            }
            tradeAllowanceAgreementMerchandisingEventBillBackLine.TradeAllowanceAgreementMerchandisingEventBillBack = tradeAllowanceAgreementMerchandisingEventBillBack;
            if ((billBackQuantityUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("billBackQuantityUnitOfMeasure");
            }
            tradeAllowanceAgreementMerchandisingEventBillBackLine.BillBackQuantityUnitOfMeasure = billBackQuantityUnitOfMeasure;
            if ((billBackAmountCurrency == null))
            {
                throw new global::System.ArgumentNullException("billBackAmountCurrency");
            }
            tradeAllowanceAgreementMerchandisingEventBillBackLine.BillBackAmountCurrency = billBackAmountCurrency;
            return(tradeAllowanceAgreementMerchandisingEventBillBackLine);
        }
        public static UnitOfMeasureTranslation CreateUnitOfMeasureTranslation(string unitSymbol, string languageId, global::Microsoft.Dynamics.DataEntities.UnitOfMeasure unitOfMeasure)
        {
            UnitOfMeasureTranslation unitOfMeasureTranslation = new UnitOfMeasureTranslation();

            unitOfMeasureTranslation.UnitSymbol = unitSymbol;
            unitOfMeasureTranslation.LanguageId = languageId;
            if ((unitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("unitOfMeasure");
            }
            unitOfMeasureTranslation.UnitOfMeasure = unitOfMeasure;
            return(unitOfMeasureTranslation);
        }
 partial void OnFromUnitOfMeasureChanging(global::Microsoft.Dynamics.DataEntities.UnitOfMeasure value);
Exemplo n.º 9
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);
        }
Exemplo n.º 10
0
        public static ProductUnitOfMeasureConversion CreateProductUnitOfMeasureConversion(string fromUnitSymbol,
                                                                                          string toUnitSymbol,
                                                                                          string productNumber,
                                                                                          decimal innerOffset,
                                                                                          decimal outerOffset,
                                                                                          int numerator,
                                                                                          decimal factor,
                                                                                          int denominator,
                                                                                          global::Microsoft.Dynamics.DataEntities.UnitOfMeasure fromUnitOfMeasure,
                                                                                          global::Microsoft.Dynamics.DataEntities.UnitOfMeasure toUnitOfMeasure,
                                                                                          global::Microsoft.Dynamics.DataEntities.EveryProduct everyProduct)
        {
            ProductUnitOfMeasureConversion productUnitOfMeasureConversion = new ProductUnitOfMeasureConversion();

            productUnitOfMeasureConversion.FromUnitSymbol = fromUnitSymbol;
            productUnitOfMeasureConversion.ToUnitSymbol   = toUnitSymbol;
            productUnitOfMeasureConversion.ProductNumber  = productNumber;
            productUnitOfMeasureConversion.InnerOffset    = innerOffset;
            productUnitOfMeasureConversion.OuterOffset    = outerOffset;
            productUnitOfMeasureConversion.Numerator      = numerator;
            productUnitOfMeasureConversion.Factor         = factor;
            productUnitOfMeasureConversion.Denominator    = denominator;
            if ((fromUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("fromUnitOfMeasure");
            }
            productUnitOfMeasureConversion.FromUnitOfMeasure = fromUnitOfMeasure;
            if ((toUnitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("toUnitOfMeasure");
            }
            productUnitOfMeasureConversion.ToUnitOfMeasure = toUnitOfMeasure;
            if ((everyProduct == null))
            {
                throw new global::System.ArgumentNullException("everyProduct");
            }
            productUnitOfMeasureConversion.EveryProduct = everyProduct;
            return(productUnitOfMeasureConversion);
        }
        public static WarehouseReplenishmentTemplateUnitOfMeasureRestriction CreateWarehouseReplenishmentTemplateUnitOfMeasureRestriction(string dataAreaId, string warehouseReplenishmentTemplateId, string restrictionUnitSymbol, global::Microsoft.Dynamics.DataEntities.WarehouseReplenishmentTemplate warehouseReplenishmentTemplate, global::Microsoft.Dynamics.DataEntities.UnitOfMeasure unitOfMeasure)
        {
            WarehouseReplenishmentTemplateUnitOfMeasureRestriction warehouseReplenishmentTemplateUnitOfMeasureRestriction = new WarehouseReplenishmentTemplateUnitOfMeasureRestriction();

            warehouseReplenishmentTemplateUnitOfMeasureRestriction.dataAreaId = dataAreaId;
            warehouseReplenishmentTemplateUnitOfMeasureRestriction.WarehouseReplenishmentTemplateId = warehouseReplenishmentTemplateId;
            warehouseReplenishmentTemplateUnitOfMeasureRestriction.RestrictionUnitSymbol            = restrictionUnitSymbol;
            if ((warehouseReplenishmentTemplate == null))
            {
                throw new global::System.ArgumentNullException("warehouseReplenishmentTemplate");
            }
            warehouseReplenishmentTemplateUnitOfMeasureRestriction.WarehouseReplenishmentTemplate = warehouseReplenishmentTemplate;
            if ((unitOfMeasure == null))
            {
                throw new global::System.ArgumentNullException("unitOfMeasure");
            }
            warehouseReplenishmentTemplateUnitOfMeasureRestriction.UnitOfMeasure = unitOfMeasure;
            return(warehouseReplenishmentTemplateUnitOfMeasureRestriction);
        }