Browse Source

签名

master
wxd 11 months ago
parent
commit
a4c4f065a8
  1. 20
      src/Shentun.Peis.Application.Contracts/PrintReports/MedicalReportDto.cs
  2. 4
      src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs
  3. 14
      src/Shentun.Peis.Domain/CacheService.cs

20
src/Shentun.Peis.Application.Contracts/PrintReports/MedicalReportDto.cs

@ -101,6 +101,12 @@ namespace Shentun.Peis.PrintReports
/// 总检医生
/// </summary>
public string SummaryDoctorName { get; set; }
/// <summary>
/// 总检医生签名
/// </summary>
public string SummaryDoctorSignUrl { get; set; }
/// <summary>
/// 总检日期
/// </summary>
@ -110,6 +116,10 @@ namespace Shentun.Peis.PrintReports
/// </summary>
public string AuditDoctorName { get; set; }
/// <summary>
/// 审核医生签名
/// </summary>
public string AuditDoctorSignUrl { get; set; }
/// <summary>
/// 审核日期
/// </summary>
public DateTime? AuditDate { get; set; }
@ -267,6 +277,11 @@ namespace Shentun.Peis.PrintReports
/// </summary>
public string CheckDoctorName { get; set; }
/// <summary>
/// 检查医生签名
/// </summary>
public string CheckDoctorSignUrl { get; set; }
/// <summary>
/// 检查日期
/// </summary>
@ -277,6 +292,11 @@ namespace Shentun.Peis.PrintReports
/// </summary>
public string LisAuditorDoctorName { get; set; }
/// <summary>
/// lis审核医生签名
/// </summary>
public string LisAuditorDoctorSignUrl { get; set; }
/// <summary>
/// lis标本号
/// </summary>

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

@ -1024,8 +1024,10 @@ namespace Shentun.Peis.PrintReports
PersonnelTypeName = _cacheService.GetPersonnelTypeNameAsync(patientRegister.PersonnelTypeId).Result,
MedicalStartDate = patientRegister.MedicalStartDate,
SummaryDoctorName = _cacheService.GetSurnameAsync(patientRegister.SummaryDoctorId).Result,
SummaryDoctorSignUrl = _cacheService.GetUserSignAsync(patientRegister.SummaryDoctorId).GetAwaiter().GetResult(),
SummaryDate = patientRegister.SummaryDate,
AuditDoctorName = _cacheService.GetSurnameAsync(patientRegister.AuditDoctorId).Result,
AuditDoctorSignUrl = _cacheService.GetUserSignAsync(patientRegister.AuditDoctorId).GetAwaiter().GetResult(),
AuditDate = patientRegister.AuditDate,
//体检中心信息
MedicalCenterTelphone = medicalCenterTelphone,
@ -1212,6 +1214,7 @@ namespace Shentun.Peis.PrintReports
if (Guid.TryParse(checkDoctorId, out var checkDoctorIdGuid))
{
medicalReportRegisterCheckDto.CheckDoctorName = _cacheService.GetSurnameAsync(checkDoctorIdGuid).Result;
medicalReportRegisterCheckDto.CheckDoctorSignUrl = _cacheService.GetUserSignAsync(checkDoctorIdGuid).Result;
}
else
{
@ -1222,6 +1225,7 @@ namespace Shentun.Peis.PrintReports
//lis审核医生+标本号
medicalReportRegisterCheckDto.LisSampleNo = registerCheckRow.registerCheck.LisSampleNo;
medicalReportRegisterCheckDto.LisAuditorDoctorName = registerCheckRow.registerCheck.LisAuditorDoctorName;
//显示顺序
medicalReportRegisterCheckDto.DisplayOrder = registerCheckRow.asbitem.DisplayOrder;

14
src/Shentun.Peis.Domain/CacheService.cs

@ -1,6 +1,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Caching.Memory;
using NPOI.SS.Formula.Functions;
using Shentun.Peis.Enums;
using Shentun.Peis.Models;
using Shentun.Peis.SysParmValues;
@ -10,6 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Caching;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Repositories;
@ -145,6 +147,18 @@ namespace Shentun.Peis
return "";
}
public async Task<string> GetUserSignAsync(Guid? id)
{
if (id == null || id == default(Guid) || !id.HasValue)
{
return "";
}
var entity = await GetUserAsync((Guid)id);
if (entity != null)
return entity.GetProperty<string>("user_sign");
else
return "";
}
private async Task<Sex> GetSexAsync(char id)
{

Loading…
Cancel
Save