Package org.apache.openmeetings.db.dao.calendar

Examples of org.apache.openmeetings.db.dao.calendar.AppointmentDao


        dialog.open(target);
      }
     
      @Override
      public void onEventDrop(AjaxRequestTarget target, int eventId, long delta, boolean allDay) {
        AppointmentDao dao = getDao();
        Appointment a = dao.get((long)eventId);
       
        java.util.Calendar cal = WebSession.getCalendar();
        cal.setTime(a.getStart());
        cal.add(java.util.Calendar.MILLISECOND, (int)delta); //FIXME?
        a.setStart(cal.getTime());
       
        cal.setTime(a.getEnd());
        cal.add(java.util.Calendar.MILLISECOND, (int)delta); //FIXME?
        a.setEnd(cal.getTime());
       
        dao.update(a, getUserId());
        //FIXME add feedback info
      }

      @Override
      public void onEventResize(AjaxRequestTarget target, int eventId, long delta) {
        AppointmentDao dao = getDao();
        Appointment a = dao.get((long)eventId);
        java.util.Calendar cal = WebSession.getCalendar();
        cal.setTime(a.getEnd());
        cal.add(java.util.Calendar.MILLISECOND, (int)delta); //FIXME?
        a.setEnd(cal.getTime());
       
        dao.update(a, getUserId());
        //FIXME add feedback info
      }
    };
   
    form.add(calendar);
View Full Code Here


        dialog.open(target);
      }
     
      @Override
      public void onEventDrop(AjaxRequestTarget target, int eventId, long delta, boolean allDay) {
        AppointmentDao dao = getDao();
        Appointment a = dao.get((long)eventId);
       
        java.util.Calendar cal = WebSession.getCalendar();
        cal.setTime(a.getStart());
        cal.add(java.util.Calendar.MILLISECOND, (int)delta); //FIXME?
        a.setStart(cal.getTime());
       
        cal.setTime(a.getEnd());
        cal.add(java.util.Calendar.MILLISECOND, (int)delta); //FIXME?
        a.setEnd(cal.getTime());
       
        dao.update(a, getBaseUrl(), getUserId());
        //FIXME add feedback info
      }

      @Override
      public void onEventResize(AjaxRequestTarget target, int eventId, long delta) {
        AppointmentDao dao = getDao();
        Appointment a = dao.get((long)eventId);
        java.util.Calendar cal = WebSession.getCalendar();
        cal.setTime(a.getEnd());
        cal.add(java.util.Calendar.MILLISECOND, (int)delta); //FIXME?
        a.setEnd(cal.getTime());
       
        dao.update(a, getBaseUrl(), getUserId());
        //FIXME add feedback info
      }
    };
   
    form.add(calendar);
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.dao.calendar.AppointmentDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.