华北水利水电学院毕业论文
DepotDaoImpl dao=(DepotDaoImpl) DAOFactory.createDAO(DepotDaoImpl.class,conn);
int ret=dao.insert(dto); if(ret!=0){ return this.SUCCESS; } return this.FAILURE; }
protected String list(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{
String type=request.getParameter(\ type = new String(type.getBytes(\ int orderId=Integer.parseInt(request.getParameter(\ CarDaoImpl dao=(CarDaoImpl) DAOFactory.createDAO(CarDaoImpl.class,conn);
paging=dao.getPaging(); this.initPaging(request); List
@Override
protected String listByPaging(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { DepotDaoImpl dao=(DepotDaoImpl) DAOFactory.createDAO(DepotDaoImpl.class,conn);
paging=dao.getPaging(); this.initPaging(request);
List
Map
@Override
// protected String update(HttpServletRequest request,
- 37 -
华北水利水电学院毕业论文
// HttpServletResponse response) throws ServletException, IOException { // DepotDaoImpl dao = (DepotDaoImpl) DAOFactory.createDAO(DepotDaoImpl.class, conn);
// // }
protected DTO initDTO(HttpServletRequest request) { return null; }
protected boolean validate(DTO dto) { return false; }
protected String add(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int stockId = Integer.parseInt(request.getParameter(\ DepotDaoImpl dao = (DepotDaoImpl) DAOFactory.createDAO(DepotDaoImpl.class, conn);
List
public String find3(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { OrderListDaoImpl dao = (OrderListDaoImpl) DAOFactory.createDAO(OrderListDaoImpl.class, conn);
paging=dao.getPaging(); this.initPaging(request);
List
public String find2(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int ret=0;
String carId=request.getParameter(\
int depot=Integer.parseInt(request.getParameter(\int order=Integer.parseInt(request.getParameter(\
DepotDaoImpl dao = (DepotDaoImpl) DAOFactory.createDAO(DepotDaoImpl.class, conn);
ret=dao.SQL3(carId, depot, order); if(ret!=0){
- 38 -
华北水利水电学院毕业论文
return this.SUCCESS; }
return this.FAILURE; }
public String find1(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int ret=0;
int stockId=Integer.parseInt(request.getParameter(\String carId=request.getParameter(\
DepotDaoImpl dao = (DepotDaoImpl) DAOFactory.createDAO(DepotDaoImpl.class, conn);
int depotId = Integer.parseInt(request.getParameter(\ DepotDTO dto=new DepotDTO(); dto.setDepotId(depotId); ret=dao.update(dto); CarDTO car=new CarDTO(); car.setEngineId(carId); car.setDepotId(depotId); ret=dao.SQL1(car);
StockListDTO stock=new StockListDTO(); stock.setStockId(stockId); int temp=dao.SQL2(stock);
request.setAttribute(\ if(ret!=0){ if(temp==0){ message.add(\号进货单入库已完成\ return this.FAILURE; } return this.SUCCESS; }
return this.FAILURE; }
public String others(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int stockId = Integer.parseInt(request.getParameter(\ String carId=request.getParameter(\ DepotDaoImpl dao = (DepotDaoImpl) DAOFactory.createDAO(DepotDaoImpl.class, conn);
paging=dao.getPaging(); this.initPaging(request); List
@Override
protected String update(HttpServletRequest request,
- 39 -
华北水利水电学院毕业论文
HttpServletResponse response) throws ServletException, IOException { return FAILURE;
}
protected String listPaging(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException{
StockListDaoImpl dao=(StockListDaoImpl) DAOFactory.createDAO(StockListDaoImpl.class,conn);
paging=dao.getPaging(); this.initPaging(request); List
1.15 5.4 销售管理
5.4.1 描述
该模块的主要功能就是对顾客的基本信息进行录入和修改,以及对客户订单的添加和修改功能。
5.4.2 模块流程图
- 40 -
相关推荐: