Uat_Study
parent
bea5ee827b
commit
121b3a09ec
|
@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||||
using IRaCIS.Core.Application.Auth;
|
using IRaCIS.Core.Application.Auth;
|
||||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||||
using IRaCIS.Core.Domain.Share.Reading;
|
using IRaCIS.Core.Domain.Share.Reading;
|
||||||
|
using MassTransit;
|
||||||
|
|
||||||
namespace IRaCIS.Application.Services
|
namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
|
@ -174,12 +175,17 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
await _readModuleRepository.AddAsync(new ReadModule()
|
await _readModuleRepository.AddAsync(new ReadModule()
|
||||||
{
|
{
|
||||||
|
Id= NewId.NextGuid(),
|
||||||
SubjectId = dto.SubjectId,
|
SubjectId = dto.SubjectId,
|
||||||
ModuleType = ModuleTypeEnum.Read,
|
ModuleType = ModuleTypeEnum.Read,
|
||||||
IsUrgent = visit.IsUrgent,
|
IsUrgent = visit.IsUrgent,
|
||||||
ModuleName = dto.SubjectVisitName,
|
ModuleName = dto.SubjectVisitName,
|
||||||
SubjectVisitId = visit.Id,
|
SubjectVisitId = visit.Id,
|
||||||
Status = ReadModuleEnum.ImageRead,
|
Status = ReadModuleEnum.ImageRead,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var res = await _readModuleRepository.SaveChangesAsync();
|
var res = await _readModuleRepository.SaveChangesAsync();
|
||||||
|
|
|
@ -75,20 +75,20 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 对应
|
/// 对应
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("ReadModuleId")]
|
[ForeignKey("ReadModuleId")]
|
||||||
public ReadModule ReadModuleModel { get; set; } = new ReadModule();
|
public ReadModule ReadModuleModel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 阅片期配置
|
/// 阅片期配置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("ReadingPeriodSetId")]
|
[ForeignKey("ReadingPeriodSetId")]
|
||||||
public ReadingPeriodSet ReadingPeriodSet { get; set; } = new ReadingPeriodSet();
|
public ReadingPeriodSet ReadingPeriodSet { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 访视
|
/// 访视
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("SubjectVisitId")]
|
[ForeignKey("SubjectVisitId")]
|
||||||
public SubjectVisit SubjectVisit { get; set; } = new SubjectVisit();
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 访视
|
/// 访视
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("LastVisitIdSetId")]
|
[ForeignKey("LastVisitIdSetId")]
|
||||||
public SubjectVisit LastSubjectVisit { get; set; } = new SubjectVisit();
|
public SubjectVisit LastSubjectVisit { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue