Exemplo n.º 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;
 }
Exemplo n.º 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;
 }