public void AddWeeeDeliveredAmount(DataReturnVersion dataReturnVersion, WeeeDeliveredAmount weeeDeliveredAmount) { if (dataReturnVersion.WeeeDeliveredReturnVersion == null) { dataReturnVersion.WeeeDeliveredReturnVersion = CreateWeeeDeliveredReturnVersion(); } AddWeeeDeliveredAmount(dataReturnVersion.WeeeDeliveredReturnVersion, 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 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(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 }); }
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 }); }