|
|
|
@ -362,7 +362,8 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces |
|
|
|
CheckRequestNo = registerCheck.CheckRequestNo, |
|
|
|
asbitem, |
|
|
|
ItemTypeName = itemTypeHaveEmpty != null ? itemTypeHaveEmpty.DisplayName : "", |
|
|
|
ItemTypeId = itemTypeHaveEmpty != null ? itemTypeHaveEmpty.Id.ToString() : "" |
|
|
|
ItemTypeId = itemTypeHaveEmpty != null ? itemTypeHaveEmpty.Id.ToString() : "", |
|
|
|
IsSignIn = registerCheck.IsSignIn |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -391,6 +392,9 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces |
|
|
|
if (queryList.Count() == 0) |
|
|
|
throw new UserFriendlyException($"体检编号不存在"); |
|
|
|
|
|
|
|
if (queryList.FirstOrDefault().IsSignIn == 'Y') |
|
|
|
throw new UserFriendlyException($"体检编号已登记"); |
|
|
|
|
|
|
|
var patientInfo = new PatientPacsInfo_PatientInfoDto |
|
|
|
{ |
|
|
|
addr = "", |
|
|
|
@ -424,5 +428,32 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 更新检查单签收状态
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost("api/Third/ThirdPartyPublicInterface/UpdateCheckNoState")] |
|
|
|
public async Task UpdateCheckNoStateAsync(UpdateCheckNoInputDto input) |
|
|
|
{ |
|
|
|
|
|
|
|
var registerCheck = await _registerCheckRepository.FirstOrDefaultAsync(f => f.CheckRequestNo == input.tjbh); |
|
|
|
if (registerCheck == null) |
|
|
|
throw new UserFriendlyException($"体检编号不存在"); |
|
|
|
|
|
|
|
if (input.zxpb == "1") |
|
|
|
{ |
|
|
|
registerCheck.IsSignIn = 'Y'; |
|
|
|
registerCheck.SignInTime = DateTime.Now; |
|
|
|
} |
|
|
|
else if (input.zxpb == "0") |
|
|
|
{ |
|
|
|
registerCheck.IsSignIn = 'N'; |
|
|
|
registerCheck.SignInTime = DateTime.Now; |
|
|
|
} |
|
|
|
|
|
|
|
await _registerCheckRepository.UpdateAsync(registerCheck); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |