예제 #1
0
 public void doPost(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
   String method = request.getParameter("ac");
   if (method != null) {
     if (method.equals("savePlanMaster")) {
       savePlanMaster(request, response);
     } else if (method.equals("exportData")) {
       try {
         exportData(request, response);
       } catch (ExcelPortException e) {
         e.printStackTrace();
       } catch (DbPropertyException e) {
         e.printStackTrace();
       } catch (SQLException e) {
         e.printStackTrace();
       }
     } else if (method.equals("exportFundData")) {
       try {
         exportFundData(request, response);
       } catch (ExcelPortException e) {
         e.printStackTrace();
       } catch (DbPropertyException e) {
         e.printStackTrace();
       } catch (SQLException e) {
         e.printStackTrace();
       }
     }
   }
 }
예제 #2
0
 public void doPost(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
   String method = request.getParameter("ac");
   if (method != null) {
     if (method.equals("businessStatistics")) {
       businessStatistics(request, response);
     } else if (method.equals("exportDataByTemp")) {
       try {
         exportDataByTemp(request, response);
       } catch (ExcelPortException e) {
         e.printStackTrace();
       } catch (DbPropertyException e) {
         e.printStackTrace();
       } catch (SQLException e) {
         e.printStackTrace();
       }
     } else if (method.equals("exportDataByHssf")) {
       try {
         exportDataByHssf(request, response);
       } catch (ExcelPortException e) {
         e.printStackTrace();
       } catch (DbPropertyException e) {
         e.printStackTrace();
       } catch (SQLException e) {
         e.printStackTrace();
       }
     }
   }
 }