|
|
|
@ -464,33 +464,38 @@ namespace Shentun.Peis.ImportLisResults |
|
|
|
|
|
|
|
foreach (var item in input) |
|
|
|
{ |
|
|
|
string codeValue = await _columnReferenceCodeManager.GetColumnReferenCodeValueAsync(columnReferenId, item.ItemId); |
|
|
|
if (string.IsNullOrWhiteSpace(codeValue)) |
|
|
|
var codeValues = await _columnReferenceCodeManager.GetColumnReferenCodeValueAsync(columnReferenId, item.ItemId); |
|
|
|
if (!codeValues.Any()) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"项目编号:{item.ItemId}没有对照"); |
|
|
|
} |
|
|
|
Guid itemId = Guid.Parse(codeValue); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var inputDto = new CreateImportLisResultDto |
|
|
|
foreach (var codeValue in codeValues) |
|
|
|
{ |
|
|
|
CheckDate = item.CheckDate, |
|
|
|
CheckDoctorName = item.CheckDoctorName, |
|
|
|
CriticalRangeValue = item.CriticalRangeValue, |
|
|
|
CriticalValue = item.CriticalValue, |
|
|
|
ExecOrganizationUnitId = execOrganizationUnitId, |
|
|
|
ItemId = itemId, |
|
|
|
ItemName = item.ItemName, |
|
|
|
LisRequestNo = item.LisRequestNo, |
|
|
|
ReferenceRangeValue = item.ReferenceRangeValue, |
|
|
|
ReportPrompt = "", |
|
|
|
ResultStatusId = null, |
|
|
|
Result = item.Result, |
|
|
|
Unit = item.Unit, |
|
|
|
LisAuditorDoctorName = item.LisAuditorDoctorName, |
|
|
|
LisSampleNo = item.LisSampleNo |
|
|
|
}; |
|
|
|
inputDtoList.Add(inputDto); |
|
|
|
Guid itemId = Guid.Parse(codeValue); |
|
|
|
var inputDto = new CreateImportLisResultDto |
|
|
|
{ |
|
|
|
CheckDate = item.CheckDate, |
|
|
|
CheckDoctorName = item.CheckDoctorName, |
|
|
|
CriticalRangeValue = item.CriticalRangeValue, |
|
|
|
CriticalValue = item.CriticalValue, |
|
|
|
ExecOrganizationUnitId = execOrganizationUnitId, |
|
|
|
ItemId = itemId, |
|
|
|
ItemName = item.ItemName, |
|
|
|
LisRequestNo = item.LisRequestNo, |
|
|
|
ReferenceRangeValue = item.ReferenceRangeValue, |
|
|
|
ReportPrompt = "", |
|
|
|
ResultStatusId = null, |
|
|
|
Result = item.Result, |
|
|
|
Unit = item.Unit, |
|
|
|
LisAuditorDoctorName = item.LisAuditorDoctorName, |
|
|
|
LisSampleNo = item.LisSampleNo |
|
|
|
}; |
|
|
|
inputDtoList.Add(inputDto); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var lisRequestNoPrintMode = await _sysParmValueManager.GetSysParmValueAsync(Guid.Empty, "lis_request_no_print_mode"); |
|
|
|
|