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); }
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 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 }); }