示例#1
0
        public void AddWeeeDeliveredAmount(DataReturnVersion dataReturnVersion, WeeeDeliveredAmount weeeDeliveredAmount)
        {
            if (dataReturnVersion.WeeeDeliveredReturnVersion == null)
            {
                dataReturnVersion.WeeeDeliveredReturnVersion = CreateWeeeDeliveredReturnVersion();
            }

            AddWeeeDeliveredAmount(dataReturnVersion.WeeeDeliveredReturnVersion, weeeDeliveredAmount);
        }
示例#2
0
        public WeeeDeliveredAmount CreateWeeeDeliveredAmount(DataReturnVersion dataReturnVersion, AeDeliveryLocation location, string obligationType, int weeeCategory, decimal tonnage)
        {
            var weeeDeliveredAmount = new WeeeDeliveredAmount
            {
                Id = IntegerToGuid(GetNextId()),
                AeDeliveryLocationId = location.Id,
                AeDeliveryLocation   = location,
                ObligationType       = obligationType,
                Tonnage      = tonnage,
                WeeeCategory = weeeCategory
            };

            AddWeeeDeliveredAmount(dataReturnVersion, weeeDeliveredAmount);

            return(weeeDeliveredAmount);
        }
        public WeeeDeliveredAmount CreateWeeeDeliveredAmount(DataReturnVersion dataReturnVersion, AeDeliveryLocation location, string obligationType, int weeeCategory, decimal tonnage)
        {
            var weeeDeliveredAmount = new WeeeDeliveredAmount
            {
                Id = IntegerToGuid(GetNextId()),
                AeDeliveryLocationId = location.Id,
                AeDeliveryLocation = location,
                ObligationType = obligationType,
                Tonnage = tonnage,
                WeeeCategory = weeeCategory
            };

            AddWeeeDeliveredAmount(dataReturnVersion, weeeDeliveredAmount);

            return weeeDeliveredAmount;
        }
        public void AddWeeeDeliveredAmount(DataReturnVersion dataReturnVersion, WeeeDeliveredAmount weeeDeliveredAmount)
        {
            if (dataReturnVersion.WeeeDeliveredReturnVersion == null)
            {
                dataReturnVersion.WeeeDeliveredReturnVersion = CreateWeeeDeliveredReturnVersion();
            }

            AddWeeeDeliveredAmount(dataReturnVersion.WeeeDeliveredReturnVersion, weeeDeliveredAmount);
        }
        public void AddWeeeDeliveredAmount(WeeeDeliveredReturnVersion weeeDeliveredReturnVersion, WeeeDeliveredAmount weeeDeliveredAmount)
        {
            if (weeeDeliveredReturnVersion.WeeeDeliveredReturnVersionAmounts == null)
            {
                weeeDeliveredReturnVersion.WeeeDeliveredReturnVersionAmounts = new List<WeeeDeliveredReturnVersionAmount>();
            }

            weeeDeliveredReturnVersion
                .WeeeDeliveredReturnVersionAmounts
                .Add(new WeeeDeliveredReturnVersionAmount
                {
                    WeeeDeliveredAmountId = weeeDeliveredAmount.Id,
                    WeeeDeliveredAmount = weeeDeliveredAmount,
                    WeeeDeliveredReturnVersionId = weeeDeliveredReturnVersion.Id,
                    WeeeDeliveredReturnVersion = weeeDeliveredReturnVersion
                });
        }
示例#6
0
        public void AddWeeeDeliveredAmount(WeeeDeliveredReturnVersion weeeDeliveredReturnVersion, WeeeDeliveredAmount weeeDeliveredAmount)
        {
            if (weeeDeliveredReturnVersion.WeeeDeliveredReturnVersionAmounts == null)
            {
                weeeDeliveredReturnVersion.WeeeDeliveredReturnVersionAmounts = new List <WeeeDeliveredReturnVersionAmount>();
            }

            weeeDeliveredReturnVersion
            .WeeeDeliveredReturnVersionAmounts
            .Add(new WeeeDeliveredReturnVersionAmount
            {
                WeeeDeliveredAmountId        = weeeDeliveredAmount.Id,
                WeeeDeliveredAmount          = weeeDeliveredAmount,
                WeeeDeliveredReturnVersionId = weeeDeliveredReturnVersion.Id,
                WeeeDeliveredReturnVersion   = weeeDeliveredReturnVersion
            });
        }