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

正文內(nèi)容

課程設(shè)計(jì)-火車售票系統(tǒng)課程設(shè)計(jì)報(bào)告(編輯修改稿)

2025-02-15 00:11 本頁面
 

【文章內(nèi)容簡介】 sword,String popedom) { super(添加用戶)。 username = name。 userpassword = password。 userpopedom = popedom。 if((username,userpassword,userpopedom)) { }else{ (this,非法請求!)。 (0)。 } _jt1 = new JTextField(10)。 _jt2 = new JTextField(10)。 _jt3 = new JTextField(10)。 _jt4 = new JTextField(10)。 _jb1 = new JButton(提交)。 _jb2 = new JButton(返回)。 jp1 = new JPanel()。 jp2 = new JPanel()。 jp3 = new JPanel()。 jp4 = new JPanel()。 jp5 = new JPanel()。 jp6 = new JPanel(new GridLayout(4,1))。 _jl1 = new JLabel(號(hào) 碼)。 _jl2 = new JLabel(姓 名)。 _jl3 = new JLabel(密 碼)。 _jl4 = new JLabel(權(quán) 限)。 (_jl1)。 (_jt1)。 (_jl2)。 (_jt2)。 (_jl3)。 (_jt3)。 (_jl4)。 (_jt4)。 (_jb1)。 (_jb2)。 (jp1)。 (jp2)。 (jp3)。 (jp4)。 (this)。 (this)。 (jp6,Center)。 (jp5,South)。 pack()。 (true)。 ()。 int W = (int)().getScreenSize().getWidth()。 int H = (int)().getScreenSize().getHeight()。 ((())/2,(())/2)。 } public void actionPerformed(ActionEvent e) { if(()==_jb1) { String no = ().trim()。 String name = ().trim()。 String password = ().trim()。 String popedom = ().trim()。 if(()||()||()||!(admin)amp。amp。!(user)) { (this,資料不能為空或者\(yùn)n權(quán)限只能為“admin”,“user”!)。 }else { if((no)){//判斷用戶號(hào)碼中的是不是都是數(shù)字 int _no = (no)。 (_no,name,password,popedom)。 (this,注冊成功!)。 dispose()。 (this,歡迎管理員回來!)。 new Usermanage(username,userpassword,userpopedom)。 } else{ (this,號(hào)碼不能是英文!)。 } } } if(()==_jb2){ dispose()。 (this,歡迎管理員回來!)。 new Usermanage(username,userpassword,userpopedom)。 } }}public void adduser(int number,String name,String password,String popedom)//向用戶表中添加用戶 { String sql = insert into user(userno,username,userpassword,userpopedom) values(?,?,?,?)。 try{ ps = (sql)。 (1,number)。 (2,name)。 (3,password)。 (4,popedom)。 ()。//執(zhí)行插入語句并返回值為int類型 ()。 ()。 }catch(SQLException e){ (())。 } }⑶ 刪除用戶管理員通過“查找用戶”功能查找到要?jiǎng)h除的用戶后在顯示區(qū)域選中該用戶或是直接在顯示區(qū)域選中要?jiǎng)h除的用戶點(diǎn)擊“刪除用戶”即可刪除該用戶并在顯示區(qū)列出刷新后的用戶信息。實(shí)現(xiàn)思想同查找用戶差不多,只是將實(shí)現(xiàn)的SQl語句換成delete語句。⑷ 修改用戶管理員可以通過“查找用戶”功能來找到該用戶也可以直接在顯示區(qū)域內(nèi)選擇要修改的用戶,在“修改用戶”界面,管理員可以修改處該用戶的用戶號(hào)之外 的其他信息。具體實(shí)現(xiàn)思想為:“修改用戶”界面根據(jù)需要修改完用戶信息后,用戶的信息便會(huì)以參數(shù)形式傳遞給用于修改數(shù)據(jù)的SQL語句update語句。然后將修改后的信息顯示在顯示區(qū)域內(nèi)。假如現(xiàn)在我們要修改“高世杰”的信息,在修改界面()將該用戶的密碼修改為“1341”。 “修改用戶”輸入界面 修改用戶要運(yùn)行結(jié)果界面修改用戶模塊的代碼如下:public Updateusers(Object no,Object name,Object password,Object popedom) { super(修改用戶)。 _jl1 = new JLabel(號(hào) 碼)。 _jl2 = new JLabel(姓 名)。 _jl3 = new JLabel(密 碼)。 _jl4 = new JLabel(權(quán) 限)。 _jt1 = new JTextField(10)。 (+no)。 (false)。 _jt2 = new JTextField(10)。 (+name)。 _jt3 = new JTextField(10)。 (+password)。 _jt4 = new JTextField(10)。 (+popedom)。 _jb1 = new JButton(提交)。 _jb2 = new JButton(返回)。 jp1 = new JPanel()。 jp2 = new JPanel()。 jp3 = new JPanel()。 jp4 = new JPanel()。 jp5 = new JPanel()。 jp6 = new JPanel(new GridLayout(4,1))。 (_jl1)。 (_jt1)。 (_jl2)。 (_jt2)。 (_jl3)。 (_jt3)。 (_jl4)。 (_jt4)。 (_jb1)。 (_jb2)。 (jp1)。 (jp2)。 (jp3)。 (jp4)。 (this)。 (this)。 (jp6,Center)。 (jp5,South)。 pack()。 (true)。 ()。 int W = (int)().getScreenSize().getWidth()。 int H = (int)().getScreenSize().getHeight()。 ((())/2,(())/2)。 }public boolean updateUser(String userno,String username,String userpassword,String userpopedom)//修改 { int i=0。 String sql = update user set username=?, userpassword=?, userpopedom=? where userno=?。 try{ ps = (sql)。 (1,username)。 (2,userpassword)。 (3,userpopedom)。 (4,(userno))。 i=()。 ()。 ()。 }catch(SQLException e){ (())。 } if(i==1) { return true。 }else{ return false。 } } 票務(wù)管理“票務(wù)管理”包括“所有票數(shù)”、“賣出票數(shù)”、“返回票數(shù)”三大塊。在此,我們對(duì)“所有票數(shù)”與“賣出票數(shù)”進(jìn)行討論。⑴ 所有票數(shù)此模塊通過select語句查詢出數(shù)據(jù)庫中所有車廂的總票數(shù)、車廂號(hào)所屬火車以及車廂類型,并將結(jié)果顯示在“總票一覽”窗口?!翱偲币挥[”窗口所有票數(shù)模塊的代碼如下:public AllTicket(String name,String password,String popedom) { super(總票一覽)。 username = name。 userpassword = password。 userpopedom = popedom。 if((username,userpassword,userpopedom)) { }else{ (this,非法請求!)。 (0)。 } Object[] _name = new Object [] {車次,車廂,車廂類型,總票數(shù),剩余票數(shù)}。 _net = new NotEditable(_name,100)。 _t = new JTable(_net)。 _th = ()。 _sp = new ScrollPane()。 (_t)。 _jp = new JPanel()。 _return = new JButton(返回)。 (this)。 (_return)。 (_th,North)。 (_sp,Center)。 (_jp,South)。 (500,500)。 (true)。 (false)。 ()。 int W = (int)().getScreenSize().getWidth()。 int H = (int)().getScreenSize().getHeight()。 ((())/2,(())/2)。 v = ()。 Enumeration e = ()。//返回此向量的組件的枚舉 for(int i = 0。()。i++)//測試此枚舉是否包含更多的元素 { rv = (RailwayVo) ()。//返回的是nextElement()Object類型必須轉(zhuǎn)換 ((),i,0)。 ((),i,1)。 ((),i,2)。 ((),i,3)。 ((),i,4)。 } } 普通用戶登錄 查詢查詢主要包括按車次查詢和按車站查詢。當(dāng)我們輸入車次“T1”時(shí),會(huì)產(chǎn)生一個(gè)查詢結(jié)果。 查詢“T1”相關(guān)信息為了更好的仿真,我們還增加了“按車站查詢”的功能的模塊?!鞍窜嚧尾樵儭?、“按車站查詢”的模塊代碼如下:public void actionPerformed(ActionEvent e) { if(()==_jb1)// 判斷是否點(diǎn)擊按鈕 { ()。 ()。 ()。 ()。 String trainno = ().trim()。 if(_cb[0].getState()==true) //判斷第一個(gè)單選是否為真 { if((trainno)!=null) { for(int m = 0。m1
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1