基于JAVA超市账单管理系统毕业设计(含源文件)_第1页
基于JAVA超市账单管理系统毕业设计(含源文件)_第2页
免费预览已结束,剩余48页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、毕业设计说明书题目: 超市账单管理系统1 PAGE * ROMAN IV超市账单管理系统摘要: 随着科学技术的不断发展,计算机越来越普及,随之各种软件也相应而出。许许多多的企业也用上了相应的软件,来加快自身的发展。由于超市行业的不断壮大,也需要一套软件来相应的软件来管理。 在这种情况下超市账单管理系统也应运而生。 超市账单管理系统主要是对超市账单、供应商、用户的简单管理。本系统主要用java 语言进行开发, mysql 数据库和 Eclipse开发工具; 主要用的核心技术是Servlet,用来处理用户的请求和页面之间的跳转, JDBC(Java Data Base Connectivity)连

2、接数据库实现处理与数据库的交互。 主要用的美工技术是 div+css ,javaScript处理页面显示效果。本系统能更快,更方便的管理好整个工作流程中的各个模块,使工作效率达到最优化。关键词 :java ; Servlet; div+css ; javaScript; mysql ;超市账单管理系统;Title : Supermarket Bill Management SystemAbstract: Along with the science and technology unceasing development, the computer moreand more popular,

3、witha variety ofsoftware isout. Manycompanies also use the corresponding software, to accelerate the development of oneself. As a result of Supermarket has grown, also need a set of software to the software to management. In this case the supermarket billmanagement system also emerge as the times re

4、quire. Supermarket billmanagement system is mainly the easy management of supermarket bills, suppliers, users.This system is mainly the use of Java language development, databasemysql and Eclipse development tools; the main core technology is Servlet, It used to handle user requests andjump between

5、pages. JDB(C Java Data Base Connectivity)used to handle the interaction with the database .Mainly using artist technical is div+cs,s javaScript, handling page display effect. This system can be faster, more convenient managementof the whole working process of each module, so that the work efficiency

6、 is optimized.Keywords: java ,Servlet,div+css,javaScript,mysql,Supermarket bill management system目 录摘 要 IAbstractII1 正文 11.1 研究背景分析 1.1.2 超市账单管理系统的概述 2.1.3 所需软、硬件技术准备 2.1.4 可行性分析 技术可行性 经济可行性 社会可行性 3.2 需求分析 42.1 需求分析的任务及主要内容 具体业务的需求 4.2.2 层次图 42.3 数据流图 5.3 概要设计 53.1系统分

7、析 系统的总体分析 6.3.2 数据库的设计与实现 数据库系统分析 数据库物理实现 7.4 详细设计 94.1 Servlet的详细应用 9.4.2特定模块的详细介绍 登陆模块 94.2.2 账单管理模块 1 供应商管理模块 2 用户管理模块 2 6.5 系统测试 3.3.结 语 3.4.注 释 3.4.参考文献 3.5.致 谢 3.7.附录 1 3.8.1 正文研究背景分析超级市场是以顾客自选方式经营的大型综合性零售商场,又称自选商场。是许多国家特别是经济发达国家的主要商品零售组织形式。超级市场于

8、 20 世纪 30 年代初最先出现在美国东部地区。我国超市市场形成于 20 世纪 90 年代初期,现在已经成为我国零售业的一种重要形态,为国民经济的发展发挥了重要的作用。随着超市行业的高速发展,最初的售货员站柜台的销售方式已不能满足现有的销售业的发展,因此迫切的需要引入新的管理技术。随着科学技术的高速发展,信息技术已经深深的影响着我国各行各业的发展。步入数字化时代,有巨大的数据信息等待着加工处理和传输,超市系统本就需要有一个强大的数据库支持,这就需要对数据库进一步的开发和利用,而对超市的销售管理,信息的存储和处理也显的尤其重要。要适应如今激烈的市场竞争,就需要有高效的处理方式和管理方法,因此加

9、快超市的信息化进程是必不可少的。超市虽然具有各种优点,但当下,它仍存在零售企业所共有的落后的一面,例如:不能有效的管理每种商品、收款结算速度慢,容易出现营业差错,不易进行商品调价,盘库效率低,而且商品的进、销、存不能保证同步更新,缺乏实时分析功能,管理人员对及时传递资料的要求始终得不到满足。随着超市形态的高速发展,其经营管理也变的越为复杂,数据库的庞大支撑导 致中间流通的数据量大增,中间的商业运转环节也越来越多,传统的管理模式已不 能满足,而依靠现信息技术的超市管理系统管理超市,可以节省大量的人力物力, 更重要的是能更快更稳的推动超市销售发展,协助管理者做出与时俱进适应市场变化的正确决策,加快

10、超市经营管理效率。超市管理系统是超市对商品的信息化管理系统,本系统可以提高管理水平和工作效率,可以最大限度的减少人工操作带来的错误,使用此系统主要为了实现商品 管理的稳定性、可维护性等,从而达到提高商品管理效率并指导经营方向的目的。1 PAGE 36超市账单管理系统的概述本系统的主要功能就是完成对供应商往来账添加的功能,每一批到货情况, 是否付款等情况在这个管理模块中进行记录,并且标有记账时间,似的数据有依可循,供随时查询。 此外可以根据商品的名称查出是否记录过, 是否已经付款的功能。实现供应商信息的添加查询功能。本项目设计主要包括需求分析、数据库设计、项目设计、界面设计、调试及运行等几个大的

11、部分。工作在迭代中展开,通过不断的完善每个环节,最终完成超市管理的需求,实现自动化办公。经过调研的初步需求分析,得出要设计的主要模块包括:)账单管理模块,主要是管理超市账单,账单的编号、商品名称、商品数量、交易金额、是否付款、供应商名称、商品描述、账单时间。然后计算出顾客购买商品的总价,计算顾客实付金额和应付金额的差价。减少人工计算产生的错误。)供应商管理模块,主要管理与超市合作的供应商,有编号、供应商名称、供应商描述、联系人、电话、地址。)用户管理模块,主要管理管理超市的用户,有编号、用户名称、性别、年龄、电话、地址、权限。用户管理信息化,减少了人力资源的浪费。所需软、硬件技术准备本系统的开

12、发是面向数据库应用程序的开发。目前数据库技术发展日趋完善,可用于数据库开发的工具各种各样。 本系统是采用 mysql 作为后台数据库 ,本系统是运行在 Window XP 平台上的,因此考虑到兼容性、开发成本以及开发的方便和简单,本系统使用免费的Eclipse 开发平台。为了高效、快捷的采购出库入库管理系统的开发。采取如下开发环境: 网络环境:局域网。硬件环境:内存 1G,硬盘 80G。软件环境:操作系统: Windows XP 版本。数据库开发工具: mysql。(3)应用程序开发工具: Eclipse。技术准备:(1)java 基础(2)jsp 技术(3)Servlet 技术(4) htm

13、l,css (5)jquery 的相关知识可行性分析技术可行性本系统戏是用 java 语言所编写的, java 语言作为前导课程已经学过。重点学习了 jsp,最后又系统的学习了 Servlet, Servlet 这同时又是本系统应用的重点。从设计,开发,测试到最后的维护,都综合了所学的java 知识。本系统所实现的是超市账单管理,因此在给定的时间内完成是绝对可行。制作本系统的软件均可以在网上 免费获得,同时也可以获得开源的代码和图片。本组的技术人员有开发此类项目的 经验。综上所述,此系统开发有可靠的技术支持,技术上是完全可行的。经济可行性对本组的经济现状和投资能力进行分析,对系统建设运行和维护

14、费用进行估算,对系统建成后可能取得的社会和经济效益进行估计。由于本系统是作为毕业设计由我们学生自己开发的,在经济上的投入甚微,系统建成之后将为超市行业提供很大的方便,因此在经济上是可行的。社会可行性本系统编程所使用的是网上的开源代码和图片,又不以获利为目的。因此不必承担任何法律责任2 需求分析2.1 需求分析的任务及主要内容具体业务的需求主要模块包括:)账单管理模块,主要是管理超市账单,账单的编号、商品名称、商品数量、交易金额、是否付款、供应商名称、商品描述、账单时间。然后计算出顾客购买商品的总价,计算顾客实付金额和应付金额的差价。减少人工计算产生的错误。)供应商管理模块,主要管理与超市合作的

15、供应商,有编号、供应商名称、供应商描述、联系人、电话、地址。)用户管理模块,主要管理管理超市的用户,有编号、用户名称、性别、年龄、电话、地址、权限。用户管理信息化,减少了人力资源的浪费。2.2 层次图软件账供用单应户管商管理管理模块理模模块块图 2-1 层次图2.3 数据流图账单管理登 陆数据维护经理供应商管理存入数据库用户管理图 2-2登 陆账单管理数据维护普 通 用 户存入数据库供应商管理图 2-3概要设计系统分析在本系统中, 分为基本信息的账单管理模块, 供应商管理模块, 用户管理模块。有 2 个角色:经理、普通用户名。1用户所具有功能经理拥有所有的模块的操作权限,普通用户除了对用户管理

16、模块的操作权限意外所有模块的操作权限:对账单表,供应商表增删改查。3.1.1 系统的总体分析在前面的系统功能分析中,将系统划分成4 个模块,如图 3-1 :用户登录普通用户经理验证账单管理供应商管理用户管理图 3-1系统功能模块图数据库的设计与实现数据库是此类系统的核心,系统中所有的信息都存储在数据库中,在所有jsp 页面中通过 JDBC与数据库连接,操作数据库中的数据,从而实现所有需要的功能。数据库软件有很多。本系统中数据库采用MySQL作为数据库工具。数据库是网站的核心,数据库设计的合理与否对网站的建设有着至关重要的影响。一个良好的数据库开发过程一般是先系统分析,再逻辑设计,然后物理实现。

17、系统分析中分析数据库用户需求,并画出 E-R图直观地表示出数据库系统的需求。逻辑设计中根据系统分析设计的一个关系模型。 物理设计为逻辑设计中的数据模型选取一个最合理的应用环境的物理结构,通常选取一个常用数据库软件,用数据库软件创建与逻辑设计中数据模型对应的数据库。数据库系统分析本系统的数据库实体主要有“账单” 、“供应商”、“用户”。其中“账单”中的物品与“供应商”存在着联系,一个账单必须对应一个供应商,但供应商不一定只有 一份账单,即供应商和账单之间一多对多的关系。如图:3-1账单M拥有1供应商图 3-1账单供应商E-R 图数据库物理实现经过数据库系统分析后,数据库的结构已经非常清晰,剩下的

18、就是用一种数据 库软件实现这样的结构。本系统中数据库采用MySQL 作为数据库。首先我们在MySQL 中建一个数据库,命名为“ supermarket”。 选中 supermarket数据库,向数据库中添加 3 个表: gongyingshang ,yonghu, zhangdan。下面是每个数据表中的属性。gongyingshang 表。gongyingshang 表用来存储供应商信息。gongyingshang表字段名称数据类型gys_id数字gys_name文本gys_miaoshu文本gys_lianxiren文本gys_phone文本gys_chuanzhen数字gys_addres

19、s数字表 3-1yonghu 表。yonghu 表用来存储领登陆用户明细。yonghu表字段名称数据类型yh_id数字yh_username文本yh_password文本yh_sex文本yh_age数字yh_phone数字yh_address文本yh_quanxian文本表 3-2zhangdan 表。zhangdan 表用来存储账单的信息。zhangdan字段名称表数据类型zd_idzd_spmingcheng数字文本zd_spshuliang数字zd_jymoney数字zd_sfzhifu文本zd_gysname文本zd_spmiaoshu文本zd_data文本zd_danwei文本表 3

20、-3详细设计Servlet 的详细应用在 Servlet工作流程中, 根据 web.xml 中的配置将拦截所有通过 servlet的请求,并根据 URI 决定分发给 doGet 还是 doPost 处理请求,然后调用相应的业务逻辑方法,调用相应的页面去执行响应。利用JDBC(Java Data Base Connectivity)技术处理与数据库连接,利用其 ServletAPI 所定义的接口和类来封装与数据库交互的相关操作,使对数据库的操作变得相当容易,减少开发时间,而且能对系统进行灵活的设计和实现,使系统的各模块容易维护和重用。特定模块的详细介绍每个包都有其各自的作用, 是杂乱的 java

21、 文件分层, 具有层次感, 也可以很好地进行维护。登陆模块输入不同的角色名就会进入不同的模块,并完成相应的功能;登陆模块如图4-1 所示如图 4-1代码: public class HandelLogin extends HttpServlet UserOper oper=new UserOper();public void init(ServletConfig config)throws ServletException super.init(config);public void destroy() super.destroy();public void doGet(HttpServlet

22、Request request, HttpServletResponse response) throws ServletException, IOException this.doPost(request, response);public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOExceptionrequest.setCharacterEncoding(utf-8); response.setCharacterEncoding(utf-8);

23、response.setContentType(text/html;charset=utf-8); HttpSession session=request.getSession(true); String op = request.getParameter(op);String opg= request.getParameter(opg); String opyh = request.getParameter(opyh);String zdgroup=request.getParameter(zdgroup); System.out.println(zdgroup);String gysgro

24、up=request.getParameter(gysgroup); Login judgeLogin = (Login)(session.getAttribute(login); if (doLogin.equals(op) doLogin(request, response);return;if (judgeLogin!=null&!.equals(judgeLogin)if( 经理.equals(judgeLogin.getYh_quanxian()if (ZD.equals(op)doLnquiresZD(request,response); else if(ZDAdd.equals(

25、op) doZDAdd(request,response); else if(ZDXinXi.equals(op)doZDXinXi(request,response); else if( 修 改.equals(op)doZDXiuGai(request,response); else if( 删 除.equals(op)doZDDel(request,response); else if( 组合查询 .equals(zdgroup) doZDChaXun(request,response); else if(GYS.equals(op)doLnquiresGYS(request,respon

26、se); else if(GYSAdd.equals(op)doGYSAdd(request,response); else if(GYSXinXi.equals(op) doGYSXinXi(request,response); else if( 修 改 .equals(opg) doGYSXiuGai(request,response); else if( 删 除 .equals(opg) doGYSDel(request,response); else if( 组 合 查 询 .equals(gysgroup) doGYSChaXun(request,response); else if

27、(YH.equals(op)doLnquiresYH(request,response); else if(YHAdd.equals(op)doYHAdd(request,response); else if(YHXinXi.equals(op) doYHXinXi(request,response); else if( 修 改.equals(opyh)doYHXiuGai(request,response); else if( 删 除 .equals(opyh) doYHDel(request,response); else if( 查 询 .equals(opyh) doYhChaXun(

28、request,response); else if( 修 改 密 码 .equals(opyh) doYHMiMa(request,response); else if( 修 改 密 码 .equals(op) doAdminMiMaXiuGai(request,response);if( 普通用户 .equals(judgeLogin.getYh_quanxian()if (ZD.equals(op)doLnquiresZD(request,response);.equals(opyh)|.equals(opyh)| else if(ZDAdd.equals(op) doZDAdd(req

29、uest,response); else if(ZDXinXi.equals(op)doZDXinXi(request,response); else if( 修 改.equals(op)doZDXiuGai(request,response); else if( 删 除.equals(op)doZDDel(request,response); else if( 组合查询 .equals(zdgroup) doZDChaXun(request,response); else if(GYS.equals(op)doLnquiresGYS(request,response); else if(GY

30、SAdd.equals(op) doGYSAdd(request,response); else if(GYSXinXi.equals(op) doGYSXinXi(request,response); else if( 修 改 .equals(opg) doGYSXiuGai(request,response); else if( 删 除 .equals(opg) doGYSDel(request,response); else if( 组 合 查 询 .equals(gysgroup) doGYSChaXun(request,response); else if(YH.equals(op)

31、| 修 改 密 码 .equals(op)| 修 改 密 码 查 询 .equals(opyh)| 删除 .equals(opyh)| 修改YHXinXi.equals(op)|YHAdd.equals(op) Information info=new Information();String msg=对不起您没有那么高的权限 ;info.setMsg(msg);request.setAttribute(info, info);request.getRequestDispatcher(mainWindow.jsp).forward(request, response);elseresponse

32、.sendRedirect(login.jsp);管理员(用户)登陆以后就会进入总页面如图:4-2 所示:在左侧可以看到管理员进来后(普通用户)各自的权限。管理员登陆:如图 4-2普通用户登陆:如图 4-3账单管理模块管理员权限下的功能操作及代码如图 4-4代码:private void doLnquiresZD(HttpServletRequest request,HttpServletResponse responseth) rows ServletException,IOException HttpSession session=request.getSession();List lis

33、t= oper.ZDLnquires(); List gysName=oper.ZDGongYiShang(); if(list!= null)request.setAttribute(list , list); session.setAttribute(gysName, gysName);request.getRequestDispatcher(admin_bill_list.jsp ).forward(request,response);return ; elseresponse.sendRedirect(admin_bill_list.jsp );private void doZDCha

34、Xun(HttpServletRequest request,HttpServletResponse responseth) rows ServletException,IOException String zd_spmingcheng=request.getParameterc(ommodityname); String zd_sfzhifu=request.getParameter(payment); System.out.println(zd_spmingcheng);System.out.println(zd_sfzhifu);List list= oper.ZDChaXun(zd_s

35、pmingcheng,zd_sfzhifu);if(list!= null)request.setAttribute(list , list); request.getRequestDispatcher(admin_bill_list.jsp ).forward(request,response);return ; elseresponse.sendRedirect(admin_bill_list.jsp );代码:private void doZDAdd(HttpServletRequest request,HttpServletResponse responseth) rows Servl

36、etException,IOException String zd_id=request.getParameter(zdid ).trim();String zd_spmingcheng=request.getParameterz(dproductname).trim(); String zd_spshuliang=request.getParameterz(dtransnunber).trim(); String zd_jymoney=request.getParameter(zdtransmoney).trim(); String zd_sfzhifu=request.getParamet

37、er(payment).trim();String zd_gysname=request.getParameterz(dproducmanufacture).trim(); String zd_spmiaoshu=request.getParameterz(dproducdesc).trim();String zd_danwei=request.getParameterz( dtransunits).trim();String zd_data=new SimpleDateFormat(yyyy-MM-dd ).format( newDate().getTime();List params =

38、new ArrayList(); params.add(zd_id); params.add(zd_spmingcheng); params.add(zd_spshuliang); params.add(zd_jymoney); params.add(zd_sfzhifu); params.add(zd_gysname); params.add(zd_spmiaoshu); params.add(zd_data); params.add(zd_danwei);response);Information info= oper.ZDAdd(params); request.setAttribute

39、(info , info);request.getRequestDispatchera( dmin_bill_add.jsp ).forward(request,代码:private void doZDXinXi(HttpServletRequest request,HttpServletResponse responset)hrows ServletException,IOException String zd_id =request.getParameter(id );ZDBean zdbean =new ZDBean();zdbean=oper.ZDXinXi(zd_id);if(zdb

40、ean!=null) request.setAttribute(zdbean, zdbean);request.getRequestDispatcher(admin_bill_update.jsp).forward(request,response);如图 4-5代码:private void doZDXiuGai(HttpServletRequest request,HttpServletResponse responseth) rows ServletException,IOException String zd_id=request.getParameter(zdid ).trim();

41、String zd_spmingcheng=request.getParameterz(dproductname).trim(); String zd_spshuliang=request.getParameterz(dtransnunber).trim(); String zd_jymoney=request.getParameter(zdtransmoney).trim(); String zd_sfzhifu=request.getParameter(payment).trim();String zd_gysname=request.getParameterz(dproducmanufa

42、cture).trim();String zd_spmiaoshu=request.getParameterz(dproducdesc).trim(); String zd_danwei=request.getParameterz( dtransunits).trim();List params = new ArrayList(); params.add(zd_id); params.add(zd_spshuliang); params.add(zd_jymoney); params.add(zd_sfzhifu); params.add(zd_gysname); params.add(zd_

43、spmiaoshu); params.add(zd_danwei); params.add(zd_spmingcheng); Information info= oper.ZDXiuGai(params); request.setAttribute(info , info);request.getRequestDispatcher(admin_bill_update.jsp).forward(request, response);private void doZDDel(HttpServletRequest request,HttpServletResponse responseth) row

44、s ServletException,IOException String zd_id=request.getParameter(zdid ).trim();Information info= oper.ZDDel(zd_id); request.setAttribute(info , info);request.getRequestDispatcher(admin_bill_update.jsp).forward(request,response);普通用户权限下功能操作及代码:图及代码同经理权限下图及代码4.2.2 供应商管理模块管理员权限下的功能操作及代码如图: 4-6 所示如图 4-6

45、代码:private void doGYSChaXun(HttpServletRequest request,HttpServletResponse responset)hrows ServletException,IOException String gys_name=request.getParameterc(ommodityname).trim(); String gys_miaoshu=request.getParameterc(ommoditymiaoshu).trim(); List list= oper.GYSChaXun(gys_name,gys_miaoshu); if(li

46、st!= null)response);request.setAttribute(list , list);request.getRequestDispatchera( dmin_supplier_list.jsp).forward(request, elseresponse.sendRedirect(admin_supplier_list.jsp);private void doLnquiresGYS(HttpServletRequest request,HttpServletResponse responseth) rows ServletException,IOException Lis

47、t list= oper.GYSLnquires();if(list!= null)request.setAttribute(list , list);request.getRequestDispatchera( dmin_supplier_list.jsp).forward(request,response); elseresponse.sendRedirect(admin_supplier_list.jsp);如图 4-7代码:private void doGYSAdd(HttpServletRequest request,HttpServletResponse responset)hro

48、ws ServletException,IOException String gys_id = request.getParameter(gysid).trim();String gys_name =request.getParameterg(ysname).trim(); String gys_miaoshu=request.getParameterg(ysmiaoshu).trim(); String gys_lianxiren=request.getParameter(gyslianxi ).trim(); String gys_phone=request.getParameterg(y

49、sphone).trim();String gys_chuanzhen=request.getParametegr(yschuanzhen).trim(); String gys_address=request.getParametegr(ysaddress).trim();List params = new ArrayList(); params.add(gys_id); params.add(gys_name); params.add(gys_miaoshu); params.add(gys_lianxiren); params.add(gys_phone); params.add(gys

50、_chuanzhen); params.add(gys_address);Information info= oper.GYSAdd(params);request.setAttribute(info , info);request.getRequestDispatchera( dmin_supplier_add.jsp).forward(request,response);如图 4-8代码:private void doGYSXinXi(HttpServletRequest request,HttpServletResponse responseth) rows ServletExcepti

51、on,IOException String gys_id = request.getParameter(id );GYSBean gysbean=new GYSBean();gysbean =oper.GYSXinXi(gys_id);response);request.setAttribute(gysbean, gysbean);request.getRequestDispatchera( dmin_supplier_update.jsp).forward(request,如图 4-9代码:private void doGYSXiuGai(HttpServletRequest request

52、,HttpServletResponse responset)hrows ServletException,IOException String gys_id= request.getParameter(gysid ).trim();String gys_miaoshu = request.getParameterg( ysmiaoshu).trim();String gys_lianxiren=request.getParameter(gyslianxi ).trim(); String gys_phone=request.getParameterg( ysphone).trim();Str

53、ing gys_chuanzhen=request.getParameterg(yschuanzhen).trim(); String gys_address=request.getParameterg(ysaddress).trim(); String gys_name=request.getParameterg( ysname).trim();List params=new ArrayList(); params.add(gys_id); params.add(gys_miaoshu); params.add(gys_lianxiren); params.add(gys_phone); p

54、arams.add(gys_chuanzhen); params.add(gys_address); params.add(gys_name);Information info= oper.GYSXiuGai(params);request.setAttribute(info , info); request.getRequestDispatcher(admin_supplier_update.jsp).forward(request,response);private void doGYSDel(HttpServletRequest request,HttpServletResponse r

55、esponset)hrows ServletException,IOException String gys_id= request.getParameterg( ysid ).trim();Information info= oper.GYSDel(gys_id);request.setAttribute(info , info);request.getRequestDispatchera( dmin_supplier_update.jsp).forward(request,response);普通用户权限下功能操作及代码:图及代码同经理权限下的图及代码4.2.3 用户管理模块管理员权限下的

56、功能操作及代码如 图 4-10代码:private void doGYSChaXun(HttpServletRequest request,HttpServletResponse responset)hrows ServletException,IOException String gys_name=request.getParameterc(ommodityname).trim(); String gys_miaoshu=request.getParameterc(ommoditymiaoshu).trim(); List list= oper.GYSChaXun(gys_name,gys_

57、miaoshu); if(list!= null)request.setAttribute(list , list);request.getRequestDispatchera( dmin_supplier_list.jsp).forward(request,response); elseresponse.sendRedirect(admin_supplier_list.jsp);private void doLnquiresYH(HttpServletRequest request,HttpServletResponse responset)hrows ServletException,IO

58、Exception List list= oper.YHLnquires();response);if(list!= null)request.setAttribute(list , list); request.getRequestDispatcher(admin_user_list.jsp).forward(request, elseresponse.sendRedirect(admin_user_list.jsp);如 图 4-11代码:private void doYHAdd(HttpServletRequest request,HttpServletResponse response

59、th) rows ServletException,IOException String yh_id=request.getParameter(yhid ).trim();String yh_username= request.getParametery(hname).trim(); String yh_password=request.getParametery(hpassword).trim();response);String yh_sex=request.getParametery( hsex).trim(); String yh_age=request.getParametery(h

60、age).trim(); String yh_phone=request.getParametery( hphone).trim();String yh_address=request.getParametery(haddress).trim(); String yh_quanxian=request.getParametery( hquanxian).trim(); List params = new ArrayList();params.add(yh_id); params.add(yh_username); params.add(yh_password); params.add(yh_s

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论