1、湖南师范大学工学院电子与信息工程系课程设计报告书企业人事管理系统Hunan Normal UniversityELECTRONIC private JTable table;public FindBtnActionListener(Main frame, JTable talbe) this.frame = frame;this.table = frame.getTable();public void actionPerformed(ActionEvent e) / 获取被选中的条目字符String selectStr = (String) frame.getJc().getSelectedI
2、tem();EmployeeVO vo = new EmployeeVO();/ 当没有选择一个单项时if (selectStr = null) JOptionPane.showMessageDialog(null, “请选择查询条件!“);frame.getKey().setText(“);return;/ 判断选定了什么,然后进行查询if (“标识符“.equals(selectStr.trim()vo.setFlag(frame.getKey().getText();else if (“姓名“ .equals(selectStr.trim() vo.setName(frame.getKe
3、y().getText();System.out.println(vo.getName(); else if (“性别“.equals(selectStr.trim() vo.setSex(frame.getKey().getText(); else if (“民族“.equals(selectStr.trim() vo.setNation(frame.getKey().getText(); else if (“婚姻状况“ .equals(selectStr.trim() vo.setMarry(frame.getKey().getText(); else if (“籍贯“.equals(se
4、lectStr.trim() vo.setNative(frame.getKey().getText(); else if (“身份证号“ .equals(selectStr.trim() vo.setIDCard(frame.getKey().getText(); else if (“职称“.equals(selectStr.trim() vo.setZhiCheng(frame.getKey().getText(); else if (“状态“.equals(selectStr.trim() vo.setStatus(frame.getKey().getText(); else if (“
5、电话“.equals(selectStr.trim() vo.setTel(frame.getKey().getText(); else if (“学历“.equals(selectStr.trim() vo.setEducation(frame.getKey().getText(); else if (“专业“.equals(selectStr.trim() vo.setProfessfion(frame.getKey().getText(); else if (“学校“.equals(selectStr.trim() vo.setSchool(frame.getKey().getText(
6、); else if (“外语语种“ .equals(selectStr.trim() vo.setForeignLan(frame.getKey().getText(); else if (“配偶姓名“ .equals(selectStr.trim() vo.setSpouseName(frame.getKey().getText(); else if (“配偶民族“ .equals(selectStr.trim() vo.setSNation(frame.getKey().getText(); else if (“配偶籍贯“ .equals(selectStr.trim() System.out.println(“配偶籍贯“);vo.setSNative(frame.getKey().getText(); else if (“配偶电话“ .equals(selectStr.trim() vo.setSTel(frame.getKey().getText(); else if (“备注“.equals(selectStr.trim() vo.setRemark(frame.getKey().getText();/ 调用 model层的方法,将vo 对象传给model 层