|
|
|
@ -464,14 +464,16 @@ 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); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var codeValue in codeValues) |
|
|
|
{ |
|
|
|
Guid itemId = Guid.Parse(codeValue); |
|
|
|
var inputDto = new CreateImportLisResultDto |
|
|
|
{ |
|
|
|
CheckDate = item.CheckDate, |
|
|
|
@ -493,6 +495,9 @@ namespace Shentun.Peis.ImportLisResults |
|
|
|
inputDtoList.Add(inputDto); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var lisRequestNoPrintMode = await _sysParmValueManager.GetSysParmValueAsync(Guid.Empty, "lis_request_no_print_mode"); |
|
|
|
if (string.IsNullOrWhiteSpace(lisRequestNoPrintMode)) |
|
|
|
lisRequestNoPrintMode = "0"; |
|
|
|
|