private void FillAppliance(WorkOrderPrintDto workOrderPrint, CustomerValueList customerValueList) { if (customerValueList.CustomerValueType != CustomerValueType.Appliances || customerValueList.CustomerValues.Length == 0) { workOrderPrint.HasApplianceInfo = false; workOrderPrint.ApplianceDescription = null; return; } var vehicleValue = (ApplianceCustomerValue)customerValueList.CustomerValues.First(); workOrderPrint.HasApplianceInfo = true; workOrderPrint.ApplianceDescription = mapperWrapper.Map <WorkOrderAppliancePrintDto>(vehicleValue); }
private void FillOther(WorkOrderPrintDto workOrderPrint, CustomerValueList customerValueList) { if (customerValueList.CustomerValueType != CustomerValueType.Other || customerValueList.CustomerValues.Length == 0) { workOrderPrint.HasCustomerValueDescription = false; workOrderPrint.CustomerValueDescription = null; return; } var vehicleValue = (OtherCustomerValue)customerValueList.CustomerValues.First(); workOrderPrint.HasCustomerValueDescription = true; workOrderPrint.CustomerValueDescription = vehicleValue.AdditionalInfo; }