2016-06-27 01:45:38 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
using BS.Shared.DataContracts;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BeWo.ViewModel.ListViewModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ContractListVM : AbstractDCListMapperVM<ContractDC, ContractVM>
|
|
|
|
|
|
{
|
|
|
|
|
|
private IList<EmploymentTypeDC> _PossibleEmploymentTypes;
|
2018-10-08 11:57:16 +02:00
|
|
|
|
private IList<ValueListEntryDC> _AllContractTypes;
|
|
|
|
|
|
private IList<CostRatePeriodDC> _AllHourlyRateCostRatePeriods;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
2018-10-08 11:57:16 +02:00
|
|
|
|
public ContractListVM(IList<EmploymentTypeDC> allEmploymentTypes, List<ValueListEntryDC> allContractTypes, List<CostRatePeriodDC> allHourlyRateCostRatePeriods, List<ContractDC> pDCs)
|
2016-06-27 01:45:38 +02:00
|
|
|
|
: base(pDCs)
|
|
|
|
|
|
{
|
|
|
|
|
|
this._PossibleEmploymentTypes = allEmploymentTypes;
|
2018-10-08 11:57:16 +02:00
|
|
|
|
this._AllContractTypes = allContractTypes;
|
|
|
|
|
|
this._AllHourlyRateCostRatePeriods = allHourlyRateCostRatePeriods;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override ContractVM CreateVM(ContractDC pDC)
|
|
|
|
|
|
{
|
|
|
|
|
|
ContractVM vm = base.CreateVM(pDC);
|
|
|
|
|
|
|
|
|
|
|
|
vm.PossibleEmploymentTypes = _PossibleEmploymentTypes;
|
2018-10-08 11:57:16 +02:00
|
|
|
|
vm.AllContractTypes = _AllContractTypes;
|
|
|
|
|
|
vm.AllHourlyRateCostRatePeriods = _AllHourlyRateCostRatePeriods;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
return vm;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|