受试者访视中止 增加原因
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c89b65b550
commit
774e7ccc25
|
@ -518,7 +518,11 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
public int? CheckWaitReplyCount { get; set; }
|
public int? CheckWaitReplyCount { get; set; }
|
||||||
|
|
||||||
|
public string SuspendReason { get; set; }
|
||||||
|
|
||||||
|
public string Reason { get; set; }
|
||||||
|
|
||||||
|
public string ExportReason => Status == SubjectStatus.OutOfVisit ? Reason : (Status == SubjectStatus.EndOfVisit ? SuspendReason : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,8 @@ namespace IRaCIS.Application.Contracts
|
||||||
public Guid? FinalSubjectVisitId { get; set; }
|
public Guid? FinalSubjectVisitId { get; set; }
|
||||||
|
|
||||||
public bool IsSubjectQuit { get; set; }
|
public bool IsSubjectQuit { get; set; }
|
||||||
|
|
||||||
|
public string SuspendReason { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -136,7 +138,7 @@ namespace IRaCIS.Application.Contracts
|
||||||
|
|
||||||
public Guid LatestSubmitSubjectVisitId { get; set; }
|
public Guid LatestSubmitSubjectVisitId { get; set; }
|
||||||
|
|
||||||
|
public string SuspendReason { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,4 +95,7 @@ public class Subject : BaseFullDeleteAuditEntity
|
||||||
|
|
||||||
[Comment("受试者退出")]
|
[Comment("受试者退出")]
|
||||||
public bool IsSubjectQuit { get; set; }
|
public bool IsSubjectQuit { get; set; }
|
||||||
|
|
||||||
|
[Comment("访视中止原因")]
|
||||||
|
public string SuspendReason { get; set; }
|
||||||
}
|
}
|
||||||
|
|
19974
IRaCIS.Core.Infra.EFCore/Migrations/20250915025656_addSubjectReson.Designer.cs
generated
Normal file
19974
IRaCIS.Core.Infra.EFCore/Migrations/20250915025656_addSubjectReson.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,31 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class addSubjectReson : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "SuspendReason",
|
||||||
|
table: "Subject",
|
||||||
|
type: "nvarchar(400)",
|
||||||
|
maxLength: 400,
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "",
|
||||||
|
comment: "访视中止原因");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "SuspendReason",
|
||||||
|
table: "Subject");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -17,7 +17,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
modelBuilder
|
modelBuilder
|
||||||
.HasAnnotation("ProductVersion", "8.0.15")
|
.HasAnnotation("ProductVersion", "8.0.19")
|
||||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||||
|
|
||||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
|
@ -8625,6 +8625,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("1 访视中,2 出组 3 访视结束");
|
.HasComment("1 访视中,2 出组 3 访视结束");
|
||||||
|
|
||||||
|
b.Property<string>("SuspendReason")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)")
|
||||||
|
.HasComment("访视中止原因");
|
||||||
|
|
||||||
b.Property<Guid>("TrialId")
|
b.Property<Guid>("TrialId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue