九九热最新网址,777奇米四色米奇影院在线播放,国产精品18久久久久久久久久,中文有码视频,亚洲一区在线免费观看,国产91精品在线,婷婷丁香六月天

數(shù)據(jù)庫課程設(shè)計(jì)——工資管理系統(tǒng)--職工考勤管理系統(tǒng)(java+sqlsever2000).doc

上傳人:good****022 文檔編號:116635901 上傳時(shí)間:2022-07-06 格式:DOC 頁數(shù):29 大?。?.03MB
收藏 版權(quán)申訴 舉報(bào) 下載
數(shù)據(jù)庫課程設(shè)計(jì)——工資管理系統(tǒng)--職工考勤管理系統(tǒng)(java+sqlsever2000).doc_第1頁
第1頁 / 共29頁
數(shù)據(jù)庫課程設(shè)計(jì)——工資管理系統(tǒng)--職工考勤管理系統(tǒng)(java+sqlsever2000).doc_第2頁
第2頁 / 共29頁
數(shù)據(jù)庫課程設(shè)計(jì)——工資管理系統(tǒng)--職工考勤管理系統(tǒng)(java+sqlsever2000).doc_第3頁
第3頁 / 共29頁

下載文檔到電腦,查找使用更方便

12 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《數(shù)據(jù)庫課程設(shè)計(jì)——工資管理系統(tǒng)--職工考勤管理系統(tǒng)(java+sqlsever2000).doc》由會員分享,可在線閱讀,更多相關(guān)《數(shù)據(jù)庫課程設(shè)計(jì)——工資管理系統(tǒng)--職工考勤管理系統(tǒng)(java+sqlsever2000).doc(29頁珍藏版)》請?jiān)谘b配圖網(wǎng)上搜索。

1、得分:課程設(shè)計(jì)報(bào)告工資管理系統(tǒng)-職工考勤管理系統(tǒng)姓名 LS班級學(xué)號QQ:1054180233課程名稱數(shù)據(jù)庫原理及應(yīng)用指導(dǎo)教師2011年12月15日 目 錄1工資管理系統(tǒng)需求分析1 1.1功能需求1 1.1.1功能劃分1 1.1.2功能描述1 1.2性能需求1 1.3數(shù)據(jù)流圖2 1.4 數(shù)據(jù)字典5 1.4.1 數(shù)據(jù)流的描述5 1.4.2處理邏輯的描述6 1.4.3數(shù)據(jù)存儲的描述62.總體設(shè)計(jì)7 2.1數(shù)據(jù)庫概念設(shè)計(jì)7 2.2功能模塊83.系統(tǒng)詳細(xì)設(shè)計(jì)9 3.1數(shù)據(jù)庫邏輯設(shè)計(jì)9 3.2各模塊功能10 3.2.1職工信息管理系統(tǒng)10 3.2.2職工工資管理系統(tǒng)10 3.2.3職工津貼管理系統(tǒng)10 3

2、.2.4職工考勤管理系統(tǒng)104.系統(tǒng)實(shí)現(xiàn)11 4.1界面截圖11 4.1.1主界面及工資基本信息界面11 4.1.2登錄界面12 4.1.3系統(tǒng)主界面13 4.1.4考勤信息錄入,修改,刪除,查詢界面14 4.2設(shè)計(jì)代碼15 1、 需求分析1.1 功能需求1.1.1功能劃分(1)、員工考勤情況表;及時(shí)反映員工的出勤,以及缺勤扣款情況(2)、員工津貼表,反映員工的加班時(shí)間,加班類別、加班天數(shù)、津貼情況等;(3)、員工基本信息表,反映員工的基本信息,反映員工的工種、等級,基本工資等信息;(4)、員工月工資表,計(jì)算月工資,生成打印清單。(5)、銀行表,用于員工工資的發(fā)放。(6)、后勤部門表;反映員工

3、的水電扣款信息等 1.1.2 功能描述(1)、員工每個(gè)工種基本工資的設(shè)定(2)、加班津貼管理,根據(jù)加班時(shí)間和類型給予不同的加班津貼;(3)、按照不同工種的基本工資情況、員工的考勤情況產(chǎn)生員工的每月的月工資;(4)、員工年終獎(jiǎng)金的生成,員工的年終獎(jiǎng)金計(jì)算公式(員工本年度的工資總和津貼的總和)/12;(5)、企業(yè)工資報(bào)表。能夠查詢單個(gè)員工的工資情況、每個(gè)部門的工資情況、按月的工資統(tǒng)計(jì),并能夠打?。?6)、系統(tǒng)維護(hù)功能;1.2性能需求此工資管理系統(tǒng)對工資數(shù)據(jù)精度的計(jì)算能在默認(rèn)情況之下精確到小數(shù)點(diǎn)后3位小數(shù),即是精確到分的計(jì)算。但在用戶使用過程中,能自行根據(jù)實(shí)際情況進(jìn)行小數(shù)計(jì)算精度的設(shè)定,最大能允許保

4、留小數(shù)點(diǎn)后5位的精度。在時(shí)間特性上,當(dāng)用戶發(fā)出命令請求時(shí)的服務(wù)器的響應(yīng)時(shí)間、對數(shù)據(jù)更新處理、工資數(shù)據(jù)的查詢檢索等上,同樣要求系統(tǒng)響應(yīng)時(shí)間不會超過0.5秒時(shí)間。系統(tǒng)支持多種操作系統(tǒng)的運(yùn)行環(huán)境,多不同操作系統(tǒng),不同文件格式的磁盤上的數(shù)據(jù)均能實(shí)現(xiàn)信息的互通,及共享。當(dāng)服務(wù)器移植到其他的系統(tǒng)平臺,如:Linux平臺下時(shí),同樣能和其他的系統(tǒng)進(jìn)行數(shù)據(jù)存取同步,不會出現(xiàn)系統(tǒng)之間互不兼容的情況,系統(tǒng)支持多系統(tǒng)之間的互連互通,系統(tǒng)有巨大的強(qiáng)健性。1.3數(shù)據(jù)流圖根據(jù)工資管理要求及用戶需求調(diào)查分析,得到以下數(shù)據(jù)流圖數(shù)據(jù)庫操作操作數(shù)據(jù)系統(tǒng)操作工資信息考勤信息進(jìn)入基本界面職工信息津貼管理圖1.1第一層數(shù)據(jù)流圖修改職工信

5、息刪除職工記錄輸入職工基本信息職工表添加操作修改操作刪除操作用戶查詢操作職工號 圖1.2職工信息的載入修改工資信息刪除工資信息輸入工資基本信息工資表添加操作修改操作刪除操作查詢操作圖1.3 工資的信息載入修改考勤信息刪除考勤信息輸入考勤基本信息考勤表添加操作修改操作刪除操作查詢操作用戶圖1.4考勤的信息載入修改津貼信息刪除津貼信息輸入津貼基本信息津貼表添加操作修改操作刪除操作查詢操作用戶圖1.5津貼的信息載入職工管理員進(jìn)入系統(tǒng)進(jìn)入員工(工資,考勤,津貼)表職工表工資表考勤表津貼表進(jìn)行錄入,修改,刪除,查詢操作圖1.6信息查詢及管理的流程圖1.4數(shù)據(jù)字典工資管理系統(tǒng)各實(shí)體及聯(lián)系的數(shù)據(jù)字典1.4.

6、1數(shù)據(jù)流的描述數(shù)據(jù)流的編號:D001數(shù)據(jù)流的名稱:員工基本信息 簡述:與員工有關(guān)的基本信息數(shù)據(jù)流來源:員工基本信息表數(shù)據(jù)流去向:員工,部門數(shù)據(jù)流組成:員工編號+姓名+性別+年齡+部門+進(jìn)入公司時(shí)間+住址數(shù)據(jù)流的編號:D002數(shù)據(jù)流的名稱:工資結(jié)構(gòu)信息 簡述:查詢工資時(shí)所包含的相關(guān)信息數(shù)據(jù)流來源:工資信息表數(shù)據(jù)流去向:員工數(shù)據(jù)流組成:員工編號+加班加班+出差工資+遲到早退+礦工工資+應(yīng)發(fā)工資+實(shí)發(fā)工資數(shù)據(jù)流的編號:D003數(shù)據(jù)流的名稱:職務(wù)部門信息 簡述:查詢員工職務(wù)部門信息數(shù)據(jù)流來源:職務(wù)部門信息表數(shù)據(jù)流去向:員工數(shù)據(jù)流組成:員工編號+職務(wù)+部門數(shù)據(jù)流的編號:D004數(shù)據(jù)流的名稱:員工變動信息

7、 簡述:查詢員工變動情況數(shù)據(jù)流來源:員工變動信息表數(shù)據(jù)流去向:員工數(shù)據(jù)流組成:員工編號+原職務(wù)+原部門+現(xiàn)職務(wù)+現(xiàn)部門1.4.2處理邏輯的描述 處理邏輯編號:p001處理邏輯名稱:工資統(tǒng)計(jì) 簡述:對工資進(jìn)行統(tǒng)計(jì)、計(jì)算輸入的數(shù)據(jù)流:基本工資信息處理描述:根據(jù)職工的職位及其他相應(yīng)情況計(jì)算出工資輸出的數(shù)據(jù)流:工資信息 處理邏輯編號:p002處理邏輯名稱:員工信息處理 簡述:對員工信息進(jìn)行處理輸入的數(shù)據(jù)流:員工信息處理描述:根據(jù)員工的基本信息進(jìn)行各種操作輸出的數(shù)據(jù)流:員工信息 處理邏輯編號:p003處理邏輯名稱:變動處理 簡述:對員工的變動情況進(jìn)行處理輸入的數(shù)據(jù)流:員工變動信息處理描述:可進(jìn)行添加、修

8、改和刪除等操作輸出的數(shù)據(jù)流:員工變動信息1.4.3數(shù)據(jù)存儲的描述 數(shù)據(jù)存儲編號:F001數(shù)據(jù)存儲名稱:員工基本信息表 簡述:員工的基本信息數(shù)據(jù)存儲組成:員工編號+姓名+性別+年齡+部門+進(jìn)入公司時(shí)間+住址關(guān)鍵字:員工編號相關(guān)聯(lián)的處理:P002數(shù)據(jù)存儲編號:F002數(shù)據(jù)存儲名稱:基本工資表 簡述:員工的工資信息數(shù)據(jù)存儲組成:員工編號+加班加班+出差工資+遲到早退+礦工工資關(guān)鍵字:員工編號相關(guān)聯(lián)的處理:P001數(shù)據(jù)存儲編號:F003數(shù)據(jù)存儲名稱:變動信息表 簡述:員工的變動信息數(shù)據(jù)存儲組成:員工編號+原職務(wù)+原部門+現(xiàn)職務(wù)+現(xiàn)部門關(guān)鍵字:員工編號相關(guān)聯(lián)的處理:P002,P0032.總體設(shè)計(jì)2.1數(shù)

9、據(jù)庫概念設(shè)計(jì)有了數(shù)據(jù)流圖,用E-R圖來說明工資信息管理系統(tǒng)的數(shù)據(jù)庫概念模式,如圖基本工資其他獎(jiǎng)金加班獎(jiǎng)金年終獎(jiǎng)金職工號時(shí)間缺勤類別缺勤天數(shù)職工號醫(yī)療保險(xiǎn)個(gè)人所得稅職工號部門崗位工齡姓名職工號考勤工資津貼員工領(lǐng)取1 n電話號碼m缺勤扣除影響n1 nm密碼影響n領(lǐng)取1n圖2.1實(shí)體之間關(guān)系E-R圖2.2功能模塊工資管理系統(tǒng) 員工管理模塊 考勤管理模塊 津貼管理模塊 工資生成模塊 系統(tǒng)模塊3系統(tǒng)詳細(xì)設(shè)計(jì)3.1數(shù)據(jù)庫邏輯設(shè)計(jì)將以上E-R轉(zhuǎn)換成如下關(guān)系模式員工(職工號,姓名,工齡,部門崗位,電話號碼,密碼)工資(職工號,個(gè)人所得稅,基本工資,醫(yī)療保險(xiǎn),缺勤扣除)考勤(職工號,缺勤天數(shù),缺勤類別,時(shí)間)津

10、貼(職工號,年終獎(jiǎng)金,加班獎(jiǎng)金,其他獎(jiǎng)金)其中,標(biāo)有下劃線的字段表示為該數(shù)據(jù)表的主碼,即主關(guān)鍵字。在上面的實(shí)體以及實(shí)體之間關(guān)系的基礎(chǔ)上,形成數(shù)據(jù)庫中的表格以及各個(gè)表格之間的關(guān)系。工資信息管理系統(tǒng)數(shù)據(jù)庫中各個(gè)表格的設(shè)計(jì)結(jié)果如下面的幾個(gè)表格所示。每個(gè)表格表示在數(shù)據(jù)庫中的一個(gè)表。表一:員工信息表:列名數(shù)據(jù)類型可否取空備注說明no Char ( 8 )NOT NULL職工號(主鍵)nameChar(10)NOT NULL職工姓名gwChar(20)NOT NULL部門崗位glSmallintNOT NULL工齡hmChar(11)NULL電話號碼miSmallintNOT NULL登錄密碼表二:工資表

11、:列名數(shù)據(jù)類型可否取空備注說明noChar ( 8 )NOT NULL職工號(主鍵)JbmoneyNOT NULL基本工資ylmoneyNULL醫(yī)療保險(xiǎn)SwmoneyNULL個(gè)人所得稅kcmoneyNULL缺勤扣除JtmoneyNULL津貼yzmoneyNOT NULL 月總工資表三:員工考勤信息表列名數(shù)據(jù)類型可否取空備注說明noChar ( 8 )NOT NULL職工號(主鍵)tsInt(4)NULL缺勤天數(shù)lbChar(30)NULL缺勤類別SjChar(10)NULL缺勤時(shí)間表四:津貼信息表列名數(shù)據(jù)類型可否為空備注說明noChar ( 8 )NOT NULL職工號(主鍵)Jiabanmo

12、neyNULL月加班獎(jiǎng)金nzmoneyNULL年終獎(jiǎng)金qtmoneyNULL其他獎(jiǎng)金3.2各模塊功能3.2.1職工信息管理系統(tǒng) 功能為:財(cái)務(wù)部門相關(guān)人員錄入、修改、刪除、查詢員工個(gè)人信息;員工本人能通過用戶名和密碼查詢自己的信息以及修改自己的密碼;3.2.2職工工資管理系統(tǒng) 功能為:根據(jù)工資生成公式,按照員工的考勤情況及各種表現(xiàn)按月生成相應(yīng)的工資;財(cái)務(wù)部門相關(guān)人員能錄入、修改、刪除、查詢每個(gè)月每個(gè)員工的工資信息以及工資匯總;員工本人能查詢自己的工資信息以及工資匯總;3.2.3職工津貼管理系統(tǒng) 功能為:財(cái)務(wù)部門相關(guān)人員錄入、修改、刪除、查詢職工津貼信息;職工本人能查詢自己的津貼;3.2.4職工考

13、勤管理系統(tǒng) 功能為:后勤管理人員錄入、修改、刪除、查詢職工考勤信息;職工本人能查詢自己的考勤情況。采用模塊化設(shè)計(jì)思想,可以大大提高設(shè)計(jì)的效率,并且可以最大限度地減少不必要的錯(cuò)誤。4.系統(tǒng)實(shí)現(xiàn)4.1界面截圖4.1.1主界面及工資基本信息界面4.1.2登錄界面4.1.3系統(tǒng)主界面4.1.4考勤信息錄入,修改,刪除,查詢界面4.2設(shè)計(jì)代碼Java源程序:import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.awt.*;import java.sql.*;import java.lang.*; import

14、 java.util.*; import javax.swing.table.*;import java.math.*; class DB_LS implements ActionListenerJFrame frame=new JFrame(歡迎進(jìn)入LS工資管理系統(tǒng));JLabel label=new JLabel(09網(wǎng)絡(luò)2_54_李勝,JLabel.CENTER);JButton button1=new JButton(進(jìn)入系統(tǒng));JButton button2=new JButton(退出系統(tǒng));ImageIcon im=new ImageIcon(1.jpg); JLabel a1=

15、new JLabel(im);void Create()JPanel pcontentPane=(JPanel)frame.getContentPane();JPanel pcontentPane1=new JPanel();pcontentPane.add(label);pcontentPane.setLayout(new FlowLayout();pcontentPane.add(button1);pcontentPane.add(button2);pcontentPane.add(new Label( );pcontentPane.add(a1);pcontentPane.setBack

16、ground(Color.green);pcontentPane.setVisible(true);button1.addActionListener(this); button2.addActionListener(this);frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);frame.pack();frame.setBounds(200,100,550,600);frame.setVisible(true);public static void main(String args)DB_LS dome=new DB_LS();dome

17、.Create(); public void actionPerformed(ActionEvent e) if(button1.equals(e.getSource() DL dl=new DL(); dl.create(); if(button2.equals(e.getSource()/退出System.exit(0); class DL implements ActionListenerJFrame frame=new JFrame(職工/管理員登陸);JLabel label1=new JLabel(用戶名);JLabel label2=new JLabel(密碼);JButton

18、logonButton1=new JButton(管理員登錄);JButton logonButton2=new JButton(職工登錄);JButton cancelButton=new JButton(退出);JTextField t1=new JTextField(0);JTextField t2=new JTextField(0);ImageIcon im=new ImageIcon(2.jpg); JLabel a2=new JLabel(im);JTextField username=new JTextField(9);JPasswordField password=new JP

19、asswordField(9);void create()JPanel p=(JPanel)frame.getContentPane();JPanel p1=new JPanel();p.setLayout(new FlowLayout();p.add(label1);p.setSize(5,5);p.setLocation(4,8);p.add(username);p.setSize(100,200);p.setLocation(800,800);p.add(label2);p.setSize(50,20);p.setLocation(40,80);p.add(password);p.set

20、Size(100,20);p.setLocation(80,120);p.add(logonButton1);p.add(new JLabel( );p.add(logonButton2);p.add(new JLabel( );p.add(cancelButton);p.add(new JLabel( );p.add(a2);p.add(t1);p.add(t2);p.setBackground(Color.blue);p.setVisible(true);logonButton1.addActionListener(this);logonButton2.addActionListener(

21、this); cancelButton.addActionListener(this); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);frame.pack(); frame.setBounds(200,100,750,550); frame.setVisible(true);public void actionPerformed(ActionEvent e) if(logonButton1.equals(e.getSource()&(username.getText().equals(123)=true)&(password.get

22、Text().equals(123)=true)GZGLZJM gz=new GZGLZJM();gz.create();elseJOptionPane.showMessageDialog(null,對不起,你輸入的密碼錯(cuò)誤!);if(logonButton2.equals(e.getSource()&(username.getText().equals(t1.getText()=true)&(password.getText().equals(t2.getText()=true)XK xk=new XK();xk.create(); Connection con; Statement sql

23、; ResultSet rs; Vector vector=new Vector(); try Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); catch (ClassNotFoundException e1) System.out.println( + e1);try con = DriverManager.getConnection(jdbc:odbc:123, , );sql = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); sql

24、.executeQuery(SELECT Gno,mm FROM Y WHERE Gno=+t1.getText() +AND mm=+t2.getText();catch (SQLException e1) System.out.println(e1); if(cancelButton.equals(e.getSource()System.exit(0); class GZGLZJM extends JFrame implements ActionListener JFrame f=new JFrame(工資管理系統(tǒng)); JButton b1=new JButton(津貼管理); JButt

25、on b2=new JButton(總查詢); JButton b3=new JButton(工資管理); JButton b4=new JButton(后勤管理); JButton b6=new JButton(員工個(gè)人信息管理); JButton b5=new JButton(返回); ImageIcon im=new ImageIcon(3.jpg); JLabel a3=new JLabel(im); void create() JPanel p=(JPanel)f.getContentPane(); JPanel p1=new JPanel(); p.setLayout(new Fl

26、owLayout(); p.add(b1); p.add(new JLabel( ); p.add(b6); p.add(new JLabel( ); p.add(b3); p.add(new JLabel( ); p.add(b4); p.add(new JLabel( ); p.add(b2); p.add(new JLabel( ); p.add(b5); p.add(a3); p.setBackground(Color.red); p.setVisible(true); b1.addActionListener(this); b2.addActionListener(this); b3

27、.addActionListener(this); b4.addActionListener(this); b5.addActionListener(this); b6.addActionListener(this); f.setBounds(200,100,800,600); f.setVisible(true); public void actionPerformed(ActionEvent e) if(b5.equals(e.getSource()/返回 DL d=new DL(); f.dispose(); if(b1.equals(e.getSource()/津貼管理 JTGL jt

28、=new JTGL(); jt.create(); if(b6.equals(e.getSource()/員工個(gè)人信息管理 YGGL yg=new YGGL(); yg.create(); if(b2.equals(e.getSource()/查詢 XK xk=new XK(); xk.create(); if(b4.equals(e.getSource()/后勤管理 KQGL kq=new KQGL(); kq.create(); if(b3.equals(e.getSource()/工資管理 GZGL gz=new GZGL(); gz.create(); class KQGL imple

29、ments ActionListener JFrame f=new JFrame(錄入修改刪除考勤信息); JButton b1=new JButton(錄入); JButton b2=new JButton(修改); JButton b3=new JButton(刪除); JButton b4=new JButton(查詢所有); JButton b5=new JButton(返回); JTextField tf1=new JTextField(4); JTextField tf2=new JTextField(4); JTextField tf3=new JTextField(4); JT

30、extField tf4=new JTextField(4); JTextField tf5=new JTextField(6); JButton b6=new JButton(查詢單人考勤); String cloum=職工號,缺勤天數(shù),缺勤類別,缺勤時(shí)間; Object row=new Object504; JTable table=new JTable(row,cloum); JScrollPane scrollpane=new JScrollPane(table); JSplitPane splitpane=new JSplitPane(JSplitPane.VERTICAL_SPLI

31、T); void create() JPanel p=(JPanel)f.getContentPane(); p.setLayout(new FlowLayout(); /p.add(scrollpane); p.add(splitpane); JPanel p1=new JPanel(); p1.add(b1); p1.add(b2); p1.add(b3); p1.add(b4); p1.add(b6); p1.add(b5); JPanel p2=new JPanel(); p2.setBackground(Color.red); p2.add(scrollpane); JPanel p

32、3=new JPanel(); p.setLayout(new FlowLayout(); p.add(new JLabel(); p.add(new JLabel(職工號); p.add(tf1); p.add(new JLabel(缺勤天數(shù)); p.add(tf2); p.add(new JLabel(缺勤類別); p.add(tf3); p.add(new JLabel(); p.add(new JLabel(缺勤時(shí)間); p.add(tf4); p.add(new JLabel( 在此處輸入職工號點(diǎn)擊查詢刪除); p.add(tf5); splitpane.add(p1,splitpa

33、ne.TOP); splitpane.add(p2,splitpane.BOTTOM); splitpane.setDividerLocation(50); p.setBackground(Color.CYAN); b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); b4.addActionListener(this); b5.addActionListener(this); b6.addActionListener(this); f.setBounds(200,100,500,

34、600); f.setResizable(true);/可以調(diào)整界面大小 f.setVisible(true); public void actionPerformed(ActionEvent e) if(b1.equals(e.getSource() /添加 Connection con;Statement sql;ResultSet rs;try Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); catch (ClassNotFoundException e1) System.out.println( + e1);try con = DriverMa

35、nager.getConnection(jdbc:odbc:123, , ); sql = con.createStatement(); String insertStr = INSERT INTO K VALUES + ( + + tf1.getText() + + , + tf2.getText()+, + +tf3.getText()+ + ,+tf4.getText()+); sql.executeUpdate(insertStr); con.close(); catch (SQLException e1) System.out.println(e1); if(b2.equals(e.

36、getSource()/修改Connection con;Statement sql;ResultSet rs;try Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); catch (ClassNotFoundException e1) System.out.println( + e1);try con = DriverManager.getConnection(jdbc:odbc:123, , ); sql = con.createStatement(); sql.executeUpdate(UPDATE K SET ts=+tf2.getText()

37、+WHERE Kno=+tf1.getText()+); sql.executeUpdate(UPDATE K SET lb=+tf3.getText()+WHERE Kno=+tf1.getText()+); sql.executeUpdate(UPDATE K SET sj=+tf4.getText()+WHERE Kno=+tf1.getText()+); con.close(); catch (SQLException e1) System.out.println(e1); if(b3.equals(e.getSource()/刪除 Connection con;Statement s

38、ql;ResultSet rs;try Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); catch (ClassNotFoundException e1) System.out.println( + e1);try con = DriverManager.getConnection(jdbc:odbc:123, , ); sql = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); sql.executeUpdate(DELETE FROM

39、K WHERE Kno=+tf5.getText(); con.close(); catch (SQLException e1) System.out.println(e1); if(b4.equals(e.getSource()/查詢?nèi)?Connection con; Statement sql; ResultSet rs; Vector vector=new Vector(); try Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); catch (ClassNotFoundException e1) System.out.println( + e

40、1); try con = DriverManager.getConnection(jdbc:odbc:123, sa, );sql = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); if(b4.equals(e.getSource()for(int i=0;i50;i+) for(int j=0;j4;j+) table.setValueAt(,i,j); rs = sql.executeQuery(SELECT * FROM K ORDER BY Kno DESC); int

41、 k=-1; while(rs.next() +k; String Kno = rs.getString(1); String ts = rs.getString(2); String lb = rs.getString(3); String sj = rs.getString(4); table.setValueAt(Kno,k,0); table.setValueAt(ts,k,1); table.setValueAt(lb,k,2); table.setValueAt(sj,k,3); catch (SQLException e1) System.out.println(e1);if(b

42、6.equals(e.getSource() /查詢關(guān)鍵字 Connection con; Statement sql; ResultSet rs; Vector vector=new Vector(); try Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); catch (ClassNotFoundException e1) System.out.println( + e1); try con = DriverManager.getConnection(jdbc:odbc:123, sa, );sql = con.createStatement(Re

43、sultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); if(b6.equals(e.getSource() for(int i=0;i50;i+) for(int j=0;j4;j+) table.setValueAt(, i, j); rs = sql.executeQuery(SELECT * FROM K WHERE Kno=+tf5.getText(); int k=-1; while (rs.next() +k; String Kno = rs.getString(1); String ts = rs.getString(2); String lb = rs.getString(3); String sj = rs.getString(4); table.setValueAt(Kno,k,0); table.setValueAt(ts,k,1); table.setValueAt(lb,k,2); table.setValueAt(sj,k,3); catch (SQLException e1) System.out.println(e1); if(b5.equals(e.getSource()/返回 DL dl=new DL(); f.dispose(); 26

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!