示例#1
0
        public void AddEeeOutputAmount(DataReturnVersion dataReturnVersion, EeeOutputAmount eeeOutputAmount)
        {
            if (dataReturnVersion.EeeOutputReturnVersion == null)
            {
                dataReturnVersion.EeeOutputReturnVersion = CreateEeeOutputReturnVersion();
            }

            AddEeeOutputAmount(dataReturnVersion.EeeOutputReturnVersion, eeeOutputAmount);
        }
示例#2
0
        public EeeOutputAmount CreateEeeOutputAmount(RegisteredProducer registeredProducer, string obligationType, int weeeCategory, decimal tonnage)
        {
            var eeeOutputAmount = new EeeOutputAmount();

            eeeOutputAmount.Id                 = IntegerToGuid(GetNextId());
            eeeOutputAmount.ObligationType     = obligationType;
            eeeOutputAmount.WeeeCategory       = weeeCategory;
            eeeOutputAmount.Tonnage            = tonnage;
            eeeOutputAmount.RegisteredProducer = registeredProducer;

            return(eeeOutputAmount);
        }
        public void AddEeeOutputAmount(EeeOutputReturnVersion eeeOutputReturnVersion, EeeOutputAmount eeeOutputAmount)
        {
            if (eeeOutputReturnVersion.EeeOutputReturnVersionAmounts == null)
            {
                eeeOutputReturnVersion.EeeOutputReturnVersionAmounts = new List<EeeOutputReturnVersionAmount>();
            }

            eeeOutputReturnVersion
                .EeeOutputReturnVersionAmounts
                .Add(new EeeOutputReturnVersionAmount
                {
                    EeeOuputAmountId = eeeOutputAmount.Id,
                    EeeOutputAmount = eeeOutputAmount,
                    EeeOutputReturnVersionId = eeeOutputReturnVersion.Id,
                    EeeOutputReturnVersion = eeeOutputReturnVersion
                });
        }
        public void AddEeeOutputAmount(DataReturnVersion dataReturnVersion, EeeOutputAmount eeeOutputAmount)
        {
            if (dataReturnVersion.EeeOutputReturnVersion == null)
            {
                dataReturnVersion.EeeOutputReturnVersion = CreateEeeOutputReturnVersion();
            }

            AddEeeOutputAmount(dataReturnVersion.EeeOutputReturnVersion, eeeOutputAmount);
        }
        public EeeOutputAmount CreateEeeOutputAmount(RegisteredProducer registeredProducer, string obligationType, int weeeCategory, decimal tonnage)
        {
            var eeeOutputAmount = new EeeOutputAmount();
            eeeOutputAmount.Id = IntegerToGuid(GetNextId());
            eeeOutputAmount.ObligationType = obligationType;
            eeeOutputAmount.WeeeCategory = weeeCategory;
            eeeOutputAmount.Tonnage = tonnage;
            eeeOutputAmount.RegisteredProducer = registeredProducer;

            return eeeOutputAmount;
        }
示例#6
0
        public void AddEeeOutputAmount(EeeOutputReturnVersion eeeOutputReturnVersion, EeeOutputAmount eeeOutputAmount)
        {
            if (eeeOutputReturnVersion.EeeOutputReturnVersionAmounts == null)
            {
                eeeOutputReturnVersion.EeeOutputReturnVersionAmounts = new List <EeeOutputReturnVersionAmount>();
            }

            eeeOutputReturnVersion
            .EeeOutputReturnVersionAmounts
            .Add(new EeeOutputReturnVersionAmount
            {
                EeeOuputAmountId         = eeeOutputAmount.Id,
                EeeOutputAmount          = eeeOutputAmount,
                EeeOutputReturnVersionId = eeeOutputReturnVersion.Id,
                EeeOutputReturnVersion   = eeeOutputReturnVersion
            });
        }