Пример #1
0
  public void editSchedule(Schedule sc) {
    HashMap<String, Object> params = new HashMap<String, Object>();

    params.put("title", sc.getTitle());
    params.put("cont", sc.getCont());
    params.put("stDate", sc.getEstDate());
    params.put("edDate", sc.getEedDate());
    params.put("classify", sc.getClassify());
    params.put("priority", sc.getPriority());
    params.put("category", sc.getCategory());
    params.put("makepublic", sc.getMakepublic());
    params.put("key", sc.getKey());

    scheduleMapper.editSchedule(params);
  }
Пример #2
0
  public int insertSchedule(Schedule sc) {

    HashMap<String, Object> params = new HashMap<String, Object>();
    params.put("title", sc.getTitle());
    params.put("cont", sc.getCont());
    params.put("stDate", sc.getStDate());
    params.put("edDate", sc.getEdDate());
    params.put("classify", sc.getClassify());
    params.put("priority", sc.getPriority());
    params.put("category", sc.getCategory());
    params.put("makepublic", sc.getMakepublic());
    params.put("s_id", sc.getS_id());
    params.put("repeat", sc.getRepeat());
    params.put("key", "");
    scheduleMapper.insertSchedule(params);
    int key = (int) params.get("key");
    return key;
  }
Пример #3
0
 @Override
 public List<ScRepeat> selectRepeat() {
   List<ScRepeat> sr = scheduleMapper.selectRepeat();
   return sr;
 }
Пример #4
0
 @Override
 public void insertRepeat(ScRepeat scRepeat) {
   scheduleMapper.insertRepeat(scRepeat);
 }
Пример #5
0
 public void deleteSchedule(int key) {
   scheduleMapper.deleteSchedule(key);
 }
Пример #6
0
  public Schedule editSelectSchedule(int key) {
    Schedule schedule = scheduleMapper.editSelectSchedule(key);

    return schedule;
  }
Пример #7
0
  public List<Schedule> selectSchedule() {

    List<Schedule> schedule = scheduleMapper.selectSchedule();

    return schedule;
  }