From 1f9d29e005b5ce001d0dfec7bfdbb704d2ad9fde Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 10:13:03 +0800
Subject: [PATCH 001/251] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8E=86=E5=8F=B2?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=A2=9E=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Common/DTO/PublishLogViewModel.cs | 19 ++++++++-
.../Service/Common/PublishLogService.cs | 29 ++++++++++++--
.../Service/Common/_MapConfig.cs | 3 ++
IRaCIS.Core.Domain/Common/PublishLog.cs | 40 ++++++++-----------
4 files changed, 62 insertions(+), 29 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs
index b76607051..5cd098251 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs
@@ -26,6 +26,8 @@ namespace IRaCIS.Core.Application.ViewModel
public string? UpdateContent { get; set; }
+ public int? State { get; set; }
+
}
/// PublishLogAddOrEdit 列表查询参数模型
@@ -33,9 +35,24 @@ namespace IRaCIS.Core.Application.ViewModel
{
public Guid? Id { get; set; }
public string Version { get; set; }
- public DateTime PublishTime { get; set; }
+ public DateTime? PublishTime { get; set; }
public string UpdateContent { get; set; }
+ //0 开发中 ,已发布
+ public int State { get; set; }
+
+ public bool IsCurrentVersion { get; set; }
+
+ }
+
+
+ public class PublishVersionSelect
+ {
+ public Guid Id { get; set; }
+ public string Version { get; set; }
+ public int State { get; set; }
+ public DateTime? PublishTime { get; set; }
+ public bool IsCurrentVersion { get; set; }
}
diff --git a/IRaCIS.Core.Application/Service/Common/PublishLogService.cs b/IRaCIS.Core.Application/Service/Common/PublishLogService.cs
index 5afb3aaf8..213c0b90a 100644
--- a/IRaCIS.Core.Application/Service/Common/PublishLogService.cs
+++ b/IRaCIS.Core.Application/Service/Common/PublishLogService.cs
@@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Mvc;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Application.Contracts;
+using Microsoft.AspNetCore.Authorization;
namespace IRaCIS.Core.Application.Service
{
@@ -31,8 +32,9 @@ namespace IRaCIS.Core.Application.Service
{
var publishLogQueryable = _publishLogRepository
- .WhereIf(!string.IsNullOrEmpty(inQuery.Version) , t => t.Version.Contains(inQuery.Version))
+ .WhereIf(!string.IsNullOrEmpty(inQuery.Version), t => t.Version.Contains(inQuery.Version))
.WhereIf(!string.IsNullOrEmpty(inQuery.UpdateContent), t => t.UpdateContent.Contains(inQuery.UpdateContent))
+ .WhereIf(inQuery.State != null, t => t.State == inQuery.State)
.ProjectTo(_mapper.ConfigurationProvider);
var pageList = await publishLogQueryable
@@ -50,11 +52,11 @@ namespace IRaCIS.Core.Application.Service
{
return ResponseOutput.NotOk("版本号不符合要求");
}
-
+
var verifyExp1 = new EntityVerifyExp()
{
- VerifyExp = u => u.Version == addOrEditPublishLog.Version ,
-
+ VerifyExp = u => u.Version == addOrEditPublishLog.Version,
+
VerifyMsg = "发布编号不能重复"
};
@@ -74,6 +76,25 @@ namespace IRaCIS.Core.Application.Service
return ResponseOutput.Ok();
}
+ [AllowAnonymous]
+ public async Task GetCurrentPublishInfo()
+ {
+ var result = await _publishLogRepository.Where(t => t.IsCurrentVersion == true).ProjectTo(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
+
+ if (result == null)
+ {
+ //系统当前版本未标记,请联系维护人员
+ throw new QueryBusinessObjectNotExistException("系统当前版本未标记,请联系维护人员");
+ }
+
+ return result;
+ }
+
+
+ public async Task> GetPublishVersionSelect()
+ {
+ return await _publishLogRepository.ProjectTo(_mapper.ConfigurationProvider).OrderByDescending(t => t.State).ToListAsync();
+ }
}
}
diff --git a/IRaCIS.Core.Application/Service/Common/_MapConfig.cs b/IRaCIS.Core.Application/Service/Common/_MapConfig.cs
index 18058ee40..743955f1a 100644
--- a/IRaCIS.Core.Application/Service/Common/_MapConfig.cs
+++ b/IRaCIS.Core.Application/Service/Common/_MapConfig.cs
@@ -78,6 +78,9 @@ namespace IRaCIS.Core.Application.Service
CreateMap();
CreateMap().ReverseMap();
+ CreateMap();
+
+
}
}
diff --git a/IRaCIS.Core.Domain/Common/PublishLog.cs b/IRaCIS.Core.Domain/Common/PublishLog.cs
index 082edaef3..0a58ed3a3 100644
--- a/IRaCIS.Core.Domain/Common/PublishLog.cs
+++ b/IRaCIS.Core.Domain/Common/PublishLog.cs
@@ -17,48 +17,40 @@ namespace IRaCIS.Core.Domain.Models
{
- ///
- /// Version
- ///
+
[Required]
public string Version { get; set; }
- ///
- /// PublishTime
- ///
+
[Required]
- public DateTime PublishTime { get; set; }
+ public DateTime? PublishTime { get; set; }
- ///
- /// UpdateContent
- ///
+
[Required]
public string UpdateContent { get; set; }
- ///
- /// CreateTime
- ///
+
[Required]
public DateTime CreateTime { get; set; }
- ///
- /// CreateUserId
- ///
+
[Required]
public Guid CreateUserId { get; set; }
- ///
- /// UpdateUserId
- ///
+
[Required]
public Guid UpdateUserId { get; set; }
- ///
- /// UpdateTime
- ///
+
[Required]
public DateTime UpdateTime { get; set; }
-
- }
+
+ //0 开发中 ,已发布
+ public int State { get; set; }
+
+ public bool IsCurrentVersion { get; set; }
+
+
+ }
}
From ab84e66fe4eeac8a961d49bd9cbaab6fb89fbea1 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 10:51:23 +0800
Subject: [PATCH 002/251] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 7 ++++++
.../DTO/InternationalizationViewModel.cs | 22 ++++++++++++++++---
.../Common/InternationalizationService.cs | 13 +++++++++++
.../Common/Internationalization.cs | 7 ++++++
4 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 851952723..fda29c5ae 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -738,6 +738,13 @@
+
+
+ 批量更新状态和发布版本
+
+
+
+
PublishLogService
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs
index c6b7567b3..8aa5e7e0c 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs
@@ -45,6 +45,9 @@ namespace IRaCIS.Core.Application.ViewModel
public string FrontType { get; set; } = string.Empty;
public int InternationalizationType { get; set; }
+ public string Module { get; set; } = string.Empty;
+ //关联版本历史记录表Id
+ public Guid? PublishLogId { get; set; }
}
public class BatchAddInternationalization
@@ -64,16 +67,29 @@ namespace IRaCIS.Core.Application.ViewModel
public string Value { get; set; } = string.Empty;
public string FrontType { get; set; } = string.Empty;
public string ValueCN { get; set; } = string.Empty;
+
+ public string Module { get; set; } = string.Empty;
+ //关联版本历史记录表Id
+ public Guid? PublishLogId { get; set; }
}
public class BatchAddInternationalizationDto : BatchInternationalizationDto
{
-
+
}
- public class InternationalizationSimpleDto: BatchInternationalizationDto
+ public class InternationalizationSimpleDto : BatchInternationalizationDto
{
-
+
+ }
+
+ public class BatchUpdateInfoCommand
+ {
+ public List IdList { get; set; }
+
+ public Guid? PublishLogId { get; set; }
+
+ public int State { get; set; }
}
}
diff --git a/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs b/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs
index ff6b43a4c..f3c18f9d3 100644
--- a/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs
+++ b/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs
@@ -202,6 +202,19 @@ namespace IRaCIS.Core.Application.Service
return ResponseOutput.Ok();
}
+ ///
+ /// 批量更新状态和发布版本
+ ///
+ ///
+ ///
+ [HttpPut]
+ public async Task BatchUpdateInternationalInfo(BatchUpdateInfoCommand inCommand)
+ {
+ await _internationalizationRepository.BatchUpdateNoTrackingAsync(t => inCommand.IdList.Contains(t.Id), t => new Internationalization() { State = inCommand.State, PublishLogId = inCommand.PublishLogId });
+
+ return ResponseOutput.Ok();
+ }
+
}
}
diff --git a/IRaCIS.Core.Domain/Common/Internationalization.cs b/IRaCIS.Core.Domain/Common/Internationalization.cs
index e4a7be5e9..6d7a9e864 100644
--- a/IRaCIS.Core.Domain/Common/Internationalization.cs
+++ b/IRaCIS.Core.Domain/Common/Internationalization.cs
@@ -45,6 +45,13 @@ namespace IRaCIS.Core.Domain.Models
public string FrontType { get; set; }=string.Empty;
+
+ public string Module { get; set; } = string.Empty;
+ //关联版本历史记录表Id
+ public Guid? PublishLogId { get; set; }
+
+
+
}
}
From f97565d9d83e775445467408443b664f0e0fdada Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 16:07:41 +0800
Subject: [PATCH 003/251] =?UTF-8?q?=E5=8C=BB=E7=94=9F=E5=85=A5=E7=BB=84?=
=?UTF-8?q?=EF=BC=8C=E6=B2=A1=E6=9C=89spm=E4=BF=AE=E6=94=B9=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
index a0e71f568..9c0124c9b 100644
--- a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
+++ b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
@@ -194,6 +194,7 @@ namespace IRaCIS.Application.Services
var trial = await _trialRepository.FirstOrDefaultAsync(t => t.Id == trialId);
+ var hasSPMOrCPM = await _repository.AnyAsync(t => t.TrialId == trialId && t.User.UserTypeEnum == UserTypeEnum.SPM || t.User.UserTypeEnum == UserTypeEnum.CPM);
if (trial != null)
{
@@ -217,15 +218,14 @@ namespace IRaCIS.Application.Services
{
if (doctorIdArray.Contains(intoGroupItem.DoctorId))
{
- intoGroupItem.EnrollStatus = EnrollStatus.HasCommittedToCRO;
- //_enrollRepository.Update(intoGroupItem);
+ intoGroupItem.EnrollStatus = hasSPMOrCPM ? EnrollStatus.HasCommittedToCRO : EnrollStatus.InviteIntoGroup;
await _enrollDetailRepository.AddAsync(new EnrollDetail()
{
TrialDetailId = trialDetail.Id,
DoctorId = intoGroupItem.DoctorId,
TrialId = trialId,
- EnrollStatus = EnrollStatus.HasCommittedToCRO,
+ EnrollStatus = hasSPMOrCPM? EnrollStatus.HasCommittedToCRO :EnrollStatus.InviteIntoGroup,
OptUserType = (int)SystemUserType.AdminUser, //后台用户
});
}
From a4226d4e2f4111587df3dd13ac9d16f661475bf2 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 16:28:20 +0800
Subject: [PATCH 004/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=9B=E9=80=89?=
=?UTF-8?q?=E6=9D=A1=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
index 9c0124c9b..8fc2829a3 100644
--- a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
+++ b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
@@ -194,14 +194,14 @@ namespace IRaCIS.Application.Services
var trial = await _trialRepository.FirstOrDefaultAsync(t => t.Id == trialId);
- var hasSPMOrCPM = await _repository.AnyAsync(t => t.TrialId == trialId && t.User.UserTypeEnum == UserTypeEnum.SPM || t.User.UserTypeEnum == UserTypeEnum.CPM);
+ var hasSPMOrCPM = await _repository.Where(t => t.TrialId == trialId).AnyAsync(t=> t.User.UserTypeEnum == UserTypeEnum.SPM || t.User.UserTypeEnum == UserTypeEnum.CPM);
if (trial != null)
{
if (commitState == 1) //确认提交CRO
{
//更新项目状态
- trial.TrialEnrollStatus = (int)TrialEnrollStatus.HasCommitCRO;
+ trial.TrialEnrollStatus = hasSPMOrCPM ? (int)TrialEnrollStatus.HasCommitCRO : (int)TrialEnrollStatus.HasConfirmedDoctorNames;
//添加项目详细记录
var trialDetail = new TrialStatusDetail()
From 96c4165cda59179d49b485a81df4f500df55ca19 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 16:53:53 +0800
Subject: [PATCH 005/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=95=8C=E9=9D=A2?=
=?UTF-8?q?=E6=8E=A7=E5=88=B6bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/WorkLoad/EnrollService.cs | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
index 8fc2829a3..3b4b365b9 100644
--- a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
+++ b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
@@ -225,9 +225,23 @@ namespace IRaCIS.Application.Services
TrialDetailId = trialDetail.Id,
DoctorId = intoGroupItem.DoctorId,
TrialId = trialId,
- EnrollStatus = hasSPMOrCPM? EnrollStatus.HasCommittedToCRO :EnrollStatus.InviteIntoGroup,
+ EnrollStatus = hasSPMOrCPM ? EnrollStatus.HasCommittedToCRO : EnrollStatus.InviteIntoGroup,
OptUserType = (int)SystemUserType.AdminUser, //后台用户
});
+
+ if (!hasSPMOrCPM)
+ {
+ await _enrollDetailRepository.AddAsync(new EnrollDetail()
+ {
+ TrialDetailId = trialDetail.Id,
+ DoctorId = intoGroupItem.DoctorId,
+ TrialId = trialId,
+ EnrollStatus = EnrollStatus.HasCommittedToCRO,
+ OptUserType = (int)SystemUserType.AdminUser, //后台用户
+ });
+ }
+
+
}
}
From 20092d6757458cd4375ecb600d9fb29e8812fa7a Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 17:21:15 +0800
Subject: [PATCH 006/251] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E9=82=AE=E4=BB=B6?=
=?UTF-8?q?=E5=8F=91=E9=80=81=E5=8C=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/IRaCIS.Core.Application.csproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
index 0c907fb89..ef903d453 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
@@ -78,9 +78,9 @@
-
+
-
+
From fb87f4d06ae6a817827346894d2900a126de3382 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 17:26:20 +0800
Subject: [PATCH 007/251] =?UTF-8?q?=E7=89=88=E6=9C=AC=E9=80=80=E5=9B=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/IRaCIS.Core.Application.csproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
index ef903d453..9563aa30a 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
@@ -78,9 +78,9 @@
-
+
-
+
From 97b97a164d143807aa426ddaab4492ff4b313ad8 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 17:37:35 +0800
Subject: [PATCH 008/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E9=80=81?=
=?UTF-8?q?=E9=82=AE=E4=BB=B6=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/IRaCIS.Core.Application.csproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
index 9563aa30a..f230207ee 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
@@ -78,9 +78,9 @@
-
+
-
+
From de70f68640bb3d14aaafb31392849a7729ac5055 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 17:46:37 +0800
Subject: [PATCH 009/251] =?UTF-8?q?=E5=8F=91=E9=80=81=E9=82=AE=E4=BB=B6?=
=?UTF-8?q?=E7=89=88=E6=9C=AC=E9=80=80=E5=9B=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/IRaCIS.Core.Application.csproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
index f230207ee..72dc549f8 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
@@ -78,9 +78,9 @@
-
+
-
+
From 73edbe8fd37a56a0ede5e2d05bb726d025b6d753 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Tue, 25 Jun 2024 09:17:28 +0800
Subject: [PATCH 010/251] =?UTF-8?q?=E5=88=A0=E6=8E=89=E9=82=AE=E4=BB=B6?=
=?UTF-8?q?=E6=97=A5=E5=BF=97=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.API/IRaCIS.Core.API.csproj | 1 -
IRaCIS.Core.API/_ServiceExtensions/Serilog/SerilogSetup.cs | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/IRaCIS.Core.API/IRaCIS.Core.API.csproj b/IRaCIS.Core.API/IRaCIS.Core.API.csproj
index 4f364beff..f6e1614ef 100644
--- a/IRaCIS.Core.API/IRaCIS.Core.API.csproj
+++ b/IRaCIS.Core.API/IRaCIS.Core.API.csproj
@@ -79,7 +79,6 @@
-
diff --git a/IRaCIS.Core.API/_ServiceExtensions/Serilog/SerilogSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/Serilog/SerilogSetup.cs
index 7da66607b..a010e8595 100644
--- a/IRaCIS.Core.API/_ServiceExtensions/Serilog/SerilogSetup.cs
+++ b/IRaCIS.Core.API/_ServiceExtensions/Serilog/SerilogSetup.cs
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Builder;
using Serilog;
using Serilog.Events;
-using Serilog.Sinks.Email;
+//using Serilog.Sinks.Email;
using System;
using System.Net;
From d3ab051a394b335f5e11ba06a1c484d62be66c13 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Tue, 25 Jun 2024 10:26:30 +0800
Subject: [PATCH 011/251] =?UTF-8?q?spm=20cpm=20=20=E8=BF=94=E5=9B=9E?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
index 3b4b365b9..6849dd81e 100644
--- a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
+++ b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
@@ -271,7 +271,7 @@ namespace IRaCIS.Application.Services
}
- return ResponseOutput.Result(await _enrollRepository.SaveChangesAsync());
+ return ResponseOutput.Result(await _enrollRepository.SaveChangesAsync(), new {IsHaveSpmOrCPM=hasSPMOrCPM});
}
//$"Cannot find trial {trialId}"
return ResponseOutput.NotOk(_localizer["Enroll_NotFound", trialId]);
From 9048963ea5ae76ef2806ed7253a009253321eb4c Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Tue, 25 Jun 2024 10:28:18 +0800
Subject: [PATCH 012/251] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
index 6849dd81e..1f1b427c9 100644
--- a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
+++ b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs
@@ -271,7 +271,7 @@ namespace IRaCIS.Application.Services
}
- return ResponseOutput.Result(await _enrollRepository.SaveChangesAsync(), new {IsHaveSpmOrCPM=hasSPMOrCPM});
+ return ResponseOutput.Result(await _enrollRepository.SaveChangesAsync(), new {IsHaveSPMOrCPM=hasSPMOrCPM});
}
//$"Cannot find trial {trialId}"
return ResponseOutput.NotOk(_localizer["Enroll_NotFound", trialId]);
From 452535b56190578a968eaf371e8a561900561076 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Tue, 25 Jun 2024 10:52:16 +0800
Subject: [PATCH 013/251] =?UTF-8?q?=E4=B8=AD=E5=BF=83=E8=B0=83=E7=A0=94?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/SiteSurvey/TrialSiteSurveyService.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs
index 2f4cdec0c..27779454a 100644
--- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs
+++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs
@@ -726,15 +726,15 @@ namespace IRaCIS.Core.Application.Contracts
t.Email,
}).ToListAsync();
- var currentUserList = siteUserList.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId).ToList();
+ //var currentUserList = siteUserList.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId).ToList();
- if (!currentUserList.Any(t => t.UserTypeEnum == UserTypeEnum.ClinicalResearchCoordinator))
+ if (!siteUserList.Any(t => t.UserTypeEnum == UserTypeEnum.ClinicalResearchCoordinator || t.UserTypeEnum == UserTypeEnum.CRA))
{
throw new BusinessValidationFailedException(_localizer["TrialSiteSurvey_MissingAccount"]);
}
- if (currentUserList.Where(t => t.IsGenerateAccount && t.UserTypeId != null).GroupBy(t => new { t.UserTypeId, t.Email })
+ if (siteUserList.Where(t => t.IsGenerateAccount && t.UserTypeId != null).GroupBy(t => new { t.UserTypeId, t.Email })
.Any(g => g.Count() > 1))
{
throw new BusinessValidationFailedException(_localizer["TrialSiteSurvey_DuplicateEmail"]);
From be27376dde4214787e754a4c8e6c5bd04afc0049 Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Wed, 26 Jun 2024 09:10:20 +0800
Subject: [PATCH 014/251] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Lugano=202014=20Wi?=
=?UTF-8?q?thout=20PET?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../LuganoWithoutPETCalculateService.cs | 3749 +++++++++++++++++
1 file changed, 3749 insertions(+)
create mode 100644 IRaCIS.Core.Application/Service/ReadingCalculate/LuganoWithoutPETCalculateService.cs
diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoWithoutPETCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoWithoutPETCalculateService.cs
new file mode 100644
index 000000000..672d3087a
--- /dev/null
+++ b/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoWithoutPETCalculateService.cs
@@ -0,0 +1,3749 @@
+using IRaCIS.Core.Application.Service.Reading.Dto;
+using IRaCIS.Core.Domain.Share;
+using Microsoft.AspNetCore.Mvc;
+using IRaCIS.Core.Domain.Models;
+using IRaCIS.Core.Application.Interfaces;
+using IRaCIS.Core.Application.ViewModel;
+using Panda.DynamicWebApi.Attributes;
+using IRaCIS.Core.Infra.EFCore.Common;
+using Microsoft.Extensions.Caching.Memory;
+
+using IRaCIS.Core.Infrastructure;
+using MassTransit;
+using System.Reflection.Metadata.Ecma335;
+using System.Linq;
+using NPOI.SS.Formula.Functions;
+using DocumentFormat.OpenXml.Drawing.Charts;
+using IRaCIS.Core.Application.Contracts;
+using IRaCIS.Core.Application.Service.ReadingCalculate.Interface;
+using DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing;
+
+namespace IRaCIS.Core.Application.Service.ReadingCalculate
+{
+
+ [ApiExplorerSettings(GroupName = "Reading")]
+ public class LuganoWithoutPETCalculateService : BaseService, ICriterionCalculateService, ILuganoCalculateService
+ {
+ private readonly IRepository _readingTableQuestionAnswerRepository;
+ private readonly IRepository _visitTaskRepository;
+ private readonly IRepository _readingQuestionCriterionTrialRepository;
+ private readonly IRepository _readingTableQuestionTrialRepository;
+ private readonly IRepository _readingTaskQuestionMarkRepository;
+ private readonly IRepository _readingTableAnswerRowInfoRepository;
+ private readonly IRepository _readingGlobalTaskInfoRepository;
+ private readonly IRepository _readingQuestionTrialRepository;
+ private readonly IRepository _organInfoRepository;
+ private readonly IRepository _subjectVisitRepository;
+ private readonly IRepository _dicomStudyRepository;
+ private readonly IRepository _tumorAssessmentRepository;
+ private readonly ISubjectVisitService _subjectVisitService;
+ private readonly IGeneralCalculateService _generalCalculateService;
+ private readonly IRepository _readingTaskQuestionAnswerRepository;
+
+ public LuganoWithoutPETCalculateService(
+ IRepository readingTableQuestionAnswerRepository,
+ IRepository visitTaskRepository,
+ IRepository readingQuestionCriterionTrialRepository,
+ IRepository readingTableQuestionTrialRepository,
+ IRepository readingTaskQuestionMarkRepository,
+ IRepository readingTableAnswerRowInfoRepository,
+ IRepository readingGlobalTaskInfoRepository,
+ IRepository readingQuestionTrialRepository,
+ IRepository organInfoRepository,
+ IRepository subjectVisitRepository,
+ IRepository dicomStudyRepository,
+ IRepository tumorAssessmentRepository,
+ ISubjectVisitService subjectVisitService,
+ IGeneralCalculateService generalCalculateService,
+ IRepository readingTaskQuestionAnswerRepository
+ )
+ {
+ this._readingTableQuestionAnswerRepository = readingTableQuestionAnswerRepository;
+ this._visitTaskRepository = visitTaskRepository;
+ this._readingQuestionCriterionTrialRepository = readingQuestionCriterionTrialRepository;
+ this._readingTableQuestionTrialRepository = readingTableQuestionTrialRepository;
+ this._readingTaskQuestionMarkRepository = readingTaskQuestionMarkRepository;
+ this._readingTableAnswerRowInfoRepository = readingTableAnswerRowInfoRepository;
+ this._readingGlobalTaskInfoRepository = readingGlobalTaskInfoRepository;
+ this._readingQuestionTrialRepository = readingQuestionTrialRepository;
+ this._organInfoRepository = organInfoRepository;
+ this._subjectVisitRepository = subjectVisitRepository;
+ this._dicomStudyRepository = dicomStudyRepository;
+ this._tumorAssessmentRepository = tumorAssessmentRepository;
+ this._subjectVisitService = subjectVisitService;
+ this._generalCalculateService = generalCalculateService;
+ this._readingTaskQuestionAnswerRepository = readingTaskQuestionAnswerRepository;
+ }
+
+ ///
+ /// 获取阅片的计算数据
+ ///
+ ///
+ ///
+ public async Task