java考勤管理系统数据库实现PDF.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《java考勤管理系统数据库实现PDF.pdf》由会员分享,可在线阅读,更多相关《java考勤管理系统数据库实现PDF.pdf(26页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、二 开发编码规范页脚内容 14.2 设 计 代 码Java 源 程 序 :import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.awt.*;import java.sql.*;import java.lang.*; import java.util.*; import javax.swing.table.*;import java.math.*;class DB_LS implements ActionListenerJFrame frame=new JFrame(欢 迎 进 入 LS工 资 管 理
2、 系 统 );JLabel label=new JLabel(09网 络 2_54_ 李 胜 ,JLabel.CENTER);JButton button1=new JButton(进 入 系 统 );JButton button2=new JButton(退 出 系 统 );二 开发编码规范页脚内容 2ImageIcon im=new ImageIcon(1.jpg);JLabel a1=new JLabel(im);void Create()JPanel pcontentPane=(JPanel)frame.getContentPane();JPanel pcontentPane1=new
3、 JPanel();pcontentPane.add(label);pcontentPane.setLayout(new FlowLayout();pcontentPane.add(button1);pcontentPane.add(button2);pcontentPane.add(new Label( ) ;pcontentPane.add(a1);pcontentPane.setBackground(Color.green);pcontentPane.setVisible(true);button1.addActionListener(this);button2.addActionLis
4、tener(this);frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);二 开发编码规范页脚内容 3frame.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=
5、new DL();dl.create();if(button2.equals(e.getSource()/退 出System.exit(0); 二 开发编码规范页脚内容 4class DL implements ActionListenerJFrame frame=new JFrame(职 工 / 管 理 员 登 陆 );JLabel label1=new JLabel(用 户 名 );JLabel label2=new JLabel(密 码 );JButton logonButton1=new JButton(管 理 员 登 录 );JButton logonButton2=new JBut
6、ton(职 工 登 录 );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 JPasswordField(9);void create()二 开发编码规范页脚内容 5JPanel p=(JPa
7、nel)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.setSize(100,20);p.setLocation(80,120);p.add(l
8、ogonButton1);p.add(new JLabel( );二 开发编码规范页脚内容 6p.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(this);cancelButton.addAction
9、Listener(this);frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);frame.pack();frame.setBounds(200,100,750,550);frame.setVisible(true);二 开发编码规范页脚内容 7public void actionPerformed(ActionEvent e)if(logonButton1.equals(e.getSource()&(username.getText().equals(123)=true)&(password.getText().equals(123)=
10、true)GZGLZJM gz=new GZGLZJM();gz.create();elseJOptionPane.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
11、 rs;二 开发编码规范页脚内容 8Vector 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); sq
12、l.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);二 开发编码规范页脚内容 9 class GZGLZJM extends JFrame implements ActionListenerJFrame f=new JFrame(工 资 管 理 系 统 );JButton b1=new JB
13、utton(津 贴 管 理 );JButton b2=new JButton(总 查 询 );JButton b3=new JButton(工 资 管 理 );JButton b4=new JButton(后 勤 管 理 );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();JPanel p1
14、=new JPanel();二 开发编码规范页脚内容 10p.setLayout(new FlowLayout();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)
15、;b2.addActionListener(this);二 开发编码规范页脚内容 11b3.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(
16、b1.equals(e.getSource()/津 贴 管 理JTGL jt=new JTGL();jt.create();二 开发编码规范页脚内容 12if(b6.equals(e.getSource()/员 工 个 人 信 息 管 理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()/工
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- java 考勤 管理 系统 数据库 实现 PDF
![提示](https://www.deliwenku.com/images/bang_tan.gif)
限制150内