Ejemplo n.º 1
0
 public void fillStaffTableWithVO(InstitutionVO vo) {
   institutionID = vo.getInstitutionID();
   if (vo != null) {
     initLabel(vo);
     List<StaffVO> staffVOs = manageblStaffService.getStaffByInstitution(vo.getInstitutionID());
     this.staff_TableView.setItems(FXCollections.observableList(staffVOs));
   } else {
     System.err.println("wrong in fillStaffTableWithVO : input vo is null");
   }
 }
Ejemplo n.º 2
0
 public void fillStaffTable(String institutionID) {
   InstitutionVO vo = null;
   if (institutionID.charAt(3) == '0') {
     vo = manageblCenterService.searchCenter(institutionID);
   } else { // not in center
     vo = manageblHallService.searchHall(institution_Field.getText());
   }
   if (vo == null) { // neither in center nor in hall
     informController.informWrong("请输入正确的机构编号");
     return;
   } else {
     this.institutionID = vo.getInstitutionID();
     initLabel(vo);
     List<StaffVO> staffVOs = manageblStaffService.getStaffByInstitution(vo.getInstitutionID());
     this.staff_TableView.setItems(FXCollections.observableList(staffVOs));
   }
 }