예제 #1
0
 // 更新发货人信息
 public String updateSender(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
   String resultPage = "/ss/bj?disclass=Sender&action=getSenderList";
   try {
     HashMap<String, String> dataMap = BaseTable.getSenderInput(request);
     GeneralManager.update(dataMap, "BeiJingSender");
   } catch (ACDException e) {
     request.setAttribute("ACDException", e.toString());
     resultPage = Constant.ERROR_JSP;
   } catch (Exception e) {
     e.printStackTrace();
     request.setAttribute("ACDException", e.toString());
     resultPage = Constant.ERROR_JSP;
   }
   return resultPage;
 }
예제 #2
0
 // 添加北京发货人信息
 public String addSender(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
   String resultPage = "/ss/bj?disclass=Sender&action=getSenderList";
   try {
     HashMap<String, String> hm = BaseTable.getSenderInput(request);
     hm.remove("ID");
     GeneralManager.create(hm, "BeiJingSender");
   } catch (ACDException e) {
     request.setAttribute(Constant.ERROR_EXCEPTION, e);
     resultPage = Constant.ERROR_JSP;
   } catch (Exception e) {
     e.printStackTrace();
     request.setAttribute(Constant.ERROR_EXCEPTION, new ACDException(e.toString()));
     resultPage = Constant.ERROR_JSP;
   }
   return resultPage;
 }
예제 #3
0
  // 添加新的付汇单
  @SuppressWarnings("unused")
  private String saveCustomerFuHui(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    String resultPage = "/ss/bj?disclass=Pay&action=getPayList";
    try {
      HashMap<String, String> fuHuiInput = BaseTable.getFuHuiInput(request);
      String receiveOrderIDS = request.getParameter("receiveOrderIDS");

      int iresult = payMoneyManager.saveCustomerFuHui(fuHuiInput, receiveOrderIDS);
      if (iresult == -1) {
        request.setAttribute(Constant.ERROR_EXCEPTION, "选择单据中有被其他付汇单据付过了!");
        resultPage = Constant.ERROR_PAGE;
      } else if (iresult == 0) {
        request.setAttribute(Constant.ERROR_EXCEPTION, "添加付汇单失败!");
        resultPage = Constant.ERROR_PAGE;
      }
    } catch (Exception e) {
      request.setAttribute(Constant.ERROR_EXCEPTION, e);
      resultPage = Constant.ERROR_JSP;
    }
    return resultPage;
  }