java-ee课程设计-信息管理系统需求分析.doc
还剩
22页未读,
继续阅读
下载文档到电脑,马上远离加班熬夜!
亲,喜欢就下载吧,价低环保!
内容要点:
19stu.setZxf(xs.getZxf()); stu.setBz(xs.getBz());stu.setZyb(zyService.getOneZy(xs.getZyb().getId()));if(this.getZpfile()!=null){FileInputStream fis=new FileInputStream(this.getZpfile());byte[] buffer=new byte[fis.available()];fis.read(buffer);stu.setZp(buffer); }xsService.save(stu);return SUCCESS;}public ZyService getZyService() {return zyService;}public void setZyService(ZyService zyService) {this.zyService = zyService;}}6.2.4 其他的详细代码关于其他的详细代码、配置文件、struts、hebernate、spring 能留开发包均在 xscjManage 文件夹中。18Map request=(Map)ActionContext.getContext().get("request");request.put("xsInfo", xsInfo); request.put("zys", zys);return SUCCESS; }public String updateXs()throws Exception{Xsb xs1=xsService.find(xs.getXh());xs1.setXm(xs.getXm()); xs1.setXb(xs.getXb());xs1.setZyb(zyService.getOneZy(xs.getZyb().getId()));xs1.setCssj(xs.getCssj());xs1.setZxf(xs.getZxf());xs1.setBz(xs.getBz());if(this.getZpfile()!=null){FileInputStream fis=new FileInputStream(this.getZpfile());byte[] buffer=new byte[fis.available()];fis.read(buffer);xs1.setZp(buffer);}Map request=(Map)ActionContext.getContext().get("request");xsService.update(xs1);return SUCCESS; }public String addXsView()throws Exception{ return SUCCESS; }public String addXs() throws Exception{Xsb stu=new Xsb();String xh1=xs.getXh();if(xsService.find(xh1)!=null){return ERROR; }stu.setXh(xs.getXh()); stu.setXm(xs.getXm());stu.setXb(xs.getXb()); stu.setCssj(xs.getCssj());System.out.println(xs.getCssj());17Map request=(Map)ActionContext.getContext().get("request");Pager page=new Pager(getPageNow(),xsService.findXsSize());request.put("list", list);reque