Beispiel #1
0
 /**
  * 待审核列表
  *
  * @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";
 }
Beispiel #2
0
 @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";
 }
Beispiel #3
0
 public String delete() {
   try {
     stuDao.delOneStudent(stuId);
   } catch (Exception e) {
     e.printStackTrace();
     success = false;
   }
   return "delete";
 }
Beispiel #4
0
 public String save() {
   try {
     stuDao.save(stuInfo);
   } catch (Exception e) {
     e.printStackTrace();
     return Action.ERROR;
   }
   return "save";
 }
Beispiel #5
0
 /**
  * 已修课程导入
  *
  * @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";
 }