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

正文內(nèi)容

java圖書(shū)管理系統(tǒng)(參考版)

2024-08-18 13:31本頁(yè)面
  

【正文】 l_bookid =new JLabel(圖書(shū)id:)。 BorMsgbookfrm() { //界面布局 l_msg =new JLabel(借書(shū)信息修改窗口 )。 Statement sqll。 String a2,a3,a4,a5。 JButton b_enter,b_clear,b_update,b_back。 JTextField t_id,t_return,t_beizhu。 } } } catch(SQLException er) { (er)。 } } else { (this,該用戶不存在!, ,)。 } } else { (this,該書(shū)不存在!, ,)。 } } else { (this,沒(méi)有庫(kù)存啦!, ,)。 } else { (this,您借書(shū)的冊(cè)數(shù)已滿,請(qǐng)還書(shū)之后再次借書(shū),謝謝合作!, ,)。 String users=UPDATE users set number=+n+ where userID=+()。 String books=UPDATE books set conun=+b_number+ where bookID=+()。 b_number=b_number1。 (())。 ()。 (temp)。 n=(number)。 int m,n。 if(b_number0) { //有庫(kù)存時(shí),對(duì)用戶已借書(shū)數(shù)量和借書(shū)上限進(jìn)行比較 rs=(select * from users where userid=+s2)。 if(()) { //查詢圖書(shū)id是否存在 rs=(select * from books where bookid = +s3)。+n+39。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。 } else { sqll=()。()。 } //單擊清空按鈕的事件處理程序 else if(()==b_clear) { ()。 //設(shè)置窗口大小 setBounds(400,100,400,500)。add(pan6)。add(pan4)。add(pan2)。 setLayout(new GridLayout(6,1))。(b_clear)。(t_beizhu)。(t_data)。(t_bookid)。(t_userid)。 (l_msg)。pan5=new JPanel()。pan3=new JPanel()。 pan1=new JPanel()。 (this)。 b_back =new JButton(返回)。 b_enter =new JButton(確定)。 (())。 t_data =new JTextField(,11)。 t_userid =new JTextField(,11)。 l_data =new JLabel(日 期:)。 l_userid =new JLabel(用戶id:)。 ResultSet rs。 Statement sqll。 Date d。 JButton b_enter,b_clear,b_back。 } } catch(SQLException e4) {} } }}圖書(shū)借閱管理子系統(tǒng):借閱圖書(shū):class Borbookfrm extends JFrame implements ActionListener{ JLabel l_msg,l_userid,l_bookid,l_data,l_beizhu。 (找到書(shū)籍!)。 (((7)))。 (((5)))。 ((3))。 if(()) { (2)。 rs=(temp)。 } //單擊確定按鈕的事件處理程序 else if(()==b_enter) { try { sqll=()。 ()。 ()。 ()。 } catch(SQLException e3) {} } } //單擊清除按鈕的事件處理程序 else if(()==b_clear) { ()。 (temp)。 (1)。 a7=39。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。 } //根據(jù)得到的用戶輸入信息,更新數(shù)據(jù)庫(kù)中的記錄 else { try { sqll=()。 } public void actionPerformed(ActionEvent ef) { //單擊退出按鈕的事件處理程序 if(()==b_back) { dispose()。 //建立數(shù)據(jù)庫(kù)連接 sql=new NetConn()。add(pan8)。add(pan6)。add(pan4)。add(pan2)。 add(pan1)。(b_enter)。 (l_idd)。(b_update)。(t_beizhu)。(t_number)。(t_price)。(t_pdata)。(t_author)。(t_pany)。(t_bookname)。 (l_msg)。pan9=new JPanel()。pan7=new JPanel()。pan5=new JPanel()。pan3=new JPanel()。 pan1=new JPanel()。 (this)。 (this)。 b_update=new JButton(更新)。 b_clear=new JButton(清空)。 t_number=new JTextField(,10)。 t_pdata=new JTextField(,10)。 t_pany=new JTextField(,10)。 t_idd =new JTextField(,10)。 l_number =new JLabel(新書(shū)數(shù)量:)。 l_pdata =new JLabel(出版日期:)。 l_pany =new JLabel(出版社: )。 l_idd =new JLabel(輸入id修改:)。 Mdibookfrm() { //界面布局 super(修改書(shū)籍窗口)。 ResultSet rs。 NetConn sql。 JButton b_clear,b_enter,b_update,b_back。 } }}修改圖書(shū)信息:class Mdibookfrm extends JFrame implements ActionListener{ JLabel l_msg,l_idd,l_bookname,l_pany,l_author,l_pdata,l_price,l_number,l_beizhu。 } else { (輸入的id不存在!)。)。 if(()) { (delete from books where bookid=+39。+()+39。 //根據(jù)給定圖書(shū)信息將其從數(shù)據(jù)庫(kù)中刪除 if(().equals()) { (請(qǐng)輸入要?jiǎng)h除書(shū)籍的id!)。 //建立數(shù)據(jù)庫(kù)連接 sql=new NetConn()。add(pan3)。 add(pan1)。(b_back)。(t_id)。pan3=new JPanel()。 pan1=new JPanel()。 (this)。 b_delbook=new JButton(刪除)。 Delbookfrm() { //界面布局 l_id=new JLabel(輸入你要?jiǎng)h除的書(shū)籍的id:)。 Statement sqll。 JPanel pan1,pan2,pan3。 JTextField t_id。 (書(shū)籍添加成功)。 //向數(shù)據(jù)庫(kù)中插入記錄 String temp=insert into books (bookname, pany, author, pressdata, price, conun, beizhu) VALUES (+a1+,+a2+,+a3+,+a4+,+a5+,+a6+,+a7+)。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。+().trim()+39。 } else { try { //獲得圖書(shū)信息 sqll=()。 l_msg =new JLabel(添加書(shū)籍 )。 ()。 ()。 ()。 } public void actionPerformed(ActionEvent ec) { //單擊退出按鈕的事件處理程序 if(()==b_back) { dispose()。 //建立數(shù)據(jù)庫(kù)連接 sql=new NetConn()。add(pan8)。add(pan6)。add(pan4)。add(pan2)。 setLayout(new GridLayout(9,1))。(b_add)。(t_beizhu)。(t_number)。(t_price)。(t_pdata)。(t_author)。(t_pany)。(t_bookname)。(l_msg)。pan8=new JPanel()。pan6=new JPanel()。pan4=new JPanel()。pan2=new JPanel()。 (this)。 (this)。 b_add =new JButton(添加)。 t_beizhu =new JTextField(,10)。 t_price =new JTextField(,10)。 t_author =new JTextField(,10)。 t_bookname=new JTextField(,10)。 l_number =new JLabel(新書(shū)數(shù)量:)。 l_pdata =new JLabel(出版日期:)。 l_pany =new JLabel(出版社: )。 l_msg =new JLabel(添加書(shū)籍 )。 String a1,a2,a3,a4,a5,a6,a7。 NetConn sql。 JButton b_clear,b_add,b_back。 } } }圖書(shū)管理子系統(tǒng):增加圖書(shū)信息:class Addbookfrm extends JFrame implements ActionListener{ JLabel l_msg,l_bookname,l_pany,l_author,l_pdata,l_price,l_number,l_beizhu。 (用戶刪除成功)。+()+39。+()+39。 } public void actionPerformed(ActionEvent e) { //單擊確定按鈕的事件處理程序 if(()==b_enter) { sqll=()。 //設(shè)置窗口大小 setBounds(400,200,300,300)。add(pan4)。add(pan2)。 setLayout(new GridLayout(4,1))。 (b_enter)。(t_pass)。(t_id)。 pan4=new JPanel()。 pan2=new JPanel()。 (this)。 (this)。)
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1