suject 更改bug
parent
e884485664
commit
cf0c28a5ad
|
@ -161,7 +161,7 @@ namespace IRaCIS.Application.Contracts
|
|||
|
||||
public class UserCommand : UserInfo
|
||||
{
|
||||
public bool IsFirstAdd { get; set; } = true;
|
||||
|
||||
|
||||
//public string FirstName { get; set; }
|
||||
//public string LastName { get; set; }
|
||||
|
|
|
@ -321,6 +321,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
var success = await _trialExternalUseRepository.SaveChangesAsync();
|
||||
|
||||
|
||||
if (editTrialUserPreparation.IsJoin == true)
|
||||
{
|
||||
var messageToSend = new MimeMessage();
|
||||
//发件地址
|
||||
messageToSend.From.Add(new MailboxAddress("GRR", "iracis_grr@163.com"));
|
||||
|
@ -343,8 +345,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
u => new User() { Password = MD5Helper.Md5(verificationCode.ToString()) });
|
||||
}
|
||||
|
||||
if (editTrialUserPreparation.IsJoin == true)
|
||||
{
|
||||
builder.HtmlBody = @$"<body style='font-family: 微软雅黑;padding: 0;margin: 0;'>
|
||||
<div style='padding-left: 40px;background: #f6f6f6'>
|
||||
<div style='padding-top: 20px;padding-bottom:40px'>
|
||||
|
@ -581,6 +581,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
<div>
|
||||
角色: {sysUserInfo.UserTypeRole.UserTypeShortName}
|
||||
</div>
|
||||
<div>
|
||||
拒绝原因: {editInfo.RejectReason}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -121,7 +121,7 @@ namespace IRaCIS.Application.Services
|
|||
if (subjectStatusChangeCommand.FinalSubjectVisitId != null)
|
||||
{
|
||||
|
||||
if (await _repository.AnyAsync<SubjectVisit>(t => t.SubjectId == subjectStatusChangeCommand.SubjectId && t.IsFinalVisit))
|
||||
if (await _repository.AnyAsync<SubjectVisit>(t => t.SubjectId == subjectStatusChangeCommand.SubjectId && t.IsFinalVisit && t.Id != subjectStatusChangeCommand.FinalSubjectVisitId))
|
||||
{
|
||||
return ResponseOutput.NotOk("该受试者已经有访视设置为末次访视,不允许将该访视设置为末次访视");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue