Compare commits
No commits in common. "53149bf8a082d824e9d8583d145c61d569059a05" and "49a36b8214e4fcbf20b0dfaf69ad7b14d5e7afb6" have entirely different histories.
53149bf8a0
...
49a36b8214
|
|
@ -8685,6 +8685,11 @@
|
||||||
截图地址
|
截图地址
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingTableAnswerRowInfoBase.FristAddTaskNum">
|
||||||
|
<summary>
|
||||||
|
第一次添加的任务ID
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingTableAnswerRowInfoBase.CreateUserId">
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingTableAnswerRowInfoBase.CreateUserId">
|
||||||
<summary>
|
<summary>
|
||||||
CreateUserId
|
CreateUserId
|
||||||
|
|
|
||||||
|
|
@ -855,6 +855,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? PicturePath { get; set; }
|
public string? PicturePath { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 第一次添加的任务ID
|
||||||
|
/// </summary>
|
||||||
|
public decimal FristAddTaskNum { get; set; } = 0;
|
||||||
|
|
||||||
|
|
||||||
public SplitOrMergeType? SplitOrMergeType { get; set; }
|
public SplitOrMergeType? SplitOrMergeType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -1027,8 +1033,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public string MergeName { get; set; }
|
public string MergeName { get; set; }
|
||||||
|
|
||||||
public decimal FristAddTaskNum { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 病灶类型
|
/// 病灶类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -2346,6 +2350,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public bool? IsCanEditPosition { get; set; }
|
public bool? IsCanEditPosition { get; set; }
|
||||||
|
|
||||||
|
public decimal FristAddTaskNum { get; set; } = 0;
|
||||||
|
|
||||||
public decimal? WW { get; set; }
|
public decimal? WW { get; set; }
|
||||||
|
|
||||||
public decimal? WL { get; set; }
|
public decimal? WL { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,6 @@ namespace IRaCIS.Core.Application.Service
|
||||||
.ForMember(d => d.ReadingQuestionSystemId, u => u.MapFrom(s => s.Id));
|
.ForMember(d => d.ReadingQuestionSystemId, u => u.MapFrom(s => s.Id));
|
||||||
|
|
||||||
CreateMap<ReadingTableAnswerRowInfo, TableAnsweRowInfo>()
|
CreateMap<ReadingTableAnswerRowInfo, TableAnsweRowInfo>()
|
||||||
.ForMember(d => d.FristAddTaskNum, u => u.MapFrom(s => s.FristAddTask.VisitTaskNum))
|
|
||||||
.ForMember(dest => dest.CreateUserRole, opt => opt.Ignore())
|
.ForMember(dest => dest.CreateUserRole, opt => opt.Ignore())
|
||||||
.ForMember(d => d.MergeName, u => u.MapFrom(s => s.MergeRow == null ? string.Empty : s.MergeRow.ReadingQuestionTrial.OrderMark + s.MergeRow.RowIndex.GetLesionMark()))
|
.ForMember(d => d.MergeName, u => u.MapFrom(s => s.MergeRow == null ? string.Empty : s.MergeRow.ReadingQuestionTrial.OrderMark + s.MergeRow.RowIndex.GetLesionMark()))
|
||||||
.ForMember(d => d.SplitName, u => u.MapFrom(s => s.SplitRow == null ? string.Empty : s.SplitRow.ReadingQuestionTrial.OrderMark + s.SplitRow.RowIndex.GetLesionMark()))
|
.ForMember(d => d.SplitName, u => u.MapFrom(s => s.SplitRow == null ? string.Empty : s.SplitRow.ReadingQuestionTrial.OrderMark + s.SplitRow.RowIndex.GetLesionMark()))
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
var baseLineVisitId = await _subjectVisitRepository.Where(x => x.SubjectId == visitTask.SubjectId && x.IsBaseLine).Select(x => x.Id).FirstOrDefaultAsync();
|
var baseLineVisitId = await _subjectVisitRepository.Where(x => x.SubjectId == visitTask.SubjectId && x.IsBaseLine).Select(x => x.Id).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
var rowInfoList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == visitTaskId).Include(x=>x.FristAddTask).ToListAsync();
|
var rowInfoList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == visitTaskId).ToListAsync();
|
||||||
|
|
||||||
var baseLinetaskId = await _visitTaskRepository.Where(x => x.SourceSubjectVisitId == baseLineVisitId && x.TaskState == TaskState.Effect
|
var baseLinetaskId = await _visitTaskRepository.Where(x => x.SourceSubjectVisitId == baseLineVisitId && x.TaskState == TaskState.Effect
|
||||||
&& x.TrialReadingCriterionId == visitTask.TrialReadingCriterionId
|
&& x.TrialReadingCriterionId == visitTask.TrialReadingCriterionId
|
||||||
|
|
@ -228,7 +228,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
RowIndex = x.RowIndex,
|
RowIndex = x.RowIndex,
|
||||||
MeasureData = x.MeasureData,
|
MeasureData = x.MeasureData,
|
||||||
OtherMeasureData = x.OtherMeasureData,
|
OtherMeasureData = x.OtherMeasureData,
|
||||||
FristAddTaskNum = x.FristAddTask.VisitTaskNum,
|
FristAddTaskNum = x.FristAddTaskNum,
|
||||||
TableQuestionList = tableQuestion.Where(y => y.QuestionId == item.QuestionId && y.RowId == x.Id).ToList(),
|
TableQuestionList = tableQuestion.Where(y => y.QuestionId == item.QuestionId && y.RowId == x.Id).ToList(),
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
|
||||||
|
|
@ -702,6 +702,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = taskinfo.TaskBlindName,
|
BlindName = taskinfo.TaskBlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
|
FristAddTaskNum = taskinfo.VisitTaskNum,
|
||||||
FristAddTaskId = taskinfo.Id,
|
FristAddTaskId = taskinfo.Id,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
@ -841,6 +842,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = inDto.BlindName,
|
BlindName = inDto.BlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
|
FristAddTaskNum = inDto.VisitTaskNum,
|
||||||
FristAddTaskId = inDto.VisitTaskId,
|
FristAddTaskId = inDto.VisitTaskId,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
@ -901,6 +903,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = inDto.BlindName,
|
BlindName = inDto.BlindName,
|
||||||
OrderMark = pAVquestionInfo.OrderMark,
|
OrderMark = pAVquestionInfo.OrderMark,
|
||||||
|
FristAddTaskNum = inDto.VisitTaskNum,
|
||||||
FristAddTaskId = inDto.VisitTaskId,
|
FristAddTaskId = inDto.VisitTaskId,
|
||||||
RowMark = pAVquestionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
RowMark = pAVquestionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -558,6 +558,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = taskinfo.TaskBlindName,
|
BlindName = taskinfo.TaskBlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
|
FristAddTaskNum = taskinfo.VisitTaskNum,
|
||||||
FristAddTaskId = taskinfo.Id,
|
FristAddTaskId = taskinfo.Id,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
@ -768,6 +769,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = taskinfo.TaskBlindName,
|
BlindName = taskinfo.TaskBlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
|
FristAddTaskNum = taskinfo.VisitTaskNum,
|
||||||
FristAddTaskId = taskinfo.Id,
|
FristAddTaskId = taskinfo.Id,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
@ -1041,6 +1043,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = inDto.BlindName,
|
BlindName = inDto.BlindName,
|
||||||
OrderMark = patchDataStatisticsInfo.OrderMark,
|
OrderMark = patchDataStatisticsInfo.OrderMark,
|
||||||
|
FristAddTaskNum = inDto.VisitTaskNum,
|
||||||
FristAddTaskId = inDto.VisitTaskId,
|
FristAddTaskId = inDto.VisitTaskId,
|
||||||
RowMark = patchDataStatisticsInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
RowMark = patchDataStatisticsInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -10,19 +10,12 @@ public class ReadingTableAnswerRowInfo : BaseFullDeleteAuditEntity
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("InstanceId")]
|
[ForeignKey("InstanceId")]
|
||||||
public DicomInstance Instance { get; set; }
|
public DicomInstance Instance { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("OrganInfoId")]
|
|
||||||
public OrganInfo OrganInfo { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("VisitTaskId")]
|
[ForeignKey("VisitTaskId")]
|
||||||
public VisitTask VisitTask { get; set; }
|
public VisitTask VisitTask { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("FristAddTaskId")]
|
[ForeignKey("OrganInfoId")]
|
||||||
public VisitTask FristAddTask { get; set; }
|
public OrganInfo OrganInfo { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("SplitRowId")]
|
[ForeignKey("SplitRowId")]
|
||||||
public ReadingTableAnswerRowInfo SplitRow { get; set; }
|
public ReadingTableAnswerRowInfo SplitRow { get; set; }
|
||||||
|
|
@ -83,6 +76,9 @@ public class ReadingTableAnswerRowInfo : BaseFullDeleteAuditEntity
|
||||||
[StringLength(1000)]
|
[StringLength(1000)]
|
||||||
public string PicturePath { get; set; } = string.Empty;
|
public string PicturePath { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[Comment("第一次添加的任务ID")]
|
||||||
|
public decimal FristAddTaskNum { get; set; } = 0;
|
||||||
|
|
||||||
[Comment("首次添加任务ID")]
|
[Comment("首次添加任务ID")]
|
||||||
public Guid FristAddTaskId { get; set; }
|
public Guid FristAddTaskId { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,6 @@ namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
||||||
//subject 删除了,但是任务没删除,导致的查询问题
|
//subject 删除了,但是任务没删除,导致的查询问题
|
||||||
builder.HasQueryFilter(b => b.Subject.IsDeleted == false);
|
builder.HasQueryFilter(b => b.Subject.IsDeleted == false);
|
||||||
|
|
||||||
|
|
||||||
builder.HasMany(t => t.LesionList).WithOne(s => s.VisitTask).HasForeignKey(t => t.VisitTaskId);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public class ReadingQuestionTrialConfigration : IEntityTypeConfiguration<ReadingQuestionTrial>
|
public class ReadingQuestionTrialConfigration : IEntityTypeConfiguration<ReadingQuestionTrial>
|
||||||
|
|
@ -39,6 +35,4 @@ namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,32 +0,0 @@
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class FristAddTaskNum : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "FristAddTaskNum",
|
|
||||||
table: "ReadingTableAnswerRowInfo");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.AddColumn<decimal>(
|
|
||||||
name: "FristAddTaskNum",
|
|
||||||
table: "ReadingTableAnswerRowInfo",
|
|
||||||
type: "decimal(18,2)",
|
|
||||||
precision: 18,
|
|
||||||
scale: 2,
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: 0m,
|
|
||||||
comment: "第一次添加的任务ID");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,39 +0,0 @@
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class FristAddTaskNum1 : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_ReadingTableAnswerRowInfo_FristAddTaskId",
|
|
||||||
table: "ReadingTableAnswerRowInfo",
|
|
||||||
column: "FristAddTaskId");
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_ReadingTableAnswerRowInfo_VisitTask_FristAddTaskId",
|
|
||||||
table: "ReadingTableAnswerRowInfo",
|
|
||||||
column: "FristAddTaskId",
|
|
||||||
principalTable: "VisitTask",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_ReadingTableAnswerRowInfo_VisitTask_FristAddTaskId",
|
|
||||||
table: "ReadingTableAnswerRowInfo");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_ReadingTableAnswerRowInfo_FristAddTaskId",
|
|
||||||
table: "ReadingTableAnswerRowInfo");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -6641,6 +6641,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasComment("首次添加任务ID");
|
.HasComment("首次添加任务ID");
|
||||||
|
|
||||||
|
b.Property<decimal>("FristAddTaskNum")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)")
|
||||||
|
.HasComment("第一次添加的任务ID");
|
||||||
|
|
||||||
b.Property<string>("FromMark")
|
b.Property<string>("FromMark")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
|
@ -6781,8 +6786,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
b.HasIndex("FristAddTaskId");
|
|
||||||
|
|
||||||
b.HasIndex("InstanceId");
|
b.HasIndex("InstanceId");
|
||||||
|
|
||||||
b.HasIndex("MergeRowId");
|
b.HasIndex("MergeRowId");
|
||||||
|
|
@ -16784,12 +16787,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "FristAddTask")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("FristAddTaskId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance")
|
b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance")
|
||||||
.WithMany("ReadingTableAnswerRowInfoList")
|
.WithMany("ReadingTableAnswerRowInfoList")
|
||||||
.HasForeignKey("InstanceId")
|
.HasForeignKey("InstanceId")
|
||||||
|
|
@ -16821,8 +16818,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Navigation("CreateUserRole");
|
b.Navigation("CreateUserRole");
|
||||||
|
|
||||||
b.Navigation("FristAddTask");
|
|
||||||
|
|
||||||
b.Navigation("Instance");
|
b.Navigation("Instance");
|
||||||
|
|
||||||
b.Navigation("MergeRow");
|
b.Navigation("MergeRow");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue