修改一版
parent
d352b83660
commit
59a28dff89
|
@ -170,6 +170,8 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
|
||||
public Guid SubjectId { get; set; }
|
||||
|
||||
public decimal VisitNum { get; set; }
|
||||
|
||||
public bool IsUrgent { get; set; }
|
||||
|
||||
public string ReadingName { get; set; }
|
||||
|
|
|
@ -13,6 +13,7 @@ using IRaCIS.Core.Domain.Share;
|
|||
using IRaCIS.Core.Infrastructure;
|
||||
using AutoMapper;
|
||||
using MassTransit;
|
||||
using IRaCIS.Core.Infra.EFCore.Common;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
|
@ -366,6 +367,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
ReadingTaskState = ReadingTaskState.WaitReading,
|
||||
TaskName = firstTask.TaskName,
|
||||
ReadingCategory = ReadingCategory.Judge,
|
||||
VisitTaskNum= firstTask.VisitTaskNum+ ReadingCommon.TaskNumDic[ReadingCategory.Judge],
|
||||
TrialId = firstTask.TrialId,
|
||||
Code = currentMaxCodeInt + 1,
|
||||
SourceSubjectVisitId = firstTask.SourceSubjectVisitId,
|
||||
|
@ -409,6 +411,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
TrialId = trialId,
|
||||
SubjectId = item.SubjectId,
|
||||
IsUrgent = item.IsUrgent,
|
||||
VisitTaskNum = item.VisitNum + ReadingCommon.TaskNumDic[ReadingCategory.Global],
|
||||
TaskName = item.ReadingName,
|
||||
ArmEnum = Arm.DoubleReadingArm1,//特殊
|
||||
Code = currentMaxCodeInt + 1,
|
||||
|
@ -422,6 +425,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
TrialId = trialId,
|
||||
SubjectId = item.SubjectId,
|
||||
IsUrgent = item.IsUrgent,
|
||||
VisitTaskNum = item.VisitNum + ReadingCommon.TaskNumDic[ReadingCategory.Global],
|
||||
TaskName = item.ReadingName,
|
||||
ArmEnum = Arm.DoubleReadingArm2,//特殊
|
||||
Code = currentMaxCodeInt + 2,
|
||||
|
@ -444,6 +448,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
SubjectId = item.SubjectId,
|
||||
IsUrgent = item.IsUrgent,
|
||||
TaskName = item.ReadingName,
|
||||
VisitTaskNum = item.VisitNum + ReadingCommon.TaskNumDic[ReadingCategory.Global],
|
||||
ArmEnum = Arm.SingleReadingArm, //特殊
|
||||
Code = currentMaxCodeInt + 1,
|
||||
SouceReadModuleId = item.ReadModuleId,
|
||||
|
@ -469,6 +474,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
SubjectId = item.SubjectId,
|
||||
IsUrgent = item.IsUrgent,
|
||||
TaskName = item.ReadingName,
|
||||
VisitTaskNum = item.VisitNum + ReadingCommon.TaskNumDic[ReadingCategory.Oncology],
|
||||
ArmEnum = Arm.TumorArm, //特殊
|
||||
Code = currentMaxCodeInt + 1,
|
||||
SouceReadModuleId = item.ReadModuleId,
|
||||
|
|
|
@ -539,6 +539,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
IsUrgent = x.IsUrgent ?? false,
|
||||
SubjectId = x.SubjectId,
|
||||
VisitNum=x.VisitNum,
|
||||
ReadingName = x.ModuleName,
|
||||
ReadModuleId = x.Id,
|
||||
ReadingCategory = typeChangeDic[x.ModuleType],
|
||||
|
@ -565,6 +566,7 @@ namespace IRaCIS.Application.Services
|
|||
IsUrgent = x.IsUrgent ?? false,
|
||||
SubjectId = x.SubjectId,
|
||||
ReadingName = x.ModuleName,
|
||||
VisitNum = x.VisitNum,
|
||||
ReadModuleId = x.Id,
|
||||
ReadingCategory = typeChangeDic[x.ModuleType],
|
||||
}).ToListAsync();
|
||||
|
|
|
@ -192,7 +192,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public string JudgeResultRemark { get; set; } = string.Empty;
|
||||
|
||||
//随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.02 全局任务在截止访视号上+0.03 肿瘤待定
|
||||
//随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.001 全局任务在截止访视号上+0.01 肿瘤待定
|
||||
public decimal VisitTaskNum { get; set; }
|
||||
|
||||
|
||||
|
|
|
@ -16,11 +16,15 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
public static class ReadingCommon
|
||||
{
|
||||
|
||||
public static Dictionary<ReadingCategory, dynamic> TaskNumDic = new Dictionary<ReadingCategory, dynamic>()
|
||||
{
|
||||
{ReadingCategory.Visit,0 },
|
||||
{ReadingCategory.Global,0.01 },
|
||||
{ReadingCategory.Judge,0.001 },
|
||||
{ReadingCategory.ReReading,0 },
|
||||
{ReadingCategory.Oncology,0 },
|
||||
|
||||
//public static FileStreamResult GetFileStreamResult(IWebHostEnvironment webHostEnvironment, string path,string FileName)
|
||||
//{
|
||||
|
||||
//}
|
||||
};
|
||||
|
||||
public static bool IsNullOrEmpty(this string value)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue