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

正文內(nèi)容

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

2025-04-19 12:21 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 sword,String popedom) { super(添加用戶(hù))。 username = name。 userpassword = password。 userpopedom = popedom。 if((username,userpassword,userpopedom)) { }else{ (this,非法請(qǐng)求!)。 (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ù)號(hào)碼中的是不是都是數(shù)字 int _no = (no)。 (_no,name,password,popedom)。 (this,注冊(cè)成功!)。 dispose()。 (this,歡迎管理員回來(lái)!)。 new Usermanage(username,userpassword,userpopedom)。 } else{ (this,號(hào)碼不能是英文!)。 } } } if(()==_jb2){ dispose()。 (this,歡迎管理員回來(lái)!)。 new Usermanage(username,userpassword,userpopedom)。 } }}public void adduser(int number,String name,String password,String popedom)//向用戶(hù)表中添加用戶(hù) { String sql = insert into user(userno,username,userpassword,userpopedom) values(?,?,?,?)。 try{ ps = (sql)。 (1,number)。 (2,name)。 (3,password)。 (4,popedom)。 ()。//執(zhí)行插入語(yǔ)句并返回值為int類(lèi)型 ()。 ()。 }catch(SQLException e){ (())。 } }⑶ 刪除用戶(hù)管理員通過(guò)“查找用戶(hù)”功能查找到要?jiǎng)h除的用戶(hù)后在顯示區(qū)域選中該用戶(hù)或是直接在顯示區(qū)域選中要?jiǎng)h除的用戶(hù)點(diǎn)擊“刪除用戶(hù)”即可刪除該用戶(hù)并在顯示區(qū)列出刷新后的用戶(hù)信息。實(shí)現(xiàn)思想同查找用戶(hù)差不多,只是將實(shí)現(xiàn)的SQl語(yǔ)句換成delete語(yǔ)句。⑷ 修改用戶(hù)管理員可以通過(guò)“查找用戶(hù)”功能來(lái)找到該用戶(hù)也可以直接在顯示區(qū)域內(nèi)選擇要修改的用戶(hù),在“修改用戶(hù)”界面,管理員可以修改處該用戶(hù)的用戶(hù)號(hào)之外 的其他信息。具體實(shí)現(xiàn)思想為:“修改用戶(hù)”界面根據(jù)需要修改完用戶(hù)信息后,用戶(hù)的信息便會(huì)以參數(shù)形式傳遞給用于修改數(shù)據(jù)的SQL語(yǔ)句update語(yǔ)句。然后將修改后的信息顯示在顯示區(qū)域內(nèi)。假如現(xiàn)在我們要修改“高世杰”的信息,在修改界面()將該用戶(hù)的密碼修改為“1341”。 “修改用戶(hù)”輸入界面 修改用戶(hù)要運(yùn)行結(jié)果界面修改用戶(hù)模塊的代碼如下:public Updateusers(Object no,Object name,Object password,Object popedom) { super(修改用戶(hù))。 _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ù)”、“賣(mài)出票數(shù)”、“返回票數(shù)”三大塊。在此,我們對(duì)“所有票數(shù)”與“賣(mài)出票數(shù)”進(jìn)行討論。⑴ 所有票數(shù)此模塊通過(guò)select語(yǔ)句查詢(xún)出數(shù)據(jù)庫(kù)中所有車(chē)廂的總票數(shù)、車(chē)廂號(hào)所屬火車(chē)以及車(chē)廂類(lèi)型,并將結(jié)果顯示在“總票一覽”窗口?!翱偲币挥[”窗口所有票數(shù)模塊的代碼如下:public AllTicket(String name,String password,String popedom) { super(總票一覽)。 username = name。 userpassword = password。 userpopedom = popedom。 if((username,userpassword,userpopedom)) { }else{ (this,非法請(qǐng)求!)。 (0)。 } Object[] _name = new Object [] {車(chē)次,車(chē)廂,車(chē)廂類(lèi)型,總票數(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++)//測(cè)試此枚舉是否包含更多的元素 { rv = (RailwayVo) ()。//返回的是nextElement()Object類(lèi)型必須轉(zhuǎn)換 ((),i,0)。 ((),i,1)。 ((),i,2)。 ((),i,3)。 ((),i,4)。 } } 普通用戶(hù)登錄 查詢(xún)查詢(xún)主要包括按車(chē)次查詢(xún)和按車(chē)站查詢(xún)。當(dāng)我們輸入車(chē)次“T1”時(shí),會(huì)產(chǎn)生一個(gè)查詢(xún)結(jié)果。 查詢(xún)“T1”相關(guān)信息為了更好的仿真,我們還增加了“按車(chē)站查詢(xún)”的功能的模塊?!鞍窜?chē)次查詢(xún)”、“按車(chē)站查詢(xú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)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1