diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs index b37a547db..f94b6ea74 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs @@ -196,7 +196,7 @@ namespace IRaCIS.Application.Services trial.DeclarationTypes = $"|{string.Join('|', trialAddModel.DeclarationTypeEnumList)}|"; - trial.AttendedReviewerTypes = $"|{string.Join('|', trialAddModel.AttendedReviewerTypes)}|"; + trial.AttendedReviewerTypes = $"|{string.Join('|', trialAddModel.AttendedReviewerTypeEnumList)}|"; //多选信息 trialAddModel.ModalityIds.ForEach(modalityId => trial.TrialDicList.Add(new TrialDictionary() { DictionaryId = modalityId, KeyName = StaticData.Modality, TrialId = trial.Id })); @@ -269,6 +269,9 @@ namespace IRaCIS.Application.Services } _mapper.Map(updateModel, trial); + trial.DeclarationTypes = $"|{string.Join('|', updateModel.DeclarationTypeEnumList)}|"; + trial.AttendedReviewerTypes = $"|{string.Join('|', updateModel.AttendedReviewerTypeEnumList)}|"; + var success = await _repository.SaveChangesAsync(); return ResponseOutput.Ok(trial); diff --git a/IRaCIS.Core.Domain.Share/Trial/TrialExpedited.cs b/IRaCIS.Core.Domain.Share/Trial/TrialExpedited.cs index 292b25a77..9b274db35 100644 --- a/IRaCIS.Core.Domain.Share/Trial/TrialExpedited.cs +++ b/IRaCIS.Core.Domain.Share/Trial/TrialExpedited.cs @@ -33,7 +33,8 @@ US=1, - USAndCN=2, + EU=2, + Other=3 } public enum DeclarationType diff --git a/IRaCIS.Core.Domain/Trial/Trial.cs b/IRaCIS.Core.Domain/Trial/Trial.cs index 9c5529c8c..3b9013783 100644 --- a/IRaCIS.Core.Domain/Trial/Trial.cs +++ b/IRaCIS.Core.Domain/Trial/Trial.cs @@ -153,7 +153,7 @@ namespace IRaCIS.Core.Domain.Models - public string DeclarationTypes { get; set; } + public string DeclarationTypes { get; set; } = string.Empty; [NotMapped] public List DeclarationTypeEnumList => AttendedReviewerTypes.Split('|', StringSplitOptions.RemoveEmptyEntries) @@ -163,7 +163,7 @@ namespace IRaCIS.Core.Domain.Models public List AttendedReviewerTypeEnumList=> AttendedReviewerTypes.Split('|',StringSplitOptions.RemoveEmptyEntries) .Select(s => Enum.Parse(typeof(AttendedReviewerType), s)).Cast().ToList(); - public string AttendedReviewerTypes { get; set; } + public string AttendedReviewerTypes { get; set; }=string.Empty;