基于java超市账单管理系统毕业设计说明书(含源文件)(编辑修改稿)内容摘要:
HttpServletResponse response) throws ServletException,IOException{ (utf8)。 (utf8)。 11 (text/html。 charset=utf8)。 HttpSession session=(true)。 String op = (op)。 String opg= (opg)。 String opyh = (opyh)。 String zdgroup=(zdgroup)。 (zdgroup)。 String gysgroup=(gysgroup)。 Login judgeLogin = (Login)((login))。 if (doLogin.equals(op)) { doLogin(request, response)。 return。 } if (judgeLogin!=nullamp。 amp。 !.equals(judgeLogin)){ if(经理 .equals(())){ if (ZD.equals(op)){ doLnquiresZD(request,response)。 }else if(ZDAdd.equals(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,response)。 }else if(GYSAdd.equals(op)){ 12 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)){ 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(request,response)。 }else if(修改密码 .equals(opyh)){ doYHMiMa(request,response)。 }else if(修改密码 .equals(op)){ doAdminMiMaXiuGai(request,response)。 } } if(普通用户 .equals(())){ if (ZD.equals(op)){ doLnquiresZD(request,response)。 13 }else if(ZDAdd.equals(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,response)。 }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(YH.equals(op)|| 修 改 密 码 .equals(op)|| 修改密码.equals(opyh)|| 查询 .equals(opyh)|| 删 除 .equals(opyh)|| 修 改.equals(opyh)|| YHXinXi.equals(op)||YHAdd.equals(op)){ Information info=new Information()。 String msg=对不起您没有那么高的权限。 (msg)。 14 (info, info)。 ().forward(request, response)。 } } }else{ ()。 } } 管理员(用户)登陆以后就会进入总页面如图: 42 所示: 在左侧可以看到管理员进来后 (普通用户)各自的权限。 管理员登陆: 15 如图 42 普通用户登陆: 如图 43 账单管理模块 管理员权限下的功能操作及代码 16 如图 44 代码 : private void doLnquiresZD(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException { HttpSession session=()。 ListZDBean list=()。 ListString gysName=()。 if(list!=null){ (list, list)。 (gysName, gysName)。 ().forward(request, response)。 return。 }else { ()。 } } private void doZDChaXun(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException { String zd_spmingcheng=(modityname)。 String zd_sfzhifu=(payment)。 (zd_spmingcheng)。 (zd_sfzhifu)。 ListZDBean list=(zd_spmingcheng,zd_sfzhifu)。 if(list!=null){ (list, list)。 ().forward(request, response)。 17 return。 }else { ()。 } } 代码: private void doZDAdd(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException { String zd_id=(zdid).trim()。 String zd_spmingcheng=(zdproductname).trim()。 String zd_spshuliang=(zdtransnunber).trim()。 String zd_jymoney=(zdtransmoney).trim()。 String zd_sfzhifu=(payment).trim()。 String zd_gysname=(zdproducmanufacture).trim()。 String zd_spmiaoshu=(zdproducdesc).trim()。 18 String zd_danwei=(zdtransunits).trim()。 String zd_data=new SimpleDateFormat(yyyyMMdd).format(new Date().getTime())。 List params = new ArrayList()。 (zd_id)。 (zd_spmingcheng)。 (zd_spshuliang)。 (zd_jymoney)。 (zd_sfzhifu)。 (zd_gysname)。 (zd_spmiaoshu)。 (zd_data)。 (zd_danwei)。 Information info=(params)。 (info, info)。 ().forward(request, response)。 } 19 代码: private void doZDXinXi(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException{ String zd_id =(id)。 ZDBean zdbean = new ZDBean()。 zdbean=(zd_id)。 if(zdbean!=null){ (zdbean, zdbean)。 ().forward(request, response)。 } } 如图 45 代码: private void doZDXiuGai(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException{ String zd_id=(zdid).trim()。 20 String zd_sp。基于java超市账单管理系统毕业设计说明书(含源文件)(编辑修改稿)
相关推荐
须在可行性报告通过后,才可以进入实质性的电子商务应用分析阶段。 项目优势、劣势分析 网上书店之所以成为电子商务中的热点,主要与书籍、杂志以及音像制品等商品所固有的无差异性有关,换言之,对于同一名称的书籍都是同质的,因此挑选性不是特别强;另外,书籍、杂志、录音 /录像带、光盘的销售商可以通过网络提供简介、片段,使消费者了解其内 容后再订购,没有过多的售后服务、退货问题,相比较而言
业务逻辑,界面程序员( HTML 和 JSP 开发人员)集中精力于表现形式上。 重用性高 MVC 模式允许使用各种不同样式的视图来访问同一个服务器端的代码,因为多个视图能共享一个模型,它包括任何 WEB( HTTP)浏览器或者无线浏览器( wap),比如,用户可以通过电脑也可通过手机来订购某样产品,虽然订购的方式不一样,但处理订购产品的方式是一样的。 由于模型返回的数据没有进行格式化
提高信息处理速度和准确性;为仓库管理者提供更方便、科学的服务项目。 技术可行性 根据客户提出的系统功能、性能及实现系统的各项约束条件,根据新系统目标来衡量所需的技术 是否具备,本系统是一个数据库管理和查询的系统,现有的技术以较为成熟,硬件、软件的性能要求、环境条件等各项条件良好,估计利用现有技术条件应完全可以达到该系统的功能目标。 同时,考虑给予的开发期限也较为充裕
进行服务端验证,会提示你用户名不能为空。 当你填写了用户名而没填写密码就提交页面,同样 进行客户端验证和 进行服务端 验证,会提示你密码不能为空。 当然你输入的用户名与密码不对时,提交页面到 进行服务端验证,在 LoginServlet 里通过()的方法得到提交的信息,通过 调用 UserServiceImpl 层里 checklogin() 的方法来检查提交来的用户名和密码是否正确,如果不正确
语言是安全的。 Java 通常被用在网络环境中,为此, Java 提供了一个安全机制以防恶意代码的攻击。 除了 Java 语言具有的许多 安全特性 以外, Java 对通过网络下载的类具有一个安全防范机制(类 ClassLoader),如分配不同的名字空间以防替代本地的同名类、 字节代码 检查,并提供安全管理机制(类 SecurityManager)让 Java 应用设置安全哨兵。 基于
eemarker 增加了 layout 的概念 ,就是把一个页面划分为几块 ,对布局基本相同的页面,可以共用重用 Freemarker 模块,在需要的时候可以用 [include/]标签包含到指定页面。 在 这 一 层还 采用 Freemarker 的一些常用标签,使它具有可移植性、可跨平台。 业务逻辑层 :主要 负责 具体的 业务处 理。 Spring 是以 MVC 模式为基础