Browse Source

LIS申请

bjmzak
DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
bfdd4cfc50
  1. 2
      src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs
  2. 4
      test/Shentun.Peis.Application.Tests/PrintReportAppServiceTest.cs

2
src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs

@ -250,7 +250,7 @@ namespace Shentun.Peis.PrintReports
//生成LIS条码 //生成LIS条码
var lisRequests = await _lisRequestManager.SetLisRequestAsync(input.PatientRegisterId); var lisRequests = await _lisRequestManager.SetLisRequestAsync(input.PatientRegisterId);
await _unitOfWorkManager.Current.SaveChangesAsync(); await _unitOfWorkManager.Current.SaveChangesAsync();
//await _unitOfWorkManager.Current.CompleteAsync();
await _unitOfWorkManager.Current.CompleteAsync();
//检索条码数据 //检索条码数据

4
test/Shentun.Peis.Application.Tests/PrintReportAppServiceTest.cs

@ -34,14 +34,14 @@ namespace Shentun.Peis
using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true)) using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true))
{ {
var items = await _appService.GetLisRequestReportByPatientRegisterIdAsync(new PatientRegisterIdInputDto() var items = await _appService.GetLisRequestReportByPatientRegisterIdAsync(new PatientRegisterIdInputDto()
{ PatientRegisterId = new Guid("3a126cec-ae51-8273-67aa-3003d6e7a70b") });
{ PatientRegisterId = new Guid("3a12707e-bc54-129e-64d0-8cf5556a023c") });
_output.WriteLine(items.Count().ToString()); _output.WriteLine(items.Count().ToString());
foreach (var item in items) foreach (var item in items)
{ {
_output.WriteLine(item.PatientName + "," + item.CustomerOrgName + "," + _output.WriteLine(item.PatientName + "," + item.CustomerOrgName + "," +
item.DepartmentName + item.AsbitemNames); item.DepartmentName + item.AsbitemNames);
} }
await unitOfWork.CompleteAsync();
//await unitOfWork.CompleteAsync();
} }
} }

Loading…
Cancel
Save