コード例 #1
0
        public void AddWeeeCollectedAmount(DataReturnVersion dataReturnVersion, WeeeCollectedAmount weeeCollectedAmount)
        {
            if (dataReturnVersion.WeeeCollectedReturnVersion == null)
            {
                dataReturnVersion.WeeeCollectedReturnVersion = CreateWeeeCollectedReturnVersion();
            }

            AddWeeeCollectedAmount(dataReturnVersion.WeeeCollectedReturnVersion, weeeCollectedAmount);
        }
コード例 #2
0
        public WeeeCollectedAmount CreateWeeeCollectedAmount(ObligationType obligationType, decimal tonnage, WeeeCategory category)
        {
            var weeeCollectedAmount = new WeeeCollectedAmount
            {
                Id             = IntegerToGuid(GetNextId()),
                ObligationType = obligationType.ToString(),
                Tonnage        = tonnage,
                WeeeCategory   = (int)category
            };

            model.WeeeCollectedAmounts.Add(weeeCollectedAmount);

            return(weeeCollectedAmount);
        }
コード例 #3
0
        public WeeeCollectedAmount CreateWeeeCollectedAmount(DataReturnVersion dataReturnVersion, string obligationType, int weeeCategory, decimal tonnage)
        {
            var weeeCollectedAmount = new WeeeCollectedAmount
            {
                Id             = IntegerToGuid(GetNextId()),
                ObligationType = obligationType,
                Tonnage        = tonnage,
                WeeeCategory   = weeeCategory
            };

            AddWeeeCollectedAmount(dataReturnVersion, weeeCollectedAmount);

            return(weeeCollectedAmount);
        }
コード例 #4
0
        public WeeeCollectedReturnVersionAmount CreateWeeeCollectedReturnVersionAmount(WeeeCollectedAmount weeeCollectedAmount, WeeeCollectedReturnVersion weeeCollectedReturnVersion)
        {
            var weeeCollectedReturnVersionAmount = new WeeeCollectedReturnVersionAmount
            {
                WeeeCollectedAmount = weeeCollectedAmount,
                WeeeCollectedReturnVersion = weeeCollectedReturnVersion
            };

            model.WeeeCollectedReturnVersionAmounts.Add(weeeCollectedReturnVersionAmount);

            return weeeCollectedReturnVersionAmount;
        }
コード例 #5
0
        public WeeeCollectedAmount CreateWeeeCollectedAmount(ObligationType obligationType, decimal tonnage, WeeeCategory category)
        {
            var weeeCollectedAmount = new WeeeCollectedAmount
            {
                Id = IntegerToGuid(GetNextId()),
                ObligationType = obligationType.ToString(),
                Tonnage = tonnage,
                WeeeCategory = (int)category
            };

            model.WeeeCollectedAmounts.Add(weeeCollectedAmount);

            return weeeCollectedAmount;
        }
コード例 #6
0
        public void AddWeeeCollectedAmount(WeeeCollectedReturnVersion weeeCollectedReturnVersion, WeeeCollectedAmount weeeCollectedAmount)
        {
            if (weeeCollectedReturnVersion.WeeeCollectedReturnVersionAmounts == null)
            {
                weeeCollectedReturnVersion.WeeeCollectedReturnVersionAmounts = new List<WeeeCollectedReturnVersionAmount>();
            }

            weeeCollectedReturnVersion
                .WeeeCollectedReturnVersionAmounts
                .Add(new WeeeCollectedReturnVersionAmount
                {
                    WeeeCollectedAmountId = weeeCollectedAmount.Id,
                    WeeeCollectedAmount = weeeCollectedAmount,
                    WeeeCollectedReturnVersionId = weeeCollectedReturnVersion.Id,
                    WeeeCollectedReturnVersion = weeeCollectedReturnVersion
                });
        }
コード例 #7
0
        public void AddWeeeCollectedAmount(DataReturnVersion dataReturnVersion, WeeeCollectedAmount weeeCollectedAmount)
        {
            if (dataReturnVersion.WeeeCollectedReturnVersion == null)
            {
                dataReturnVersion.WeeeCollectedReturnVersion = CreateWeeeCollectedReturnVersion();
            }

            AddWeeeCollectedAmount(dataReturnVersion.WeeeCollectedReturnVersion, weeeCollectedAmount);
        }
コード例 #8
0
        public WeeeCollectedAmount CreateWeeeCollectedAmount(DataReturnVersion dataReturnVersion, string obligationType, int weeeCategory, decimal tonnage)
        {
            var weeeCollectedAmount = new WeeeCollectedAmount
            {
                Id = IntegerToGuid(GetNextId()),
                ObligationType = obligationType,
                Tonnage = tonnage,
                WeeeCategory = weeeCategory
            };

            AddWeeeCollectedAmount(dataReturnVersion, weeeCollectedAmount);

            return weeeCollectedAmount;
        }
コード例 #9
0
        public WeeeCollectedReturnVersionAmount CreateWeeeCollectedReturnVersionAmount(WeeeCollectedAmount weeeCollectedAmount, WeeeCollectedReturnVersion weeeCollectedReturnVersion)
        {
            var weeeCollectedReturnVersionAmount = new WeeeCollectedReturnVersionAmount
            {
                WeeeCollectedAmount        = weeeCollectedAmount,
                WeeeCollectedReturnVersion = weeeCollectedReturnVersion
            };

            model.WeeeCollectedReturnVersionAmounts.Add(weeeCollectedReturnVersionAmount);

            return(weeeCollectedReturnVersionAmount);
        }
コード例 #10
0
        public void AddWeeeCollectedAmount(WeeeCollectedReturnVersion weeeCollectedReturnVersion, WeeeCollectedAmount weeeCollectedAmount)
        {
            if (weeeCollectedReturnVersion.WeeeCollectedReturnVersionAmounts == null)
            {
                weeeCollectedReturnVersion.WeeeCollectedReturnVersionAmounts = new List <WeeeCollectedReturnVersionAmount>();
            }

            weeeCollectedReturnVersion
            .WeeeCollectedReturnVersionAmounts
            .Add(new WeeeCollectedReturnVersionAmount
            {
                WeeeCollectedAmountId        = weeeCollectedAmount.Id,
                WeeeCollectedAmount          = weeeCollectedAmount,
                WeeeCollectedReturnVersionId = weeeCollectedReturnVersion.Id,
                WeeeCollectedReturnVersion   = weeeCollectedReturnVersion
            });
        }