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

正文內(nèi)容

基于j2ee的酒店預(yù)訂系統(tǒng)設(shè)計(jì)與開發(fā)_畢業(yè)論文設(shè)計(jì)-資料下載頁

2025-02-26 09:49本頁面

【導(dǎo)讀】方法,融入面向?qū)ο蟮姆治鍪侄魏脱芯糠椒?。在酒店管理系統(tǒng)的建立過程中,主。了系統(tǒng)的需求、設(shè)計(jì)和編碼方案。簡要闡述;其次對(duì)系統(tǒng)開發(fā)過程中所涉及到的架構(gòu)知識(shí)、技術(shù)規(guī)范進(jìn)行了說明,發(fā)過程進(jìn)行了詳細(xì)分析和說明,并附帶有部分源代碼和演示效果圖。性能的免費(fèi)數(shù)據(jù)庫服務(wù)器MySQL作為后臺(tái)數(shù)據(jù)庫服務(wù)器。

  

【正文】 update client set yuding=2 where roomnumber=?; QueryRunner run1 = new QueryRunner(ds); (sql, sr); }if(i==2){ServletContext application1 = getServletContext(); (roomno, roomno); RequestDispatcher rs = 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 37 (/servlet/seachall); try { (request, response); return; } catch (Exception e) { }}else{if (result == 1) {message = 操作成功 !; } else {message = 操作失敗 !; } (message, message); (/).forward(request ,response); } } catch (SQLException e) {(); }} “修改”操作為預(yù)定客戶提供修改相關(guān)信息的功能,流程圖如下: 否 是 圖 56 “修改”流程 點(diǎn)擊“修改”按鈕 輸入用戶身份證號(hào) 是否存在 顯示修改客戶信息列表 修改信息,點(diǎn)擊確定 提示修改成功 顯示空列表 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 38 圖 57 “修改”流程 設(shè)計(jì)思想:輸入身份證號(hào)后提交經(jīng) trueroom 查找客戶信息,在 頁面顯示客戶的信息,修改后提交 update 對(duì)數(shù)據(jù)庫進(jìn)行修改 . Truroom 代碼如下: (utf8); ServletContext application = getServletContext(); String leixing= (String) (leixing); String roomno = (String) (roomno); DataSource ds = null; Context context; try {context = new InitialContext(); ds = (DataSource) (java: /p/env/jdbc/mysqlds); } catch (NamingException e) { (); (獲取數(shù)據(jù)源錯(cuò)誤! ); } try {String sql = select * from room where statue=? and roomno=?; QueryRunner run = new QueryRunner(ds); String str[]={leixing, roomno}; List list=(List) (sql, str, new BeanListHandler()); if(()){ 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 39 (/servlet/insertroom).forward(request, response); } else{ServletContext application1= getServletContext(); (roomno, roomno); (leixing, leixing); RequestDispatcher rs=(/servlet/insertroom); try{(request, response); return; }catch (Exception e){}} } catch (SQLException e) {(); } “取消”操作為客戶提供取消預(yù)定的功能,方便客戶改變計(jì)劃,流程圖如下: 否 是 圖 58 “取消”流程 查詢模塊 在本系統(tǒng)中,查詢系統(tǒng)模塊主要實(shí)現(xiàn)對(duì)酒店房間狀態(tài)查詢,客戶查詢和所有客戶信息查詢的管理,查詢?cè)O(shè)計(jì)主要包括:房間入住情況查詢,客戶查詢和顯示所有客戶;關(guān)系如下列圖。 查詢房間狀態(tài)能更好的了解酒店入住情況,為客戶修改房間號(hào)提供依據(jù),流程如下: 點(diǎn)擊“取消”按鈕 輸入身份證號(hào) 是否存在 提示不存在 信息 顯示客戶列表,點(diǎn)擊取消 提示取消成功 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 40 圖 59 “房間狀態(tài)”查詢流程 圖 510房間入住情況”查詢界面截圖 房間查詢的思想為:先到 getallroom 控制塊對(duì)條件進(jìn)行處理,將滿足條件的房間號(hào)的數(shù)組放到 中,再到 頁面將數(shù)組顯示出來。 getallroom 代碼實(shí)現(xiàn)如下: try { sql = select roomno, statue, startdate, enddate from room; QueryRunner run = new QueryRunner(ds); List list = (List) (sql, new BeanListHandler()); (list, list); (/main/).forward(request ,response); } catch (SQLException e) { (); } 客戶查詢?yōu)槠渌藛T查找 客戶提供方便快捷的功能,提高效率,其流程圖如下: 點(diǎn)擊“房間狀態(tài)顯示” 顯示所有房間入住情況 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 41 否 是 圖 511 “客戶”查詢流程 設(shè)計(jì)思想與 gatallroom 基本相同,只是 SQL 語句中的查詢表不同。 顯示所有客戶信息是客戶查詢的進(jìn)一步擴(kuò)展,可以查看所有的客戶,并提供修改的功能,其流程圖如下: 圖 512 “顯示所有客戶”流程 圖 513“顯示所有客戶”查詢界面截圖 設(shè)計(jì)思想與 gatallroom 基本相同,只是 SQL 語句中的查詢表不同。 點(diǎn)擊“客戶查詢” 輸入身份證號(hào) 是否存在 顯示客戶信息 顯示空列表 點(diǎn)擊“顯示所有客戶信息” 顯示所有客戶的信息列表 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 42 入住模塊 在本系統(tǒng) 中,入住系統(tǒng)模塊主要實(shí)現(xiàn)對(duì)預(yù)定客戶入住和散客登記入住的管理,關(guān)系如下列圖。 預(yù)定入住是為預(yù)定客戶提供入住手續(xù)的模塊,為預(yù)定客戶提供方便,其流程圖如下: 否 是 圖 514 “預(yù)定入住”流程 圖 515“預(yù)定入住”模塊界面截圖 預(yù)定入住設(shè)計(jì)思想為:首先到 getclient 控制塊中查詢已經(jīng)預(yù)定的客戶信息,到 頁面顯示出來,然 后選擇客戶進(jìn)行入住。 getclient 代碼實(shí)現(xiàn)如下: try {String sql=select clientname, sex, shenfenzheng, roomnumber from client 點(diǎn)擊“預(yù)定入住” 顯示所有預(yù)定客戶信息 選擇預(yù)定入住客戶, 點(diǎn)擊“入住” 提示操作成功 是否有預(yù)定客戶 顯示空列表 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 43 where yuding=39。139。; QueryRunner run = new QueryRunner(ds); List list = (List) (sql, new BeanListHandler()); (list , list) ;(/main/).forward(request ,response); }catch(SQLException e) {(); } 登記入住是為散客提供入住的操作,其流程如下: 否 是 圖 516“登記入住”流程 退房模塊 在本系統(tǒng)中,退房模塊 主要實(shí)現(xiàn)對(duì)入住客戶退房的管理,關(guān)系如下列圖。 否 是 點(diǎn)擊“登記入住” 顯示“空房信息列表” 選擇房間,點(diǎn)擊“入住” 填寫客戶信息,點(diǎn)擊“確定” 提示操作成功 是否有空房 顯示空列表 點(diǎn)擊“退房 ” 輸入房間號(hào),點(diǎn)擊確定 是否有入住 顯示客戶信息及消費(fèi)情況 結(jié)賬,點(diǎn)擊“退房” 提示操作成功 不存在 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 44 圖 517 “退房”操作流程 圖 518輸入 房間號(hào): 302后: 客戶退房模塊設(shè)計(jì)是:輸入房間號(hào)后查詢客戶信息及消費(fèi)情況;在輸出之前首先要預(yù)先查詢房間號(hào)是否有人入住,再修改數(shù)據(jù)庫信息,最后顯示客戶的信息及消費(fèi)情況。 退房設(shè)計(jì)思想為:當(dāng)輸入房間號(hào)后到 trueroom2 控制塊中查詢?cè)摲块g是否已經(jīng)入住,到滿足條件時(shí),到 insertroom 對(duì)數(shù)據(jù)庫插入退房時(shí)間,然后再到 getall控制塊查詢:客戶信息, 房間入住,退房時(shí)間以及客戶消費(fèi)信息。最后到 頁面顯示所有信息。然后結(jié)賬,退房。 trueroom2 預(yù)先查詢代碼如下: (utf8); String roomno = (roomno); String leixing= (leixing); try { String sql = select * from room where statue=? and roomno=?; QueryRunner run = new QueryRunner(ds); String str[] = { leixing, roomno }; List list = (List)(sql, str, new BeanListHandler( )); ServletContext application1 = getServletContext(); (roomno, roomno); 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 45 (leixing, leixing); RequestDispatcher rs = (/servlet/insertroom); try {(request, response); return; } catch (Exception e) {}} } catch (SQLException e) {(); } Insertroom 的實(shí)現(xiàn)如下: (utf8); ServletContext application = getServletContext(); String leixing = (String) (leixing); String roomno= (String) (roomno); (roomno); (leixing); int i=(leixing); int result = 0; String message = null; String sql=null; try { switch(i){ case 0: sql=update room set statue=1 where roomno=?; break; case 1: sql=update room set statue=2, startdate=now() where roomno=?; break; case 2: sql=update room set enddate=now() where roomno=?;break; } String sr[] = {roomno}; QueryRunner run = new QueryRunner(ds); result = (sql, sr); if(i==1){ 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 46 sql=update client set yuding=2 where roomnumber=?; QueryRunner run1 = new QueryRunner(ds); (sql, sr); } if(i==2){ServletContext application1 = getServletContext(); (roomno, roomno); RequestDispatcher rs = (/servlet/seachall); try { (request, response); return; } catch (Exception e) { }} else{if (result == 1) { message = 操作成功 !; } else { message = 操作失敗 !; } (message, message); (/).forward(request, response); } } catch (SQLException e) { (); } } Seachall 的實(shí)現(xiàn)如下: (utf8); ServletContext application = getServletContext(); String roomno = (String) (roomno); 基于 J2EE 的 酒店預(yù)訂 系統(tǒng) 設(shè)計(jì)與 實(shí)現(xiàn) 47 String consumerno = 123456; DataSource ds = null; String sql = null; try {sql = select clientname, sex, shenfenzheng from client where yuding=2 and roomnumber=?; QueryRunner run = new QueryRunner(ds); String str[] = { roomno }; List list = (List) (sql, str, new BeanListHandler( )); dbmen bl = (dbmen) (0); (bl, bl); sql = select roomno, startdate, enddate, timestampdiff(day, startdate, enddate) as day from room where statue=2 and roomno=?; List list1 = (List) (sql, str, new BeanListHandler()); room room1 = (room) (0); (room1, room1); sql = select * from consumer where consumerno=?; String str1[] = { consumerno }; List list2 = (List) (sql, str1, new BeanListHa
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1