@@ -87,11 +87,12 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
if (updateTrialUserCommand.IsDeleted)
|
||||
{
|
||||
if (await _trialSiteUserRoleRepository.AnyAsync(t => t.UserRole.IdentityUserId == trialUser.IdentityUserId && t.TrialId == trialUser.TrialId))
|
||||
{
|
||||
// ----人员已加入现场维护
|
||||
return ResponseOutput.NotOk(_localizer["TrialMaint_PersonnelJoined"]);
|
||||
}
|
||||
//可以直接退出,不管中心下的CRC CRA 状态
|
||||
//if (await _trialSiteUserRoleRepository.AnyAsync(t => t.UserRole.IdentityUserId == trialUser.IdentityUserId && t.TrialId == trialUser.TrialId))
|
||||
//{
|
||||
// // ----人员已加入现场维护
|
||||
// return ResponseOutput.NotOk(_localizer["TrialMaint_PersonnelJoined"]);
|
||||
//}
|
||||
|
||||
var findQC = await _trialUseRoleRepository.FirstOrDefaultAsync(t => t.UserRole.IdentityUserId == trialUser.IdentityUserId && t.UserRole.UserTypeEnum == UserTypeEnum.IQC);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user