ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:17.63KB ,
资源ID:17233168      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/17233168.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(java考勤管理系统数据库实现Word文档下载推荐.docx)为本站会员(b****3)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

java考勤管理系统数据库实现Word文档下载推荐.docx

1、 pcontentPane.add(button1); pcontentPane.add(button2); pcontentPane.add(new Label( ); pcontentPane.add(a1); pcontentPane.setBackground(Color.green); pcontentPane.setVisible(true); button1.addActionListener(this); button2.addActionListener(this); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

2、frame.pack(); frame.setBounds(200,100,550,600); frame.setVisible(true); public static void main(String args) DB_LS dome=new DB_LS(); dome.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

3、); class DL implements ActionListener职工/管理员登陆 JLabel label1=new JLabel(用户名 JLabel label2=new JLabel(密码 JButton logonButton1=new JButton(管理员登录 JButton logonButton2=new JButton(职工登录 JButton cancelButton=new JButton(退出 JTextField t1=new JTextField(0); JTextField t2=new JTextField(0);2.jpg JLabel a2=new

4、 JLabel(im); JTextField username=new JTextField(9); JPasswordField password=new JPasswordField(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.se

5、tLocation(800,800); p.add(label2); p.setSize(50,20); p.setLocation(40,80); p.add(password); p.setSize(100,20); p.setLocation(80,120); p.add(logonButton1); p.add(new JLabel( p.add(logonButton2); p.add(cancelButton); p.add(a2); p.add(t1); p.add(t2); p.setBackground(Color.blue); p.setVisible(true); log

6、onButton1.addActionListener(this); logonButton2.addActionListener(this); cancelButton.addActionListener(this); frame.setBounds(200,100,750,550); if(logonButton1.equals(e.getSource()&(username.getText().equals(123)=true)&(password.getText().equals()=true) GZGLZJM gz=new GZGLZJM(); gz.create(); elseJO

7、ptionPane.showMessageDialog(null,对不起,你输入的密码错误! ; 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; ResultSet rs; Vector vector=new Vector(); try Class.forName(su

8、n.jdbc.odbc.JdbcOdbcDriver catch (ClassNotFoundException e1) System.out.println( + e1); try con = DriverManager.getConnection(jdbc:odbc:, sql = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); sql.executeQuery(SELECT Gno,mm FROM Y WHERE Gno=+t1.getText() +AND mm=+t2.g

9、etText(); 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(工资管理系统 JButton b1=new JButton(津贴管理 JButton b2=new JButton(总查询 JButton b3=new JButton(工资管理 JButton b4=new JButton(后

10、勤管理 JButton b6=new JButton(员工个人信息管理 JButton b5=new JButton(返回 ImageIcon im=new ImageIcon(3.jpg JLabel a3=new JLabel(im); void create() JPanel p=(JPanel)f.getContentPane(); p.add(b1); p.add(b6); p.add(b3); p.add(b4); p.add(b2); p.add(b5); p.add(a3); p.setBackground(Color.red); b1.addActionListener(th

11、is); b2.addActionListener(this); b3.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(b

12、1.equals(e.getSource()/津贴管理 JTGL jt=new JTGL(); jt.create(); if(b6.equals(e.getSource()/员工个人信息管理 YGGL yg=new YGGL(); yg.create(); if(b2.equals(e.getSource()/查询 if(b4.equals(e.getSource()/后勤管理 KQGL kq=new KQGL(); kq.create(); if(b3.equals(e.getSource()/工资管理 GZGL gz=new GZGL(); class KQGL implements A

13、ctionListener录入修改删除考勤信息录入修改删除查询所有 JTextField tf1=new JTextField(4); JTextField tf2=new JTextField(4); JTextField tf3=new JTextField(4); JTextField tf4=new JTextField(4); JTextField tf5=new JTextField(6); JButton b6=new JButton(查询单人考勤 String cloum=职工号,缺勤天数缺勤类别缺勤时间; Object row=new Object504; JTable ta

14、ble=new JTable(row,cloum); JScrollPane scrollpane=new JScrollPane(table); JSplitPane splitpane=new JSplitPane(JSplitPane.VERTICAL_SPLIT); void create() JPanel p=(JPanel)f.getContentPane(); /p.add(scrollpane); p.add(splitpane); p1.add(b1); p1.add(b2); p1.add(b3); p1.add(b4); p1.add(b6); p1.add(b5); J

15、Panel p2=new JPanel(); p2.setBackground(Color.red); p2.add(scrollpane); JPanel p3=new JPanel(); p.setLayout(new FlowLayout(); p.add(new JLabel( p.add(tf1); p.add(tf2); p.add(tf3); p.add(tf4); 在此处输入职工号点击查询删除 p.add(tf5); splitpane.add(p1,splitpane.TOP); splitpane.add(p2,splitpane.BOTTOM); splitpane.se

16、tDividerLocation(50); p.setBackground(Color.CYAN); f.setBounds(200,100,500,600); f.setResizable(true);/可以调整界面大小 if(b1.equals(e.getSource() /添加 Connection con; Statement sql; ResultSet rs; Class.forName( catch (ClassNotFoundException e1) System.out.println( try con = DriverManager.getConnection( sql

17、= 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.getSource()/修改 sql.executeUpdate(UPDATE K SET ts=+tf2.getT

18、ext()+WHERE Kno=+tf1.getText()+UPDATE K SET lb=+tf3.getText()+UPDATE K SET sj= con.close(); if(b3.equals(e.getSource()/删除 sql = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);DELETE FROM K WHERE Kno=+tf5.getText(); if(b4.equals(e.getSource()/查询全部 sa 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 *

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1