freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

家電維修配件倉庫管理系統(tǒng)畢業(yè)論文(編輯修改稿)

2025-07-22 02:04 本頁面
 

【文章內(nèi)容簡介】 ionFactory //property河北經(jīng)貿(mào)大學畢業(yè)論文20/beanbean id=shenqingDao class= property name=sessionFactoryref bean=sessionFactory //property/beanbean id=tixingDao class= property name=sessionFactoryref bean=sessionFactory //property/bean本段代碼是把DAO實例化的代碼,通過spring的IOC模式bean id=manageAction class= scope=prototypeproperty name=userDaoref bean=userDao //propertyproperty name=jiehuoDaoref bean=jiehuoDao //propertyproperty name=kucunDaoref bean=kucunDao //propertyproperty name=chuhuoDaoref bean=chuhuoDao //propertyproperty name=productDaoref bean=productDao //propertyproperty name=shenqingDaoref bean=shenqingDao //propertyproperty name=tixingDaoref bean=tixingDao //property/bean本段代碼是把 ManageAction 實例化的代碼,原理也是 spring 的 IOC 模式。河北經(jīng)貿(mào)大學畢業(yè)論文21Spring的其他配置:! 配置 sessionFactory bean id=sessionFactory class=essionFactoryBeanproperty name=configLocationvalueclasspath:/value/property/bean ! 配置事務管理器 bean id=transactionManager class=nagerproperty name=sessionFactoryref bean=sessionFactory//property/bean! 配置事務的傳播特性 tx:advice id=txAdvice transactionmanager=transactionManagertx:attributestx:method name=insert* propagation=REQUIRED/tx:method name=delete* propagation=REQUIRED/tx:method name=update* propagation=REQUIRED/tx:method name=* readonly=true//tx:attributes/tx:advice河北經(jīng)貿(mào)大學畢業(yè)論文22! 那些類的哪些方法參與事務 aop:configaop:pointcut id=allManagerMethod expression=execution(* .*.*(..))/aop:advisor pointcutref=allManagerMethod adviceref=txAdvice//aop:config 系統(tǒng)功能實現(xiàn)的主要模塊 登陸頁面登錄代碼:// 用戶登錄操作public String login() throws IOException {HttpServletRequest request = ()。String username = (username)。String password = (password)。String role = (role)。河北經(jīng)貿(mào)大學畢業(yè)論文23User user = ( where username = 39。 + username+ 39。 and password= 39。 + password + 39。 and userlock=0 and role=+ role)。if (user != null) {HttpSession session = ()。(manage, user)。(index)。return redirect。} else {HttpServletResponse response = ()。(gbk)。response.getWriter().print(script language=javascriptalert(39。用戶名或者賬號錯誤39。)。=39。index39。/script )。}return null。}本段代碼是程序的登陸代碼,首先從獲取從頁面輸入的用戶名和密碼還有用戶的登陸角色,然后調(diào)用 方法,從數(shù)據(jù)庫里取出該條記錄進行判斷,如果該條記錄存在,則說明用戶登陸成功,同時把用戶信息存在 session 里面方便調(diào)用,如果記錄為空,則跳轉(zhuǎn)到登陸頁面,同時提醒用戶錯誤信息。河北經(jīng)貿(mào)大學畢業(yè)論文24 超級管理員登陸界面:超級管理員的操作:,如圖所示:河北經(jīng)貿(mào)大學畢業(yè)論文25代碼如下:// 添加用戶操作public void useradd2() throws IOException {HttpServletRequest request = ()。String username = (username)。String truename = (truename)。String address = (address)。String phone = (phone)。String xingbie = (xingbie)。String chushengnianyue = (chushengnianyue)。String ruzhiriqi = (ruzhiriqi)。String xinzi = (xinzi)。String role = (role)。河北經(jīng)貿(mào)大學畢業(yè)論文26User bean = ( where username=39。+username+39。 )。if(bean==null){bean = new User()。(new Date())。(111111)。(1)。(truename)。(username)。(address)。(phone)。(xingbie)。(chushengnianyue)。(ruzhiriqi)。(xinzi)。((role))。(bean)。HttpServletResponse response = ()。(utf8)。PrintWriter out = ()。((操作成功, method!userlist, userlist))。()。()。}else{HttpServletResponse response = ()。(utf8)。PrintWriter out = ()。((該用戶名已經(jīng)存在,操作失敗, method!userlist, userlist))。河北經(jīng)貿(mào)大學畢業(yè)論文27()。()。}},超級管理員只能重新設置普通用戶密碼,如圖所示:代碼如下:// 刪除用戶操作public void userdelete() throws IOException {HttpServletRequest request = ()。User bean = ( where id= + (id))。(()+_delete)。(1)。(bean)。HttpServletResponse response = ()。(utf8)。PrintWriter out = ()。((操作成功, method!userlist, userlist))。()。()。}河北經(jīng)貿(mào)大學畢業(yè)論文28,如圖所示:代碼如下:// 修改密碼操作public void changepwd2() throws IOException {HttpServletRequest request = ()。HttpServletResponse response = ()。(utf8)。PrintWriter out = ()。HttpSession session = ()。User u = (User) (manage)。String password1 = (password1)。String password2 = (password2)。String password3 = (password3)。User bean = ( where username= 39。 + ()+ 39。 and password= 39。 + password1 + 39。)。if (!(password3)) {((兩次輸入密碼不一致 , houtai, 河北經(jīng)貿(mào)大學畢業(yè)論文29orderlist))。()。()。} else if (bean != null) {(password2)。(bean)。((操作成功 , houtai, orderlist))。()。()。} else {((原密碼錯誤 , houtai, orderlist))。()。()。}},如圖所示:// 用戶列表查詢public String userlist10() {HttpServletRequest request = 河北經(jīng)貿(mào)大學畢業(yè)論文30()。String username = (username)。String truename = (truename)。StringBuffer sb = new StringBuffer()。( where )。StringBuffer sb2 = new StringBuffer()。( where )。if (username != null amp。amp。 !.equals(username)) {(username like 39。% + username + %39。)。( and )。(username like 39。% + username + %39。)。( and )。(username, username)。}if (truename != null amp。amp。 !.equals(truename)) {(truename like 39。% + truename + %39。)。( and )。(truename like 39。% + truename + %39。)。( and )。(truename, truename)。}(userlock=0 and role!=0 order by id desc )。String where = ()。河北經(jīng)貿(mào)大學畢業(yè)論文31( userlock=0 and role!=0 )。String where2 = ()。int currentpage = 1。int pagesize = 20。if ((pageNum) != null) {currentpage = ((pageNum))。pagesize = ((numPerPage))。}int total = (where2)。(list, ((currentpage 1) * pagesize, pagesize, where))。(totalCount, total)。(ps, pagesize)。(pn, currentpage)。(url, method!userlist10)。(user/)。return SUCCESS。} 倉庫管理員登陸界面:河北經(jīng)貿(mào)大學畢業(yè)論文32倉庫管理員的操作:、刪、改、查,如圖所示:代碼如下:// 貨物列表public String productlist() {HttpServletRequest request = ()。StringBuffer sb = new StringBuffer()。( where )。StringBuffer sb2 = new StringBuffer()。( where )。河北經(jīng)貿(mào)大學畢業(yè)論文33(productlock=0 order by id desc )。String where = ()。( productlock=0 )。String where2 = ()。i
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1