32 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|
|
} |