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

正文內(nèi)容

中小企業(yè)辦公自動(dòng)化系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文(編輯修改稿)

2025-07-21 00:42 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 idint自增1名稱namevarchar流程定義文件processDefinitionlongblob流程定義圖片processImagelongblob(15)acl表(系統(tǒng)授權(quán)表)記錄系統(tǒng)授權(quán)的信息。表53315 系統(tǒng)授權(quán)表字段注釋字段名類型表達(dá)式ID(主鍵)idint自增1授權(quán)類型principalTypevarchar用戶或角色I(xiàn)D(外鍵)principalSnint資源ID(外鍵)resourceSnint授權(quán)狀態(tài)aclStateint是否繼承aclTriStateint0不繼承,1繼承 (16) document表(公文表)記錄企業(yè)公文信息。表53316公文表字段注釋字段名類型表達(dá)式ID(主鍵)idint自增1公文標(biāo)題titlevarchar描述descriptionvarchar公文內(nèi)容contentlongblob創(chuàng)建人ID(外鍵)creatorint創(chuàng)建時(shí)間createTimedatetime工作流ID(外鍵)workflowint流程實(shí)例processInstanceIdint當(dāng)前狀態(tài)信息 statusvarchar(17) document_properties表(文檔類型表)公文文檔類型信息。表53317文檔類型表字段注釋字段名類型表達(dá)式ID(主鍵)documentIdint自增1String類型java_lang_StringvarcharInteger類型java_lang_Integerintio_File類型java_io_Filelongblob文件屬性名propertyNamevarchar(18)approveinfo表(公文審批表)記錄公文審批的信息。表53318 公文審批表字段注釋字段名類型表達(dá)式ID(主鍵)idint自增1審批意見mentvarchar審批時(shí)間approveTimedatetime公文ID(外鍵)documentint審批人ID(外鍵)approverint(19)fieldinput表(表單輸入類型表)記錄表單輸入類型的信息。表53319 表單輸入類型表字段注釋字段名類型表達(dá)式ID(主鍵)idint自增1表單元素名namevarchar表單模板templatevarchar(20)fielditem表(下拉框條目表)記錄表單輸入的下拉框類型的信息。表53320 下拉框條目表字段注釋字段名類型表達(dá)式表單域ID(主鍵)fieldIdint自增1名稱labelvarchar對(duì)應(yīng)的值valuevarchar列表元素標(biāo)識(shí)itemIndexint(21)formfield表(表單域表)記錄表單域的信息。表53321 表單域表字段注釋字段名類型表達(dá)式表單域ID(主鍵)idint自增1表單域標(biāo)簽fieldLabelvarchar表單域名稱fieldNamevarchar表單域輸入形式ID(外鍵)fieldInputint表單域類型ID(外鍵)fieldTypeint流程表單ID(外鍵)flowFormIdint(22)fieldtype表(表單類型表)記錄表單輸入的下拉框類型的信息。表53322 表單類型表字段注釋字段名類型表達(dá)式表單域ID(主鍵)idint自增1名稱namevarchar類型typevarchar(23)flowform表(流程表單表)記錄表單輸入的下拉框類型的信息。表53323 流程表單表字段注釋字段名類型表達(dá)式表單域ID(主鍵)idint自增1工作流ID(外鍵)workflowint表單模板templatevarchar目前流行的輕量級(jí)javaEE應(yīng)用的架構(gòu)比較統(tǒng)一,通常會(huì)使用Spring作為核心,向上整合MVC框架,向下整合ORM框架。本系統(tǒng)采用Java EE的三層架構(gòu),分為表現(xiàn)層、業(yè)務(wù)邏輯層和數(shù)據(jù)服務(wù)層。三層體系將業(yè)務(wù)規(guī)則、數(shù)據(jù)訪問等工作放到中間層處理,客戶端不直接與數(shù)據(jù)庫(kù)交互,而是通過控制器與中間層建立連接,再由中間層與數(shù)據(jù)庫(kù)交互。MVC模式里面的“C”(Controller),負(fù)責(zé)表現(xiàn)層與業(yè)務(wù)邏輯層的交互,調(diào)用業(yè)務(wù)邏輯層,并將業(yè)務(wù)邏輯層數(shù)據(jù)返回給表現(xiàn)層來顯示,MVC框架采用流行的Struts2,表現(xiàn)層采用JSP實(shí)現(xiàn)。DAO層(數(shù)據(jù)訪問層),負(fù)責(zé)與持久化對(duì)象交互,封裝了數(shù)據(jù)的增、刪、改、查原子操作。PO層(持久化對(duì)象層),通過實(shí)體/關(guān)系映射工具將關(guān)系型數(shù)據(jù)庫(kù)的數(shù)據(jù)映射成對(duì)象,實(shí)現(xiàn)以面向?qū)ο蠓绞讲僮鲾?shù)據(jù)庫(kù),本系統(tǒng)采用Hibernate作為O/R Mapping框架。Service層(業(yè)務(wù)邏輯層),負(fù)責(zé)實(shí)現(xiàn)業(yè)務(wù)邏輯,對(duì)DAO對(duì)象進(jìn)行正面模式的封裝。Struts2提供了良好的MVC模式,所有的用戶請(qǐng)求都由Struts2的Actiont負(fù)責(zé)攔截,然后通過Spring提供的依賴注入,自動(dòng)注入Spring容器中的業(yè)務(wù)邏輯組件,調(diào)用業(yè)務(wù)邏輯組件方法來處理用戶請(qǐng)求。系統(tǒng)實(shí)現(xiàn)的總體架構(gòu)如圖54所示。圖54 系統(tǒng)總體架構(gòu)圖MVC中的“C”層通常就是對(duì)應(yīng)系統(tǒng)的MVC結(jié)構(gòu)的控制器層,本系統(tǒng)使用Struts2作為MVC框架,則控制器都是由Struts2的Action充當(dāng),這些Action通過調(diào)用系統(tǒng)的業(yè)務(wù)邏輯方法來處理用戶請(qǐng)求,并將處理結(jié)果放入ValueStack中,在JSP頁(yè)面中通過Struts2的標(biāo)簽庫(kù)來輸出這些處理結(jié)果。Struts2使用核心的FilterDispatcher來過濾用戶請(qǐng)求,一旦FitlerDisPatcher攔截到用戶請(qǐng)求之后,用戶請(qǐng)求將直接轉(zhuǎn)入Struts2體系內(nèi)。對(duì)于普通JSP頁(yè)面,也必須先通過Struts2的過濾,這樣就保證了用戶無法直接瀏覽任何頁(yè)面,從而提供更好的安全性。為了讓用戶請(qǐng)求進(jìn)入Struts2體系內(nèi)。: filter filternamestruts2/filtername filterclass /filterclass /filter filtermapping filternamestruts2/filternameurlpattern/*/urlpattern/filtermapping 自定義標(biāo)簽設(shè)計(jì)為了方便進(jìn)行數(shù)據(jù)訪問和輸出,保證JSP頁(yè)面的簡(jiǎn)潔和可讀性,同時(shí)為了跟好實(shí)現(xiàn)頁(yè)面和邏輯控制的分離,這本系統(tǒng)開發(fā)了幾個(gè)自定義的標(biāo)簽,以滿足以上的要求。:tlibversion/tlibversion shortnamemy/shortname uri/uri function namehasPermission/name functionclass/functionclass functionsignatureboolean hasPermission(int, ,int)/functionsignature /function function nameform/name functionclass/functionclass functionsignature form(int)/functionsignature /function function nameholiday/name functionclass/functionclass functionsignatureboolean isHoliday(int,int,int)/functionsignature /function function namesplitApply/name functionclass/functionclass functionsignature()/functionsignature/function實(shí)現(xiàn)標(biāo)簽的函數(shù)主要代碼: public class SecurityFunctions { private static ACLDao aclDao。 public static boolean hasPermission(int userId,String resourceSn,int permission){ (SecurityFunctions())。 return (userId, resourceSn, permission)。 } public void setAclDao(ACLDao aclDao) { = aclDao。 }} public class DynaFormFunction { private static FormManager formManager。 private static String defaultTemplate = 。 public static String form(int workflowId){ try { //查找表單定義 FlowForm form = (workflowId)。 if(form == null){ return null。 } Configuration cfg = ()。 Template template = null。 if(() == null || ().trim().equals()){ template = (defaultTemplate)。 }else{ template = (())。 } //最終輸出的位置 Writer out = new StringWriter()。 Map rootMap = new HashMap()。 (form, form)。 (rootMap, out)。 return ()。 } catch (Exception e) { ()。 return null。 } } Freemarker模板設(shè)計(jì)為了能動(dòng)態(tài)顯示表單域,并保證靈活性,本系統(tǒng)采取freemarker來作為表單域的呈現(xiàn)手段。下面定義表單加載函數(shù):public class FreemarkerManager { private static Configuration cfg = new Configuration()。 static { // 定義模版的位置,從類路徑中,相對(duì)于FreemarkerManager所在的路徑加載模版 (new ClassTemplateLoader(, templates))。 (new DefaultObjectWrapper())。 ()。 } public static Configuration getConfiguration() { return cfg。 }}定義表單模板:公文表freemarker單模板定義:table class=tableEdit style=width:580px。 cellspacing=0 border=0 cellpadding=0assign i = 0list as field assign i = i + 1 if field_index % 2 = 0 tr /if td class=tdEditLabel ${}/td td class=tdEditContentinclude ${} /td if i = 2 || !field_has_next assign i = 0 /tr /if/list/table表單域freemarker模板定義:select name=props(${}) list as item option value=${}${}/option /list/select在J2EE開發(fā)中通常使用Hibernate來實(shí)現(xiàn)數(shù)據(jù)的基本操作,使序員可以以面向?qū)ο蟮乃季S操縱數(shù)據(jù)庫(kù)。Hibernate的持久對(duì)象是基于POJO和Java collections。此外,系統(tǒng)建立Hibernate的持久層 ,首先把BO持久化。Hibernate是通過POJO工作的, 因此數(shù)據(jù)對(duì)象需要給所有的屬性加上getter,setter方法。Hibernate可以通過xml文件和注解兩種方法實(shí)現(xiàn)對(duì)對(duì)象的映射,而本系統(tǒng)采用的是xml的方法,因?yàn)榭勺x性強(qiáng),結(jié)構(gòu)清晰。 Hibernate PO的設(shè)計(jì)
點(diǎn)擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1