예제 #1
0
  public List<Playorder> findPlayorders(Date month, int subject) throws Exception {
    Calendar calendar = new GregorianCalendar();
    calendar.setTime(month);

    Date startDate = new Date(month.getYear(), month.getMonth(), 1);
    Date endDate =
        new Date(
            month.getYear(), month.getMonth(), calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
    List<Playorder> orders =
        playorderDAO.findMonthPlayOrder(startDate, endDate, subject, -1, -1, true);
    return orders;
  }
예제 #2
0
 public Playchangelog getDelInfoFormArrangeLog(String videoID) throws Exception {
   List<Playchangelog> list =
       playorderDAO.findObjectByField(
           Playchangelog.class,
           Playchangelog.PROP_VEDIO_I_D,
           new Vediotape(videoID),
           -1,
           -1,
           Playchangelog.PROP_DATE,
           false);
   if (null == list || 0 == list.size()) return null;
   if (list.get(0).getOperation().equals("移除")) return list.get(0);
   return null;
 }
예제 #3
0
 public void savePlayorder(List<Playorder> pos, int userID) throws Exception {
   playorderDAO.savePlayorder(pos, userID);
 }
예제 #4
0
 public void deletePlayOrder(List<Playorder> pos, int userID) throws Exception {
   playorderDAO.deletePlayorder(pos, userID);
 }
예제 #5
0
 public Date getFirstArrangedDate() throws Exception {
   return playorderDAO.getFirstArrangedDate();
 }