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

正文內(nèi)容

java課程設(shè)計(jì)超市庫存管理系統(tǒng)附源代碼可以直接運(yùn)行-資料下載頁

2025-08-07 03:36本頁面
  

【正文】 is)。 (this)。 (this)。 (this)。 (this)。 //inputText = new JTextField(6)。 p1 = new JPanel()。 (label)。 (inputText)。 (修改)。 (添加)。 //(刪除)。 (退出)。 (確認(rèn)修改)。 add(p1,)。 labels[0] = new JLabel(日期)。 labels[1] = new JLabel(商品名)。 labels[2] = new JLabel(供應(yīng)商)。 labels[3] = new JLabel(操作)。 labels[4] = new JLabel(數(shù)量)。 for(int i = 0。i2。i++){ text[i] = new JTextField(20)。 } (入庫)。 (出庫)。 text[0].setEditable(false)。 //用盒式容器裝要錄入的數(shù)據(jù)和標(biāo)簽 box1 = ()。 ((20))。 for(int i = 0。i5。i++){ (labels[i])。 ((70))。 } box2 = ()。 ((20))。 (text[0])。 ((60))。 (choice1)。 ((60))。 (choice2)。 ((60))。 (choice3)。 ((60))。 (text[1])。 ((60))。 baseBox = ()。 (box1)。 ((15))。 (box2)。 add(baseBox,)。 //添加表格 //添加表格 deModel = new DefaultTableModel(name,0)。 table = new JTable(deModel)。 (true)。 (true)。 (true)。 (true)。 split = new JSplitPane(,false,new JScrollPane(table),baseBox)。 ()。 add(split,)。 try{ //連接數(shù)據(jù)庫 con = (dburl, user, pass)。 sql = ()。 (this, 數(shù)據(jù)庫連接成功!,消息對話框,)。 rs = (select * from record)。 while(()){ for(int i = 0。i5。i++){ strings[i]=(i+1)。//把查詢的結(jié)果填入表格中 } (strings[0])。 if(strings[3].trim().pareTo(入庫)==0||strings[3].trim().pareTo(出庫)==0){ (strings[0])。 (strings)。 ()。 }//更新中的數(shù)據(jù) } rs = (select * from record)。 rs = (select * from goods)。 while(()){ for(int i = 0。i5。i++){ strings[i]=(i+1)。//把查詢的結(jié)果填入表格中 } (strings[1])。 } rs = (select * from supplier)。 while(()){ for(int i = 0。i5。i++){ strings[i]=(i+1)。//把查詢的結(jié)果填入表格中 } (strings[1])。 } } catch(SQLException ee){ ()。 } } public void actionPerformed(ActionEvent e) { if(()==修改) { try{ rs = (select * from record)。 while(()){ for(int i = 0。i5。i++){ strings[i]=(i+1)。 } if(strings[0].trim().pareTo(().toString().trim())==0){ text[0].setText(strings[0])。 text[1].setText(strings[4])。 } } } catch(SQLException ee){ ()。 } } else if(() == 確認(rèn)修改){ String sqlString = UPDATE record SET riqi = 39。+text[0].getText()+39。,shangpinming=39。+().toString()+39。,gongyingshang=39。+().toString()+39。,caozuo=39。+().toString()+39。,shuliang=39。+text[1].getText()+39。where riqi =39。+().toString().trim()+39。 try{ (sqlString)。 (this, 操作成功!,消息對話框,)。 //更新表格中的數(shù)據(jù) for(int i = ()1。i=0。i){ (i)。 ()。 } rs = (select * from record)。 while(()){ for(int j = 0。j5。j++){ strings[j]=(j+1)。 } if(strings[3].trim().pareTo(入庫)==0||strings[3].trim().pareTo(出庫)==0){ (strings)。 ()。} }//更新中的數(shù)據(jù) } catch(SQLException ee){ ()。 } for(int i = 0。i2。i++){ text[i].setText()。 } //()。 text[0].requestFocus()。//設(shè)置光標(biāo)的位置,在第一個文本框上面 } else if(()==添加) { date=new Date()。 matter1=new SimpleDateFormat(MM39。/39。dd39。/39。yyyy39。 39。HH39。:39。mm39。:39。ss)。 String nowDate=(date)。 String sqlString = INSERT INTO record VALUES (39。+nowDate+39。,39。+().toString()+39。,39。+().toString()+39。,39。+().toString()+39。,39。+text[1].getText()+39。)。 try{ (sqlString)。 //將表格中的內(nèi)容清空 for(int i = ()1。i=0。i){ (i)。 ()。 } rs = (select * from record)。 while(()){ for(int j = 0。j5。j++){ strings[j]=(j+1)。 } if(strings[3].trim().pareTo(入庫)==0||strings[3].trim().pareTo(出庫)==0){ (strings)。 ()。 }//更新中的數(shù)據(jù) } (this, 操作成功!,消息對話框,)。 } catch(SQLException ee){ ()。 } for(int i = 0。i2。i++){ text[i].setText()。 } } else if(() == 刪除){ String sqlString = DELETE FROM record where riqi = 39。+().toString().trim()+39。 try{ (sqlString)。 //將表格中的內(nèi)容清空 for(int i = ()1。i=0。i){ (i)。 ()。 } rs = (select * from record)。 while(()){ for(int i = 0。i5。i++){ strings[i]=(i+1)。//把查詢的結(jié)果填入表格中 }if(strings[3].trim().pareTo(入庫)==0||strings[3].trim().pareTo(出庫)==0){ (strings)。 ()。}//更新中的數(shù)據(jù) } (this, 操作成功!,消息對話框,)。 } catch(SQLException ee){ ()。 } } else if(()==退出) { ()。 } }} 軟件測試每個功能都有代碼進(jìn)行檢測,一旦進(jìn)行了操作,代碼檢測段就會自動檢測并更新,如下:其他測試均正常,如上圖都可正常運(yùn)行! 總結(jié)本次Java課程設(shè)計(jì)實(shí)踐中,毫無疑問要感謝的是我的上課老師,在這次課程設(shè)計(jì)中,老師不辭辛勞的一點(diǎn)點(diǎn)的幫助我們,從選題的指導(dǎo)到系統(tǒng)設(shè)計(jì)的修改,讓我從剛開始的摸不到頭腦到后來的日益純熟,都是老師辛勤付出的結(jié)果。在設(shè)計(jì)中我還領(lǐng)略到了老師認(rèn)真負(fù)責(zé)的工作態(tài)度,嚴(yán)謹(jǐn)?shù)闹螌W(xué)精神,以及樂觀熱情的生活態(tài)度,老師不僅僅的在指導(dǎo)我的課程設(shè)計(jì),也在指導(dǎo)著我今后的人生,她教導(dǎo)我的這些東西,會對我以后的學(xué)習(xí)生活大有裨益。所以在這里我真誠的對給予我認(rèn)真指導(dǎo)和耐心幫助的老師表示最深切的謝意。雖然其中的很多設(shè)計(jì)都是模仿那些前輩的設(shè)計(jì)而來,但是通過這次的畢業(yè)設(shè)計(jì),依然讓自己對Java程序設(shè)計(jì)又有了一個更深層次的理解。以前在做任何設(shè)計(jì)時(shí),對設(shè)計(jì)的前期工作不是很重視,但通過這次系統(tǒng)的編寫,我發(fā)現(xiàn)前期的設(shè)計(jì)是很重要的一部分,只有對設(shè)計(jì)的需求分析有了很好的理解才能有更好的解決思路。平時(shí)我們在代碼編寫時(shí)對類和變量的命名都很隨便,還缺少必要的注釋,或許這樣問題當(dāng)時(shí)能夠解決但對于后期開發(fā)和維護(hù)以及旁人的閱讀都帶來了一定的困難,都可能會產(chǎn)生異議或不理解。再者測試在項(xiàng)目開發(fā)中也是很重要的一個環(huán)節(jié),測試能對一些程序的Bug做一些必要的彌補(bǔ),可以使程序更加的完善和人性化。雖然本次設(shè)計(jì)的還不是很完美,還存在一些小瑕疵,但是我以后必定會更加努力學(xué)習(xí)Java語言!最后:感謝老師,感謝幫助我的同學(xué)! 附錄:參考資料:***********************************************************《Java語言程序設(shè)計(jì) 第三版》————邵麗萍《Java語言程序設(shè)計(jì)》—————— —明日圖書《數(shù)據(jù)庫基本教程》 百度文庫 維基百科***********************************************************
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1