修改发布的事件记录信息
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-11 16:25:52 +08:00
parent 2ee34b8e7c
commit 971c4dcf9e
9 changed files with 367 additions and 54 deletions
@@ -545,9 +545,9 @@ namespace IRaCIS.Core.Application.Contracts
survey.LatestBackReason = trialSiteSubmitBackCommand.LatestBackReason;
User? user = null;
//User? user = null;
var messageToSend = new MimeMessage();
//var messageToSend = new MimeMessage();
if (await _trialSiteSurveyRepository.AnyAsync(t => t.State == TrialSiteSurveyEnum.PMCreatedAndLock && t.Id == trialSiteSurveyId))
@@ -558,8 +558,8 @@ namespace IRaCIS.Core.Application.Contracts
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM)
{
//SPM 给填表人发
messageToSend.To.Add(new MailboxAddress(String.Empty, survey.Email));
////SPM 给填表人发
//messageToSend.To.Add(new MailboxAddress(String.Empty, survey.Email));
survey.State = TrialSiteSurveyEnum.ToSubmit;
}
@@ -570,10 +570,10 @@ namespace IRaCIS.Core.Application.Contracts
if (hasSPMOrCPM)
{
//PM 给SPM发 (初审人)
user = await _userRepository.FirstOrDefaultAsync(t => t.Id == survey.PreliminaryUserId);
////PM 给SPM发 (初审人)
//user = await _userRepository.FirstOrDefaultAsync(t => t.Id == survey.PreliminaryUserId);
messageToSend.To.Add(new MailboxAddress(String.Empty, survey.PreliminaryUserId == null ? survey.Email : user.EMail));
//messageToSend.To.Add(new MailboxAddress(String.Empty, survey.PreliminaryUserId == null ? survey.Email : user.EMail));
survey.State = TrialSiteSurveyEnum.CRCSubmitted;
@@ -583,8 +583,8 @@ namespace IRaCIS.Core.Application.Contracts
else
{
//没有SPM 给填表人发
messageToSend.To.Add(new MailboxAddress(String.Empty, survey.Email));
////没有SPM 给填表人发
//messageToSend.To.Add(new MailboxAddress(String.Empty, survey.Email));
survey.State = TrialSiteSurveyEnum.ToSubmit;
@@ -597,10 +597,7 @@ namespace IRaCIS.Core.Application.Contracts
}
}
await _IMailVerificationService.SiteSurveyRejectEmail(messageToSend, survey, trialSiteSubmitBackCommand.RouteUrl, user);
//await _IMailVerificationService.SiteSurveyRejectEmail(messageToSend, survey, trialSiteSubmitBackCommand.RouteUrl, user);
await _trialSiteSurveyRepository.SaveChangesAsync();