Files
BeWoPlaner/BeWo/ViewModel/ListViewModel/ContractListVM.cs
Christian 40ebcc80fc cb
2018-10-08 11:57:16 +02:00

32 lines
1.2 KiB
C#

using System.Collections.Generic;
using BS.Shared.DataContracts;
namespace BeWo.ViewModel.ListViewModel
{
public class ContractListVM : AbstractDCListMapperVM<ContractDC, ContractVM>
{
private IList<EmploymentTypeDC> _PossibleEmploymentTypes;
private IList<ValueListEntryDC> _AllContractTypes;
private IList<CostRatePeriodDC> _AllHourlyRateCostRatePeriods;
public ContractListVM(IList<EmploymentTypeDC> allEmploymentTypes, List<ValueListEntryDC> allContractTypes, List<CostRatePeriodDC> allHourlyRateCostRatePeriods, List<ContractDC> pDCs)
: base(pDCs)
{
this._PossibleEmploymentTypes = allEmploymentTypes;
this._AllContractTypes = allContractTypes;
this._AllHourlyRateCostRatePeriods = allHourlyRateCostRatePeriods;
}
protected override ContractVM CreateVM(ContractDC pDC)
{
ContractVM vm = base.CreateVM(pDC);
vm.PossibleEmploymentTypes = _PossibleEmploymentTypes;
vm.AllContractTypes = _AllContractTypes;
vm.AllHourlyRateCostRatePeriods = _AllHourlyRateCostRatePeriods;
return vm;
}
}
}