Test.EIImageViewer
he 2022-10-10 10:05:53 +08:00
parent 664870c725
commit b89029adff
7 changed files with 31 additions and 11 deletions

View File

@ -124,7 +124,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
public Guid? Id { get; set; }
@ -185,7 +185,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
public Guid? Id { get; set; }
public Guid ReadingQuestionId { get; set; }
public string Type { get; set; } = string.Empty;
@ -628,7 +628,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
}
public class ReadingQuestionSystemView
@ -641,7 +641,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
/// <summary>
/// Id
@ -969,7 +969,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
/// <summary>
/// 分组
@ -1242,7 +1242,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
}
public class GetSystemCriterionSelectDto

View File

@ -328,7 +328,7 @@ namespace IRaCIS.Core.Application
});
var result = await _trialRepository.SaveChangesAsync();
var result = await _readingQuestionCriterionTrialRepository.SaveChangesAsync();
return ResponseOutput.Ok(result);

View File

@ -16,6 +16,26 @@ namespace IRaCIS.Core.Domain.Share
public static readonly string Group = "group";
}
/// <summary>
/// 数值单位
/// </summary>
public enum ValueUnit
{
None=0,
/// <summary>
/// MM
/// </summary>
MM = 1,
/// <summary>
/// CM
/// </summary>
CM = 2
}
/// <summary>
/// 数值类型
/// </summary>

View File

@ -148,7 +148,7 @@ namespace IRaCIS.Core.Domain.Models
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
[JsonIgnore]
[ForeignKey("ReadingQuestionCriterionSystemId")]

View File

@ -181,7 +181,7 @@ namespace IRaCIS.Core.Domain.Models
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
/// <summary>
/// 分页标准

View File

@ -146,7 +146,7 @@ namespace IRaCIS.Core.Domain.Models
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
[ForeignKey("DependParentId")]
public ReadingTableQuestionSystem DependParentQuestion { get; set; }

View File

@ -150,7 +150,7 @@ namespace IRaCIS.Core.Domain.Models
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
public ValueUnit? Unit { get; set; }
[JsonIgnore]
[ForeignKey("DependParentId")]