/** 在题库保存完试卷后,回存高端班试卷 */
 public void savePaper() {
   GdbTestPaperAction ga = (GdbTestPaperAction) this.getViewAction("gdbTestPaperAction");
   try {
     Integer paperID = this.getIntegerRequestParameterByMap("paperID");
     Integer paperViewID = this.getIntegerRequestParameterByMap("paperViewID");
     Integer studyPlanID = this.getIntegerRequestParameterByMap("studyPlanID");
     String paperName = this.getRequestParameterByMap("paperName");
     Integer paperType = this.getIntegerRequestParameterByMap("paperType");
     String testTime = this.getRequestParameterByMap("testTime");
     String paperDesc = this.getRequestParameterByMap("paperDesc");
     addPaper = new GdbTestPaper();
     addPaper.setPaperID(paperID);
     addPaper.setPaperViewID(paperViewID);
     addPaper.setStudyPlanID(studyPlanID);
     addPaper.setPaperType(paperType.shortValue());
     addPaper.setTestTime(DateUtil.stringToDate(testTime, "yyyy-MM-dd HH:mm:ss"));
     addPaper.setPaperName(paperName);
     addPaper.setCreateUserId(this.getCurrentUserID());
     addPaper.setCreateTime(new Date());
     addPaper.setPaperDesc(paperDesc);
     gdbTestPaperFacade.add(addPaper);
     submitSuccess = 1;
     ga.search();
   } catch (Exception e) {
     e.printStackTrace();
     submitSuccess = -1;
   }
   this.addCallbackParam("result", submitSuccess);
 }
 /**
  * 添加/修改
  *
  * @param flag
  */
 public void updateSubmit() {
   GdbTestPaperAction ga = (GdbTestPaperAction) this.getViewAction("gdbTestPaperAction");
   Integer studyPlanID = ga.getStudyPlanID();
   boolean f = false;
   if (flag == 0) {
     addPaper.setStudyPlanID(studyPlanID);
   }
   f = gdbTestPaperFacade.check(addPaper, flag);
   if (f) {
     try {
       if (flag == 0) {
         this.executeScript(
             "add("
                 + studyPlanID
                 + ",'"
                 + addPaper.getPaperName()
                 + "',"
                 + addPaper.getPaperType()
                 + ",'"
                 + DateUtil.getNowDateString(addPaper.getTestTime(), "yyyy-MM-dd HH:mm:ss")
                 + "','"
                 + addPaper.getPaperDesc()
                 + "',"
                 + ga.getCourseID()
                 + ",'"
                 + Contants.qzConsoleSavePaper
                 + "',"
                 + this.getCurrentUserID()
                 + ")");
       } else {
         gdbTestPaperFacade.update(addPaper);
         submitSuccess = 1;
         ga.search4U();
         this.executeScript("optResultjs(" + submitSuccess + "," + flag + ")");
       }
     } catch (Exception e) {
       submitSuccess = -1;
       this.executeScript("optResultjs(" + flag + ")");
       e.printStackTrace();
     }
   }
 }