Browse Source

导入excel结果

master
wxd 3 days ago
parent
commit
529a66489f
  1. 4
      src/Shentun.Peis.Application/ImportRegularResults/ImportRegularResultAppService.cs

4
src/Shentun.Peis.Application/ImportRegularResults/ImportRegularResultAppService.cs

@ -115,7 +115,8 @@ namespace Shentun.Peis.ImportRegularResults
ItemId = itemId,
ItemResult = item.ItemResult,
RegisterCheckId = rgFirst.registerCheck.Id,
CheckDoctorName = item.CheckDoctorName
CheckDoctorName = item.CheckDoctorName,
CheckDate = string.IsNullOrWhiteSpace(item.CheckDate) ? null : Convert.ToDateTime(item.CheckDate)
};
inputDtoList.Add(inputDto);
}
@ -137,6 +138,7 @@ namespace Shentun.Peis.ImportRegularResults
{
RegisterCheckId = item.Key,
CheckDoctorId = item.First().CheckDoctorName,
CheckDate = item.First().CheckDate,
RegisterCheckItems = item.Select(o => new UpdateRegisterCheckItemDetail()
{
ItemId = o.ItemId,

Loading…
Cancel
Save