|
|
|
@ -245,6 +245,8 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
from appointRegisterAsbitem in await _appointRegisterAsbitemRepository.GetQueryableAsync() |
|
|
|
join asbitem in await _asbitemRepository.GetQueryableAsync() |
|
|
|
on appointRegisterAsbitem.AsbitemId equals asbitem.AsbitemId |
|
|
|
join itemType in await _itemTypeRepository.GetQueryableAsync() |
|
|
|
on asbitem.ItemTypeId equals itemType.ItemTypeId |
|
|
|
orderby appointPatientRegister.AppointDate |
|
|
|
where appointRegisterAsbitem.AppointPatientRegisterId == input.AppointPatientRegisterId |
|
|
|
select new AppointRegisterAsbitemDto() |
|
|
|
@ -255,7 +257,11 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
StandardPrice = appointRegisterAsbitem.StandardPrice, |
|
|
|
ChargePrice = appointRegisterAsbitem.ChargePrice, |
|
|
|
Amount = appointRegisterAsbitem.Amount, |
|
|
|
IsCharge = appointRegisterAsbitem.IsCharge |
|
|
|
IsCharge = appointRegisterAsbitem.IsCharge, |
|
|
|
DisplayOrder = asbitem.DisplayOrder, |
|
|
|
ItemTypeId = itemType.ItemTypeId, |
|
|
|
ItemTypeName = itemType.ItemTypeName, |
|
|
|
ItemTypeDisplayOrder = itemType.DisplayOrder, |
|
|
|
} |
|
|
|
|
|
|
|
).ToList(); |
|
|
|
@ -274,15 +280,20 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
.Where(o => o.CustomerOrgGroupId == appointPatientRegister.CustomerOrgGroupId) |
|
|
|
.Select(x => x.AsbitemId).ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
var itemTypes = await _itemTypeRepository.GetListAsync(); |
|
|
|
appointRegisterAsbitemDtos.ForEach(o => |
|
|
|
{ |
|
|
|
if (asbitems.Where(x => x == o.AsbitemId).ToList().Any()) |
|
|
|
{ |
|
|
|
o.IsInMedicalPackage = 'Y'; |
|
|
|
} |
|
|
|
var itemType = itemTypes.Where(o => o.ItemTypeId == o.ItemTypeId).First(); |
|
|
|
itemType = itemTypes.Where(o=>o.PathCode == itemType.PathCode.Substring(0,5)).First(); |
|
|
|
o.ItemTypeId = itemType.ItemTypeId; |
|
|
|
o.ItemTypeDisplayOrder = itemType.DisplayOrder; |
|
|
|
}); |
|
|
|
|
|
|
|
appointRegisterAsbitemDtos = appointRegisterAsbitemDtos.OrderBy(o=>o.ItemTypeDisplayOrder) |
|
|
|
.OrderBy(o=>o.DisplayOrder).ToList(); |
|
|
|
return appointRegisterAsbitemDtos; |
|
|
|
} |
|
|
|
} |
|
|
|
|