/*更新修改ScoreInfo信息*/
 public String ModifyScoreInfo() {
   ActionContext ctx = ActionContext.getContext();
   try {
     if (true) {
       Student_QQ287307421DAO student_QQ287307421DAO = new Student_QQ287307421DAO();
       Student_QQ287307421 studentNumber =
           student_QQ287307421DAO.GetStudent_QQ287307421ByStudentNumber(
               scoreInfo.getStudentNumber().getStudentNumber());
       scoreInfo.setStudentNumber(studentNumber);
     }
     if (true) {
       CourseInfo_QQ254540457DAO courseInfo_QQ254540457DAO = new CourseInfo_QQ254540457DAO();
       CourseInfo_QQ254540457 courseNumber =
           courseInfo_QQ254540457DAO.GetCourseInfo_QQ254540457ByCourseNumber(
               scoreInfo.getCourseNumber().getCourseNumber());
       scoreInfo.setCourseNumber(courseNumber);
     }
     scoreInfoDAO.UpdateScoreInfo(scoreInfo);
     ctx.put("message", java.net.URLEncoder.encode("ScoreInfo信息更新成功!"));
     return "modify_success";
   } catch (Exception e) {
     e.printStackTrace();
     ctx.put("error", java.net.URLEncoder.encode("ScoreInfo信息更新失败!"));
     return "error";
   }
 }
 /*添加ScoreInfo信息*/
 @SuppressWarnings("deprecation")
 public String AddScoreInfo() {
   ActionContext ctx = ActionContext.getContext();
   try {
     if (true) {
       Student_QQ287307421DAO student_QQ287307421DAO = new Student_QQ287307421DAO();
       Student_QQ287307421 studentNumber =
           student_QQ287307421DAO.GetStudent_QQ287307421ByStudentNumber(
               scoreInfo.getStudentNumber().getStudentNumber());
       scoreInfo.setStudentNumber(studentNumber);
     }
     if (true) {
       CourseInfo_QQ254540457DAO courseInfo_QQ254540457DAO = new CourseInfo_QQ254540457DAO();
       CourseInfo_QQ254540457 courseNumber =
           courseInfo_QQ254540457DAO.GetCourseInfo_QQ254540457ByCourseNumber(
               scoreInfo.getCourseNumber().getCourseNumber());
       scoreInfo.setCourseNumber(courseNumber);
     }
     scoreInfoDAO.AddScoreInfo(scoreInfo);
     ctx.put("message", java.net.URLEncoder.encode("ScoreInfo添加成功!"));
     return "add_success";
   } catch (Exception e) {
     e.printStackTrace();
     ctx.put("error", java.net.URLEncoder.encode("ScoreInfo添加失败!"));
     return "error";
   }
 }