修改废除状态

Uat_Study
hang 2023-08-18 09:23:35 +08:00
parent c371c4b127
commit 1a5cfa8bbd
1 changed files with 3 additions and 3 deletions

View File

@ -268,7 +268,6 @@ namespace IRaCIS.Core.Application.Contracts
currentEntity = currentLatest; currentEntity = currentLatest;
if (currentEntity.State != TrialSiteSurveyEnum.PMCreatedAndLock) if (currentEntity.State != TrialSiteSurveyEnum.PMCreatedAndLock)
{ {
@ -277,7 +276,6 @@ namespace IRaCIS.Core.Application.Contracts
} }
} }
@ -302,6 +300,8 @@ namespace IRaCIS.Core.Application.Contracts
return ResponseOutput.NotOk(_localizer["TrialSiteSurvey_NoRecordToUpdate"]); return ResponseOutput.NotOk(_localizer["TrialSiteSurvey_NoRecordToUpdate"]);
} }
//未锁定的状态 就改为废除 //未锁定的状态 就改为废除
if (currentLatest.State != TrialSiteSurveyEnum.PMCreatedAndLock) if (currentLatest.State != TrialSiteSurveyEnum.PMCreatedAndLock)
{ {
@ -312,10 +312,10 @@ namespace IRaCIS.Core.Application.Contracts
{ {
} }
var copy = currentLatest.Clone(); var copy = currentLatest.Clone();
copy.State = TrialSiteSurveyEnum.ToSubmit; copy.State = TrialSiteSurveyEnum.ToSubmit;
copy.IsDeleted = false;
copy.Email = userInfo.EmailOrPhone; copy.Email = userInfo.EmailOrPhone;
copy.Id = Guid.Empty; copy.Id = Guid.Empty;