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

正文內(nèi)容

企業(yè)日常事務(wù)管理系統(tǒng)(參考版)

2025-04-18 22:29本頁(yè)面
  

【正文】 protected String plan = null。 protected String month = null。 protected String username = null。/** * 以下省略屬性相對(duì)應(yīng)的set和get方法 */}3. ,以便于在action中使用該formbeanformbeans formbean name=addressForm type= /formbean /formbeans4. 將關(guān)于聯(lián)系人的請(qǐng)求Action轉(zhuǎn)入到下面配置的action中進(jìn)行處理 action path=/address parameter=method name=pageForm scope=request type= forward name=list path=/ / /action action path=/address_add parameter=method name=addressForm scope=request type= input=/ forward name=list path=/ / forward name=add path=/ / /action action path=/address_edit parameter=method name=addressForm scope=request type= input=/ forward name=list path=/ / forward name=edit path=/ / /action圖55 日程安排模塊界面1. 新增日程安排對(duì)應(yīng)的Action為:?method=add 修改對(duì)應(yīng)的Actin為:?method=edit刪除對(duì)應(yīng)的Action為:?method=delet2. 創(chuàng)建用于接收新增/編輯過(guò)的日程按安排信息forms此forms為ActionForm的子類(lèi),用于在action中向下專(zhuān)型為ScheduleForm并獲取其中的參數(shù)。 protected String address = null。 protected String qq = null。 protected String mobile = null。 protected String name = null。public class AddressForm extends ActionForm { protected String id = null。 } else { return false。 } return (forward)。 forward = ()。 } // If a message is required, save the specified key(s) // into the request for use by the struts:errors tag. if (!()) { saveErrors(request, messages)。 } else { (, new ActionMessage( ))。 if (isValid) { (, username)。 } //創(chuàng)建新的session session = (true)。 // 如果已經(jīng)有session設(shè)為無(wú)效 HttpSession session = (false)。 } public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { LoginForm loginForm = (LoginForm) form。//由Spring容器注入 public UserDAO getUserDAO() { return userDAO。 protected String password = null。 //調(diào)用DAO層的方法插入到數(shù)據(jù)庫(kù)的User表 }}圖53 登錄頁(yè)頁(yè)面1.2. 創(chuàng)建用戶(hù)登錄時(shí)用于接收登錄信息的forms 此forms為ActionForm的子類(lèi),用于在action中向下專(zhuān)型為L(zhǎng)oginForm并獲取其中的參數(shù)。 (())。//創(chuàng)建用戶(hù)實(shí)體對(duì)象 (())。 } else { return false。 } return (forward)。 } else { //若不存在將注冊(cè)信息插入到數(shù)據(jù)庫(kù)的User表 insert(request, registerForm)。 try { // 判斷在數(shù)據(jù)庫(kù)中是否已經(jīng)存在該用戶(hù)名 boolean isExist = isExist(request, registerForm)。 } public void setUserDAO(UserDAO userDAO) {//必須有此set方法用于注入userdao = userDAO。 /** * 以下省略屬性相對(duì)應(yīng)的set和get方法 */}3.,以便于在action中使用該formbean formbeans formbean name=registerForm type= /formbean /formbeans4.a(chǎn)ction path=/register parameter=method name=registerForm scope=request type= input=/ forward name=success path=/ / forward name=failure path=/ //action5.RegisterAction類(lèi)實(shí)現(xiàn)注冊(cè)的過(guò)程public class RegisterAction extends DispatchAction {protected UserDAO userDAO。 protected String password2 = null。public class RegisterForm extends ActionForm{ protected String username = null。此RegisterForm為ActionForm的子類(lèi),用于在action中向下專(zhuān)型為RegisterForm并獲取其中的參數(shù)。 企業(yè)日常事務(wù)管理系統(tǒng)的注冊(cè)頁(yè)如圖51所示。應(yīng)用是分層的,可能每層都需要各自的框架。 一個(gè)良好的框架可以讓開(kāi)發(fā)人員減輕重新建立解決復(fù)雜問(wèn)題方案的負(fù)擔(dān)和精力;它可以被擴(kuò)展以進(jìn)行內(nèi)部的定制化;并且有強(qiáng)大的用戶(hù)社區(qū)來(lái)支持它。通過(guò)實(shí)體關(guān)系映射工具將關(guān)系型數(shù)據(jù)庫(kù)的數(shù)據(jù)映射成對(duì)象,很方便地實(shí)現(xiàn)以面向?qū)ο蠓绞讲僮鲾?shù)據(jù)庫(kù),該系統(tǒng)采用Hibernate作為ORM框架。該層封裝了數(shù)據(jù)的增、刪、查、改的操作。業(yè)務(wù)邏輯層以DAO層為基礎(chǔ),通過(guò)對(duì)DAO組件的正面模式包裝,完成系統(tǒng)所要求的業(yè)務(wù)邏輯。 Web層,就是MVC模式里面的“C”(controller),負(fù)責(zé)控制業(yè)務(wù)邏輯層與表現(xiàn)層的交互,調(diào)用業(yè)務(wù)邏輯層,將業(yè)務(wù)數(shù)據(jù)返回給表現(xiàn)層,該系統(tǒng)的MVC框架采用Struts。 表現(xiàn)層是傳統(tǒng)的JSP技術(shù),其廣泛的應(yīng)用和穩(wěn)定的表現(xiàn),為其作為表現(xiàn)層技術(shù)打下了堅(jiān)實(shí)的基礎(chǔ)。三層體系將業(yè)務(wù)規(guī)則、數(shù)據(jù)訪(fǎng)問(wèn)及合法性校驗(yàn)等工作放在中間層處理。請(qǐng)求處理完成后,再順著從下到上,將請(qǐng)求反饋到客戶(hù)端?!AO利用Hibernate提供的模板,發(fā)送HQL或SQL請(qǐng)求,并將數(shù)據(jù)包裝成Entity對(duì)象?!ervice對(duì)象中使用到DAO的話(huà),請(qǐng)求Spring提供具體的DAO對(duì)象?! ction對(duì)象中使用到Service的話(huà),請(qǐng)求Spring提供具體的Service對(duì)象。當(dāng)一個(gè)請(qǐng)求發(fā)生時(shí),SSH框架處理如下: 瀏覽器把請(qǐng)求交給Struts,, 指派一個(gè)具體的Action來(lái)操作這個(gè)請(qǐng)求,Struts把請(qǐng)求參數(shù)包裝成Model對(duì)象,并請(qǐng)求Spring提供具體的Action對(duì)象。ch aracterEncoding=utf8/value /property property name=username valueroot/value /property property name=password value123/value /property /beanB配置Hibernatebean id=sessionFactory class= property name=dataSource ref local=dataSource / /property property name=mappingResources list value/demo/hibernate/beans//value value/demo/hibernate/beans//value value/demo/hibernate/beans//value value/demo/hibernate/beans//value value/demo/hibernate/beans//value value/demo/hibernate/beans//value value/demo/hibernate/beans//value /list /property property name=hibernateProperties props prop key= /prop prop key=true/prop /props /property/beanC配置事務(wù)bean id=transactionManager class= property name=sessionFactory ref local=sessionFactory / /property /bean第五章 系統(tǒng)詳細(xì)設(shè)計(jì)與實(shí)現(xiàn)本系統(tǒng)采用SSH架構(gòu)Spring整合Struts1圖51 SSH架構(gòu)SSH以Struts為核心,而Struts只是一個(gè)訪(fǎng)問(wèn)的控制器加一堆的標(biāo)簽及FormBean。 1)hibernatemapping package= class name=Address table=address id name=id column=ID type= generator class=native/ /idproperty name=username column=username type= notnull=true / property name=name column=name type= notnull=true / property name=sex column=sex type= / property name=mobile column=mobile type= / property name= column= type= / property name=qq column=qq type= / property name=pany column=pany type= / property name=address column=address type= / property name=postcode column=postcode type= / /class /hibernatemapping 2)建立日程安排實(shí)體和Schedule表之間的映射關(guān)系Schedule. hibernatemapping package= class name=Schedule table=schedule id name=id column=ID type= generator class=native/ /id property name=username column=username type= notnull=true / property name=year column=year type= / property name=month column=month type= / property name=day
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1