File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
sormas-ui/src/main/java/de/symeda/sormas/ui Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -783,6 +783,14 @@ protected void applyDependenciesOnNewValue(CaseCriteria criteria) {
783
783
weekAndDateFilter .getDateToFilter ().setValue (criteria .getNewCaseDateTo ());
784
784
}
785
785
}
786
+
787
+ //Birthdate Filter
788
+ HorizontalLayout birthdateFilterForm = (HorizontalLayout ) getMoreFiltersContainer ().getComponent (BIRTHDATE_RANGE_FILTER );
789
+ BirthdateRangeFilterComponent birtdateFilter = (BirthdateRangeFilterComponent ) birthdateFilterForm .getComponent (0 );
790
+ birtdateFilter .getDateFromFilter ().setValue (criteria .getBirthdateFrom ());
791
+ birtdateFilter .getDateToFilter ().setValue (criteria .getBirthdateTo ());
792
+ birtdateFilter .getIncludePartialMatch ().setValue (criteria .isIncludePartialMatch ());
793
+
786
794
ComboBox birthDateDD = getField (CaseCriteria .BIRTHDATE_DD );
787
795
if (getField (CaseCriteria .BIRTHDATE_YYYY ).getValue () != null && getField (CaseCriteria .BIRTHDATE_MM ).getValue () != null ) {
788
796
birthDateDD .addItems (
Original file line number Diff line number Diff line change @@ -475,6 +475,13 @@ protected void applyDependenciesOnNewValue(ContactCriteria newValue) {
475
475
weekAndDateFilter .getDateToFilter ().setValue (dateTo );
476
476
}
477
477
478
+ //Birthdate Filter
479
+ HorizontalLayout birthdateFilterForm = (HorizontalLayout ) getMoreFiltersContainer ().getComponent (BIRTHDATE_RANGE_FILTER );
480
+ BirthdateRangeFilterComponent birtdateFilter = (BirthdateRangeFilterComponent ) birthdateFilterForm .getComponent (0 );
481
+ birtdateFilter .getDateFromFilter ().setValue (newValue .getBirthdateFrom ());
482
+ birtdateFilter .getDateToFilter ().setValue (newValue .getBirthdateTo ());
483
+ birtdateFilter .getIncludePartialMatch ().setValue (newValue .isIncludePartialMatch ());
484
+
478
485
if (StringUtils .isBlank (newValue .getEventLike ())) {
479
486
clearAndDisableFields (ContactCriteria .ONLY_CONTACTS_SHARING_EVENT_WITH_SOURCE_CASE );
480
487
} else {
Original file line number Diff line number Diff line change @@ -226,5 +226,12 @@ protected void applyDependenciesOnNewValue(PersonCriteria criteria) {
226
226
birthDateDD .clear ();
227
227
birthDateDD .setEnabled (false );
228
228
}
229
+
230
+ //Birthdate Filter
231
+ HorizontalLayout birthdateFilterForm = (HorizontalLayout ) getMoreFiltersContainer ().getComponent (BIRTHDATE_RANGE_FILTER );
232
+ BirthdateRangeFilterComponent birtdateFilter = (BirthdateRangeFilterComponent ) birthdateFilterForm .getComponent (0 );
233
+ birtdateFilter .getDateFromFilter ().setValue (criteria .getBirthdateFrom ());
234
+ birtdateFilter .getDateToFilter ().setValue (criteria .getBirthdateTo ());
235
+ birtdateFilter .getIncludePartialMatch ().setValue (criteria .isIncludePartialMatch ());
229
236
}
230
237
}
You can’t perform that action at this time.
0 commit comments