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

正文內(nèi)容

計算機(jī)專業(yè)--企業(yè)辦公自動化系統(tǒng)設(shè)計與實現(xiàn)(完整版)

2025-01-21 01:19上一頁面

下一頁面
  

【正文】 裝所對應(yīng)的 6HTML 數(shù)據(jù)表 包括請求 并將封裝好的數(shù)據(jù)傳給 Action 類最后返回動態(tài) 顯示給用戶的數(shù)據(jù) 4 創(chuàng)建 TextAction 類 該類繼承 Action 并通過覆蓋 execute 方法將請求轉(zhuǎn)發(fā)給相應(yīng)的處理方法 2Strutsconfigxml 中進(jìn)行配置在 TextAction 類中編寫各自的處理方法并設(shè)計 JSP 顯示頁面其中收件箱是通過查詢數(shù)據(jù)表中發(fā)文的接受方為當(dāng)前用戶名來實現(xiàn)的因此發(fā)件箱就可以通過查詢數(shù)據(jù)表中發(fā)文的發(fā)件人為當(dāng)前登錄的用戶名來實現(xiàn)在收件箱或發(fā)件箱中通過單擊某一發(fā)文主題鏈接可以查看該發(fā)文的詳細(xì)內(nèi)容 1 發(fā)件箱的實現(xiàn) 其是以列表的形式呈現(xiàn)右上角單擊新建發(fā)文則可新建發(fā)文 實現(xiàn)結(jié)果如圖 52所示 圖 52 發(fā)件箱窗口 2 收件箱的實現(xiàn) 在 TextAction類中創(chuàng)建 executeTextLookGet 方法該方法主要完成的任務(wù)就是調(diào)用 DB類中的 getalltextlist 方法查詢數(shù)據(jù)表中符合條件的信息并得到當(dāng)前要現(xiàn)實的信息列表 gettextlistgetalltextlist 方法中的參數(shù)會被再次調(diào)用 配置文件 Strutsconfigxml 關(guān)鍵代碼如下 action name textform parameter text_look_get path texttext_look_get scope request type officeactionTextAction forward name success path textLook_gettextjsp 當(dāng)用戶單 擊菜單中 的收發(fā) 文管理 瀏覽發(fā)文 收件箱 鏈接時 會觸發(fā)textLook_gettextdo 請求通過上面的配置請求被轉(zhuǎn)發(fā)到 TextAction 類TextAction類通過 元素中 parameter屬性值調(diào)用 executeTextLookGet 方法處理該請求 創(chuàng)建收件箱頁面 Look_gettextjsp 運行效果如圖 53 所示 圖 53 收件箱窗口 3 瀏覽發(fā)文的詳細(xì)內(nèi)容 在開發(fā)瀏覽發(fā)問詳細(xì)內(nèi)容功能時需要從其中的一個 ArrayList 對象中獲取要查看發(fā)文的詳細(xì)信息即可 522 會議管理模塊的實現(xiàn) 1 查看會議記錄子模塊 查看會議記錄子模塊頁面 Look_meetjsp 運行效果如圖 54 所示 圖 54 瀏覽會議信息窗口 2Add_meetjsp 運行效果如圖 55 所示 圖 55 添加會議信息窗口 3 瀏覽會議 的詳細(xì)內(nèi)容 1 在 Look_meetjsp 頁面中調(diào)用瀏覽會議詳細(xì)內(nèi)容功能的會議主題鏈接代碼如下 htmllink page meetmeet_sigle_lookdo paramId id paramName meetsigle paramProperty meetid beanwrite name meetsigle property subject htmllink 2 配置文件 Strutsconfigxml 文件其關(guān)鍵代碼如下 action name meetform parameter meet_sigle_look path meetmeet_sigle_look scope request type officeactionMeetAction forward name success path meetLook_siglemeetjsp forward name false path meetLook_meetjsp 3 在 MeetAction類中創(chuàng)建 executeMeetSigleLook 方法該方法主要用于處理 Meetmeet_sigle_lookdo 請求 4 刪除會議子模塊 當(dāng)用戶觸發(fā) meetmeet_deldo 請求時程序?qū)υ撃K進(jìn)行操作 1 在 Look_meetjsp 頁面中刪除鏈接的代碼如下 a href requestgetContextPath meetmeet_deldoid beanwrite name meetsigleproperty meetid page sessiongetAttribute currentpage onclick javascriptreturn confirm 確定要刪除該記錄嗎 [刪除 ] 2 配置文件 Strutsconfigxml 文件其關(guān)鍵代碼如下 action name meetform parameter meet_del path meetmeet_del scope request type officeactionMeetAction forward name success path meetmeet_lookdo forward name false path meetLook_meetjsp 3 在 MeetAction 類中創(chuàng)建 executeMeetDel 方法其關(guān)鍵代碼如下 public ActionForward executeMeetDel ActionMapping mapping ActionForm form HttpServletRequest request HttpServletResponse response String id1 requestgetParameter id int id Changestrtoint id1 String sql delete from ContentTB_MEET where ContentMEETID id DB db new DB int i dbdel sql return mappingfindForward success 4 創(chuàng)建實現(xiàn)查看會議詳細(xì)信息的頁面 Look_siglemeetjsp 523 公告管理模塊其中的功能大體與上面兩種功能實現(xiàn)方法一致在這重點介紹如何實現(xiàn)修改公告的功能 查看修改鏈接在 Look_pcardjsp 頁面中用到的修改鏈接代碼如下 a href requestgetContextPath pcardpcard_updatedoid beanwrite name pcardsigle property pcardid updatetype link √修改 配置文件 Strutsconfigxml 中對該模塊的聲明 formbeans formbean name pcardform type officeactionformPcardForm formbeans action name pcardform parameter pcard_update path pcardpcard_update scope request type officeactionPcardAction forward name success path pcardpcard_lookdo forward name update path pcardUpdate_pcardjsp forward name false path pcardUpdate_pcardjsp 3 創(chuàng)建 PcardForm 類鍵代碼如下 package officeactionform import apachestrutsactionActionForm public class PcardForm extends ActionForm private int pcardid private String time private String content private String subject private String author public int getPcardid return pcardid public void setPcardid int pcardid thispcardid pcardid 省略了其他屬性的方法聲明 45 創(chuàng)建修改頁面 Update_pcardjsp 運行效果如圖 56 所示 其實現(xiàn)的過程是用戶登錄后選擇功能菜單列的公告管理選中第二菜單表中選中瀏覽公告在瀏覽公告顯示的操作中有修改選項只要是管理員就能對公告進(jìn)行修改 圖 56 修改公告窗口 524 員工管理模塊的實現(xiàn) 該模塊具體功能如下 本模塊中在瀏覽員工信息子模塊中增加了查詢的功能為實現(xiàn)該功能設(shè)置的SearchForm 類存儲了查詢的條件和查詢值當(dāng)單擊搜 索欄中的搜索按鈕后請求被轉(zhuǎn)發(fā)到 UserAction類該類獲取 SearchForm類中的數(shù)據(jù)作為 SQL語句的查詢條件查詢出符合該條件的所有記錄然后轉(zhuǎn)發(fā)到相應(yīng)頁面進(jìn)行顯示下面主要介紹查詢功能的實現(xiàn)過程 1 瀏覽員工信息模塊中的查詢功能運行效果如圖 57 所示 圖 57 瀏覽員工信息 1 查詢頁面功能頁面 Look_personjsp 其顯示部分有一個文本框一個下拉列表和一個搜索按鈕組成文本框提供用戶輸入查詢的值在下拉列表中用戶選擇查詢的條件查詢功能代碼如下 htmlform action personperson_lookdo focus subsqlvalue 瀏覽員工信息 td colspan 5 align center 快速搜索 htmltext property subsqlvalue size 35 nbsp 類型 htmlselect property subsql htmloptions collection personsearchtypelist property value labelProperty label htmlselect htmlsubmit value 搜索 htmlform 2 編寫 Searchtypelist 類中的 getpersonsearchtypelist 方法 private static String sql1 select from TB_LABEL where LABELTYPE private static String sql2 order by LABELORDER public static ArrayList getpersonsearchtypelist sql sql1 person_search sql2 ArrayList persontypelist new ArrayList try rs dbgetRs sql while rsnext LabelValueBean label new LabelValueBean rsgetString ContentLABELNAME rsgetString ContentLABELVALUE persontypelistadd label catch Exception e eprintStackTrace Systemoutprintln Errorpersonsearchtypelist is error return persontypelist 3 編寫 SearchForm 類 該類用來存儲用戶輸入的查詢條件和查詢值其關(guān)鍵代碼如下 package officeactionform import apachestrutsactionActionForm public class SearchForm extends ActionForm private String subsql private String subsqlvalue 省略了屬性的 getXXX 和 setXXX 方法 4 在文件 strutsconfigxml 中配置如下 formbeans formbean name searchform type officeactionformSearchForm formbeans action name searchform parameter perso
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1