修改一版

Uat_Study
he 2022-10-20 15:57:07 +08:00
parent 54cb005dd6
commit 35d930fbfb
3 changed files with 75 additions and 0 deletions

View File

@ -92,6 +92,22 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
} }
public class SetDictionaryFollowVisitUseInDto
{
public Guid Id { get; set; }
public bool IsFollowVisitUse { get; set; }
}
public class SetDictionaryBaseLineUseInDto
{
public Guid Id { get; set; }
public bool IsBaseLineUse { get; set; }
}
public class GetAssessTypeInDto public class GetAssessTypeInDto
{ {
[NotDefault] [NotDefault]
@ -118,6 +134,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public string ChildGroup { get; set; } public string ChildGroup { get; set; }
/// <summary>
/// IsBaseUse
/// </summary>
public bool IsBaseLineUse { get; set; } = false;
/// <summary>
/// IsBaseUse
/// </summary>
public bool IsFollowVisitUse { get; set; } = false;
public string Value { get; set; } = string.Empty; public string Value { get; set; } = string.Empty;
public string ValueCN { get; set; } = string.Empty; public string ValueCN { get; set; } = string.Empty;

View File

@ -343,6 +343,42 @@ namespace IRaCIS.Core.Application.Service.RC
#region 全局评估类型 肿瘤学评估类型 #region 全局评估类型 肿瘤学评估类型
/// <summary>
/// 修改是否是基线使用
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput> SetDictionaryFollowVisitUse(SetDictionaryFollowVisitUseInDto inDto)
{
await _readingCriterionDictionaryRepository.UpdatePartialFromQueryAsync(inDto.Id, x => new ReadingCriterionDictionary()
{
IsFollowVisitUse = inDto.IsFollowVisitUse
});
await _readingCriterionDictionaryRepository.SaveChangesAsync();
return ResponseOutput.Ok(true);
}
/// <summary>
/// 修改是否是基线使用
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput> SetDictionaryBaseLineUse(SetDictionaryBaseLineUseInDto inDto)
{
await _readingCriterionDictionaryRepository.UpdatePartialFromQueryAsync(inDto.Id, x => new ReadingCriterionDictionary()
{
IsBaseLineUse = inDto.IsBaseLineUse
});
await _readingCriterionDictionaryRepository.SaveChangesAsync();
return ResponseOutput.Ok(true);
}
/// <summary> /// <summary>
/// 获取标准字典 /// 获取标准字典
@ -360,6 +396,8 @@ namespace IRaCIS.Core.Application.Service.RC
Id = x.Id, Id = x.Id,
DictionaryId = x.DictionaryId, DictionaryId = x.DictionaryId,
ChildGroup = x.Dictionary.ChildGroup, ChildGroup = x.Dictionary.ChildGroup,
IsBaseLineUse = x.IsBaseLineUse,
IsFollowVisitUse=x.IsFollowVisitUse,
Code = x.Dictionary.Code, Code = x.Dictionary.Code,
Description = x.Dictionary.Description, Description = x.Dictionary.Description,
ShowOrder = x.Dictionary.ShowOrder, ShowOrder = x.Dictionary.ShowOrder,

View File

@ -43,6 +43,17 @@ namespace IRaCIS.Core.Domain.Models
/// </summary> /// </summary>
public Guid CreateUserId { get; set; } public Guid CreateUserId { get; set; }
/// <summary>
/// IsBaseLineUse
/// </summary>
public bool IsBaseLineUse { get; set; } = false;
/// <summary>
/// IsBaseUse
/// </summary>
public bool IsFollowVisitUse { get; set; } = false;
[JsonIgnore] [JsonIgnore]
[ForeignKey("DictionaryId")] [ForeignKey("DictionaryId")]
public Dictionary Dictionary { get; set; } public Dictionary Dictionary { get; set; }