/**
  * bsc.departmentReportExcelQueryAction.action
  *
  * @return
  * @throws Exception
  */
 @ControllerMethodAuthority(programId = "BSC_PROG003D0003Q")
 public String doExcel() throws Exception {
   try {
     if (!this.allowJob()) {
       this.message = this.getNoAllowMessage();
       return SUCCESS;
     }
     this.getExcel();
   } catch (ControllerException ce) {
     this.message = ce.getMessage().toString();
   } catch (AuthorityException ae) {
     this.message = ae.getMessage().toString();
   } catch (ServiceException se) {
     this.message = se.getMessage().toString();
   } catch (Exception e) { // 因為是 JSON 所以不用拋出 throw e 了
     e.printStackTrace();
     if (e.getMessage() == null) {
       this.message = e.toString();
       this.logger.error(e.toString());
     } else {
       this.message = e.getMessage().toString();
       this.logger.error(e.getMessage());
     }
     this.success = IS_EXCEPTION;
   }
   return SUCCESS;
 }
예제 #2
0
 @ControllerMethodAuthority(programId = "BSC_MOBILE_INDEX")
 public String execute() throws Exception {
   try {
     this.initData();
   } catch (ControllerException e) {
     this.setPageMessage(e.getMessage().toString());
   } catch (ServiceException e) {
     this.setPageMessage(e.getMessage().toString());
   } catch (Exception e) {
     e.printStackTrace();
     this.setPageMessage(e.getMessage().toString());
   }
   return SUCCESS;
 }
 /** bsc.degreeFeedbackProjectManagementGridQueryAction.action */
 @ControllerMethodAuthority(programId = "BSC_PROG005D0001Q")
 public String execute() throws Exception {
   try {
     if (!this.allowJob()) {
       this.message = this.getNoAllowMessage();
       return SUCCESS;
     }
     this.query();
   } catch (ControllerException ce) {
     this.message = ce.getMessage().toString();
   } catch (AuthorityException ae) {
     this.message = ae.getMessage().toString();
   } catch (ServiceException se) {
     this.message = se.getMessage().toString();
   } catch (Exception e) {
     e.printStackTrace();
     this.message = e.getMessage().toString();
     this.logger.error(e.getMessage());
     this.success = IS_EXCEPTION;
   }
   return SUCCESS;
 }