if (selectedPeriod == null) {
return;
}
final ImageSearchSpec spec = new ImageSearchSpec();
spec.setCode(ImageSearchSpec.PATIENT_SEARCH);
spec.setKarteId(getContext().getKarte().getId());
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";
spec.setFromDate(fromDate);
String[] toDate = new String[3];
toDate[0] = c0.getLastDate() + "T23:59:59";
toDate[1] = c1.getLastDate() + "T23:59:59";
toDate[2] = c2.getLastDate() + "T23:59:59";
spec.setToDate(toDate);*/
spec.setIconSize(new Dimension(IMAGE_WIDTH, IMAGE_HEIGHT));
final DocumentDelegater ddl = new DocumentDelegater();
DBTask task = new DBTask<List>(getContext()) {