列表返回当前领取人姓名
parent
f265d53abb
commit
53115e63ea
|
@ -178,6 +178,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public Guid? PreliminaryAuditUserId { get; set; }
|
public Guid? PreliminaryAuditUserId { get; set; }
|
||||||
public Guid? CurrentActionUserId { get; set; }
|
public Guid? CurrentActionUserId { get; set; }
|
||||||
|
|
||||||
|
public string? CurrentActionUserName { get; set; }
|
||||||
|
|
||||||
public bool IsBaseLine { get; set; }
|
public bool IsBaseLine { get; set; }
|
||||||
public bool IsUrgent { get; set; }
|
public bool IsUrgent { get; set; }
|
||||||
public Guid? ClinicalDataSignUserId { get; set; }
|
public Guid? ClinicalDataSignUserId { get; set; }
|
||||||
|
|
|
@ -204,6 +204,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
.ForMember(d => d.PreliminaryAuditUserName, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUser.UserName))
|
.ForMember(d => d.PreliminaryAuditUserName, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUser.UserName))
|
||||||
.ForMember(d => d.PreliminaryAuditUserId, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUserId))
|
.ForMember(d => d.PreliminaryAuditUserId, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUserId))
|
||||||
.ForMember(d => d.CurrentActionUserId, u => u.MapFrom(s => s.SubjectVisit.CurrentActionUserId))
|
.ForMember(d => d.CurrentActionUserId, u => u.MapFrom(s => s.SubjectVisit.CurrentActionUserId))
|
||||||
|
.ForMember(d => d.CurrentActionUserName, u => u.MapFrom(s => s.SubjectVisit .CurrentActionUser.UserName))
|
||||||
|
|
||||||
.ForMember(d => d.SiteId, u => u.MapFrom(s => s.SubjectVisit.SiteId))
|
.ForMember(d => d.SiteId, u => u.MapFrom(s => s.SubjectVisit.SiteId))
|
||||||
.ForMember(d => d.AuditState, u => u.MapFrom(s => s.SubjectVisit.AuditState))
|
.ForMember(d => d.AuditState, u => u.MapFrom(s => s.SubjectVisit.AuditState))
|
||||||
.ForMember(d => d.IsUrgent, u => u.MapFrom(s => s.SubjectVisit.IsUrgent))
|
.ForMember(d => d.IsUrgent, u => u.MapFrom(s => s.SubjectVisit.IsUrgent))
|
||||||
|
|
|
@ -141,7 +141,8 @@ public class AuditingInterceptor : ISaveChangesInterceptor
|
||||||
return audit;
|
return audit;
|
||||||
|
|
||||||
string CreateAddedMessage(EntityEntry entry)
|
string CreateAddedMessage(EntityEntry entry)
|
||||||
=> entry.Properties.Aggregate(
|
=>
|
||||||
|
entry.Properties.Aggregate(
|
||||||
$"Inserting {entry.Metadata.DisplayName()} with ",
|
$"Inserting {entry.Metadata.DisplayName()} with ",
|
||||||
(auditString, property) => auditString + $"{property.Metadata.Name}: '{property.CurrentValue}' ");
|
(auditString, property) => auditString + $"{property.Metadata.Name}: '{property.CurrentValue}' ");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue