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

正文內(nèi)容

校園卡管理系統(tǒng)(編輯修改稿)

2025-05-09 07:22 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 return true。 else return false。} @Override public String toString() { return 卡號(hào)= + cardNo + , 用戶號(hào)= + UserID + , 密碼= + password + , 余額= + balance + , 是否可用= + isUsing 。 } 4.編程實(shí)現(xiàn) 實(shí)現(xiàn)數(shù)據(jù)庫(kù)連接 package operationGUI。import .*。public class DBAccess { private Connection conn=null。 private Statement stmt=null。 public ResultSet rs=null。 private PreparedStatement prestmt=null。 private String driver=。 private String url=jdbc:odbc:CardConn。//自定義數(shù)據(jù)源名 private String user=jane。 private String pwd=123456。 public String notes=數(shù)據(jù)庫(kù)操作提示。 //實(shí)例方法:實(shí)現(xiàn)數(shù)據(jù)庫(kù)連接 public void dbconn(){ try{ (driver)。 conn=(url, user, pwd)。 stmt=()。 } catch (ClassNotFoundException ec){ (ec)。 } catch (SQLException es){ (es)。 } catch (Exception ex){ (ex)。 } } //實(shí)現(xiàn)數(shù)據(jù)庫(kù)查詢并返回查詢記錄 public ResultSet dbSelect(String selString){ try{ rs=(selString)。 } catch (SQLException es) { (es)。 notes=數(shù)據(jù)庫(kù)查詢出現(xiàn)異常。 } return rs。 } //數(shù)據(jù)庫(kù)更新 public String dbUpdate(String updateString){ try{ prestmt=(updateString)。 ()。 notes=記錄更新成功。 } catch (SQLException es){ (es)。 notes=數(shù)據(jù)庫(kù)更新出現(xiàn)異常。 } return notes。 } //插入數(shù)據(jù) public String dbinsert(String insertString){ try{ prestmt=(insertString)。 ()。 notes=插入記錄成功。 } catch (SQLException es){ (es)。 notes=數(shù)據(jù)庫(kù)插入出現(xiàn)異常。 } return notes。 } //刪除 public String dbDelete(String delString){ try{ prestmt=(delString)。 ()。 notes=刪除成功。 } catch (SQLException es){ (es)。 notes=數(shù)據(jù)庫(kù)刪除現(xiàn)異常。 } return notes。 } //關(guān)閉數(shù)據(jù)庫(kù) public void dbclose(){ if(conn!=null){ try{ ()。 ()。 ()。 } catch (Exception e){} } }}調(diào)試分析 用戶登錄界面//確定按鈕代碼private void jBtnOKActionPerformed( evt) { if(()) chtype=普通用戶。 else chtype=管理員。 ()。 sql=select * from CardUsers。 (sql)。 try { while(()) {(b)。//如果用戶號(hào),密碼,身份相符 if(().equals((UserID)) amp。amp。 (()).equals((UserPwd)) amp。amp。 ((UserType))){ //顯示用戶名,并新建當(dāng)前用戶對(duì)象,存儲(chǔ)有關(guān)信息。 currentuser=new CardUsers(())。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1