添加适用的标准
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f8b23604c2
commit
c78a96eed0
|
|
@ -1713,6 +1713,11 @@
|
||||||
</summary>
|
</summary>
|
||||||
<typeparam name="T">泛型</typeparam>
|
<typeparam name="T">泛型</typeparam>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Inspection.DTO.GetDataInspectionOutDto.CriterionType">
|
||||||
|
<summary>
|
||||||
|
标准枚举
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Inspection.DTO.GetDataInspectionOutDto.ParentIdentification">
|
<member name="P:IRaCIS.Core.Application.Service.Inspection.DTO.GetDataInspectionOutDto.ParentIdentification">
|
||||||
<summary>
|
<summary>
|
||||||
父标识
|
父标识
|
||||||
|
|
@ -14468,6 +14473,11 @@
|
||||||
<member name="T:IRaCIS.Core.Application.ViewModel.FrontAuditConfigAddOrEdit">
|
<member name="T:IRaCIS.Core.Application.ViewModel.FrontAuditConfigAddOrEdit">
|
||||||
<summary> FrontAuditConfigAddOrEdit 列表查询参数模型</summary>
|
<summary> FrontAuditConfigAddOrEdit 列表查询参数模型</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.ViewModel.FrontAuditConfigAddOrEdit.ApplyCriterionList">
|
||||||
|
<summary>
|
||||||
|
适用的标准
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.FrontAuditConfigAddOrEdit.CodeEn">
|
<member name="P:IRaCIS.Core.Application.ViewModel.FrontAuditConfigAddOrEdit.CodeEn">
|
||||||
<summary>
|
<summary>
|
||||||
字段的英文值
|
字段的英文值
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,12 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||||
public class FrontAuditConfigAddOrEdit
|
public class FrontAuditConfigAddOrEdit
|
||||||
{
|
{
|
||||||
public Guid? Id { get; set; }
|
public Guid? Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 适用的标准
|
||||||
|
/// </summary>
|
||||||
|
public List<CriterionType> ApplyCriterionList { get; set; } = new List<CriterionType>() { };
|
||||||
|
|
||||||
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;
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
|
|
|
||||||
|
|
@ -360,7 +360,10 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
public string ModuleTypeName { get; set; } = string.Empty;
|
public string ModuleTypeName { get; set; } = string.Empty;
|
||||||
public string ModuleTypeNameCN { get; set; } = string.Empty;
|
public string ModuleTypeNameCN { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 标准枚举
|
||||||
|
/// </summary>
|
||||||
|
public CriterionType? CriterionType { get; set; }
|
||||||
public string SignText { get; set; } = string.Empty;
|
public string SignText { get; set; } = string.Empty;
|
||||||
|
|
||||||
public decimal? VisitNum { get; set; }
|
public decimal? VisitNum { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||||
IRepository<Dictionary> _dictionaryRepository,
|
IRepository<Dictionary> _dictionaryRepository,
|
||||||
IRepository<IdentityUser> _identityUserRepository,
|
IRepository<IdentityUser> _identityUserRepository,
|
||||||
IRepository<TrialSign> _trialSignRepository,
|
IRepository<TrialSign> _trialSignRepository,
|
||||||
|
IRepository<ReadingQuestionCriterionTrial> _readingQuestionCriterionTrialRepository,
|
||||||
IRepository<UserRole> _userRoleRepository,
|
IRepository<UserRole> _userRoleRepository,
|
||||||
IRepository<TrialSite> _trialSiteRepository,
|
IRepository<TrialSite> _trialSiteRepository,
|
||||||
IRepository<Trial> _trialRepository,
|
IRepository<Trial> _trialRepository,
|
||||||
|
|
@ -43,6 +44,9 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||||
join trial in _trialRepository.Where().IgnoreQueryFilters() on data.TrialId equals trial.Id into trialtemp
|
join trial in _trialRepository.Where().IgnoreQueryFilters() on data.TrialId equals trial.Id into trialtemp
|
||||||
from leftrial in trialtemp.DefaultIfEmpty()
|
from leftrial in trialtemp.DefaultIfEmpty()
|
||||||
|
|
||||||
|
join readingQuestionCriterionTrial in _readingQuestionCriterionTrialRepository.Where().IgnoreQueryFilters() on data.TrialReadingCriterionId equals readingQuestionCriterionTrial.Id into readingQuestionCriterionTrialtemp
|
||||||
|
from leftreadingQuestionCriterionTrial in readingQuestionCriterionTrialtemp.DefaultIfEmpty()
|
||||||
|
|
||||||
|
|
||||||
join trialSite in _trialSiteRepository.Where().IgnoreQueryFilters() on data.TrialSiteId equals trialSite.Id into trialSitetemp
|
join trialSite in _trialSiteRepository.Where().IgnoreQueryFilters() on data.TrialSiteId equals trialSite.Id into trialSitetemp
|
||||||
from lefttrialSite in trialSitetemp.DefaultIfEmpty()
|
from lefttrialSite in trialSitetemp.DefaultIfEmpty()
|
||||||
|
|
@ -95,6 +99,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||||
select new GetDataInspectionOutDto()
|
select new GetDataInspectionOutDto()
|
||||||
{
|
{
|
||||||
CreateTime = data.CreateTime,
|
CreateTime = data.CreateTime,
|
||||||
|
CriterionType= leftreadingQuestionCriterionTrial==null? null: leftreadingQuestionCriterionTrial.CriterionType,
|
||||||
CreateUserId = data.CreateUserId,
|
CreateUserId = data.CreateUserId,
|
||||||
ModuleTypeId = leftmoduleTypec.Id,
|
ModuleTypeId = leftmoduleTypec.Id,
|
||||||
BlindName = data.VisitTask.TaskBlindName,
|
BlindName = data.VisitTask.TaskBlindName,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
using IRaCIS.Core.Domain.Share;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Domain.Models;
|
namespace IRaCIS.Core.Domain.Models;
|
||||||
|
|
||||||
[Comment("稽查 - 配置表 (需要同步)")]
|
[Comment("稽查 - 配置表 (需要同步)")]
|
||||||
|
|
@ -117,6 +119,11 @@ public class FrontAuditConfig : BaseFullAuditEntity
|
||||||
|
|
||||||
public string ValueCN { get; set; } = null!;
|
public string ValueCN { get; set; } = null!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 适用的标准
|
||||||
|
/// </summary>
|
||||||
|
public List<CriterionType> ApplyCriterionList { get; set; } = new List<CriterionType>() { };
|
||||||
|
|
||||||
}
|
}
|
||||||
public class UrlConfig
|
public class UrlConfig
|
||||||
{
|
{
|
||||||
|
|
|
||||||
19072
IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.Designer.cs
generated
Normal file
19072
IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,29 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class CriterionType : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "ApplyCriterionList",
|
||||||
|
table: "FrontAuditConfig",
|
||||||
|
type: "nvarchar(max)",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "[]");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ApplyCriterionList",
|
||||||
|
table: "FrontAuditConfig");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2493,6 +2493,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("ApplyCriterionList")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("ChildDataEnLabel")
|
b.Property<string>("ChildDataEnLabel")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue