/** * 待审核列表 * * @return */ public String checklist() { try { stuList = stuDao.getStuList("checked=1", getPage(), getRows()); specMap = DataPacked.specMap(); gradeList = stuDao.getGradeInfo(); } catch (Exception e) { e.printStackTrace(); return Action.ERROR; } return "checklist"; }
@SuppressWarnings("unchecked") public String edit() { try { stuInfo = (HashMap<String, String>) stuDao.getStuById(loginName); specMap = DataPacked.specMap(); bcMap = DataPacked.bigclassMap(); gradeList = stuDao.getGradeInfo(); } catch (Exception e) { e.printStackTrace(); return Action.ERROR; } return "edit"; }
public String delete() { try { stuDao.delOneStudent(stuId); } catch (Exception e) { e.printStackTrace(); success = false; } return "delete"; }
public String save() { try { stuDao.save(stuInfo); } catch (Exception e) { e.printStackTrace(); return Action.ERROR; } return "save"; }
/** * 已修课程导入 * * @return */ public String pcupload() { if (upload != null) { ExcelTool xls = new ExcelTool(); try { ArrayList<String[]> dataList = xls.readExcel(upload); setErrMsg(stuDao.importPCourseInfo(dataList)); } catch (Exception e) { e.printStackTrace(); setErrMsg(e.getMessage()); setSuccess(false); } } else { setErrMsg("没有文件上传..."); setSuccess(false); } return "upload"; }