Exemplo n.º 1
0
 @Override
 public void initWindow() {
   yearlist.initCqYearlist(getXyUserRole().getDept().getKdSchid());
   Date now = new Date();
   List tlist =
       zbteacherService.findByYear(
           now.getYear() + 1900,
           getXyUserRole().getKdId(),
           tnoSearch.getValue(),
           nameSearch.getValue());
   if (tlist != null) {
     teacherlist.setModel(new ListModelList(tlist));
   } else {
     teacherlist.setModel(new ListModelList());
   }
 }
Exemplo n.º 2
0
 public void onClick$query() {
   Integer year;
   if (yearlist.getSelectedItem() != null) {
     year = Integer.parseInt(yearlist.getSelectedItem().getLabel());
   } else {
     Date now = new Date();
     year = now.getYear() + 1900;
   }
   List tlist =
       zbteacherService.findByYear(
           year, getXyUserRole().getKdId(), tnoSearch.getValue(), nameSearch.getValue());
   if (tlist != null) {
     teacherlist.setModel(new ListModelList(tlist));
   } else {
     teacherlist.setModel(new ListModelList());
   }
 }