diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminAddUser_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminAddUser_US.html index fb1ff4e02..81f3aa200 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminAddUser_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminAddUser_US.html @@ -4,17 +4,17 @@ Title - -
+ +
-
+
Dear {0} ,
-
+
Extensive Imaging has generated a user account for you.
The account information is as follows:
-
+
User ID: {1}
@@ -23,16 +23,16 @@
Before logging in for the first time, please initialize your account information through this link: - + Initialize Account Information
-
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminResetUser_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminResetUser_US.html index 05f730795..37b035715 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminResetUser_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/AdminResetUser_US.html @@ -4,17 +4,17 @@ Title - -
+ +
-
+
Dear {0} ,
-
+
Extensive Imaging has reset your password.
The account information is as follows:
-
+
User ID: {1}
@@ -27,9 +27,9 @@
-
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/SubjectEnrollConfirmOrPDProgress_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/SubjectEnrollConfirmOrPDProgress_US.html index 4ab2379c8..4607c5af2 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/SubjectEnrollConfirmOrPDProgress_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/SubjectEnrollConfirmOrPDProgress_US.html @@ -4,22 +4,22 @@ Title - -
+ +
-
+
Dear Sir or Madam:
-
+
Thank you for using our IRC imaging system.
-
+
{0}。
-
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin.html index 0bf1fb2ad..5e154e16f 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin.html @@ -11,7 +11,7 @@ 尊敬的 {0} ,您好:
- 展影医疗作为 [{1} (试验方案号:{2 })] 项目的IRC供应商,诚邀您参加该项目IRC阅片相关工作,欢迎您提供指导和建议,非常感谢! + 展影医疗作为 [{1} (试验方案号:{2 })] 项目的IRC供应商,诚邀您参加该项目IRC阅片相关工作。
该项目采用电子化工作流,系统及您的账号信息如下: diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin_US.html index a2bda514d..af5a32a3e 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorExistJoin_US.html @@ -4,20 +4,20 @@ Title - +
-
+
Dear {0},
-
+
As the IRC service provider of {1} trial(Protocol ID is {2}), Extensive Imaging invites you to participate in the independent assessment work of this trial.
-
+
Digital workflow is implemented for this trial, and your account information is as follows:
-
+
Trial ID: {3}
@@ -37,13 +37,10 @@ Login URL: {6}
-
- Your opinions and suggestions will be greatly appreciated! -
-
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorFirstJoin_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorFirstJoin_US.html index 7f047145e..83d919950 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorFirstJoin_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialDoctorFirstJoin_US.html @@ -4,20 +4,21 @@ Title - +
-
+
Dear {0},
-
- As the IRC service provider of {1}trial (Protocol ID is {2}), Extensive Imaging invites you to participate in the independent assessment work of this trial. Your opinions and suggestions will be greatly appreciated! +
+ As the IRC service provider of {1}trial (Protocol ID is {2}), Extensive Imaging invites you to participate in the independent assessment work of this trial.
-
+
+
Digital workflow is implemented for this trial, and your account information is as follows:
-
+
Trial ID: {3}
@@ -25,26 +26,26 @@ Protocol ID: {2}
- Study name: {1} + Study Name: {1}
- User name: {4} + User ID: {4}
Role: {5}
-
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialSiteSurveyReject_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialSiteSurveyReject_US.html index 7c69afd20..caa38e3b7 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialSiteSurveyReject_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialSiteSurveyReject_US.html @@ -4,17 +4,17 @@ Title - -
-
-
+ +
+
+
Dear {0} ,
-
- The site survey you filled in has been rejected. The details are as follows: +
+ The site survey questionnaire you filled in has been rejected. Details are as follows:
-
+
Trial ID: {1}
@@ -35,13 +35,13 @@
- + Login & View -
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserExistJoin_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserExistJoin_US.html index 4c4c9a5a6..5e33fc801 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserExistJoin_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserExistJoin_US.html @@ -4,20 +4,20 @@ Title - -
-
-
+ +
+
+
Dear {0},
-
- As the IRC service provider of {1}trial(Protocol ID is {2}), Extensive Imaging invites you to participate in the independent assessment work of this trial. +
+ As the IRC service provider of {1} trial (Protocol ID is {2}), Extensive Imaging invites you to participate in IRC-related work of this trial.
-
+
Digital workflow is implemented for this trial, and your account information is as follows:
-
+
Trial ID: {3}
@@ -34,14 +34,14 @@ Role: {5}
- System login URL:{6} + Login URL: {6}
-
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin.html index 46c2a7b80..48019299e 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin.html @@ -11,7 +11,7 @@ 尊敬的 {0} ,您好:
- 展影医疗作为 [{1} (试验方案号:{2 })] 项目的IRC供应商,诚邀您参加该项目IRC相关工作,欢迎您提供指导和建议,非常感谢! + 展影医疗作为 [{1} (试验方案号:{2 })] 项目的IRC供应商,诚邀您参加该项目IRC相关工作。
该项目采用电子化工作流,系统及您的账号信息如下: diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin_US.html index eb260fff1..e402530d6 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/TrialUserFirstJoin_US.html @@ -4,20 +4,20 @@ Title - +
-
+
Dear {0},
-
- As the IRC service provider of {1}trial(Protocol ID is {2}). Extiming sincerely invites you to participate in the IRC related work of this project. Your guidance and suggestions are welcome. +
+ As the IRC service provider of {1} trial (Protocol ID is {2}), Extensive Imaging invites you to participate in IRC-related work of this trial.
Digital workflow is implemented for this trial, and your account information is as follows:
-
+
Trial ID: {3}
@@ -34,17 +34,17 @@ Role: {5}
-
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon.html index f9ed9d945..d6bfd963e 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon.html @@ -8,13 +8,13 @@
- 亲爱的用户 {0}, + 亲爱的用户 ,
感谢您使用展影云平台。
- {1},验证码是: {2},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。 + {0},验证码是: {1},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
diff --git a/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon_US.html b/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon_US.html index 0ec66aabd..b5edfaf7c 100644 --- a/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon_US.html +++ b/IRaCIS.Core.API/wwwroot/EmailTemplate/UserOptCommon_US.html @@ -4,23 +4,25 @@ Title - +
-
- Dear Sir or Madam {0}, +
+ Dear Sir or Madam:
-
+
Thank you for using our IRC imaging system.
-
- {1}, the verification code is {2}. Enter the verification code within 3 minutes for subsequent operations. Please ignore this email if not by yourself. +
+ {1}, the verification code is {2}. Please enter this code within 3 minutes for follow-up operations. +
+
+ If you are not the intended person, please ignore this email.
- -
+
Best regards,
-
Extensive Imaging
+
Extensive Imaging
diff --git a/IRaCIS.Core.Application/Service/Common/MailService.cs b/IRaCIS.Core.Application/Service/Common/MailService.cs index f784e4c89..5f6e58120 100644 --- a/IRaCIS.Core.Application/Service/Common/MailService.cs +++ b/IRaCIS.Core.Application/Service/Common/MailService.cs @@ -186,7 +186,6 @@ namespace IRaCIS.Application.Services builder.HtmlBody = string.Format(templateInfo, - "", //---您正在进行邮箱重置密码操作 _localizer["Mail_ResettingPassword "], verificationCode @@ -254,7 +253,6 @@ namespace IRaCIS.Application.Services builder.HtmlBody = string.Format(templateInfo, - "", //---您正在参与展影医疗IRC项目 _localizer["Mail_IRCProject"], verificationCode @@ -321,7 +319,6 @@ namespace IRaCIS.Application.Services builder.HtmlBody = string.Format(templateInfo, - "", //---您正在参与展影医疗IRC项目中心调研工作 _localizer["Mail_CenterResearchReminder"], verificationCode diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs index d3604a473..f7672f53f 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs @@ -268,11 +268,15 @@ namespace IRaCIS.Core.Application.Contracts public string TrialStatusStr { get; set; } - public int? ExpetiedTaskCount { get; set; } + public int? ReReadingApprovalCount { get; set; } + + public int? PendingReconciliation { get; set; } + + } diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs index 49710b2be..8268127c3 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs @@ -887,6 +887,11 @@ namespace IRaCIS.Core.Application [FromServices] IRepository _taskMedicalReviewRepository) { + var isPM = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager; + var isCRC = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator; + var isIQC = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.IQC; + var isMIM = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.MIM; + var isSPMOrCPM = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM; var query = _trialRepository.AsQueryable().IgnoreQueryFilters() @@ -906,6 +911,10 @@ namespace IRaCIS.Core.Application Sponsor= _userInfo.IsEn_Us? t.Sponsor.SponsorName:t.Sponsor.SponsorNameCN, TrialStatusStr=t.TrialStatusStr, + ExpetiedTaskCount= isPM ? t.VisitTaskList.Where(t=>t.IsUrgent).Count():0, + ReReadingApprovalCount= isPM? t.VisitTaskReReadingList.Where(t=>t.OriginalReReadingTask.ReReadingApplyState==ReReadingApplyState.DocotorHaveApplyed).Count():0, + PendingReconciliation=isPM? t.SubjectVisitList.Where(t=>t.CheckState==CheckStateEnum.ToCheck).Count():0, + }); diff --git a/IRaCIS.Core.Domain/SQLFile/20230613.sql b/IRaCIS.Core.Domain/SQLFile/20230613.sql new file mode 100644 index 000000000..0eafb3ce4 --- /dev/null +++ b/IRaCIS.Core.Domain/SQLFile/20230613.sql @@ -0,0 +1,8 @@ +--同步重阅申请表结构后,再维护该字段 + +UPDATE VisitTaskReReading +SET TrialId = VisitTask.TrialId +FROM VisitTaskReReading +INNER JOIN VisitTask ON VisitTaskReReading.OriginalReReadingTaskId = VisitTask.Id; + +delete VisitTaskReReading where TrialId is NULL \ No newline at end of file diff --git a/IRaCIS.Core.Domain/Trial/Trial.cs b/IRaCIS.Core.Domain/Trial/Trial.cs index ad71a19eb..86afacb29 100644 --- a/IRaCIS.Core.Domain/Trial/Trial.cs +++ b/IRaCIS.Core.Domain/Trial/Trial.cs @@ -27,6 +27,9 @@ namespace IRaCIS.Core.Domain.Models public List SubjectDoctorUserList { get; set; } = new List(); [JsonIgnore] public List VisitTaskList { get; set; } = new List() { }; + + [JsonIgnore] + public List VisitTaskReReadingList { get; set; } [JsonIgnore] public List TrialSiteSurveyList { get; set; } = new List();