修改中心调研配置字段
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
6481aa37e7
commit
8045f96106
|
|
@ -245,7 +245,7 @@ namespace IRaCIS.Application.Contracts
|
||||||
{
|
{
|
||||||
#region QC 影像下载--下个版本删除
|
#region QC 影像下载--下个版本删除
|
||||||
|
|
||||||
//QC质控
|
//QC质控下载
|
||||||
public bool IsSupportQCDownloadImage { get; set; } = false;
|
public bool IsSupportQCDownloadImage { get; set; } = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,28 @@ namespace IRaCIS.Core.Application.Service
|
||||||
trial.IsConfigureEmail = true;
|
trial.IsConfigureEmail = true;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 中心调研默认值
|
||||||
|
|
||||||
|
var trialExtalConfig = new TrialExtraConfig()
|
||||||
|
{
|
||||||
|
EquipmentControlFieldList = new List<SiteSurveyEquipmentField> {
|
||||||
|
new SiteSurveyEquipmentField() { FiledName = "EquipmentTypeEnum", ShowOrder = 0, IsView = true },
|
||||||
|
new SiteSurveyEquipmentField() { FiledName = "OtherEquipmentType", ShowOrder = 1, IsView = true },
|
||||||
|
|
||||||
|
new SiteSurveyEquipmentField() { FiledName = "Parameters", ShowOrder = 2, IsView = true },
|
||||||
|
|
||||||
|
new SiteSurveyEquipmentField() { FiledName = "ManufacturerType", ShowOrder = 3, IsView = true },
|
||||||
|
new SiteSurveyEquipmentField() { FiledName = "ManufacturerName", ShowOrder = 4, IsView = true },
|
||||||
|
|
||||||
|
new SiteSurveyEquipmentField() { FiledName = "ScannerType", ShowOrder = 5, IsView = true },
|
||||||
|
|
||||||
|
new SiteSurveyEquipmentField() { FiledName = "Note", ShowOrder = 6, IsView = true },
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
trial.TrialExtraConfigJsonStr = trialExtalConfig.ToJsonStr();
|
||||||
|
#endregion
|
||||||
|
|
||||||
//如果是PM, 则需要将该人员添加到 运维人员表
|
//如果是PM, 则需要将该人员添加到 运维人员表
|
||||||
//添加运维人员PM
|
//添加运维人员PM
|
||||||
await _trialIdentityUserRepository.AddAsync(new TrialIdentityUser()
|
await _trialIdentityUserRepository.AddAsync(new TrialIdentityUser()
|
||||||
|
|
@ -341,7 +363,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
trial.EmailFromName = $"{_systemEmailConfig.FromName}-{trial.TrialCode}";
|
trial.EmailFromName = $"{_systemEmailConfig.FromName}-{trial.TrialCode}";
|
||||||
trial.UpdateTime = DateTime.Now;
|
trial.UpdateTime = DateTime.Now;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var success = await _trialRepository.SaveChangesAsync();
|
var success = await _trialRepository.SaveChangesAsync();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,28 +36,28 @@ public class TrialSiteEquipmentSurvey : BaseFullAuditEntity
|
||||||
public string OtherEquipmentType { get; set; }
|
public string OtherEquipmentType { get; set; }
|
||||||
|
|
||||||
[Comment("扫描设备厂商")]
|
[Comment("扫描设备厂商")]
|
||||||
public int ManufacturerType { get; set; }
|
public int? ManufacturerType { get; set; }
|
||||||
|
|
||||||
[Comment("磁场强度 (1.5T / 3.0T)")]
|
[Comment("磁场强度 (1.5T / 3.0T)")]
|
||||||
public int MagneticFieldStrengthType { get; set; }
|
public int? MagneticFieldStrengthType { get; set; }
|
||||||
|
|
||||||
[Comment("体部线圈通道数 (≥16 或 <16)")]
|
[Comment("体部线圈通道数 (≥16 或 <16)")]
|
||||||
public int BodyCoilChannelCount { get; set; }
|
public int? BodyCoilChannelCount { get; set; }
|
||||||
|
|
||||||
[Comment("是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)")]
|
[Comment("是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)")]
|
||||||
public bool HasDedicatedPdfFatQuantificationSequence { get; set; }
|
public bool? HasDedicatedPdfFatQuantificationSequence { get; set; }
|
||||||
|
|
||||||
[Comment("专用的PDFF脂肪定量序列类型 (当 HasDedicatedPdfFatQuantificationSequence = true 时有效)")]
|
[Comment("专用的PDFF脂肪定量序列类型 (当 HasDedicatedPdfFatQuantificationSequence = true 时有效)")]
|
||||||
public int? PdfFatQuantificationSequenceType { get; set; }
|
public int? PdfFatQuantificationSequenceType { get; set; }
|
||||||
|
|
||||||
[Comment("其他序列详细说明 (当 PdfFatQuantificationSequenceType = Other 时建议填写)")]
|
[Comment("其他序列详细说明 (当 PdfFatQuantificationSequenceType = Other 时建议填写)")]
|
||||||
public string OtherSequenceSpecification { get; set; }
|
public string OtherSequenceSpecification { get; set; }
|
||||||
|
|
||||||
[Comment("是否包含 T2/R2 校正(用于铁沉积校正)")]
|
[Comment("是否包含 T2/R2 校正(用于铁沉积校正)")]
|
||||||
public bool HasT2R2Correction { get; set; }
|
public bool? HasT2R2Correction { get; set; }
|
||||||
|
|
||||||
[Comment("是否可完整导出 PDFF 参数图及全部原始 DICOM 数据")]
|
[Comment("是否可完整导出 PDFF 参数图及全部原始 DICOM 数据")]
|
||||||
public bool CanFullyExportPdfParameterMapsAndRawDicom { get; set; }
|
public bool? CanFullyExportPdfParameterMapsAndRawDicom { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
||||||
22291
IRaCIS.Core.Infra.EFCore/Migrations/20260521061048_modifySurvey.Designer.cs
generated
Normal file
22291
IRaCIS.Core.Infra.EFCore/Migrations/20260521061048_modifySurvey.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,150 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class modifySurvey : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "ManufacturerType",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "int",
|
||||||
|
nullable: true,
|
||||||
|
comment: "扫描设备厂商",
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldComment: "扫描设备厂商");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "MagneticFieldStrengthType",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "int",
|
||||||
|
nullable: true,
|
||||||
|
comment: "磁场强度 (1.5T / 3.0T)",
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldComment: "磁场强度 (1.5T / 3.0T)");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<bool>(
|
||||||
|
name: "HasT2R2Correction",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "bit",
|
||||||
|
nullable: true,
|
||||||
|
comment: "是否包含 T2/R2 校正(用于铁沉积校正)",
|
||||||
|
oldClrType: typeof(bool),
|
||||||
|
oldType: "bit",
|
||||||
|
oldComment: "是否包含 T2/R2 校正(用于铁沉积校正)");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<bool>(
|
||||||
|
name: "HasDedicatedPdfFatQuantificationSequence",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "bit",
|
||||||
|
nullable: true,
|
||||||
|
comment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)",
|
||||||
|
oldClrType: typeof(bool),
|
||||||
|
oldType: "bit",
|
||||||
|
oldComment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<bool>(
|
||||||
|
name: "CanFullyExportPdfParameterMapsAndRawDicom",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "bit",
|
||||||
|
nullable: true,
|
||||||
|
comment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据",
|
||||||
|
oldClrType: typeof(bool),
|
||||||
|
oldType: "bit",
|
||||||
|
oldComment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "BodyCoilChannelCount",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "int",
|
||||||
|
nullable: true,
|
||||||
|
comment: "体部线圈通道数 (≥16 或 <16)",
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldComment: "体部线圈通道数 (≥16 或 <16)");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "ManufacturerType",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "扫描设备厂商",
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "扫描设备厂商");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "MagneticFieldStrengthType",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "磁场强度 (1.5T / 3.0T)",
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "磁场强度 (1.5T / 3.0T)");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<bool>(
|
||||||
|
name: "HasT2R2Correction",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false,
|
||||||
|
comment: "是否包含 T2/R2 校正(用于铁沉积校正)",
|
||||||
|
oldClrType: typeof(bool),
|
||||||
|
oldType: "bit",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "是否包含 T2/R2 校正(用于铁沉积校正)");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<bool>(
|
||||||
|
name: "HasDedicatedPdfFatQuantificationSequence",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false,
|
||||||
|
comment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)",
|
||||||
|
oldClrType: typeof(bool),
|
||||||
|
oldType: "bit",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<bool>(
|
||||||
|
name: "CanFullyExportPdfParameterMapsAndRawDicom",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false,
|
||||||
|
comment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据",
|
||||||
|
oldClrType: typeof(bool),
|
||||||
|
oldType: "bit",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "BodyCoilChannelCount",
|
||||||
|
table: "TrialSiteEquipmentSurvey",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "体部线圈通道数 (≥16 或 <16)",
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "体部线圈通道数 (≥16 或 <16)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -15023,11 +15023,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("BodyCoilChannelCount")
|
b.Property<int?>("BodyCoilChannelCount")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("体部线圈通道数 (≥16 或 <16)");
|
.HasComment("体部线圈通道数 (≥16 或 <16)");
|
||||||
|
|
||||||
b.Property<bool>("CanFullyExportPdfParameterMapsAndRawDicom")
|
b.Property<bool?>("CanFullyExportPdfParameterMapsAndRawDicom")
|
||||||
.HasColumnType("bit")
|
.HasColumnType("bit")
|
||||||
.HasComment("是否可完整导出 PDFF 参数图及全部原始 DICOM 数据");
|
.HasComment("是否可完整导出 PDFF 参数图及全部原始 DICOM 数据");
|
||||||
|
|
||||||
|
|
@ -15045,15 +15045,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasComment("扫描设备-废弃");
|
.HasComment("扫描设备-废弃");
|
||||||
|
|
||||||
b.Property<bool>("HasDedicatedPdfFatQuantificationSequence")
|
b.Property<bool?>("HasDedicatedPdfFatQuantificationSequence")
|
||||||
.HasColumnType("bit")
|
.HasColumnType("bit")
|
||||||
.HasComment("是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)");
|
.HasComment("是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)");
|
||||||
|
|
||||||
b.Property<bool>("HasT2R2Correction")
|
b.Property<bool?>("HasT2R2Correction")
|
||||||
.HasColumnType("bit")
|
.HasColumnType("bit")
|
||||||
.HasComment("是否包含 T2/R2 校正(用于铁沉积校正)");
|
.HasComment("是否包含 T2/R2 校正(用于铁沉积校正)");
|
||||||
|
|
||||||
b.Property<int>("MagneticFieldStrengthType")
|
b.Property<int?>("MagneticFieldStrengthType")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("磁场强度 (1.5T / 3.0T)");
|
.HasComment("磁场强度 (1.5T / 3.0T)");
|
||||||
|
|
||||||
|
|
@ -15063,7 +15063,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("nvarchar(400)")
|
.HasColumnType("nvarchar(400)")
|
||||||
.HasComment("扫描设备厂商其他补充");
|
.HasComment("扫描设备厂商其他补充");
|
||||||
|
|
||||||
b.Property<int>("ManufacturerType")
|
b.Property<int?>("ManufacturerType")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("扫描设备厂商");
|
.HasComment("扫描设备厂商");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue