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

正文內(nèi)容

基于jsp的酒店管理系統(tǒng)課程設(shè)計(參考版)

2024-12-20 02:52本頁面
  

【正文】 } else if((adlogout)){//注銷 。 } //將信息發(fā)送到信息顯示頁面 (msg,msg)。 。(pwdFromDB)){//登陸成功 (adname,adname)。//執(zhí)行查詢得到正確密碼 if(pwdFromDB!=nullamp。+adname+39。//得到登陸名 String pwd = (pwd).trim()。 } else if((adlogin)){ (adname)。 } (msg,msg)。 br。//更新此用戶的密碼 (sqlb)。where uname=39。 if((pwdFromDB)){//比較密碼 String sqlb = update user set pwd=39。+uname+39。 String newPwd = (newPwd).trim()。 } } else if((changePwd)){ //得到提交的信息 String uname=(String)(uname)。 (msg,msg)。+uname+39。++39。+gender+39。+realName+ 39。+telNum+39。 String = ().trim()。 String realName = (realName).trim()。 } 資料修改 else if((changeMyInfo)){ String uname=(String)(uname)。//提示消息 (msg,msg)。 } } else if((logout)){ (uname)。 (msg,msg)。//將信息發(fā)送到信息顯示頁面 ().forward(req,res)。//跳轉(zhuǎn)到主頁 } else{ msg=uname+密碼不正確?。。?brbr+ a href=重新登陸 /a。//從數(shù)據(jù)庫得到密碼 if((password)){ (uname,uname)。+uname+39。+uname+39。//得到登陸用戶名 String pwd = (pwd).trim()。//返回更 新成功或者失敗標(biāo)志 } 登錄注銷 功能實現(xiàn)代碼: else if((login)){ (uname)。} } finally{()。//出現(xiàn)問題,事務(wù)回滾 b = false。//設(shè)置更新成功 } catch(Exception e){ ()。//將事務(wù)提交 (true)。//轉(zhuǎn)碼 (sql)。//轉(zhuǎn)碼 (sql)。//禁止自動提交,開始一個事務(wù) stat = ()。//記錄是否更新成功 try{ con = ()。}//關(guān)閉數(shù)據(jù)庫連接 return changedCount。//進行更新 } catch(Exception e) {()。//得到數(shù)據(jù)庫連接 stat = ()。 try{ String sql = new String((),iso88591)。}//關(guān)閉數(shù)據(jù)庫連接 return flag。} } catch(Exception e) {()。//創(chuàng)建語句對象 rs = (sql)。//轉(zhuǎn)碼 con = ()。 } 相應(yīng)數(shù)據(jù)庫方法: public static boolean isExist(String sqla){//查看此條記錄是否存在 boolean flag = false。 } (msg,msg)。 (sql)。++39。+gender+39。+realName+39。+telNum+39。+pwd+39。+uname+39。 if((sqla)){ msg=uname+:用戶名已存在,請試試另一個!?。?br/a href=重新注冊 /a。 //拼裝查看用戶是否存在的 SQL String sqla = select * from user where uname=39。 String gender = (gender)。 String telNum = (telNum).trim()。 } } 用戶注冊登錄模塊 用戶注冊 處理注冊代碼: if((reg)){ //得到注冊用戶填寫的資料 String uname = (uname).trim()。} finally {()。 s[4] = new String((1).getBytes(iso88591),gbk)。))。 rs = (select gName from rgroup where gId=(+ select rgroup from resource where rgid=39。 } (s)。i。//執(zhí)行查詢得到結(jié)果集 while(()){//遍歷結(jié)果集 String s[] = new String[5]。+oid+39。//得到數(shù)據(jù)庫連接 stat = ()。 } public static VectorString [] getOrderDetail(String oid){//得到某一訂單詳情 VectorString [] v = new VectorString[]()。} finally {()。 } (s)。i。//執(zhí)行查詢 while(()){//遍歷結(jié)果集 String s[] = new String[6]。//創(chuàng)建語句對象 String sql = new String((),iso88591)。//創(chuàng)建返回向量 try{ con = ()。} return i。}//出現(xiàn)錯誤,發(fā)起回滾操作 catch(Exception ea){()。 i = 1。//將事務(wù)提交 (true)。//執(zhí)行更新 orid++。 String sqld = new String((),iso88591)。+etime+39。+ftime+39。+rgid+39。 String etime = s[3]。 for(String []s:OrderList){ String rgid = s[0]。 (sql)。)。,39。//禁用自動提交 ,開始一個事務(wù) String sqla = insert into olist(oid,oname,otime) values+ (+oid+,39。 String otime = ()。 stat = ()。//得到訂單明細的主鍵 ID+1 值 int oid = (olist,oid)。//返回日期對象 } public static int addOrder(String user,VectorString[] OrderList) { int i = 0。} //調(diào)用 的構(gòu)造器構(gòu)造一個日期對象 da = new (date[0]1900,date[1]1,date[2],date[3],date[4])。i。//得到拆分后的字符串?dāng)?shù)組 int[] date = new int[]。//聲明日期對象引用 if(s!=null){ String p = |:| 。}//關(guān)閉數(shù)據(jù)庫連接 return v。} } } catch(Exception e) {()。 now = new ()。 s[1] = new String((2).getBytes(iso88591),gbk)。 while(()){ String []s =new String[2]。+rgid+39。+ ostatus+39。//得到數(shù)據(jù)庫連 接 stat = ()。 String rgid = new String((),iso88591)。//返回結(jié)果 } public static VectorString [] getOrderedDay(String rgid1){ VectorString [] v = new VectorString []()。} finally{()。 if(()) {b = true。+rgid+39。+ rstatus+39。 if(()) {b = true。+rgid+39。+ ostatus+39。 stat = ()。 String rgid = new String((),iso88591)。//初始為 false,即沒有被預(yù)訂 try{ String ostatus = new String(預(yù)定中 .getBytes(),iso88591)。//聲明 Statement 引用 private static ResultSet rs=null。 public class Order_DB{ private static Connection con=null。 import .*。}% tr bgcolor=white td align=center colspan=2br form action=OrderServlet name=removeAll method=post input type=hidden name=action value=REMOVE input type=submit value=清空訂單 /form /td td align=center colspan=2br form action=OrderServlet name=submitOrder method=post input type=hidden name=action value=SUBMIT input type=submit value=提交訂單 /form /td td align=centera href=繼續(xù)預(yù)訂 /a/td /tr /table%}% /body /html 訂單提交 提交數(shù)據(jù)庫代碼實現(xiàn): package 。i++){ String[] s = (i)。 for(int i=0。 (brbra href=返回 )。 if(OrderList==null||()==0){//訂單為空 (center)。//發(fā)回到 groupList 頁面 } 查看訂單 查看功能實現(xiàn)代碼: % String title = 訂單明細 。//將訂單加入到訂單列表中 (OrderList,OrderList)。 s[3] = etime。 s[1] = group。 String[] s = new String[4]。 String ftime = fyear++fmonth++fday++fhour+:+00。 String ehour = (String)(ehour)。 String emonth = (String)(emonth)。 String fhour = (String)(fhour)。 String fmonth = (String)(fmonth)。} if((ADD)){ String orderNum = (String)(orderNum)。 VectorString[] OrderList = //得到訂單列 表 (VectorStrin
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1