修改一版
parent
54cb005dd6
commit
35d930fbfb
|
@ -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
|
||||
{
|
||||
[NotDefault]
|
||||
|
@ -118,6 +134,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
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 ValueCN { get; set; } = string.Empty;
|
||||
|
|
|
@ -343,6 +343,42 @@ namespace IRaCIS.Core.Application.Service.RC
|
|||
|
||||
#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>
|
||||
/// 获取标准字典
|
||||
|
@ -360,6 +396,8 @@ namespace IRaCIS.Core.Application.Service.RC
|
|||
Id = x.Id,
|
||||
DictionaryId = x.DictionaryId,
|
||||
ChildGroup = x.Dictionary.ChildGroup,
|
||||
IsBaseLineUse = x.IsBaseLineUse,
|
||||
IsFollowVisitUse=x.IsFollowVisitUse,
|
||||
Code = x.Dictionary.Code,
|
||||
Description = x.Dictionary.Description,
|
||||
ShowOrder = x.Dictionary.ShowOrder,
|
||||
|
|
|
@ -43,6 +43,17 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public Guid CreateUserId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// IsBaseLineUse
|
||||
/// </summary>
|
||||
public bool IsBaseLineUse { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// IsBaseUse
|
||||
/// </summary>
|
||||
public bool IsFollowVisitUse { get; set; } = false;
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("DictionaryId")]
|
||||
public Dictionary Dictionary { get; set; }
|
||||
|
|
Loading…
Reference in New Issue