, funcName));
}
@Override
protected void respond(AjaxRequestTarget target) {
AppointmentDao dao = Application.getBean(AppointmentDao.class);
Appointment a = dao.getAppointmentById(
getRequestCycle().getRequest().getRequestParameters().getParameterValue("_id").toLong());
int dayDelta = getRequestCycle().getRequest().getRequestParameters().getParameterValue("dayDelta").toInt();
int minuteDelta = getRequestCycle().getRequest().getRequestParameters().getParameterValue("minuteDelta").toInt();
Calendar cal = WebSession.getCalendar();
if (drop) {
cal.setTime(a.getAppointmentStarttime());
cal.add(Calendar.DATE, dayDelta);
cal.add(Calendar.MINUTE, minuteDelta);
a.setAppointmentStarttime(cal.getTime());
}
cal.setTime(a.getAppointmentEndtime());
cal.add(Calendar.DATE, dayDelta);
cal.add(Calendar.MINUTE, minuteDelta);
a.setAppointmentEndtime(cal.getTime());
dao.updateAppointment(a);
}