diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseFilterForm.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseFilterForm.java index c495eb0d07d..b515caee739 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseFilterForm.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseFilterForm.java @@ -783,6 +783,14 @@ protected void applyDependenciesOnNewValue(CaseCriteria criteria) { weekAndDateFilter.getDateToFilter().setValue(criteria.getNewCaseDateTo()); } } + + //Birthdate Filter + HorizontalLayout birthdateFilterForm = (HorizontalLayout) getMoreFiltersContainer().getComponent(BIRTHDATE_RANGE_FILTER); + BirthdateRangeFilterComponent birtdateFilter = (BirthdateRangeFilterComponent) birthdateFilterForm.getComponent(0); + birtdateFilter.getDateFromFilter().setValue(criteria.getBirthdateFrom()); + birtdateFilter.getDateToFilter().setValue(criteria.getBirthdateTo()); + birtdateFilter.getIncludePartialMatch().setValue(criteria.isIncludePartialMatch()); + ComboBox birthDateDD = getField(CaseCriteria.BIRTHDATE_DD); if (getField(CaseCriteria.BIRTHDATE_YYYY).getValue() != null && getField(CaseCriteria.BIRTHDATE_MM).getValue() != null) { birthDateDD.addItems( diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactsFilterForm.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactsFilterForm.java index 82167788cf3..0207f77bffc 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactsFilterForm.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactsFilterForm.java @@ -475,6 +475,13 @@ protected void applyDependenciesOnNewValue(ContactCriteria newValue) { weekAndDateFilter.getDateToFilter().setValue(dateTo); } + //Birthdate Filter + HorizontalLayout birthdateFilterForm = (HorizontalLayout) getMoreFiltersContainer().getComponent(BIRTHDATE_RANGE_FILTER); + BirthdateRangeFilterComponent birtdateFilter = (BirthdateRangeFilterComponent) birthdateFilterForm.getComponent(0); + birtdateFilter.getDateFromFilter().setValue(newValue.getBirthdateFrom()); + birtdateFilter.getDateToFilter().setValue(newValue.getBirthdateTo()); + birtdateFilter.getIncludePartialMatch().setValue(newValue.isIncludePartialMatch()); + if (StringUtils.isBlank(newValue.getEventLike())) { clearAndDisableFields(ContactCriteria.ONLY_CONTACTS_SHARING_EVENT_WITH_SOURCE_CASE); } else { diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/person/PersonFilterForm.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/person/PersonFilterForm.java index 4b727d62fdd..d41dfc298f6 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/person/PersonFilterForm.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/person/PersonFilterForm.java @@ -226,5 +226,12 @@ protected void applyDependenciesOnNewValue(PersonCriteria criteria) { birthDateDD.clear(); birthDateDD.setEnabled(false); } + + //Birthdate Filter + HorizontalLayout birthdateFilterForm = (HorizontalLayout) getMoreFiltersContainer().getComponent(BIRTHDATE_RANGE_FILTER); + BirthdateRangeFilterComponent birtdateFilter = (BirthdateRangeFilterComponent) birthdateFilterForm.getComponent(0); + birtdateFilter.getDateFromFilter().setValue(criteria.getBirthdateFrom()); + birtdateFilter.getDateToFilter().setValue(criteria.getBirthdateTo()); + birtdateFilter.getIncludePartialMatch().setValue(criteria.isIncludePartialMatch()); } }