コード例 #1
0
ファイル: CourseAction.java プロジェクト: an92/flSystem
 /**
  * 待审核列表
  *
  * @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";
 }
コード例 #2
0
ファイル: CourseAction.java プロジェクト: an92/flSystem
 @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";
 }
コード例 #3
0
ファイル: CourseAction.java プロジェクト: an92/flSystem
 public String delete() {
   try {
     stuDao.delOneStudent(stuId);
   } catch (Exception e) {
     e.printStackTrace();
     success = false;
   }
   return "delete";
 }
コード例 #4
0
ファイル: CourseAction.java プロジェクト: an92/flSystem
 public String save() {
   try {
     stuDao.save(stuInfo);
   } catch (Exception e) {
     e.printStackTrace();
     return Action.ERROR;
   }
   return "save";
 }
コード例 #5
0
ファイル: CourseAction.java プロジェクト: an92/flSystem
 /**
  * 已修课程导入
  *
  * @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";
 }