diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs index 0a4410e7d..c02e29f10 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/PersonalWorkstationViewModel.cs @@ -287,6 +287,8 @@ namespace IRaCIS.Core.Application.Contracts public Guid? SponsorId { get; set; } + public string TrialStatusStr { get; set; } = string.Empty; + public CriterionType? CriterionType { get; set; } public string? PM_EMail { get; set; } diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs index 114460c00..75d415e92 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs @@ -1427,6 +1427,7 @@ namespace IRaCIS.Core.Application var query = _trialRepository.AsQueryable().IgnoreQueryFilters() + .WhereIf(inQuery.TrialStatusStr.IsNotNullOrEmpty(),x=>x.TrialStatusStr==inQuery.TrialStatusStr) .WhereIf(inQuery.SponsorId != null, o => o.SponsorId == inQuery.SponsorId) .WhereIf(!string.IsNullOrEmpty(inQuery.Code), o => o.TrialCode.Contains(inQuery.Code)) .WhereIf(!string.IsNullOrEmpty(inQuery.ResearchProgramNo), o => o.ResearchProgramNo.Contains(inQuery.ResearchProgramNo))