diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/DTO/TrialSiteSurveyViewModel.cs b/IRaCIS.Core.Application/Service/SiteSurvey/DTO/TrialSiteSurveyViewModel.cs index 5d23847f5..c78b39c9d 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/DTO/TrialSiteSurveyViewModel.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/DTO/TrialSiteSurveyViewModel.cs @@ -232,7 +232,7 @@ namespace IRaCIS.Core.Application.Contracts { public string EmailOrPhone { get; set; } - public Guid TrialId { get; set; } + public Guid? TrialId { get; set; } } public class VerifyEmialGetDoctorInfoInDto diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index 88a0e24aa..a6b34093e 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -170,7 +170,8 @@ namespace IRaCIS.Core.Application.Contracts AcceptingNewTrial = false, ActivelyReading = false, ResumeStatus = ResumeStatusEnum.Pass, - CooperateStatus = ContractorStatusEnum.Noncooperation, + CooperateStatus = inDto.TrialId==null? ContractorStatusEnum.Noncooperation: ContractorStatusEnum.Cooperation, +, ReviewStatus = ReviewerInformationConfirmStatus.ConfirmRefuse };