public void AddWeeeCollectedAmount(DataReturnVersion dataReturnVersion, WeeeCollectedAmount weeeCollectedAmount) { if (dataReturnVersion.WeeeCollectedReturnVersion == null) { dataReturnVersion.WeeeCollectedReturnVersion = CreateWeeeCollectedReturnVersion(); } AddWeeeCollectedAmount(dataReturnVersion.WeeeCollectedReturnVersion, weeeCollectedAmount); }
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); }
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); }
public WeeeCollectedReturnVersionAmount CreateWeeeCollectedReturnVersionAmount(WeeeCollectedAmount weeeCollectedAmount, WeeeCollectedReturnVersion weeeCollectedReturnVersion) { var weeeCollectedReturnVersionAmount = new WeeeCollectedReturnVersionAmount { WeeeCollectedAmount = weeeCollectedAmount, WeeeCollectedReturnVersion = weeeCollectedReturnVersion }; model.WeeeCollectedReturnVersionAmounts.Add(weeeCollectedReturnVersionAmount); return weeeCollectedReturnVersionAmount; }
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; }
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 }); }
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; }
public WeeeCollectedReturnVersionAmount CreateWeeeCollectedReturnVersionAmount(WeeeCollectedAmount weeeCollectedAmount, WeeeCollectedReturnVersion weeeCollectedReturnVersion) { var weeeCollectedReturnVersionAmount = new WeeeCollectedReturnVersionAmount { WeeeCollectedAmount = weeeCollectedAmount, WeeeCollectedReturnVersion = weeeCollectedReturnVersion }; model.WeeeCollectedReturnVersionAmounts.Add(weeeCollectedReturnVersionAmount); return(weeeCollectedReturnVersionAmount); }
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 }); }