汽车销售系统毕业论文 - 图文 联系客服

发布时间 : 星期三 文章汽车销售系统毕业论文 - 图文更新完毕开始阅读9244d47d5acfa1c7aa00cc08

华北水利水电学院毕业论文

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 list =dao.SQL(type,paging); if(list.size()==0){ message.add(\暂无此车\ return this.FAILURE; } request.setAttribute(\ request.setAttribute(\ request.setAttribute(\ return this.SUCCESS; }

@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 depotList=dao.listByPaging(paging); StaffDaoImpl dao2=(StaffDaoImpl) DAOFactory.createDAO(StaffDaoImpl.class,conn);

Map map=dao2.queryformap(); request.setAttribute(\ request.setAttribute(\ request.setAttribute(\ return this.SUCCESS; }

@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 carList = dao.carToDepot(stockId); request.setAttribute(\ request.setAttribute(\ return this.SUCCESS; }

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 list= dao.SQL(paging); request.setAttribute(\ request.setAttribute(\ return this.SUCCESS; }

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 depotList = dao.list(paging); request.setAttribute(\ request.setAttribute(\ request.setAttribute(\ request.setAttribute(\ return this.SUCCESS; }

@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 list=dao.SQL(paging); request.setAttribute(\ request.setAttribute(\ return this.SUCCESS; } }

1.15 5.4 销售管理

5.4.1 描述

该模块的主要功能就是对顾客的基本信息进行录入和修改,以及对客户订单的添加和修改功能。

5.4.2 模块流程图

- 40 -