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

正文內容

教材管理系統(tǒng)及其源代碼-資料下載頁

2025-04-08 23:38本頁面
  

【正文】 it=()。 Dimension screen=()。 int x=。 /*取得顯示器窗口的寬度*/ int y=。 /*取得顯示器窗口的高度*/ (400,330)。 int xcenter=(x350)/2。 int ycenter=(y330)/2。 (xcenter,ycenter)。/*顯示在窗口中央*/ (true)。 // (this)。//注冊監(jiān)聽器 (this)。 (this)。 /*(new WindowAdapter(){ public void windowClosing(WindowEvent e){ (0)。 } } )。*/ } // int i=0。 public void showRecord(String ql) { while(i=0) { ar[i][0]=。 ar[i][1]=。 ar[i][2]=。 ar[i][3]=。 ar[i][4]=。 ar[i][5]=。 i。 } i=0。try{ ()。 }catch(ClassNotFoundException e){(加載驅動程序失敗!)。} try{String url = jdbc:odbc:jf。//直接使用當前類目錄下的數(shù)據(jù)庫文件 Connection con=(url)。 Statement sql。 String s=select * from book where 教材名 =39。+ql +39。 sql=()。 ResultSet rs=(s)。 while(()) {String bname=(1)。 String bno=(2)。 String price=(3)。 String writer=(4)。 String publish=(5)。 String indate=(6)。 ar[i][0]=bname。 ar[i][1]=bno。 ar[i][2]=price。 ar[i][3]=writer。 ar[i][4]=publish。 ar[i][5]=indate。 i++。 } count=+i+。 (該種教材共有+count+本)。 ()。 ()。(ar[0][1])。 }catch(SQLException g) {(E Code+())。 (E M+())。 } } public void deleteRecord(int index) { try{ ()。 }catch(ClassNotFoundException e){(加載驅動程序失敗!)。} try{String url = jdbc:odbc:jf。//直接使用當前類目錄下的數(shù)據(jù)庫文件 Connection con=(url)。 Statement sql。 String ql=(String)(ar[index][1])。 String s=delete from book where 教材號 =39。+ql +39。 sql=()。 int del=(s)。 if(del==1) {(null,刪除成功!, 信息, )。 } ()。 ()。 }catch(SQLException g) {(E Code+())。 (E M+())。 } }public void actionPerformed(ActionEvent e) { String remember=。 String ql=。 String cmd=()。 if((查詢)) {ql=().trim()。 remember=ql。 showRecord(ql)。 } if((刪除)) { int index=()。 if( index==1) (null,請選定要刪除的表格行, 輸入錯誤, )。else{deleteRecord(index)。 //showRecord(remember)。 } } if((取消)) ()。 }}7) 數(shù)據(jù)庫連接模塊import .*。public class sql{String driver = 。 String url = jdbc:odbc:jf。 String user = 。 String pwd = 。 Connection conn。 Statement stmt。 ResultSet rs。 //加載數(shù)據(jù)庫驅動 public void registerDBdriver() {try {(driver)。 } catch (Exception e) {(e)。 } } //獲取數(shù)據(jù)庫連接 public void connect() { try {conn = (url,user,pwd)。 stmt = ()。 } catch (Exception e) {(e)。 } } //執(zhí)行SQL查詢語句 public ResultSet executeQuery(String sql) {try {if (stmt == null) {connect()。 } rs = (sql)。 } catch (Exception e) {(e)。 } return rs。 }//執(zhí)行SQL更新語句 public int executeUpdate(String sql) {int i=0。 try {if (stmt == null) {connect()。 } i=(sql)。 } catch (Exception e) {(e)。 } return i。 } //關閉連接,回收資源 public void close() {try {if(rs!=null) {()。 } if (stmt != null) {()。 } if (conn != null) {()。 } } catch (Exception e) {(e)。 }}}
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1