if (selectedEvent == null || selectedPeriod == null) {
return;
}
final ModuleSearchSpec spec = new ModuleSearchSpec();
spec.setCode(ModuleSearchSpec.ENTITY_SEARCH);
spec.setKarteId(getContext().getKarte().getId());
spec.setEntity(selectedEvent);
spec.setStatus("F");
// カレンダ別に検索する
Date[] fromDate = new Date[3];
fromDate[0] = ModelUtils.getDateTimeAsObject(c0.getFirstDate() + "T00:00:00");
fromDate[1] = ModelUtils.getDateTimeAsObject(c1.getFirstDate() + "T00:00:00");
fromDate[2] = ModelUtils.getDateTimeAsObject(c2.getFirstDate() + "T00:00:00");
spec.setFromDate(fromDate);
Date[] toDate = new Date[3];
toDate[0] = ModelUtils.getDateTimeAsObject(c0.getLastDate() + "T23:59:59");
toDate[1] = ModelUtils.getDateTimeAsObject(c1.getLastDate() + "T23:59:59");
toDate[2] = ModelUtils.getDateTimeAsObject(c2.getLastDate() + "T23:59:59");
spec.setToDate(toDate);
/*String[] fromDate = new String[3];
fromDate[0] = c0.getFirstDate() + "T00:00:00";
fromDate[1] = c1.getFirstDate() + "T00:00:00";
fromDate[2] = c2.getFirstDate() + "T00:00:00";