基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)

文章目录

    • 一,前言
    • 二,项目运行图
      • (1)主界面(管理员界面)
      • (2)员工资料运行图
      • (3)全部员工查看运行图
      • (4)部门管理运行图
      • (5)岗位管理运行图
      • (6)工资发放系统运行图
      • (7)薪酬记录运行图
      • (8)考勤管理运行图
      • (9)部门建立运行图
      • (10)岗位简建立运行图
      • (11)员工入职手续办理运行图
      • (12)考试系统运行图
      • (13)建立试题
      • (14)题库运行图
      • (15)生成试卷运行图
      • (16)招聘计划运行图
      • (17)招聘计划查看运行图
      • (18)招聘计划数据分析
      • (19)学生简历查看运行图
      • (20)主界面(员工端)
      • (21)填写简历运行图
      • (22)员工入职考试运行图
      • (23)管理员登陆运行图
      • (24)管理员注册运行图
    • 三,数据库设计
      • (1)员工表
      • (2)用户信息表
      • (3) 薪酬表
      • (4) 试卷表
      • (5) 部门历史记录表
      • (6) 岗位表
      • (7) 员工简历表
      • (8) 员工考试分数记录表
      • (9)考试信息视图
      • (10)薪酬记录视图
      • (11)员工基本信息视图(用于工资发放参考)
      • (12)部门表
      • (13)招聘计划表
      • (14)试卷生成记录表
    • 四,项目实现代码
      • (1)包结构
      • (2)类结构
      • (3)gradeAnaChartD
      • (4)PlanChartD
      • (5)Dao(数据库操作)
      • (6)AddDutyDialog
      • (7)AllEmployee
      • (8) AllPlanD
      • (9)AppGradeD
      • (10)AttendanceAddD
      • (11)AttendanceManage
      • (12) BirthPaper
      • (13)DepartmentProprtionF
      • (14)DivianageF
      • (15) DutyDesignD
      • (16)DutyManagementF
      • (17)EmployeeInfoClientF
      • (18)EmployeeInfoF
      • (19)EmployeeInfoF2
      • (20) EmployeeInfoFShow
      • (21)EmployeeLoginF
      • (22)EmployInfoD
      • (23)EstablishDepartmentF
      • (24)
      • (25)MainWindowServerF
      • (26)OutPaperD
      • (27)PaperBankD
      • (28)RegisterF
      • (29)RemunerationManageF
      • (30)SalaryCount
      • (31)testPaper
      • (32)TestSystemD
      • (33)WindowMainClientF
      • (34)AllActionListener
      • (35) AllMouseListener
      • (36)RegisterAction
      • (37) clearAttendance
      • (38)ClearDuty
      • (39)ClearTextOfDepart
      • (40)Md5Password
      • (41)StringUtils
      • (42)TextClue

一,前言

随着计算机在各行各业的广泛应用,企事业单位人力资源管理也逐渐和计算机信息化管理技术相结合。传统的人力资源管理存在许多不足之处:如人工化作业较多,当数据量过大时,容易造成工作错误;人力资源管理仅仅停留在比较简单的人员档案管理阶段,没有能够体现人力资源管理中的工资管理、绩效考核管理、考勤管理等功能等。这些问题导致了企业事业单位人事工作发展需要跟实际人力资源管理发展不协调的情况出现。基于此,本文设计研发了一套基于swing技术的人力资源管理系统,旨在将企事业单位人力资源管理的各方面功能均得以实现。本文所设计的系统主要功能分为员工基本档案管理、员工日常考勤管理、员工奖惩绩效管理、系统用户管理和系统参数设置管理几个模块。系统采用C/S结构作为主要的体系结构,实现了人力资源管理工作高效化、实时化。在设计过程中采用权限管理技术,对系统用户分组,分配角色并对不同角色进行设置权限,最大可能地保证了系统的安全性。系统在数据访问方面,为了避免系统使用高峰期可能带来的数据处理缓慢、响应不及时的情况,系统采用了数据库连接池技术,有效地解决了系统使用高峰期给用户带来的不便。通过系统测试,本系统满足了本单位人力资源管理工作的基本需求,实现了设计的目标。

二,项目运行图

(1)主界面(管理员界面)

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第1张图片

(2)员工资料运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第2张图片

(3)全部员工查看运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第3张图片

(4)部门管理运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第4张图片

(5)岗位管理运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第5张图片

(6)工资发放系统运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第6张图片

(7)薪酬记录运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第7张图片

(8)考勤管理运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第8张图片

(9)部门建立运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第9张图片

(10)岗位简建立运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第10张图片

(11)员工入职手续办理运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第11张图片

(12)考试系统运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第12张图片

(13)建立试题

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第13张图片

(14)题库运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第14张图片

(15)生成试卷运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第15张图片

(16)招聘计划运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第16张图片

(17)招聘计划查看运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第17张图片

(18)招聘计划数据分析

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第18张图片

(19)学生简历查看运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第19张图片

(20)主界面(员工端)

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第20张图片

(21)填写简历运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第21张图片

(22)员工入职考试运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第22张图片
2.
基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第23张图片

(23)管理员登陆运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第24张图片

(24)管理员注册运行图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第25张图片

三,数据库设计

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第26张图片

(1)员工表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第27张图片

(2)用户信息表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第28张图片

(3) 薪酬表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第29张图片

(4) 试卷表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第30张图片

(5) 部门历史记录表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第31张图片

(6) 岗位表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第32张图片

(7) 员工简历表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第33张图片

(8) 员工考试分数记录表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第34张图片

(9)考试信息视图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第35张图片

(10)薪酬记录视图

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第36张图片

(11)员工基本信息视图(用于工资发放参考)

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第37张图片

(12)部门表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第38张图片

(13)招聘计划表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第39张图片

(14)试卷生成记录表

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第40张图片

四,项目实现代码

(1)包结构

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第41张图片

(2)类结构

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第42张图片

基于java+swing+mysql+JFeeChart的企业人力资源管理系统(1)_第43张图片

(3)gradeAnaChartD

package com.employee.chart;
/**
 * 考生成绩数据分析
 */
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.sql.ResultSet;
import java.sql.SQLException;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;

import com.employee.dao.Dao;

public class gradeAnaChartD extends JDialog {
     
	public gradeAnaChartD() {
     
		String sql="select * from grade";
		DefaultCategoryDataset data=new DefaultCategoryDataset();
		try {
     
			ResultSet rs=Dao.allData(sql);
			while(rs.next()) {
     
				data.setValue(rs.getInt("score"),  rs.getString("name"), rs.getString("name"));
			}
		} catch (SQLException e1) {
     
			 
			e1.printStackTrace();
		}
		JFreeChart freeChart=ChartFactory.createBarChart("考生成绩",
				"姓名", 
				"总分",
				data,
				PlotOrientation.VERTICAL,
				true,
				true,
				true);
		ChartPanel chartPanel=new ChartPanel(freeChart);
		chartPanel.setSize(1200, 650);
		 
		chartPanel.setPreferredSize(new Dimension(1200, 700));
		   
		
		try {
     
			 
			setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			setResizable(false);
			setSize(1200, 700);
			setLocationRelativeTo(null);
			setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		 
		getContentPane().setLayout(new BorderLayout());
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.add(chartPanel);
		getContentPane().add(panel, BorderLayout.CENTER);
	}

}

(4)PlanChartD

package com.employee.chart;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.sql.ResultSet;
import java.sql.SQLException;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.data.general.DefaultPieDataset;

import com.employee.dao.Dao;

import javax.swing.JMenuBar;
import javax.swing.JMenu;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.border.TitledBorder;

public class PlanChartD extends JDialog {
     
 
	public PlanChartD() {
     
		setResizable(false);
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(null, "\u4EBA\u6570", TitledBorder.LEADING, TitledBorder.TOP, null, Color.PINK));
		panel_2.setBounds(938, 366, 300, 342);
		getContentPane().add(panel_2);
		/**
		 * 柱状图
		 */
		String sql="select * from recruitPlan";
		DefaultCategoryDataset dataset=new DefaultCategoryDataset();//柱状图
		DefaultPieDataset data=new DefaultPieDataset();//饼图
		try {
     
			ResultSet rs=Dao.allData(sql);
			while(rs.next()) {
     
				dataset.setValue(rs.getInt("num"), rs.getString("partName"), rs.getString("dutyName"));
				data.setValue(rs.getString("partName"), rs.getInt("num"));
				JLabel part=new JLabel(rs.getString("partName"));
				JLabel num=new JLabel(rs.getString("num"));
				panel_2.add(part);
				panel_2.add(num);
				
			}
		} catch (SQLException e1) {
     
			 
			e1.printStackTrace();
		}
		JFreeChart freeChart=ChartFactory.createBarChart("各部门招聘岗位人数比例",
				"部门", 
				"人数", 
				dataset,
				PlotOrientation.VERTICAL,
				true,
				true,
				true);
		JFreeChart freeChart1=ChartFactory.createPieChart3D(
				"各部门招聘岗位人数比例",
				data,
				true,
				true,
				true);
		ChartPanel chartPanel=new ChartPanel(freeChart);
		chartPanel.setPreferredSize(new Dimension(800,700));
		
		ChartPanel chartPanel1=new ChartPanel(freeChart1);
		chartPanel1.setPreferredSize(new Dimension(300,300));
		try {
     
			 
			setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			setSize( 1250, 750);
			setLocationRelativeTo(null);
			setModal(true);
			getContentPane().setLayout(null);
			
			JPanel panel = new JPanel();
			panel.add(chartPanel);
			panel.setBounds(12, 0, 800, 708);
			getContentPane().add(panel);
			
			JPanel panel_1 = new JPanel();
			panel_1.setBounds(938, 0, 300, 324);
			getContentPane().add(panel_1);
			panel_1.add(chartPanel1);
			 
		} catch (Exception e) {
     
			e.printStackTrace();
		}
	}
}

(5)Dao(数据库操作)

package com.employee.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import com.employee.kit.Md5Password;
import com.employee.model.DaoData;
import com.employee.model.Department;
import com.employee.model.Duty;
import com.employee.model.Employee;
import com.employee.model.Grade;
import com.employee.model.Money;
import com.employee.model.Paper;
import com.employee.model.RecruitPlan;
import com.employee.model.SetPaper;
import com.employee.model.User;

public class Dao {
     
	private static Connection conn=null;
	 
	/**
	 * 加载驱动
	 * 获得连接
	 * @return
	 */
	public static Connection conn() {
     
		DaoData dao=new DaoData();
		try {
     
			Class.forName(dao.getDRAVER());
			conn=DriverManager.getConnection(dao.getUrl(),dao.getName(),dao.getPassword());
		} catch (Exception e) {
     
			e.printStackTrace();
		} 
		
		return conn;
		
	}
	/**
	 * 
	 * 关闭数据库
	 */
	public static void close() {
     
		try {
     
			conn.close();
		} catch (SQLException e) {
     
			 
			e.printStackTrace();
		}
	}
	/**
	 * 
	 * 登陆检查
	 * @param user
	 * @return
	 * @throws SQLException
	 */
	public static User checkLogin(User user) throws SQLException {
     
  		User u=null;
		String sql =  "select *  from User where account=? ";
		PreparedStatement pstmt=Dao.preparedStatement(sql);
		pstmt.setInt(1, user.getAccount());
		ResultSet rs=pstmt.executeQuery();
		if(rs.next()){
     
			 u=new User();
			 u.setAccount(rs.getInt(1));
			 u.setPassword(rs.getString(2));
		}
 
		return u;
		 
	}
	/**
	 * 判断是否有此账户
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	public static boolean accountExist(User u) throws SQLException {
     
		String sql="select *  from User  where account=? ";
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1, u.getAccount());
		  ResultSet rs=ps.executeQuery();
		  if(rs.next()) {
     
			  return true;
		  }else {
     
			  return false;
		  }
		
	}
	/**
	 * 用户或者管理员注册
	 * @param u
	 * @param sql
	 * @return
	 * @throws Exception
	 */
	public static int register(User u,String sql) throws Exception {
     
		PreparedStatement ps=Dao.preparedStatement(sql);
		ps.setInt(1, u.getAccount());
		ps.setString(2, Md5Password.md5Value(u.getPassword()));
		ps.setDouble(3, u.getPhone());
		return ps.executeUpdate();
	}
	/**
	 * 
	 * @param sql
	 * @return
	 * @throws SQLException
	 */
 
	public static PreparedStatement preparedStatement(String sql) throws SQLException {
     
		    PreparedStatement pre=null;
			pre = Dao.conn().prepareStatement(sql);
		   return pre;
	}
	 /**
	  * 查找部门
	 * @throws SQLException 
	  * 
	  */
	  public static ResultSet searchDepartment(Department dep,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1, dep.getNameMark());
		  ResultSet rs=ps.executeQuery();
		  return  rs;
		 
	  }
	  /**
	   * 判断是否已经有此部门
	   * @param dep
	   * @param sql
	   * @return
	   * @throws SQLException
	   */
	  public static boolean isExist(Department dep,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1, dep.getNameMark());
		  ResultSet rs=ps.executeQuery();
		  if(rs.next()) {
     
			  return true;
		  }else {
     
			  return false;
		  }
	  }
	  /**
	   * 建立或者修改部门
	 * @throws SQLException 
	   * 
	   */
	  public static  int estabOrModifyDepartment(Department dep,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setString(1, dep.getName());
		  ps.setString(2, dep.getEstablishPerson());
		  ps.setInt(3, dep.getNameMark());
		 return ps.executeUpdate();
		  
	  }
	  /**
	   * 撤销部门
	 * @throws SQLException 
	   * 
	   */
	 public static int deleteDepartment(Department dep) throws SQLException {
     
		 String sql="delete from department where nameMark=?";
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 ps.setInt(1, dep.getNameMark());
		return ps.executeUpdate();
		 
	 }
	 /**
	  * 删除所有的历史纪录
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static int clearHistory(String sql) throws SQLException {
     
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 return ps.executeUpdate();
	 }
	 
	 /**
	  * 返回所有的数据集(适用于所有不同的表)
	 * @throws SQLException 
	  */
	 public static ResultSet allData(String sql) throws SQLException {
     
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 ResultSet rs=ps.executeQuery();
		return rs;
	 }
	 /**
	  * 建立岗位
	  * @param du
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static  int addOrModifyDuty(Duty du,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1, du.getDutyNum());
		  ps.setString(2, du.getDutyName());
		  ps.setString(3, du.getDepartment());
		
		 return ps.executeUpdate();
		  
	  }
	 /**
	  * 修改岗位
	  * @param du
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static  int modifyDuty(Duty du,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setString(1, du.getDutyName());
		  ps.setString(2, du.getDepartment());
		  ps.setInt(3, du.getDutyNum());
		 return ps.executeUpdate();
		  
	  }
	 /**
	  * 撤销岗位
	  * @param duty
	  * @return
	  * @throws SQLException
	  */
	 public static int deleteDuty(Duty duty,String sql) throws SQLException {
     
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 ps.setInt(1, duty.getDutyNum());
		return ps.executeUpdate();
		 
	 }
	 /**
	  * 判断是否有岗位存在
	  * @param dep
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static boolean isExist(Duty duty,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1, duty.getDutyNum());
		  ResultSet rs=ps.executeQuery();
		  if(rs.next()) {
     
			  return true;
		  }else {
     
			  return false;
		  }
	  }
	  
	 /**
	  * 搜索岗位
	  * @param dep
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 
	 public static ResultSet searchDuty(Duty duty,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1, duty.getDutyNum());
		  ResultSet rs=ps.executeQuery();
		  return  rs;
		 
	  }
	 
	 /**
	  * 添加或者修改招聘计划
	  * @param du
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 
	 public static  int addOrModifyRecruitPlan(RecruitPlan rp,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		 ps.setString(1, rp.getDutyName());
		  ps.setString(2, rp.getPartName());
		  ps.setString(3, rp.getDliploma());
		  ps.setInt(4, rp.getNum());
		  ps.setString(5, rp.getProcess());
		 return ps.executeUpdate();
		  
	  }
	 /**
	  * 添加试题或者修改试题
	  * @param paper
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static  int addOrModifyPaper(Paper paper,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setString(1, paper.getTopic());
		  ps.setString(2, paper.getA());
		  ps.setString(3, paper.getB());
		  ps.setString(4, paper.getC());
		  ps.setString(5,paper.getD());
		  ps.setString(6, paper.getAnswer());
		 return ps.executeUpdate();
	   
	  }
	 /**
	  * 搜索试题
	  * @param paper
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static ResultSet searchPaper(Paper paper ,String sql) throws SQLException {
     
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 ps.setInt(1, paper.getId());
		return  ps.executeQuery();
		 
	 }
	 /**
	  * 删除试题
	  */
	 public static int delPaper(Paper paper ) throws SQLException {
     
		 String sql="delete from paper where topic=?";
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 ps.setString(1, paper.getTopic());
		return ps.executeUpdate();
		 
	 }
	 
	 /**
	  * 添加或者修改员工信息(已经被录用)
	  */
	 public static  int addOrModifyEmFile(Employee emp,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		   ps.setDouble(1, emp.getJobNum());
		   ps.setString(2, emp.getName());
		   ps.setString(3, emp.getSex());
		   ps.setInt(4, emp.getAge());
		   ps.setString(5, emp.getBirthDay());
		   
		   ps.setString(6, emp.getAddress());
		   ps.setString(7, emp.getRace());
		   ps.setString(8, emp.getMarriage());
		   ps.setString(9, emp.getPoliticState());
		   ps.setDouble(10, emp.getPhoneNum());
		   
		   
		   ps.setDouble(11, emp.getId_card());
		   ps.setString(12, emp.getCollage());
		   ps.setString(13, emp.getMajor());
		   ps.setString(14, emp.getCultureStandard());
		   ps.setString(15, emp.getJobTime());
		   
		   ps.setDouble(16, emp.getCreditNum());
		   ps.setString(17, emp.getProfesion());
		   ps.setString(18, emp.getStatus());
		   ps.setString(19, emp.getSignTime());
		   ps.setString(20, emp.getRegistrant());
		   ps.setString(21, emp.getImagePath());
		   ps.setString(22, emp.getCurriculum());
		   ps.setString(23, emp.getDepartment());
		 return ps.executeUpdate();
	   
	  }
	 /**
	  * 添加或者修改员工信息(申请)
	  */
	 public static  int addOrModApliFile(Employee emp,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setString(1, emp.getProfesion());
		   ps.setString(2, emp.getName());
		  ps.setString(3, emp.getSex());
		   ps.setInt(4, emp.getAge());
		   ps.setString(5, emp.getBirthDay());
		   ps.setString(6, emp.getAddress());
		   
		   ps.setString(7, emp.getRace());
		   ps.setString(8, emp.getMarriage());
		   ps.setString(9, emp.getPoliticState());
		   ps.setDouble(10, emp.getPhoneNum());
		   ps.setDouble(11, emp.getId_card());
		   
		   ps.setString(12, emp.getCollage());
		   ps.setString(13, emp.getMajor());
		   ps.setString(14, emp.getCultureStandard());
		   ps.setString(15, emp.getJobTime());
		   ps.setDouble(16, emp.getCreditNum());
		   ps.setString(17, emp.getImagePath());
		   ps.setString(18, emp.getCurriculum());
		 return ps.executeUpdate();
	   
	  }
	 /**
	  * 搜索员工
	  * @param emp
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static ResultSet searchEmployeeFile(Employee emp,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setDouble(1, emp.getJobNum());
		  ResultSet rs=ps.executeQuery();
		  return  rs;
		 
	  }
	 /**
	  * 删除员工
	  */
	 public static int delPaper(Employee emp ) throws SQLException {
     
		 String sql="delete from employeeFile where jobNum=?";
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 ps.setDouble(1,emp.getJobNum()  );
		return ps.executeUpdate();
		 
	 }
	 /**
	  * 判断员工是否存在
	  */
	 public static boolean isExistEmployee(Employee emp,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setDouble(1,emp.getJobNum());
		  ResultSet rs=ps.executeQuery();
		  if(rs.next()) {
     
			  return true;
		  }else {
     
			  return false;
		  }
	  }
	 /**
	  * 搜索员工
	  * @param emp
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	  
	 public static ResultSet searchAppli(Employee emp,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1,  emp.getId());
		  ResultSet rs=ps.executeQuery();
		  return  rs;
		 
	  }
	 /**
	  * 删除试题
	  * @param paper
	  * @return
	  * @throws SQLException
	  */
	 public static int deletePaper(Paper paper ) throws SQLException {
     
		 String sql="delete from paper where id=?";
		 PreparedStatement ps=Dao.preparedStatement(sql);
		 ps.setInt(1,paper.getId());
		return ps.executeUpdate();
		 
	 }
	 /**
	  * 保存试卷配置
	  */
	 public static  int aOrMPaSet(SetPaper set,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		  ps.setInt(1, set.getPaperNum());
		  ps.setInt(2, set.getPaperTime());
		 return ps.executeUpdate();
	   
	  }
	 
	 /**
	  * 查询试题配置
	  * @param set
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static ResultSet searchSet(SetPaper set,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		   ps.setInt(1, set.getId());
		  ResultSet rs=ps.executeQuery();
		  return  rs;
		 
	  }
	 /**
	  * 保存成绩
	  * @param set
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static  int saveScore(Grade g,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		   ps.setInt(1, g.getScore());
		   ps.setString(2, g.getName());
		 return ps.executeUpdate();
	   
	  }
	 /**
	  * 保存员工工资信息
	  * @param m
	  * @param sql
	  * @return
	  * @throws SQLException
	  */
	 public static  int addOrModifyMoney(Money m,String sql) throws SQLException {
     
		  PreparedStatement ps=Dao.preparedStatement(sql);
		   ps.setDouble(1, m.getJobNum());
		   ps.setString(2, m.getName());
		   ps.setFloat(3, m.getSalary());
		   ps.setFloat(4, m.getGradeMoney());
		   ps.setFloat(5, m.getEffectMoney());
		   ps.setFloat(6, m.getCheckAdd());
		   ps.setFloat(7, m.getCheckDec());
		   ps.setFloat(8, m.getCultureMoney());
		  return ps.executeUpdate();
	   
	  }
	 
	 
}

(6)AddDutyDialog

package com.employee.frame;

import javax.swing.JButton;
import javax.swing.JDialog;
import com.employee.implement.AllActionListener;
import com.employee.kit.ClearDuty;
import com.employee.operate.FillComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;

public class AddDutyDialog extends JDialog {
     
	public static JTextField numField;
	public static  JTextField dutyField;
    public static JComboBox comboBox;
    public static JButton button;
	public AddDutyDialog() {
     
		setTitle("建立岗位");
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			 setSize(322, 390);
			 setLocationRelativeTo(null);
			 setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		setResizable(false);
		
		getContentPane().setLayout(null);
		{
     
			JLabel label = new JLabel("岗位代号");
			label.setBounds(31, 97, 59, 18);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("岗位名");
			label.setBounds(31, 145, 59, 18);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("所属部门");
			label.setBounds(31, 186, 59, 18);
			getContentPane().add(label);
		}
		{
     
			numField = new JTextField();
			numField.setBounds(88, 95, 165, 22);
			getContentPane().add(numField);
			numField.setColumns(10);
		}
		{
     
			dutyField = new JTextField();
			dutyField.setBounds(88, 143, 165, 22);
			getContentPane().add(dutyField);
			dutyField.setColumns(10);
		}
		 comboBox = new JComboBox();
		 FillComboBox.fillPartBox(AddDutyDialog.comboBox);//填充下拉框
		comboBox.setBounds(88, 186, 165, 23);
		getContentPane().add(comboBox);
		
		 button = new JButton("确定");
		 button.setIcon(new ImageIcon(AddDutyDialog.class.getResource("/icons/ok.png")));
		button.addActionListener(new AllActionListener());
		button.setBounds(32, 260, 82, 28);
		getContentPane().add(button);
		
		JButton button_1 = new JButton("重置");
		button_1.setIcon(new ImageIcon(AddDutyDialog.class.getResource("/icons/重置.png")));
		button_1.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				ClearDuty.clearText();
			}
		});
		button_1.setBounds(171, 260, 82, 28);
		getContentPane().add(button_1);
		
		JLabel label = new JLabel("建立岗位");
		label.setFont(new Font("Dialog", Font.BOLD, 20));
		label.setBounds(110, 22, 103, 51);
		getContentPane().add(label);
		
		JLabel label_1 = new JLabel(" ");
		label_1.setIcon(new ImageIcon(AddDutyDialog.class.getResource("/images/a6.jpg")));
		label_1.setBounds(0, -29, 322, 389);
		getContentPane().add(label_1);
	}
}

(7)AllEmployee

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import com.employee.dao.Dao;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.UIManager;

public class AllEmployee extends JDialog {
     
	private static JTable table;
 
	public AllEmployee() {
     
		getContentPane().setBackground(Color.YELLOW);
		getContentPane().setForeground(Color.WHITE);
		try {
     
		 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			 setSize(1200, 700);
			 setLocationRelativeTo(null);
			 setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		
		getContentPane().setLayout(new BorderLayout());
		{
     
			JPanel panel = new JPanel();
			panel.setBackground(new Color(152, 251, 152));
			panel.setForeground(Color.BLACK);
			FlowLayout flowLayout = (FlowLayout) panel.getLayout();
			flowLayout.setVgap(50);
			flowLayout.setHgap(50);
			getContentPane().add(panel, BorderLayout.NORTH);
			{
     
				JLabel label = new JLabel("全    部   员   工");
				label.setForeground(Color.RED);
				label.setBackground(Color.RED);
				label.setFont(new Font("Dialog", Font.BOLD, 40));
				panel.add(label);
			}
		}
		{
     
			JScrollPane scrollPane = new JScrollPane();
			getContentPane().add(scrollPane, BorderLayout.CENTER);
			{
     
				table = new JTable();
				table.setModel(new DefaultTableModel(
					new Object[][] {
     
					},
					new String[] {
     
						"\u5DE5\u53F7", "\u59D3\u540D", "\u6027\u522B", "\u5E74\u9F84", "\u90E8\u95E8", "\u5C97\u4F4D", "\u72B6\u6001"
					}
				) {
     
					boolean[] columnEditables = new boolean[] {
     
						true, false, false, false, false, false, false
					};
					public boolean isCellEditable(int row, int column) {
     
						return columnEditables[column];
					}
				});
				String sql="select * from employeeFile ";
				try {
     
					displayTable(Dao.allData(sql));//填充表格
				} catch (SQLException e) {
     
				 
					e.printStackTrace();
				}
				scrollPane.setViewportView(table);
			}
		}
	}
	
	public static void displayTable(ResultSet rs) {
     
		DefaultTableModel det=(DefaultTableModel)  AllEmployee.table.getModel();
		det.setRowCount(0);
		try {
     
			while(rs.next()) {
     
			Vector  v=new Vector();
			v.add(rs.getInt("jobNum"));
			v.add(rs.getString("name"));
			v.add(rs.getString("sex"));
			v.add(rs.getInt("age"));
			v.add(rs.getString("department"));
			v.add(rs.getString("profesion"));
			v.add(rs.getString("status"));
			det.addRow(v);
			}
		} catch (SQLException e) {
     
			 
			e.printStackTrace();
		}
	}

}

(8) AllPlanD

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import com.employee.dao.Dao;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class AllPlanD extends JDialog {
     
	public static  JTable table;
 
	public AllPlanD() {
     
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			setSize( 1069, 555);
			setLocationRelativeTo(null);
			setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		getContentPane().setLayout(null);
		{
     
			JPanel panel = new JPanel();
			panel.setBounds(0, 0, 1069, 128);
			getContentPane().add(panel);
			panel.setLayout(null);
			{
     
				JButton button = new JButton("修改");
				button.setBounds(451, 50, 58, 28);
				panel.add(button);
			}
			{
     
				JButton button = new JButton("撤销");
				button.setBounds(559, 50, 58, 28);
				panel.add(button);
			}
			{
     
				JLabel label = new JLabel(" ");
				label.setIcon(new ImageIcon(AllPlanD.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
				label.setBounds(0, -29, 1069, 145);
				panel.add(label);
			}
		}
		{
     
			JScrollPane scrollPane = new JScrollPane();
			scrollPane.setBounds(0, 128, 1069, 397);
			getContentPane().add(scrollPane);
			{
     
				table = new JTable();
				table.setModel(new DefaultTableModel(
					new Object[][] {
     
					},
					new String[] {
     
						"\u90E8\u95E8", "\u62DB\u8058\u5C97\u4F4D", "\u6587\u51ED\u8981\u6C42", "\u62DB\u8058\u4EBA\u6570"
					}
				) {
     
					boolean[] columnEditables = new boolean[] {
     
						true, false, false, false
					};
					public boolean isCellEditable(int row, int column) {
     
						return columnEditables[column];
					}
				});
				String sql="select * from recruitPlan";
				 try {
     
					AllPlanD .displayTable(Dao.allData(sql));
				} catch (SQLException e) {
     
					e.printStackTrace();
				}
				scrollPane.setViewportView(table);
			}
		}
	}
	/**
	 * 设置表格数据
	 * @param rs
	 */
	
	public static void displayTable(ResultSet rs) {
     
		DefaultTableModel det=(DefaultTableModel)AllPlanD.table.getModel();
		det.setRowCount(0);
		try {
     
			while(rs.next()) {
     
			Vector  v=new Vector();
			v.add(rs.getString(1));
			v.add(rs.getString(2));
			v.add(rs.getString(3));
			v.add(rs.getInt(4));
			det.addRow(v);
			}
		} catch (SQLException e) {
     
			 
			e.printStackTrace();
		}
	}

}

(9)AppGradeD

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import com.employee.chart.gradeAnaChartD;
import com.employee.dao.Dao;
import javax.swing.border.LineBorder;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class AppGradeD extends JDialog {
     
	private static  JTable table;
 
	public AppGradeD() {
     
		try {
     
			 
			setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			setResizable(false);
			setSize(820, 645);
			setLocationRelativeTo(null);
			setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		getContentPane().setLayout(null);
		{
     
			JPanel panel = new JPanel();
			panel.setBounds(0, 0, 820, 130);
			panel.setBorder(new LineBorder(Color.GREEN));
			getContentPane().add(panel);
			{
     
				JButton analyzeBtn = new JButton("数据分析");
				analyzeBtn.setBounds(369, 51, 82, 28);
				analyzeBtn.addActionListener(new ActionListener() {
     
					public void actionPerformed(ActionEvent arg0) {
     
						new gradeAnaChartD().setVisible(true);
					}
				});
				panel.setLayout(null);
				panel.add(analyzeBtn);
			}
			{
     
				JLabel label = new JLabel(" ");
				label.setIcon(new ImageIcon(AppGradeD.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
				label.setBounds(0, 0, 820, 118);
				panel.add(label);
			}
		}
		{
     
			JScrollPane scrollPane = new JScrollPane();
			scrollPane.setBounds(12, 130, 796, 443);
			getContentPane().add(scrollPane);
			{
     
				table = new JTable();
				table.setModel(new DefaultTableModel(
					new Object[][] {
     
					},
					new String[] {
     
						"\u59D3\u540D", "\u6027\u522B", "\u5E74\u9F84", "\u5206\u6570"
					}
				) {
     
					boolean[] columnEditables = new boolean[] {
     
						false, false, false, false
					};
					public boolean isCellEditable(int row, int column) {
     
						return columnEditables[column];
					}
				});
				try {
     
					displayTable(Dao.allData("select * from grade"));//填充表格
				} catch (SQLException e) {
     
					 
					e.printStackTrace();
				}
				scrollPane.setViewportView(table);
			}
		}
		{
     
			JPanel panel = new JPanel();
			panel.setBounds(0, 573, 820, 42);
			panel.setBorder(new LineBorder(Color.GREEN));
			FlowLayout flowLayout = (FlowLayout) panel.getLayout();
			flowLayout.setVgap(20);
			flowLayout.setHgap(20);
			getContentPane().add(panel);
		}
		{
     
			JPanel panel = new JPanel();
			panel.setBounds(0, 130, 12, 443);
			panel.setBorder(new LineBorder(Color.GREEN));
			getContentPane().add(panel);
		}
		{
     
			JPanel panel = new JPanel();
			panel.setBounds(808, 130, 12, 443);
			panel.setBorder(new LineBorder(Color.GREEN));
			getContentPane().add(panel);
		}
	}
	/**
	 * 填充表格
	 * @param rs
	 */
	public static void displayTable(ResultSet rs) {
     
		DefaultTableModel det=(DefaultTableModel) AppGradeD.table.getModel();
		det.setRowCount(0);
		try {
     
			while(rs.next()) {
     
			Vector  v=new Vector();
			v.add(rs.getString("name"));
			v.add(rs.getString("sex"));
			v.add(rs.getInt("age"));
			v.add(rs.getInt("score"));
			det.addRow(v);
			}
		} catch (SQLException e) {
     
			 
			e.printStackTrace();
		}
	}

}

(10)AttendanceAddD

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import com.employee.kit.clearAttendance;

import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;

public class AttendanceAddD extends JDialog {
     
	public static JTextField jobNumField;
	public static JTextField nameField;
	public static JTextField typeField;
	public static JTextField dateField;
 
	public AttendanceAddD() {
     
		try {
     
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			 setSize( 409, 384);
			 setLocationRelativeTo(null);
			 setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		getContentPane().setLayout(null);
		JLabel label = new JLabel("工号");
		label.setBounds(80, 80, 44, 18);
		getContentPane().add(label);
		
		JLabel label_1 = new JLabel("姓名");
		label_1.setBounds(80, 123, 44, 18);
		getContentPane().add(label_1);
		
		JLabel label_2 = new JLabel("类型");
		label_2.setBounds(80, 167, 44, 18);
		getContentPane().add(label_2);
		
		JLabel label_3 = new JLabel("日期");
		label_3.setBounds(80, 216, 44, 18);
		getContentPane().add(label_3);
		
		jobNumField = new JTextField();
		jobNumField.setBounds(124, 78, 176, 22);
		getContentPane().add(jobNumField);
		jobNumField.setColumns(10);
		
		nameField = new JTextField();
		nameField.setBounds(124, 121, 176, 22);
		getContentPane().add(nameField);
		nameField.setColumns(10);
		
		typeField = new JTextField();
		typeField.setBounds(124, 165, 176, 22);
		getContentPane().add(typeField);
		typeField.setColumns(10);
		
		dateField = new JTextField();
		dateField.setBounds(124, 214, 176, 22);
		getContentPane().add(dateField);
		dateField.setColumns(10);
		
		JButton btnNewButton = new JButton("确定");
		btnNewButton.setIcon(new ImageIcon(AttendanceAddD.class.getResource("/icons/ok.png")));
		btnNewButton.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				
			}
		});
		btnNewButton.setBounds(80, 283, 86, 28);
		getContentPane().add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("清空");
		btnNewButton_1.setIcon(new ImageIcon(AttendanceAddD.class.getResource("/icons/重置.png")));
		btnNewButton_1.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				clearAttendance.clearAdd();
			}
		});
		btnNewButton_1.setBounds(214, 283, 86, 28);
		getContentPane().add(btnNewButton_1);
		
		JLabel label_4 = new JLabel(" ");
		label_4.setIcon(new ImageIcon(AttendanceAddD.class.getResource("/images/a8.jpg")));
		label_4.setBounds(0, -30, 409, 384);
		getContentPane().add(label_4);
	}
}

(11)AttendanceManage

/**
 * 考勤管理窗体
 * 
 */

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import com.employee.dao.Dao;
import com.employee.implement.AllMouseListener;
import com.employee.kit.clearAttendance;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Color;
 
public class AttendanceManage extends JDialog {
     
	public static JTable table;
	public  static JTextField textField;
	public static JTextField jobNumField;
	public static JTextField nameField;
	public static JTextField typeField;
	public static JTextField dateField;
 
	public AttendanceManage() {
     
		
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			 setSize(1132, 649);
			 setLocationRelativeTo(null);
			setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		setTitle("考勤管理");
		setResizable(false);
		
		getContentPane().setLayout(null);
		{
     
			JPanel buttonPane = new JPanel();
			buttonPane.setBounds(0, 562, 1031, 10);
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane);
		}
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(null, "\u4FE1\u606F", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel.setBounds(277, 119, 662, 384);
		getContentPane().add(panel);
		panel.setLayout(new BorderLayout(0, 0));
		
		JScrollPane scrollPane = new JScrollPane();
		panel.add(scrollPane, BorderLayout.CENTER);
		
		table = new JTable();
		table.addMouseListener( new AllMouseListener());
		table.setModel(new DefaultTableModel(
			new Object[][] {
     
			},
			new String[] {
     
				"\u5DE5\u53F7", "\u59D3\u540D", "\u7C7B\u578B", "\u65E5\u671F"
			}
		) {
     
			boolean[] columnEditables = new boolean[] {
     
				true, false, false, false
			};
			public boolean isCellEditable(int row, int column) {
     
				return columnEditables[column];
			}
		});
		String sql="select * from check_in";
		try {
     
			displayTable(Dao.allData(sql));
		} catch (SQLException e) {
     
		 
			e.printStackTrace();
		}
		scrollPane.setViewportView(table);
		
		textField = new JTextField();
		textField.setBounds(337, 85, 222, 22);
		getContentPane().add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel = new JLabel("工号");
		lblNewLabel.setForeground(Color.RED);
		lblNewLabel.setBounds(298, 87, 59, 18);
		getContentPane().add(lblNewLabel);
		
		JButton searchBtn = new JButton("查找");
		searchBtn.setIcon(new ImageIcon(AttendanceManage.class.getResource("/icons/查找.png")));
		searchBtn.setBounds(566, 83, 94, 22);
		getContentPane().add(searchBtn);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new TitledBorder(null, "\u8868\u5355\u64CD\u4F5C", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(0, 117, 247, 384);
		getContentPane().add(panel_1);
		panel_1.setLayout(null);
		
		JLabel label = new JLabel("工号");
		label.setForeground(Color.BLUE);
		label.setBounds(12, 36, 59, 18);
		panel_1.add(label);
		
		jobNumField = new JTextField();
		jobNumField.setEditable(false);
		jobNumField.setBounds(45, 34, 158, 22);
		panel_1.add(jobNumField);
		jobNumField.setColumns(10);
		
		JLabel label_1 = new JLabel("姓名");
		label_1.setForeground(Color.BLUE);
		label_1.setBounds(12, 88, 59, 18);
		panel_1.add(label_1);
		
		nameField = new JTextField();
		nameField.setBounds(45, 86, 158, 22);
		panel_1.add(nameField);
		nameField.setColumns(10);
		
		JLabel label_2 = new JLabel("类型");
		label_2.setForeground(Color.BLUE);
		label_2.setBounds(12, 145, 59, 18);
		panel_1.add(label_2);
		
		typeField = new JTextField();
		typeField.setBounds(45, 143, 158, 22);
		panel_1.add(typeField);
		typeField.setColumns(10);
		
		JButton modifyBtn = new JButton("修改");
		modifyBtn.setIcon(new ImageIcon(AttendanceManage.class.getResource("/icons/修改.png")));
		modifyBtn.setBounds(12, 242, 78, 28);
		panel_1.add(modifyBtn);
		
		JLabel label_3 = new JLabel("日期");
		label_3.setForeground(Color.BLUE);
		label_3.setBounds(12, 196, 46, 18);
		panel_1.add(label_3);
		
		dateField = new JTextField();
		dateField.setBounds(45, 194, 158, 22);
		panel_1.add(dateField);
		dateField.setColumns(10);
		
		JButton addBtn = new JButton("添加");
		addBtn.setIcon(new ImageIcon(AttendanceManage.class.getResource("/icons/增加.png")));
		addBtn.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				 new AttendanceAddD().setVisible(true);
			}
		});
		 
		 
		addBtn.setBounds(115, 242, 88, 28);
		panel_1.add(addBtn);
		
		JButton clearBtn = new JButton("清空");
		clearBtn.setIcon(new ImageIcon(AttendanceManage.class.getResource("/icons/重置.png")));
		clearBtn.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				clearAttendance.clearText();
			}
		});
		clearBtn.setBounds(115, 296, 88, 28);
		panel_1.add(clearBtn);
		
		JButton deleteBtn = new JButton("删除");
		deleteBtn.setIcon(new ImageIcon(AttendanceManage.class.getResource("/icons/删除.png")));
		deleteBtn.setBounds(12, 296, 78, 28);
		panel_1.add(deleteBtn);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(null, "\u8868\u5355\u64CD\u4F5C", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_2.setBounds(972, 117, 148, 384);
		getContentPane().add(panel_2);
		panel_2.setLayout(null);
		
		JButton stateBtn = new JButton("数据报表");
		stateBtn.setIcon(new ImageIcon(AttendanceManage.class.getResource("/icons/分析.png")));
		stateBtn.setBounds(31, 42, 105, 28);
		panel_2.add(stateBtn);
	}
	 
	public static void displayTable(ResultSet rs) {
     
		DefaultTableModel det=(DefaultTableModel) AttendanceManage.table.getModel();
		det.setRowCount(0);
		try {
     
			while(rs.next()) {
     
			Vector  v=new Vector();
			 v.add(rs.getInt("jobNum"));
			 v.add(rs.getString("name"));
			 v.add(rs.getString("type"));
			 v.add(rs.getString("date"));
			det.addRow(v);
			}
		} catch (SQLException e) {
     
			 
			e.printStackTrace();
		}
	}
	
}

(12) BirthPaper

package com.employee.frame;
 
import javax.swing.JButton;
import javax.swing.JDialog;
import com.employee.implement.AllActionListener;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.ImageIcon;

public class BirthPaper extends JDialog {
     
	public  static JTextField idField;
	public static JTextField timeField;
	public static JButton birthBtn;
	public static JButton cancelBtn; 
	private JLabel label_1;
 
	public BirthPaper() {
     
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			 setResizable(false);
			 setSize( 319, 300);
			 setLocationRelativeTo(null);
			 setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		getContentPane().setLayout(null);
		{
     
			JLabel label = new JLabel("考试题目总数:");
			label.setBounds(44, 95, 92, 18);
			getContentPane().add(label);
		}
		
		idField = new JTextField();
		idField.setBounds(138, 93, 114, 22);
		getContentPane().add(idField);
		idField.setColumns(10);
		
		JLabel lblh = new JLabel("考试时间(分钟):");
		lblh.setBounds(44, 148, 105, 18);
		getContentPane().add(lblh);
		
		timeField = new JTextField();
		timeField.setBounds(138, 146, 114, 22);
		getContentPane().add(timeField);
		timeField.setColumns(10);
		
		JLabel label = new JLabel("试卷生成");
		label.setFont(new Font("Dialog", Font.BOLD, 23));
		label.setBounds(99, 12, 114, 47);
		getContentPane().add(label);
		
		 cancelBtn = new JButton("取消");
		 cancelBtn.setIcon(new ImageIcon(BirthPaper.class.getResource("/icons/cancel.png")));
		cancelBtn.setBounds(44, 211, 79, 28);
		getContentPane().add(cancelBtn);
		
		 birthBtn = new JButton("生成");
		 birthBtn.setIcon(new ImageIcon(BirthPaper.class.getResource("/icons/ok.png")));
		birthBtn.addActionListener(new AllActionListener() );
		birthBtn.setBounds(172, 211, 79, 28);
		getContentPane().add(birthBtn);
		
		label_1 = new JLabel(" ");
		label_1.setIcon(new ImageIcon(BirthPaper.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
		label_1.setBounds(0, 0, 309, 270);
		getContentPane().add(label_1);
	}
}

(13)DepartmentProprtionF

/**
 * 部门占比图表显示窗体
 * 
 */

package com.employee.frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import com.employee.chart.PieDepartment;
public class DepartmentProprtionF extends JDialog {
     
	public DepartmentProprtionF() {
     
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			setSize( 1140, 586);
			setLocationRelativeTo(null);
			setModal(true);
			getContentPane().setLayout(new BorderLayout(0, 0));
			 getContentPane().add(new PieDepartment().chartPanel);
			 
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
	}
}

(14)DivianageF

/**
 * 
 * 部门管理对话框
 */

package com.employee.frame;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
import com.employee.dao.Dao;
import com.employee.implement.AllActionListener;
import com.employee.implement.AllMouseListener;
 
 
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JOptionPane;

import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.awt.event.ActionEvent;
import com.employee.kit.ClearTextOfDepart;
import com.employee.kit.StringUtils;
import com.employee.model.Department;

import javax.swing.border.LineBorder;
import java.awt.Color;
import java.awt.Font;
import javax.swing.ImageIcon;
public class DivianageF extends JDialog {
     
	public static  JTextField searchField;
	public static JTextField nameMarkField;
	public static  JTextField nameField;
	public static JTextField namePersonField;
	public static JTable table;
    private JScrollPane scrollPane;
    private  JLabel lNum;
    private   JLabel lName;
    private  JLabel lPerson;
    public static JButton deleteDepart;
    public static JButton modifyBtn;
    public static JButton historyDepart;
    public static JButton searchBtn ;
    public static  JButton clearBtn;
    private JLabel label_3;
    private JLabel label_4;
    private JLabel label_5;
	public DivianageF() {
     
		String sql2="select * from department";
		try {
     
			setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
			setSize(1050,600);
			setLocationRelativeTo(null);
			setModal(true);
			
		}catch(Exception e) {
     
			e.printStackTrace();
		}
		
		setResizable(false);
		getContentPane().setLayout(null);
		{
     
			JPanel panel = new JPanel();
			panel.setBorder(new TitledBorder(null, "\u8868\u5355\u64CD\u4F5C", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			panel.setBounds(12, 76, 218, 332);
			getContentPane().add(panel);
			panel.setLayout(null);
			
			JLabel label = new JLabel("部门代号");
			label.setForeground(Color.GREEN);
			label.setBounds(12, 46, 59, 18);
			panel.add(label);
			
			nameMarkField = new JTextField();
			nameMarkField.setEditable(false);
			nameMarkField.setBounds(70, 44, 136, 22);
			panel.add(nameMarkField);
			nameMarkField.setColumns(10);
			
			JLabel label_1 = new JLabel("部门名称");
			label_1.setForeground(Color.GREEN);
			label_1.setBounds(12, 100, 59, 18);
			panel.add(label_1);
			
			nameField = new JTextField();
			nameField.setBounds(70, 98, 136, 22);
			panel.add(nameField);
			nameField.setColumns(10);
			
			JLabel label_2 = new JLabel("建立人");
			label_2.setForeground(Color.GREEN);
			label_2.setBounds(12, 153, 59, 18);
			panel.add(label_2);
			
			namePersonField = new JTextField();
			namePersonField.setBounds(70, 151, 136, 22);
			panel.add(namePersonField);
			namePersonField.setColumns(10);
			
			JButton button = new JButton("建立部门");
			button.setFont(new Font("Dialog", Font.BOLD, 8));
			button.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/增加.png")));
			button.addActionListener(new ActionListener() {
     
				public void actionPerformed(ActionEvent arg0) {
     
					new EstablishDepartmentF().setVisible(true);
				}
			});
			button.setBounds(12, 211, 87, 28);
			panel.add(button);
			
			 deleteDepart = new JButton("撤销部门");
			 deleteDepart.setFont(new Font("Dialog", Font.BOLD, 9));
			 deleteDepart.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/删除.png")));
			deleteDepart.addActionListener(new AllActionListener());
			deleteDepart.setBounds(111, 211, 95, 28);
			panel.add(deleteDepart);
			
			 modifyBtn = new JButton("修改部门");
			 modifyBtn.setFont(new Font("Dialog", Font.BOLD, 8));
			 modifyBtn.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/修改.png")));
			modifyBtn.addActionListener(new AllActionListener( ));
			
			modifyBtn.setBounds(12, 271, 87, 28);
			panel.add(modifyBtn);
			
			JButton button_3 = new JButton("清空");
			button_3.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/重置.png")));
			button_3.setFont(new Font("Dialog", Font.BOLD, 9));
			button_3.addActionListener(new ActionListener() {
     
				public void actionPerformed(ActionEvent arg0) {
     
					ClearTextOfDepart.clearDepartText();
				}
			});
			button_3.setBounds(111, 271, 95, 28);
			panel.add(button_3);
		}
		{
     
			{
     
				{
     
				 
				}
			}
		}
		{
     
			JPanel panel = new JPanel();
			panel.setBorder(new TitledBorder(new LineBorder(new Color(184, 207, 229)), "\u67E5\u627E\u7684\u4FE1\u606F", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(51, 51, 51)));
			panel.setBounds(817, 76, 221, 332);
			getContentPane().add(panel);
			panel.setLayout(null);
			
			 lNum = new JLabel("");
			 lNum.setBackground(Color.PINK);
			 lNum.setFont(new Font("Dialog", Font.BOLD, 14));
			lNum.setBounds(12, 49, 197, 18);
			panel.add(lNum);
			
			  lName = new JLabel("");
			  lName.setFont(new Font("Dialog", Font.BOLD, 14));
			lName.setBounds(12, 121, 197, 18);
			panel.add(lName);
			
			  lPerson = new JLabel(" ");
			  lPerson.setFont(new Font("Dialog", Font.BOLD, 14));
			lPerson.setBounds(12, 199, 197, 18);
			panel.add(lPerson);
			
			label_5 = new JLabel(" ");
			label_5.setIcon(new ImageIcon(DivianageF.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
			label_5.setBounds(0, 22, 221, 310);
			panel.add(label_5);
		}
		
		JLabel label = new JLabel("部门名称");
		label.setForeground(Color.BLUE);
		label.setBounds(252, 46, 59, 18);
		getContentPane().add(label);
		
		searchField = new JTextField();
		searchField.setBounds(311, 42, 192, 22);
		getContentPane().add(searchField);
		searchField.setColumns(10);
		
		 searchBtn = new JButton("查找");
		 searchBtn.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/查找.png")));
		searchBtn.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				if( StringUtils.isEmpty(searchField.getText())) {
     
					JOptionPane.showMessageDialog(null, "请输入!");
				}else {
     
					Department dep=new Department();
					dep.setNameMark(Integer.parseInt(searchField.getText()));
					String sql="select * from department where nameMark=?";
					try  {
     
						ResultSet rs= Dao.searchDepartment(dep, sql);
					   while(rs.next()) {
     
						  lNum.setText("部门代号:"+String.valueOf(rs.getInt(1)));
						  lName.setText("部门名称:"+rs.getString(2));
						  lPerson.setText("部门建立人:"+rs.getString(3));
					   }
						
					} catch (SQLException e) {
     
					 
						e.printStackTrace();
					}
				}
			}
		});
		 
		searchBtn.setBounds(515, 42, 96, 22);
		getContentPane().add(searchBtn);
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(new LineBorder(new Color(184, 207, 229)), "\u8868\u5355\u64CD\u4F5C", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(51, 51, 51)));
		panel.setBounds(12, 441, 1026, 89);
		getContentPane().add(panel);
		panel.setLayout(null);
		
		JButton button_2 = new JButton("刷新");
		button_2.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/刷新.png")));
		button_2.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				try {
     
					displayTable(new Dao().allData (sql2));
				} catch (SQLException e) {
     
				 
					e.printStackTrace();
				}
			}
		});
		button_2.setBounds(478, 31, 78, 33);
		panel.add(button_2);
		
		label_3 = new JLabel(" ");
		label_3.setIcon(new ImageIcon(DivianageF.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
		label_3.setBounds(12, 12, 1014, 77);
		panel.add(label_3);
		
		 scrollPane = new JScrollPane();
		scrollPane.setBounds(251, 76, 554, 332);
		getContentPane().add(scrollPane);
		
		try {
     
			table = new JTable();
			table.addMouseListener( new  AllMouseListener());
			table.setModel(new DefaultTableModel(
				new Object[][] {
     
				},
				new String[] {
     
					"\u90E8\u95E8\u4EE3\u53F7", "\u90E8\u95E8\u540D\u79F0", "\u5EFA\u7ACB\u4EBA"
				}
			) {
     
				boolean[] columnEditables = new boolean[] {
     
					true, false, false
				};
				public boolean isCellEditable(int row, int column) {
     
					return columnEditables[column];
				}
			});
		  displayTable( Dao.allData (sql2));
		 
		} catch (Exception e) {
     
		 
			e.printStackTrace();
		}
		 scrollPane.setViewportView(table);
		 
		 historyDepart = new JButton("历史纪录");
		 historyDepart.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/历史记录.png")));
		 historyDepart.setBounds(703, 45, 102, 21);
		 getContentPane().add(historyDepart);
		 
		 clearBtn = new JButton("清空历史纪录");
		 clearBtn.setIcon(new ImageIcon(DivianageF.class.getResource("/icons/重置.png")));
		 clearBtn.addActionListener(new AllActionListener());
		 clearBtn.setBounds(879, 420, 137, 23);
		 getContentPane().add(clearBtn);
		 
		 label_4 = new JLabel(" ");
		 label_4.setIcon(new ImageIcon(DivianageF.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
		 label_4.setBounds(0, 12, 1050, 52);
		 getContentPane().add(label_4);
		 historyDepart.addActionListener(new AllActionListener());
		 
	}
	
	public static void displayTable(ResultSet rs) {
     
		DefaultTableModel det=(DefaultTableModel) DivianageF.table.getModel();
		det.setRowCount(0);
		try {
     
			while(rs.next()) {
     
			Vector  v=new Vector();
			v.add(rs.getInt(1));
			v.add(rs.getString(2));
			v.add(rs.getString(3));
			det.addRow(v);
			}
		} catch (SQLException e) {
     
			 
			e.printStackTrace();
		}
	}
}

(15) DutyDesignD

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import com.employee.implement.AllActionListener;
 
import com.employee.kit.ClearDuty;
import com.employee.operate.FillComboBox;

import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Color;

public class DutyDesignD extends JDialog {
     
	public static JTextField numField;
	public static JButton saveBtn;
	public static JComboBox dutyName;
   public static JComboBox partName ;
   public static JButton clearBtn;
   public static JComboBox diplomaBox;
   public static JTextArea processField;
	public DutyDesignD() {
     
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			 setSize(531, 509);
			 setLocationRelativeTo(null);
			 setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		setResizable(false);
		
		
		getContentPane().setLayout(null);
		{
     
			JLabel label = new JLabel("所属部门");
			label.setFont(new Font("Dialog", Font.BOLD, 14));
			label.setForeground(Color.BLUE);
			label.setBounds(121, 137, 59, 18);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("文凭要求");
			label.setFont(new Font("Dialog", Font.BOLD, 14));
			label.setForeground(Color.BLUE);
			label.setBounds(121, 181, 49, 18);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("招聘人 数");
			label.setFont(new Font("Dialog", Font.BOLD, 14));
			label.setForeground(Color.BLUE);
			label.setBounds(121, 227, 59, 18);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("招聘岗位");
			label.setFont(new Font("Dialog", Font.BOLD, 14));
			label.setForeground(Color.BLUE);
			label.setBounds(121, 86, 59, 18);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("招聘流程");
			label.setForeground(Color.RED);
			label.setBounds(12, 288, 59, 18);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("招聘计划");
			label.setForeground(Color.GREEN);
			label.setFont(new Font("Dialog", Font.BOLD, 22));
			label.setBounds(216, 12, 96, 38);
			getContentPane().add(label);
		}
		
		 dutyName = new JComboBox();
		dutyName.setBounds(184, 84, 188, 23);
		getContentPane().add(dutyName);
		FillComboBox.fillDutyBox(dutyName);
		 partName = new JComboBox();
		partName.setBounds(184, 135, 188, 23);
		getContentPane().add(partName);
		FillComboBox.fillPartBox(partName);//填充部门下拉框
		numField = new JTextField();
		numField.setBounds(184, 225, 189, 22);
		getContentPane().add(numField);
		numField.setColumns(10);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(66, 287, 422, 108);
		getContentPane().add(scrollPane);
		
		 processField = new JTextArea();
		scrollPane.setViewportView(processField);
		{
     
			saveBtn = new JButton("保存");
			saveBtn.setIcon(new ImageIcon(DutyDesignD.class.getResource("/icons/保存(1).png")));
			saveBtn.addActionListener(new AllActionListener());
			saveBtn.setBounds(66, 439, 105, 28);
			getContentPane().add(saveBtn);
		}
		{
     
			 clearBtn = new JButton("重置");
			 clearBtn.setIcon(new ImageIcon(DutyDesignD.class.getResource("/icons/重置.png")));
			 clearBtn.addActionListener(new ActionListener() {
     
			 	public void actionPerformed(ActionEvent arg0) {
     
			 		ClearDuty.cleardutyDesignText();//清空招聘计划文本框
			 	}
			 });
			clearBtn.setBounds(356, 439, 105, 28);
			getContentPane().add(clearBtn);
		}
		 String dip[]= {
     "博士","研究生","本科","专科","大专","中专"};//初始化文凭下拉框
		 diplomaBox = new JComboBox(dip);
		diplomaBox.setBounds(184, 179, 188, 23);
		getContentPane().add(diplomaBox);
		{
     
			JLabel label = new JLabel(" ");
			label.setIcon(new ImageIcon(DutyDesignD.class.getResource("/images/a6.jpg")));
			label.setBounds(0, -29, 531, 496);
			getContentPane().add(label);
		}
	}
}

(16)DutyManagementF

/**
 * 职务及岗位管理窗体
 * 
 */

package com.employee.frame;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import java.awt.Color;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import com.employee.dao.Dao;
import com.employee.implement.AllActionListener;
import com.employee.implement.AllMouseListener;
 
 
 
import com.employee.operate.FillComboBox;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.awt.event.ActionEvent;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.border.LineBorder;
import java.awt.Font;
import javax.swing.ImageIcon;

public class DutyManagementF extends JDialog {
     
	public static  JTextField numField;
	public static JTextField dutyField;
	public static JTable table;
	public static  JTextField searchField;
   public static  JComboBox comboBox ;
	public static JButton searchBtn;
	public static JLabel labelNum;
	public static JLabel labelName;
	public static JLabel labelPart;
	public static JButton deleteBtn;
	public static JButton modifyBtn;
	private JLabel label_4;
	public DutyManagementF() {
     
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			setResizable(false);
			setSize( 1185, 650);
			setLocationRelativeTo(null);
			 setModal(true);
			 getContentPane().setLayout(null);
			 
			 JPanel panel = new JPanel();
			 panel.setBorder(new TitledBorder(new LineBorder(new Color(184, 207, 229)), "\u4FE1\u606F\u680F", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(51, 51, 51)));
			 panel.setBounds(12, 88, 319, 377);
			 getContentPane().add(panel);
			 panel.setLayout(null);
			 
			  labelNum = new JLabel("");
			  labelNum.setFont(new Font("Dialog", Font.BOLD, 15));
			 labelNum.setBounds(34, 81, 273, 18);
			 panel.add(labelNum);
			 
			 labelName = new JLabel("");
			 labelName.setFont(new Font("Dialog", Font.BOLD, 15));
			 labelName.setBounds(34, 154, 273, 18);
			 panel.add(labelName);
			 
			 labelPart = new JLabel("");
			 labelPart.setFont(new Font("Dialog", Font.BOLD, 15));
			 labelPart.setBounds(34, 222, 273, 18);
			 panel.add(labelPart);
			 
			 JScrollPane scrollPane = new JScrollPane();
			 scrollPane.setBounds(357, 97, 511, 368);
			 getContentPane().add(scrollPane);
			 
			 table = new JTable();
			 table.addMouseListener(new AllMouseListener());
			 table.setModel(new DefaultTableModel(
			 	new Object[][] {
     
			 	},
			 	new String[] {
     
			 		"\u5C97\u4F4D\u4EE3\u53F7", "\u5C97\u4F4D\u540D", "\u6240\u5C5E\u90E8\u95E8"
			 	}
			 ) {
     
			 	boolean[] columnEditables = new boolean[] {
     
			 		true, false, false
			 	};
			 	public boolean isCellEditable(int row, int column) {
     
			 		return columnEditables[column];
			 	}
			 });
			 String sql="select * from duty";
			 
			 DutyManagementF.displayTable(Dao.allData(sql));//填充表格
			 scrollPane.setViewportView(table);
			 
			 JPanel panel_1 = new JPanel();
			 panel_1.setBorder(new TitledBorder(null, "\u8868\u5355\u64CD\u4F5C", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			 panel_1.setBounds(891, 88, 282, 377);
			 getContentPane().add(panel_1);
			 panel_1.setLayout(null);
			 
			 JLabel label = new JLabel("岗位代号");
			 label.setForeground(Color.BLUE);
			 label.setBounds(24, 52, 59, 18);
			 panel_1.add(label);
			 
			 JLabel label_1 = new JLabel("岗位名");
			 label_1.setForeground(Color.GREEN);
			 label_1.setBounds(24, 98, 59, 18);
			 panel_1.add(label_1);
			 
			 JLabel label_2 = new JLabel("所属部门");
			 label_2.setForeground(Color.ORANGE);
			 label_2.setBounds(24, 149, 59, 18);
			 panel_1.add(label_2);
			 
			 numField = new JTextField();
			 numField.setEditable(false);
			 numField.setBounds(82, 50, 176, 22);
			 panel_1.add(numField);
			 numField.setColumns(10);
			 
			 dutyField = new JTextField();
			 dutyField.setBounds(82, 96, 178, 22);
			 panel_1.add(dutyField);
			 dutyField.setColumns(10);
			 
			  comboBox = new JComboBox();
			  
			  FillComboBox.fillPartBox(comboBox);//填充下拉框
			 comboBox.setBounds(82, 149, 176, 23);
			 panel_1.add(comboBox);
			 
			 JButton addBtn = new JButton("建立岗位");
			 addBtn.setFont(new Font("Dialog", Font.BOLD, 7));
			 addBtn.setIcon(new ImageIcon(DutyManagementF.class.getResource("/icons/增加.png")));
			 addBtn.addActionListener(new ActionListener() {
     
			 	public void actionPerformed(ActionEvent arg0) {
     
			 		new AddDutyDialog().setVisible(true);
					
			 	}
			 });
			 
			 addBtn.setBounds(24, 218, 82, 28);
			 panel_1.add(addBtn);
			 
			 deleteBtn = new JButton("撤销岗位");
			 deleteBtn.setFont(new Font("Dialog", Font.BOLD, 7));
			 deleteBtn.setIcon(new ImageIcon(DutyManagementF.class.getResource("/icons/删除.png")));
			 deleteBtn.addActionListener(new  AllActionListener());
					 
			 deleteBtn.setBounds(176, 218, 82, 28);
			 panel_1.add(deleteBtn);
			 
			 JButton clearBtn = new JButton("报表");
			 clearBtn.setIcon(new ImageIcon(DutyManagementF.class.getResource("/icons/分析.png")));
			 clearBtn.setBounds(24, 274, 82, 28);
			 panel_1.add(clearBtn);
			 
			  modifyBtn = new JButton("修改");
			  modifyBtn.setIcon(new ImageIcon(DutyManagementF.class.getResource("/icons/修改.png")));
			 modifyBtn.addActionListener(new AllActionListener());
			 modifyBtn.setBounds(176, 274, 82, 28);
			 panel_1.add(modifyBtn);
			 
			 searchField = new JTextField();
			 searchField.setBounds(420, 63, 182, 22);
			 getContentPane().add(searchField);
			 searchField.setColumns(10);
			 
			 JLabel label_3 = new JLabel("岗位代号");
			 label_3.setFont(new Font("Dialog", Font.BOLD, 14));
			 label_3.setForeground(Color.PINK);
			 label_3.setBounds(355, 65, 59, 18);
			 getContentPane().add(label_3);
			 
			  searchBtn = new JButton("查找");
			  searchBtn.setIcon(new ImageIcon(DutyManagementF.class.getResource("/icons/查找.png")));
			 searchBtn.addActionListener(new  AllActionListener());//查找监听
			 searchBtn.setBounds(614, 63, 79, 22);
			 getContentPane().add(searchBtn);
			 
			 JButton button = new JButton("刷新");
			 button.setIcon(new ImageIcon(DutyManagementF.class.getResource("/icons/刷新.png")));
			 button.addActionListener(new ActionListener() {
     
			 	public void actionPerformed(ActionEvent arg0) {
     
			 		 try {
     
						DutyManagementF.displayTable(Dao.allData(sql));
					} catch (SQLException e) {
     
					 
						e.printStackTrace();
					} 
			 	}
			 });
			 button.setBounds(780, 63, 88, 25);
			 getContentPane().add(button);
			 
			 label_4 = new JLabel(" ");
			 label_4.setIcon(new ImageIcon(DutyManagementF.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
			 label_4.setBounds(0, 0, 1185, 620);
			 getContentPane().add(label_4);
		 
		} catch (Exception e) {
     
			e.printStackTrace();
		}
	}
	public static void displayTable(ResultSet rs) {
     
		DefaultTableModel det=(DefaultTableModel) DutyManagementF.table.getModel();
		det.setRowCount(0);
	
		try {
     
			while(rs.next()) {
     
			Vector  v=new Vector();
			v.add(rs.getInt(1));
			v.add(rs.getString(2));
			v.add(rs.getString(3));
			det.addRow(v);
			}
		} catch (SQLException e) {
     
			 
			e.printStackTrace();
		}
	}
}

(17)EmployeeInfoClientF

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import javax.swing.ComboBoxModel;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JToolBar;
import javax.swing.JMenu;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.border.TitledBorder;
import java.awt.Window.Type;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
import java.awt.Font;

public class EmployeeInfoClientF extends JDialog {
     
	private JTextField textField_1;
	private JTextField textField_2;
	private final ButtonGroup buttonGroup = new ButtonGroup();
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private final ButtonGroup buttonGroup_1 = new ButtonGroup();
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;
	private JTextField textField_10;
	private JTextField textField_11;
	private JTextField textField_12;
	private JTextField textField_13;
	private JTextField textField;
	private JTextField textField_14;
	private JTextField textField_15;
	private JTextField textField_16;
	private JTextField textField_17;
	
	public EmployeeInfoClientF() {
     
	
		try {
     
		 
		 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		 setSize(1023, 642);
		setLocationRelativeTo(null);
		setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		getContentPane().setLayout(null);
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(new Color(0, 255, 255), 2));
		panel.setBounds(10, 12, 976, 53);
		getContentPane().add(panel);
		 
		panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JLabel label = new JLabel("你的全部信息如下");
		label.setFont(new Font("Dialog", Font.BOLD, 20));
		panel.add(label);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new TitledBorder(null, "\u4FE1\u606F\u8868", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(10, 65, 976, 431);
		getContentPane().add(panel_1);
		panel_1.setLayout(null);
		
		JLabel label_1 = new JLabel("工号");
		label_1.setBounds(12, 28, 34, 18);
		panel_1.add(label_1);
		
		JLabel label_2 = new JLabel("姓名");
		label_2.setBounds(12, 72, 34, 18);
		panel_1.add(label_2);
		
		JLabel label_3 = new JLabel("性别");
		label_3.setBounds(12, 113, 34, 18);
		panel_1.add(label_3);
		
		JLabel label_4 = new JLabel("年龄");
		label_4.setBounds(12, 155, 34, 18);
		panel_1.add(label_4);
		
		JLabel label_5 = new JLabel("出生日期");
		label_5.setBounds(12, 199, 59, 18);
		panel_1.add(label_5);
		
		JLabel label_6 = new JLabel("民族");
		label_6.setBounds(189, 28, 44, 18);
		panel_1.add(label_6);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(null, "\u4E2A\u4EBA\u7B80\u5386", TitledBorder.LEADING, TitledBorder.TOP, null, Color.BLACK));
		panel_2.setBounds(0, 307, 1188, 112);
		panel_1.add(panel_2);
		panel_2.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(12, 22, 1176, 90);
		panel_2.add(scrollPane);
		
		JTextArea textArea = new JTextArea();
		textArea.setEditable(false);
		scrollPane.setViewportView(textArea);
		
		textField_1 = new JTextField();
		textField_1.setEditable(false);
		textField_1.setBounds(39, 26, 114, 22);
		panel_1.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setEditable(false);
		textField_2.setBounds(39, 70, 114, 22);
		panel_1.add(textField_2);
		textField_2.setColumns(10);
		
		JRadioButton radioButton = new JRadioButton("男");
		buttonGroup.add(radioButton);
		radioButton.setBounds(39, 109, 44, 26);
		panel_1.add(radioButton);
		
		JRadioButton radioButton_1 = new JRadioButton("女");
		buttonGroup.add(radioButton_1);
		radioButton_1.setBounds(87, 109, 44, 26);
		panel_1.add(radioButton_1);
		
		textField_3 = new JTextField();
		textField_3.setEditable(false);
		textField_3.setBounds(39, 153, 44, 22);
		panel_1.add(textField_3);
		textField_3.setColumns(10);
		
		textField_4 = new JTextField();
		textField_4.setEditable(false);
		textField_4.setBounds(66, 197, 114, 22);
		panel_1.add(textField_4);
		textField_4.setColumns(10);
		
		JLabel label_7 = new JLabel("联系地址");
		label_7.setBounds(12, 238, 59, 18);
		panel_1.add(label_7);
		
		textField_5 = new JTextField();
		textField_5.setEditable(false);
		textField_5.setBounds(66, 236, 376, 22);
		panel_1.add(textField_5);
		textField_5.setColumns(10);
		
		JLabel label_8 = new JLabel("是否已婚");
		label_8.setBounds(189, 72, 59, 18);
		panel_1.add(label_8);
		
		JRadioButton radioButton_2 = new JRadioButton("是");
		buttonGroup_1.add(radioButton_2);
		radioButton_2.setBounds(251, 70, 44, 22);
		panel_1.add(radioButton_2);
		
		JRadioButton radioButton_3 = new JRadioButton("否");
		buttonGroup_1.add(radioButton_3);
		radioButton_3.setBounds(310, 72, 44, 18);
		panel_1.add(radioButton_3);
		
		JLabel label_9 = new JLabel("政治面貌");
		label_9.setBounds(189, 113, 59, 18);
		panel_1.add(label_9);
		
		JLabel label_10 = new JLabel("联系电话");
		label_10.setBounds(189, 155, 59, 18);
		panel_1.add(label_10);
		
		textField_6 = new JTextField();
		textField_6.setEditable(false);
		textField_6.setBounds(240, 153, 114, 22);
		panel_1.add(textField_6);
		textField_6.setColumns(10);
		
		JLabel label_11 = new JLabel("毕业学校");
		label_11.setBounds(397, 28, 59, 18);
		panel_1.add(label_11);
		
		textField_7 = new JTextField();
		textField_7.setEditable(false);
		textField_7.setBounds(454, 26, 114, 22);
		panel_1.add(textField_7);
		textField_7.setColumns(10);
		
		JLabel label_12 = new JLabel("所学专业");
		label_12.setBounds(397, 72, 59, 18);
		panel_1.add(label_12);
		
		textField_8 = new JTextField();
		textField_8.setEditable(false);
		textField_8.setBounds(454, 70, 114, 22);
		panel_1.add(textField_8);
		textField_8.setColumns(10);
		
		JLabel label_13 = new JLabel("文化程度");
		label_13.setBounds(397, 113, 59, 18);
		panel_1.add(label_13);
		
		JLabel label_14 = new JLabel("工作时间");
		label_14.setBounds(397, 155, 59, 18);
		panel_1.add(label_14);
		
		textField_9 = new JTextField();
		textField_9.setEditable(false);
		textField_9.setBounds(454, 153, 114, 22);
		panel_1.add(textField_9);
		textField_9.setColumns(10);
		
		JLabel label_15 = new JLabel("身份证号码");
		label_15.setBounds(204, 199, 80, 18);
		panel_1.add(label_15);
		
		textField_10 = new JTextField();
		textField_10.setEditable(false);
		textField_10.setBounds(272, 197, 170, 22);
		panel_1.add(textField_10);
		textField_10.setColumns(10);
		
		JLabel label_16 = new JLabel("工种");
		label_16.setBounds(667, 28, 44, 18);
		panel_1.add(label_16);
		
		JLabel label_17 = new JLabel("状态");
		label_17.setBounds(667, 72, 59, 18);
		panel_1.add(label_17);
		
		JPanel panel_3 = new JPanel();
		panel_3.setBorder(new LineBorder(Color.BLUE));
		panel_3.setBounds(854, 12, 122, 161);
		panel_1.add(panel_3);
		
		JLabel image = new JLabel("image");
		panel_3.add(image);
		
		JLabel label_18 = new JLabel("签约时间");
		label_18.setBounds(667, 113, 51, 18);
		panel_1.add(label_18);
		
		textField_11 = new JTextField();
		textField_11.setEditable(false);
		textField_11.setBounds(724, 111, 77, 22);
		panel_1.add(textField_11);
		textField_11.setColumns(10);
		
		JLabel label_19 = new JLabel("登记人");
		label_19.setBounds(667, 155, 51, 18);
		panel_1.add(label_19);
		
		textField_12 = new JTextField();
		textField_12.setEditable(false);
		textField_12.setBounds(724, 153, 77, 22);
		panel_1.add(textField_12);
		textField_12.setColumns(10);
		
		JLabel label_20 = new JLabel("银行卡号");
		label_20.setBounds(454, 199, 59, 18);
		panel_1.add(label_20);
		
		textField_13 = new JTextField();
		textField_13.setEditable(false);
		textField_13.setBounds(506, 197, 295, 22);
		panel_1.add(textField_13);
		textField_13.setColumns(10);
		
		textField = new JTextField();
		textField.setEditable(false);
		textField.setBounds(225, 26, 129, 22);
		panel_1.add(textField);
		textField.setColumns(10);
		
		textField_14 = new JTextField();
		textField_14.setEditable(false);
		textField_14.setBounds(240, 111, 114, 22);
		panel_1.add(textField_14);
		textField_14.setColumns(10);
		
		textField_15 = new JTextField();
		textField_15.setEditable(false);
		textField_15.setBounds(454, 111, 114, 22);
		panel_1.add(textField_15);
		textField_15.setColumns(10);
		
		textField_16 = new JTextField();
		textField_16.setEditable(false);
		textField_16.setBounds(700, 26, 114, 22);
		panel_1.add(textField_16);
		textField_16.setColumns(10);
		
		textField_17 = new JTextField();
		textField_17.setEditable(false);
		textField_17.setBounds(700, 70, 114, 22);
		panel_1.add(textField_17);
		textField_17.setColumns(10);
		
		JPanel panel_4 = new JPanel();
		panel_4.setBorder(new LineBorder(Color.PINK));
		panel_4.setBounds(10, 521, 976, 64);
		getContentPane().add(panel_4);
		panel_4.setLayout(null);
	}
}

(18)EmployeeInfoF

package com.employee.frame;
 
import java.awt.FlowLayout;
 
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.border.TitledBorder;

import com.employee.implement.AllActionListener;
import com.employee.operate.EmployeeFile;
import com.employee.operate.FillComboBox;

import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;

public class EmployeeInfoF extends JDialog {
     
	public static JTextField textField;
	public static JButton btnNewButton;
	public static JLabel label;
	public static JTextField jobNumField;
	public static JTextField nameField;
	public static final ButtonGroup buttonGroup = new ButtonGroup();
	public static JTextField ageField;
	public static JTextField birthDayField;
	public static JTextField addressField;
	private final ButtonGroup buttonGroup_1 = new ButtonGroup();
	public static JTextField phoneField;
	public static JTextField collageField;
	public static JTextField majorField;
	public static JTextField jobTime;
	public static JTextField id_cardField;
	public static JTextField signTimeField;
	public static JComboBox statusCombo;
	public static JTextField regesField;
	public static  JTextField creditNumField;
	public static JComboBox departCombo;
	public static JLabel imagePath;
	public static JButton bBtn;
	public static JButton fBtn;
	public static JTextArea textArea;
	public static JRadioButton manBtn;
	public static JRadioButton femalBtn ;
	public static JRadioButton yesBtn;
	public static JRadioButton noBtn;
	public static JComboBox profesionCombo;
	public static JComboBox raceField;
	public static JComboBox politcCombo;
	public static JComboBox cultureCombo;
	public static int index=1;
	public EmployeeInfoF() {
     
		 
	
		try {
     
		 
		 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		 setSize(1023, 642);
		setLocationRelativeTo(null);
		setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		getContentPane().setLayout(null);
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(new Color(0, 255, 255), 2));
		panel.setBounds(10, 12, 976, 53);
		getContentPane().add(panel);
		 
		panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		label = new JLabel("工号:");
		panel.add(label);
		
		textField = new JTextField();
		panel.add(textField);
		textField.setColumns(15);
		
		btnNewButton = new JButton("search");
		panel.add(btnNewButton);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new TitledBorder(null, "\u4FE1\u606F\u8868", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(10, 65, 976, 431);
		getContentPane().add(panel_1);
		panel_1.setLayout(null);
		
		JLabel label_1 = new JLabel("工号");
		label_1.setBounds(12, 28, 34, 18);
		panel_1.add(label_1);
		
		JLabel label_2 = new JLabel("姓名");
		label_2.setBounds(12, 72, 34, 18);
		panel_1.add(label_2);
		
		JLabel label_3 = new JLabel("性别");
		label_3.setBounds(12, 113, 34, 18);
		panel_1.add(label_3);
		
		JLabel label_4 = new JLabel("年龄");
		label_4.setBounds(12, 155, 34, 18);
		panel_1.add(label_4);
		
		JLabel label_5 = new JLabel("出生日期");
		label_5.setBounds(12, 199, 59, 18);
		panel_1.add(label_5);
		
		JLabel label_6 = new JLabel("民      族");
		label_6.setBounds(189, 28, 44, 18);
		panel_1.add(label_6);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(null, "\u4E2A\u4EBA\u7B80\u5386", TitledBorder.LEADING, TitledBorder.TOP, null, Color.BLACK));
		panel_2.setBounds(0, 307, 1188, 112);
		panel_1.add(panel_2);
		panel_2.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(12, 22, 1176, 90);
		panel_2.add(scrollPane);
		
		 textArea = new JTextArea();
		scrollPane.setViewportView(textArea);
		
		jobNumField = new JTextField();
		jobNumField.setBounds(39, 26, 114, 22);
		panel_1.add(jobNumField);
		jobNumField.setColumns(10);
		
		nameField = new JTextField();
		nameField.setBounds(39, 70, 114, 22);
		panel_1.add(nameField);
		nameField.setColumns(10);
		
		  manBtn = new JRadioButton("男");
		buttonGroup.add(manBtn);
		manBtn.setBounds(39, 109, 44, 26);
		panel_1.add(manBtn);
		
		 femalBtn = new JRadioButton("女");
		buttonGroup.add(femalBtn);
		femalBtn.setBounds(87, 109, 44, 26);
		panel_1.add(femalBtn);
		
		ageField = new JTextField();
		ageField.setBounds(39, 153, 44, 22);
		panel_1.add(ageField);
		ageField.setColumns(10);
		
		birthDayField = new JTextField();
		birthDayField.setBounds(66, 197, 101, 22);
		panel_1.add(birthDayField);
		birthDayField.setColumns(10);
		String race[]= {
     "汉族","苗族","高山族","藏族"};
		 raceField = new JComboBox(race);
		raceField.setBounds(240, 26, 114, 23);
		panel_1.add(raceField);
		
		JLabel label_7 = new JLabel("联系地址");
		label_7.setBounds(12, 238, 59, 18);
		panel_1.add(label_7);
		
		addressField = new JTextField();
		addressField.setBounds(66, 236, 376, 22);
		panel_1.add(addressField);
		addressField.setColumns(10);
		
		JLabel label_8 = new JLabel("是否已婚");
		label_8.setBounds(189, 72, 59, 18);
		panel_1.add(label_8);
		
		 yesBtn = new JRadioButton("是");
		buttonGroup_1.add(yesBtn);
		yesBtn.setBounds(251, 70, 44, 22);
		panel_1.add(yesBtn);
		
		 noBtn = new JRadioButton("否");
		buttonGroup_1.add(noBtn);
		noBtn.setBounds(310, 72, 44, 18);
		panel_1.add(noBtn);
		
		JLabel label_9 = new JLabel("政治面貌");
		label_9.setBounds(189, 113, 59, 18);
		panel_1.add(label_9);
		String politStatus[]= {
     "共青团员","党员","群众"};
		 politcCombo = new JComboBox(politStatus);
		politcCombo.setBounds(243, 111, 111, 22);
		panel_1.add(politcCombo);
		
		JLabel label_10 = new JLabel("联系电话");
		label_10.setBounds(189, 155, 59, 18);
		panel_1.add(label_10);
		
		phoneField = new JTextField();
		phoneField.setBounds(240, 153, 114, 22);
		panel_1.add(phoneField);
		phoneField.setColumns(10);
		
		JLabel label_11 = new JLabel("毕业学校");
		label_11.setBounds(397, 28, 59, 18);
		panel_1.add(label_11);
		
		collageField = new JTextField();
		collageField.setBounds(454, 26, 114, 22);
		panel_1.add(collageField);
		collageField.setColumns(10);
		
		JLabel label_12 = new JLabel("所学专业");
		label_12.setBounds(397, 72, 59, 18);
		panel_1.add(label_12);
		
		majorField = new JTextField();
		majorField.setBounds(454, 70, 114, 22);
		panel_1.add(majorField);
		majorField.setColumns(10);
		
		JLabel label_13 = new JLabel("文化程度");
		label_13.setBounds(397, 113, 59, 18);
		panel_1.add(label_13);
		String culture[]= {
     "博士","硕士","本科","专科","专科","大专","中专"};
		 cultureCombo = new JComboBox(culture);
		cultureCombo.setBounds(454, 111, 114, 22);
		panel_1.add(cultureCombo);
		
		JLabel label_14 = new JLabel("工作时间");
		label_14.setBounds(397, 155, 59, 18);
		panel_1.add(label_14);
		
		jobTime = new JTextField();
		jobTime.setBounds(454, 153, 114, 22);
		panel_1.add(jobTime);
		jobTime.setColumns(10);
		
		JLabel label_15 = new JLabel("身份证号码");
		label_15.setBounds(464, 238, 80, 18);
		panel_1.add(label_15);
		
		id_cardField = new JTextField();
		id_cardField.setBounds(536, 236, 265, 22);
		panel_1.add(id_cardField);
		id_cardField.setColumns(10);
		
		JLabel label_16 = new JLabel("工种");
		label_16.setBounds(667, 28, 44, 18);
		panel_1.add(label_16);
		
		 profesionCombo = new JComboBox();
		 FillComboBox.fillDutyBox(profesionCombo);
		profesionCombo.setBounds(700, 24, 101, 22);
		panel_1.add(profesionCombo);
		
		JLabel label_17 = new JLabel("状态");
		label_17.setBounds(667, 72, 59, 18);
		panel_1.add(label_17);
		String stus[]= {
     "在职","离职","后备"};
		 statusCombo = new JComboBox(stus);
		statusCombo.setBounds(700, 68, 101, 22);
		panel_1.add(statusCombo);
		
		JPanel panel_3 = new JPanel();
		panel_3.setBorder(new LineBorder(Color.BLUE));
		panel_3.setBounds(854, 12, 122, 161);
		panel_1.add(panel_3);
		
		  imagePath = new JLabel("image");
		panel_3.add(imagePath);
		
		JLabel label_18 = new JLabel("签约时间");
		label_18.setBounds(667, 113, 51, 18);
		panel_1.add(label_18);
		
		signTimeField = new JTextField();
		signTimeField.setBounds(724, 111, 77, 22);
		panel_1.add(signTimeField);
		signTimeField.setColumns(10);
		
		JLabel label_19 = new JLabel("登记人");
		label_19.setBounds(667, 155, 51, 18);
		panel_1.add(label_19);
		
		regesField = new JTextField();
		regesField.setBounds(724, 153, 77, 22);
		panel_1.add(regesField);
		regesField.setColumns(10);
		
		JLabel label_20 = new JLabel("银行卡号");
		label_20.setBounds(464, 199, 59, 18);
		panel_1.add(label_20);
		
		creditNumField = new JTextField();
		creditNumField.setBounds(537, 197, 264, 22);
		panel_1.add(creditNumField);
		creditNumField.setColumns(10);
		
		 departCombo = new JComboBox();
		 FillComboBox.fillPartBox(departCombo );
		departCombo.setBounds(243, 197, 114, 22);
		panel_1.add(departCombo);
		
		JLabel label_21 = new JLabel("所属部门");
		label_21.setBounds(189, 199, 59, 18);
		panel_1.add(label_21);
		
		JLabel label_22 = new JLabel(" ");
		label_22.setIcon(new ImageIcon(EmployeeInfoF.class.getResource("/images/4c16bccd748a7cbd540b8509154b6b45.jpg")));
		label_22.setBounds(0, -64, 1014, 388);
		panel_1.add(label_22);
		
		JPanel panel_4 = new JPanel();
		panel_4.setBorder(new LineBorder(Color.PINK));
		panel_4.setBounds(10, 521, 976, 64);
		getContentPane().add(panel_4);
		panel_4.setLayout(null);
		EmployeeFile.showEmpAData(index);
		fBtn = new JButton("<");
		fBtn.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				index--;
				if(index<=0) {
     
					index=1;
				}
				EmployeeFile.showEmpAData(index);
			}
		});
		 
		fBtn.setBounds(354, 12, 105, 28);
		panel_4.add(fBtn);
		
		bBtn = new JButton(">");
		bBtn.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				index++;
				EmployeeFile.showEmpAData(index);
				
				
				
			}
		});
		 
		bBtn.setBounds(509, 12, 105, 28);
		panel_4.add(bBtn);
		
		JLabel label_23 = new JLabel(" ");
		label_23.setIcon(new ImageIcon(EmployeeInfoF.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
		label_23.setBounds(0, 0, 976, 64);
		panel_4.add(label_23);
	}
}

(19)EmployeeInfoF2

/**
 * 学生简历填写
 */
package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import javax.swing.ComboBoxModel;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JToolBar;
import javax.swing.JMenu;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.border.TitledBorder;

import com.employee.implement.AllActionListener;
import com.employee.operate.FillComboBox;

import java.awt.Window.Type;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class EmployeeInfoF2 extends JDialog {
     
	public static JTextField nameField;
	public static final ButtonGroup buttonGroup = new ButtonGroup();
	public static JTextField ageField;
	public static JTextField birthDayField;
	public static JTextField addressField;
	public static final ButtonGroup buttonGroup_1 = new ButtonGroup();
	public static JTextField phoneNumField;
	public static JTextField collageField;
	public static JTextField majorField;
	public static JTextField jobTimeField;
	public static JTextField id_cardField;
	public static JTextField creditNumField;
	public static JButton submitBtn;
	public static JRadioButton manBtn;
	public static JRadioButton femalBtn;
	public static JComboBox comborace;
	public static JComboBox comboPolitStatus;
	public static JComboBox comboCulture;
	public static JComboBox comboType;
	public static JRadioButton yesBtn;
	public static JRadioButton noBtn;
	public static File selectedFile;
	public static JLabel image;
	public static JTextArea textArea;
	public EmployeeInfoF2() {
     
	
		try {
     
		 
		 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		 setSize(1023, 642);
		setLocationRelativeTo(null);
		setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		getContentPane().setLayout(null);
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(new Color(0, 255, 255), 2));
		panel.setBounds(10, 12, 976, 53);
		getContentPane().add(panel);
		 
		panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JLabel label = new JLabel("请填写你的个人信息");
		label.setForeground(Color.GRAY);
		label.setFont(new Font("Dialog", Font.BOLD, 20));
		panel.add(label);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new TitledBorder(null, "\u4FE1\u606F\u8868", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(10, 65, 976, 431);
		getContentPane().add(panel_1);
		panel_1.setLayout(null);
		
		JLabel label_2 = new JLabel("姓名");
		label_2.setBounds(12, 72, 34, 18);
		panel_1.add(label_2);
		
		JLabel label_3 = new JLabel("性别");
		label_3.setBounds(12, 113, 34, 18);
		panel_1.add(label_3);
		
		JLabel label_4 = new JLabel("年龄");
		label_4.setBounds(12, 155, 34, 18);
		panel_1.add(label_4);
		
		JLabel label_5 = new JLabel("出生日期");
		label_5.setBounds(12, 199, 59, 18);
		panel_1.add(label_5);
		
		JLabel label_6 = new JLabel("民族");
		label_6.setBounds(264, 28, 44, 18);
		panel_1.add(label_6);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(null, "\u4E2A\u4EBA\u7B80\u5386", TitledBorder.LEADING, TitledBorder.TOP, null, Color.BLACK));
		panel_2.setBounds(0, 307, 1188, 112);
		panel_1.add(panel_2);
		panel_2.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(12, 22, 1176, 90);
		panel_2.add(scrollPane);
		
		 textArea = new JTextArea();
	 
		scrollPane.setViewportView(textArea);
		
		nameField = new JTextField();
		nameField.setBounds(66, 70, 114, 22);
		panel_1.add(nameField);
		nameField.setColumns(10);
		
		  manBtn = new JRadioButton("男");
		buttonGroup.add(manBtn);
		manBtn.setBounds(75, 109, 44, 26);
		panel_1.add(manBtn);
		
		  femalBtn = new JRadioButton("女");
		buttonGroup.add(femalBtn);
		femalBtn.setBounds(136, 109, 44, 26);
		panel_1.add(femalBtn);
		
		ageField = new JTextField();
		ageField.setBounds(64, 153, 116, 22);
		panel_1.add(ageField);
		ageField.setColumns(10);
		
		birthDayField = new JTextField();
		birthDayField.setBounds(66, 197, 114, 22);
		panel_1.add(birthDayField);
		birthDayField.setColumns(10);
		String race[]= {
     "汉族","苗族","高山族","藏族"};
		 comborace = new JComboBox(race);
		comborace.setBounds(310, 26, 132, 23);
		panel_1.add(comborace);
		
		JLabel label_7 = new JLabel("联系地址");
		label_7.setBounds(12, 238, 59, 18);
		panel_1.add(label_7);
		
		addressField = new JTextField();
		addressField.setBounds(66, 236, 376, 22);
		panel_1.add(addressField);
		addressField.setColumns(10);
		
		JLabel label_8 = new JLabel("是否已婚");
		label_8.setBounds(264, 72, 59, 18);
		panel_1.add(label_8);
		
		 yesBtn = new JRadioButton("是");
		buttonGroup_1.add(yesBtn);
		yesBtn.setBounds(323, 70, 44, 22);
		panel_1.add(yesBtn);
		
		 noBtn = new JRadioButton("否");
		buttonGroup_1.add(noBtn);
		noBtn.setBounds(371, 72, 44, 18);
		panel_1.add(noBtn);
		
		JLabel label_9 = new JLabel("政治面貌");
		label_9.setBounds(264, 113, 59, 18);
		panel_1.add(label_9);
		String politStatus[]= {
     "共青团员","党员","群众"};
		  comboPolitStatus = new JComboBox(politStatus);
		comboPolitStatus.setBounds(323, 111, 119, 22);
		panel_1.add(comboPolitStatus);
		
		JLabel label_10 = new JLabel("联系电话");
		label_10.setBounds(264, 155, 59, 18);
		panel_1.add(label_10);
		
		phoneNumField = new JTextField();
		phoneNumField.setBounds(328, 153, 114, 22);
		panel_1.add(phoneNumField);
		phoneNumField.setColumns(10);
		
		JLabel label_11 = new JLabel("毕业学校");
		label_11.setBounds(551, 28, 59, 18);
		panel_1.add(label_11);
		
		collageField = new JTextField();
		collageField.setBounds(613, 26, 114, 22);
		panel_1.add(collageField);
		collageField.setColumns(10);
		
		JLabel label_12 = new JLabel("所学专业");
		label_12.setBounds(551, 72, 59, 18);
		panel_1.add(label_12);
		
		majorField = new JTextField();
		majorField.setBounds(613, 70, 114, 22);
		panel_1.add(majorField);
		majorField.setColumns(10);
		
		JLabel label_13 = new JLabel("文化程度");
		label_13.setBounds(551, 113, 59, 18);
		panel_1.add(label_13);
		String culture[]= {
     "博士","硕士","本科","专科","专科","大专","中专"};
		 comboCulture = new JComboBox(culture);
		comboCulture.setBounds(613, 111, 114, 22);
		panel_1.add(comboCulture);
		
		JLabel label_14 = new JLabel("工作时间");
		label_14.setBounds(551, 155, 59, 18);
		panel_1.add(label_14);
		
		jobTimeField = new JTextField();
		jobTimeField.setBounds(613, 153, 114, 22);
		panel_1.add(jobTimeField);
		jobTimeField.setColumns(10);
		
		JLabel label_15 = new JLabel("身份证号码");
		label_15.setBounds(204, 199, 80, 18);
		panel_1.add(label_15);
		
		id_cardField = new JTextField();
		id_cardField.setBounds(272, 197, 170, 22);
		panel_1.add(id_cardField);
		id_cardField.setColumns(10);
		
		JLabel label_16 = new JLabel("申请职位");
		label_16.setBounds(12, 26, 59, 18);
		panel_1.add(label_16);
		
		 comboType = new JComboBox();
		 FillComboBox.fillDutyBox(comboType);
		comboType.setBounds(66, 26, 114, 22);
		panel_1.add(comboType);
		String status[]= {
     "在职","离职","后备"};
		
		JPanel imagePath = new JPanel();
		imagePath.setBorder(new LineBorder(Color.BLUE));
		imagePath.setBounds(842, 12, 122, 161);
		panel_1.add(imagePath);
		imagePath.setLayout(null);
		
		 image = new JLabel("+");//添加照片
		image.addMouseListener(new MouseAdapter() {
     
			@Override
			public void mousePressed(MouseEvent e) {
     
				JFileChooser file=new JFileChooser();
				int i=file.showOpenDialog(getContentPane());
				if(i==JFileChooser.APPROVE_OPTION) {
     
					 selectedFile=file.getSelectedFile();
					 image.setIcon(new ImageIcon(selectedFile.getAbsolutePath()));
				}
			}
		});
		image.setHorizontalAlignment(SwingConstants.CENTER);
		image.setFont(new Font("Dialog", Font.BOLD, 25));
		image.setBounds(0, 0, 122, 161);
		imagePath.add(image);
		
		JLabel label_20 = new JLabel("银行卡号");
		label_20.setBounds(454, 199, 59, 18);
		panel_1.add(label_20);
		
		creditNumField = new JTextField();
		creditNumField.setBounds(506, 197, 295, 22);
		panel_1.add(creditNumField);
		creditNumField.setColumns(10);
		
		JLabel label_17 = new JLabel(" ");
		label_17.setIcon(new ImageIcon(EmployeeInfoF2.class.getResource("/images/ff8b9250ae01da21c60136a866fe41c2.jpg")));
		label_17.setBounds(-13, -62, 1022, 508);
		panel_1.add(label_17);
		
		JPanel panel_4 = new JPanel();
		panel_4.setBorder(new LineBorder(Color.PINK));
		panel_4.setBounds(10, 521, 976, 64);
		getContentPane().add(panel_4);
		panel_4.setLayout(null);
		
		 submitBtn = new JButton("提交");
		 submitBtn.setIcon(new ImageIcon(EmployeeInfoF2.class.getResource("/icons/保存(1).png")));
		 submitBtn.addActionListener( new AllActionListener());
		submitBtn.setBounds(378, 12, 188, 28);
		panel_4.add(submitBtn);
		
		JLabel label_1 = new JLabel(" ");
		label_1.setIcon(new ImageIcon(EmployeeInfoF2.class.getResource("/images/ff8b9250ae01da21c60136a866fe41c2.jpg")));
		label_1.setBounds(12, 0, 964, 64);
		panel_4.add(label_1);
	}
}

(20) EmployeeInfoFShow

/**
 * 学生简历填写
 */
package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.swing.ComboBoxModel;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JToolBar;
import javax.swing.JMenu;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.border.TitledBorder;

import com.employee.dao.Dao;
import com.employee.implement.AllActionListener;
import com.employee.model.Employee;
 
import com.employee.operate.FillComboBox;
import com.employee.operate.EmployeeFile;

import java.awt.Window.Type;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
import java.awt.Font;
 
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class EmployeeInfoFShow extends JDialog {
     
	public static JTextField nameField;
	public static final ButtonGroup buttonGroup = new ButtonGroup();
	public static JTextField ageField;
	public static JTextField addressField;
	public static final ButtonGroup buttonGroup_1 = new ButtonGroup();
	public static JTextField phoneNumField;
	public static JTextField collageField;
	public static JTextField majorField;
	public static JTextField id_cardField;
	public static JTextField creditNumField;
	public static JButton submitBtn;
	public static JRadioButton manBtn;
	public static JRadioButton femalBtn;
	public static JComboBox comborace;
	public static JComboBox comboPolitStatus;
	public static JComboBox comboCulture;
	public static JComboBox comboType;
	public static JRadioButton yesBtn;
	public static JRadioButton noBtn;
	public static File selectedFile;
	public static JLabel image;
	public static JTextArea textArea;
	public static List list;
   private int index=1;
   public static JButton saveBtn;
   public static JTextField birthDayField;
   public static JTextField jobTimeField;
 
	public EmployeeInfoFShow() {
     
	
		try {
     
		 
		 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		 setSize(1023, 642);
		setLocationRelativeTo(null);
		setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		getContentPane().setLayout(null);
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(new Color(0, 255, 255), 2));
		panel.setBounds(10, 12, 976, 53);
		getContentPane().add(panel);
		 
		panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JLabel label = new JLabel("学生简历");
		label.setFont(new Font("Dialog", Font.BOLD, 20));
		panel.add(label);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new TitledBorder(null, "\u4FE1\u606F\u8868", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(10, 65, 976, 431);
		getContentPane().add(panel_1);
		panel_1.setLayout(null);
		
		JLabel label_2 = new JLabel("姓名");
		label_2.setBounds(12, 72, 34, 18);
		panel_1.add(label_2);
		
		JLabel label_3 = new JLabel("性别");
		label_3.setBounds(12, 113, 34, 18);
		panel_1.add(label_3);
		
		JLabel label_4 = new JLabel("年龄");
		label_4.setBounds(12, 155, 34, 18);
		panel_1.add(label_4);
		
		JLabel label_5 = new JLabel("出生日期");
		label_5.setBounds(12, 199, 59, 18);
		panel_1.add(label_5);
		
		JLabel label_6 = new JLabel("民族");
		label_6.setBounds(264, 28, 44, 18);
		panel_1.add(label_6);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(null, "\u4E2A\u4EBA\u7B80\u5386", TitledBorder.LEADING, TitledBorder.TOP, null, Color.BLACK));
		panel_2.setBounds(0, 307, 1188, 112);
		panel_1.add(panel_2);
		panel_2.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(12, 22, 1176, 90);
		panel_2.add(scrollPane);
		
		 textArea = new JTextArea();
	 
		scrollPane.setViewportView(textArea);
		
		nameField = new JTextField();
		nameField.setBounds(66, 70, 114, 22);
		panel_1.add(nameField);
		nameField.setColumns(10);
		
		  manBtn = new JRadioButton("男");
		buttonGroup.add(manBtn);
		manBtn.setBounds(75, 109, 44, 26);
		panel_1.add(manBtn);
		
		  femalBtn = new JRadioButton("女");
		buttonGroup.add(femalBtn);
		femalBtn.setBounds(136, 109, 44, 26);
		panel_1.add(femalBtn);
		
		ageField = new JTextField();
		ageField.setBounds(64, 153, 116, 22);
		panel_1.add(ageField);
		ageField.setColumns(10);
		String race[]= {
     "汉族","苗族","高山族","藏族"};
		 comborace = new JComboBox(race);
		comborace.setBounds(310, 26, 132, 23);
		panel_1.add(comborace);
		
		JLabel label_7 = new JLabel("联系地址");
		label_7.setBounds(12, 238, 59, 18);
		panel_1.add(label_7);
		
		addressField = new JTextField();
		addressField.setBounds(66, 236, 376, 22);
		panel_1.add(addressField);
		addressField.setColumns(10);
		
		JLabel label_8 = new JLabel("是否已婚");
		label_8.setBounds(264, 72, 59, 18);
		panel_1.add(label_8);
		
		 yesBtn = new JRadioButton("是");
		buttonGroup_1.add(yesBtn);
		yesBtn.setBounds(323, 70, 44, 22);
		panel_1.add(yesBtn);
		
		 noBtn = new JRadioButton("否");
		buttonGroup_1.add(noBtn);
		noBtn.setBounds(371, 72, 44, 18);
		panel_1.add(noBtn);
		
		JLabel label_9 = new JLabel("政治面貌");
		label_9.setBounds(264, 113, 59, 18);
		panel_1.add(label_9);
		String politStatus[]= {
     "共青团员","党员","群众"};
		  comboPolitStatus = new JComboBox(politStatus);
		comboPolitStatus.setBounds(323, 111, 119, 22);
		panel_1.add(comboPolitStatus);
		
		JLabel label_10 = new JLabel("联系电话");
		label_10.setBounds(264, 155, 59, 18);
		panel_1.add(label_10);
		
		phoneNumField = new JTextField();
		phoneNumField.setBounds(328, 153, 114, 22);
		panel_1.add(phoneNumField);
		phoneNumField.setColumns(10);
		
		JLabel label_11 = new JLabel("毕业学校");
		label_11.setBounds(551, 28, 59, 18);
		panel_1.add(label_11);
		
		collageField = new JTextField();
		collageField.setBounds(613, 26, 114, 22);
		panel_1.add(collageField);
		collageField.setColumns(10);
		
		JLabel label_12 = new JLabel("所学专业");
		label_12.setBounds(551, 72, 59, 18);
		panel_1.add(label_12);
		
		majorField = new JTextField();
		majorField.setBounds(613, 70, 114, 22);
		panel_1.add(majorField);
		majorField.setColumns(10);
		
		JLabel label_13 = new JLabel("文化程度");
		label_13.setBounds(551, 113, 59, 18);
		panel_1.add(label_13);
		String culture[]= {
     "博士","硕士","本科","专科","专科","大专","中专"};
		 comboCulture = new JComboBox(culture);
		comboCulture.setBounds(613, 111, 114, 22);
		panel_1.add(comboCulture);
		
		JLabel label_14 = new JLabel("工作时间");
		label_14.setBounds(551, 155, 59, 18);
		panel_1.add(label_14);
		
		JLabel label_15 = new JLabel("身份证号码");
		label_15.setBounds(551, 199, 80, 18);
		panel_1.add(label_15);
		
		id_cardField = new JTextField();
		id_cardField.setBounds(613, 197, 170, 22);
		panel_1.add(id_cardField);
		id_cardField.setColumns(10);
		
		JLabel label_16 = new JLabel("申请职位");
		label_16.setBounds(12, 26, 59, 18);
		panel_1.add(label_16);
		
		 comboType = new JComboBox();
		 FillComboBox.fillDutyBox(comboType);
		comboType.setBounds(66, 26, 114, 22);
		panel_1.add(comboType);
		String status[]= {
     "在职","离职","后备"};
		
		JPanel imagePath = new JPanel();
		imagePath.setBorder(new LineBorder(Color.BLUE));
		imagePath.setBounds(842, 12, 122, 161);
		panel_1.add(imagePath);
		imagePath.setLayout(null);
		
		 image = new JLabel("+");//添加照片
		 
		image.setHorizontalAlignment(SwingConstants.CENTER);
		image.setFont(new Font("Dialog", Font.BOLD, 25));
		image.setBounds(0, 0, 122, 161);
		imagePath.add(image);
		
		JLabel label_20 = new JLabel("银行卡号");
		label_20.setBounds(551, 238, 59, 18);
		panel_1.add(label_20);
		
		creditNumField = new JTextField();
		creditNumField.setBounds(613, 236, 295, 22);
		panel_1.add(creditNumField);
		creditNumField.setColumns(10);
		
		birthDayField = new JTextField();
		birthDayField.setBounds(66, 197, 114, 22);
		panel_1.add(birthDayField);
		birthDayField.setColumns(10);
		
		jobTimeField = new JTextField();
		jobTimeField.setBounds(613, 153, 114, 22);
		panel_1.add(jobTimeField);
		jobTimeField.setColumns(10);
		
		JLabel label_1 = new JLabel(" ");
		label_1.setIcon(new ImageIcon(EmployeeInfoFShow.class.getResource("/images/4c16bccd748a7cbd540b8509154b6b45.jpg")));
		label_1.setBounds(0, -62, 1012, 493);
		panel_1.add(label_1);
		
		JPanel panel_4 = new JPanel();
		panel_4.setBorder(new LineBorder(Color.PINK));
		panel_4.setBounds(10, 521, 976, 64);
		getContentPane().add(panel_4);
		panel_4.setLayout(null);
		/**
		 * 初始化
		 */
		EmployeeFile.showD(index);
		 
		 submitBtn = new JButton(" ");
		 submitBtn.setIcon(new ImageIcon(EmployeeInfoFShow.class.getResource("/icons/右.png")));
		 submitBtn.addActionListener(new ActionListener() {
     
		 	public void actionPerformed(ActionEvent arg0) {
     
		 		index++;
		 		EmployeeFile.showD(index);
				  
		 	}
		 });
		 
		submitBtn.setBounds(510, 12, 58, 28);
		panel_4.add(submitBtn);
		
		JButton button = new JButton(" ");
		button.setIcon(new ImageIcon(EmployeeInfoFShow.class.getResource("/icons/左.png")));
		button.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				index--;
				 if(index<0) {
     
					 index=1;
				 }
				 EmployeeFile.showD(index);
			}
		});
		 
		button.setBounds(402, 12, 65, 28);
		panel_4.add(button);
		
		 saveBtn = new JButton("录用");
		 saveBtn.setIcon(new ImageIcon(EmployeeInfoFShow.class.getResource("/icons/招聘录用.png")));
		 saveBtn.addActionListener(new ActionListener() {
     
		 	public void actionPerformed(ActionEvent arg0) {
     
		 		new EmployInfoD().setVisible(true);
		 	}
		 });
		 
		saveBtn.setBounds(836, 12, 88, 28);
		panel_4.add(saveBtn);
		
		JLabel label_17 = new JLabel(" ");
		label_17.setIcon(new ImageIcon(EmployeeInfoFShow.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
		label_17.setBounds(12, 0, 964, 64);
		panel_4.add(label_17);
	}
}


(21)EmployeeLoginF

package com.employee.frame;
 
import javax.swing.JButton;
import javax.swing.JDialog;
 
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;

import com.employee.implement.RegisterAction;

import javax.swing.JPasswordField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;

public class EmployeeLoginF extends JDialog {
     
	private JTextField textField;
	private JPasswordField passwordField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
     
		try {
     
			
			EmployeeLoginF dialog = new EmployeeLoginF();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
			dialog.setResizable(false);
			dialog.setBounds(100, 100, 581, 420);
			dialog.setModal(true);
			 
		
		} catch (Exception e) {
     
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public EmployeeLoginF() {
     
		
	
		getContentPane().setLayout(null);
		{
     
			JLabel lblEmployee = new JLabel("Employee");
			lblEmployee.setFont(new Font("Dialog", Font.BOLD, 30));
			lblEmployee.setBounds(231, 52, 156, 89);
			getContentPane().add(lblEmployee);
		}
		{
     
			JLabel lblAccount = new JLabel("Account:");
			lblAccount.setFont(new Font("Dialog", Font.BOLD, 14));
			lblAccount.setBounds(138, 173, 75, 23);
			getContentPane().add(lblAccount);
		}
		{
     
			JLabel lblPassword = new JLabel("Password:");
			lblPassword.setFont(new Font("Dialog", Font.BOLD, 14));
			lblPassword.setBounds(138, 224, 75, 20);
			getContentPane().add(lblPassword);
		}
		
		textField = new JTextField();
		textField.setBounds(215, 175, 223, 22);
		getContentPane().add(textField);
		textField.setColumns(10);
		
		passwordField = new JPasswordField();
		passwordField.setBounds(215, 223, 223, 22);
		getContentPane().add(passwordField);
		
		JButton btnNewButton = new JButton("Login");
		btnNewButton.setIcon(new ImageIcon(EmployeeLoginF.class.getResource("/icons/ok.png")));
		btnNewButton.setBounds(138, 281, 105, 28);
		getContentPane().add(btnNewButton);
		
		JLabel lblForgetThePassword = new JLabel("forget the password?");
		lblForgetThePassword.setBounds(428, 358, 156, 18);
		getContentPane().add(lblForgetThePassword);
		
		JButton btnRegister = new JButton("Register");
		btnRegister.setIcon(new ImageIcon(EmployeeLoginF.class.getResource("/images/注册用户.png")));
		btnRegister.addActionListener(new RegisterAction());
		btnRegister.setBounds(333, 281, 105, 28);
		getContentPane().add(btnRegister);
		
		JLabel label = new JLabel(" ");
		label.setIcon(new ImageIcon(EmployeeLoginF.class.getResource("/images/a6.jpg")));
		label.setBounds(0, 0, 584, 376);
		getContentPane().add(label);
	}
}

(22)EmployInfoD

package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import com.employee.implement.AllActionListener;
import com.employee.operate.FillComboBox;

import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Color;

public class EmployInfoD extends JDialog {
     
	public static  JTextField nameMark;
	public static JTextField yearField;
	public static JTextField monthField;
	public static JTextField regisPerson;
   public static JButton saveBtn;
   public static JComboBox statusCombo ;
   public static  JTextField dField;
   public static JComboBox departCombo;
	public EmployInfoD() {
     
		try {
     
			 
			setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			setSize(486, 475);
			setLocationRelativeTo(null);
			setResizable(false);
			setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		setTitle("手续办理");
		
		getContentPane().setLayout(null);
		{
     
			JLabel label = new JLabel("请为此员工办理入职手续");
			label.setForeground(Color.ORANGE);
			label.setFont(new Font("Dialog", Font.BOLD, 25));
			label.setBounds(103, 23, 285, 41);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("员工工号:");
			label.setForeground(Color.RED);
			label.setFont(new Font("Dialog", Font.BOLD, 18));
			label.setBounds(51, 105, 92, 34);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("状    态:");
			label.setForeground(Color.RED);
			label.setFont(new Font("Dialog", Font.BOLD, 18));
			label.setBounds(52, 165, 91, 28);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("签约时间:");
			label.setForeground(Color.RED);
			label.setFont(new Font("Dialog", Font.BOLD, 18));
			label.setBounds(51, 269, 92, 34);
			getContentPane().add(label);
		}
		{
     
			JLabel label = new JLabel("登 记 人:");
			label.setForeground(Color.RED);
			label.setFont(new Font("Dialog", Font.BOLD, 18));
			label.setBounds(51, 315, 92, 34);
			getContentPane().add(label);
		}
		
		saveBtn = new JButton("确定");
		saveBtn.setIcon(new ImageIcon(EmployInfoD.class.getResource("/icons/ok.png")));
		saveBtn.addActionListener(new AllActionListener());
		saveBtn.setFont(new Font("Dialog", Font.BOLD, 18));
		saveBtn.setBounds(296, 372, 105, 28);
		getContentPane().add(saveBtn);
		
		JButton cancelBtn = new JButton("取消");
		cancelBtn.setIcon(new ImageIcon(EmployInfoD.class.getResource("/icons/取消.png")));
		cancelBtn.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				dispose();
			}
		});
		cancelBtn.setFont(new Font("Dialog", Font.BOLD, 18));
		cancelBtn.setBounds(116, 372, 105, 28);
		getContentPane().add(cancelBtn);
		
		nameMark = new JTextField();
		nameMark.setBounds(161, 114, 253, 22);
		getContentPane().add(nameMark);
		nameMark.setColumns(10);
		String status[]= {
     "在职","离职","后备"};
		 statusCombo = new JComboBox(status);//初始化列表框
		statusCombo.setBounds(161, 169, 253, 27);
		getContentPane().add(statusCombo);
		
		JLabel label = new JLabel("年");
		label.setForeground(Color.RED);
		label.setFont(new Font("Dialog", Font.BOLD, 18));
		label.setBounds(236, 277, 33, 18);
		getContentPane().add(label);
		
		yearField = new JTextField();
		yearField.setBounds(161, 278, 69, 22);
		getContentPane().add(yearField);
		yearField.setColumns(10);
		
		monthField = new JTextField();
		monthField.setBounds(262, 278, 50, 22);
		getContentPane().add(monthField);
		monthField.setColumns(10);
		
		JLabel label_1 = new JLabel("月");
		label_1.setForeground(Color.RED);
		label_1.setFont(new Font("Dialog", Font.BOLD, 18));
		label_1.setBounds(322, 277, 39, 18);
		getContentPane().add(label_1);
		
		regisPerson = new JTextField();
		regisPerson.setBounds(161, 324, 253, 22);
		getContentPane().add(regisPerson);
		regisPerson.setColumns(10);
		
		dField = new JTextField();
		dField.setBounds(344, 278, 39, 22);
		getContentPane().add(dField);
		dField.setColumns(10);
		
		JLabel de = new JLabel("日");
		de.setForeground(Color.RED);
		de.setFont(new Font("Dialog", Font.BOLD, 18));
		de.setBounds(390, 277, 39, 18);
		getContentPane().add(de);
		
		JLabel label_2 = new JLabel("部    门:");
		label_2.setForeground(Color.RED);
		label_2.setFont(new Font("Dialog", Font.BOLD, 18));
		label_2.setBounds(51, 217, 91, 28);
		getContentPane().add(label_2);
		
		 departCombo = new JComboBox();
		FillComboBox.fillPartBox(departCombo);//填充下拉框
		departCombo.setBounds(161, 221, 253, 27);
		getContentPane().add(departCombo);
		
		JLabel label_3 = new JLabel(" ");
		label_3.setIcon(new ImageIcon(EmployInfoD.class.getResource("/images/a6.jpg")));
		label_3.setBounds(0, 0, 486, 463);
		getContentPane().add(label_3);
	}
}

(23)EstablishDepartmentF

/**
 * 
 * 建立部门对话框
 */


package com.employee.frame;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import com.employee.implement.AllActionListener;
import com.employee.kit.ClearTextOfDepart;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Color;
public class EstablishDepartmentF extends JDialog {
     
	public static  JTextField nameMarkField;
	public static JTextField nameField;
	public static JTextField namePersonField;
   public static JButton addBtn;
	public EstablishDepartmentF() {
     
		try {
     
			 
			 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			 setSize( 415, 324);
			 setLocationRelativeTo(null);
			 setResizable(false);
			 setModal(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
		
		
		setTitle("建立部门");
		
		getContentPane().setLayout(null);
		
		JLabel label = new JLabel("部门代号");
		label.setForeground(Color.BLUE);
		label.setBounds(70, 72, 59, 18);
		getContentPane().add(label);
		
		JLabel label_1 = new JLabel("部门名称");
		label_1.setForeground(Color.BLUE);
		label_1.setBounds(70, 118, 59, 18);
		getContentPane().add(label_1);
		
		nameMarkField = new JTextField();
		nameMarkField.setBounds(131, 70, 190, 22);
		getContentPane().add(nameMarkField);
		nameMarkField.setColumns(10);
		
		nameField = new JTextField();
		nameField.setBounds(131, 114, 190, 22);
		getContentPane().add(nameField);
		nameField.setColumns(10);
		
		 addBtn = new JButton("建立");
		 addBtn.setIcon(new ImageIcon(EstablishDepartmentF.class.getResource("/icons/增加.png")));
		addBtn.addActionListener(new AllActionListener());
			 
		addBtn.setBounds(70, 212, 105, 28);
		getContentPane().add(addBtn);
		
		JButton button_1 = new JButton("重置");
		button_1.setIcon(new ImageIcon(EstablishDepartmentF.class.getResource("/icons/重置.png")));
		button_1.addActionListener(new ActionListener() {
     
			public void actionPerformed(ActionEvent arg0) {
     
				ClearTextOfDepart.clearEstablishText();
				
			}
		});
		button_1.setBounds(216, 212, 105, 28);
		getContentPane().add(button_1);
		
		JLabel label_2 = new JLabel("建立部门");
		label_2.setForeground(Color.RED);
		label_2.setFont(new Font("Dialog", Font.BOLD, 20));
		label_2.setBounds(161, 22, 94, 36);
		getContentPane().add(label_2);
		
		JLabel label_3 = new JLabel("建立人");
		label_3.setForeground(Color.BLUE);
		label_3.setBounds(70, 148, 59, 18);
		getContentPane().add(label_3);
		
		namePersonField = new JTextField();
		namePersonField.setBounds(131, 148, 190, 22);
		getContentPane().add(namePersonField);
		namePersonField.setColumns(10);
		
		JLabel label_4 = new JLabel(" ");
		label_4.setIcon(new ImageIcon(EstablishDepartmentF.class.getResource("/images/2949f1419640bb1c8aa717ccd171c81c.jpg")));
		label_4.setBounds(-14, -28, 429, 322);
		getContentPane().add(label_4);
	}
}

(24)

package com.employee.frame;
import javax.swing.JButton;
import javax.swing.JDialog;

import com.employee.implement.AllActionListener;
 

import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import java.awt.Font;
 
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.ImageIcon;
import java.awt.Color;
 
public class Login extends JDialog {
     
	public static JTextField accountField;
	public static JPasswordField passwordField;
    public static JButton LoginButton;
    public static Login dialog;
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
     
		try {
     
			 dialog = new Login();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
     
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public Login() {
     
		setResizable(false);
		setTitle("企业人力资源管理系统");
		setSize(  649, 466);
		setLocationRelativeTo(null);
		getContentPane().setLayout(null);
		
		JLabel accountText = new JLabel("Account:");
		accountText.setFont(new Font("Dialog", Font.BOLD, 13));
		accountText.setForeground(Color.RED);
		accountText.setBounds(183, 182, 59, 18);
		getContentPane().add(accountText);
		
		JLabel passwordText = new JLabel("Password:");
		passwordText.setFont(new Font("Dialog", Font.BOLD, 13));
		passwordText.setForeground(Color.RED);
		passwordText.setBounds(181, 231, 72, 18);
		getContentPane().add(passwordText);
		
		accountField = new JTextField();
		accountField.setText(" ");
		accountField.setBounds(245, 180, 206, 22);
		getContentPane().add(accountField);
		accountField.setColumns(10);
		
		passwordField = new JPasswordField();
		passwordField.setEchoChar('*');
		passwordField.setBounds(245, 229, 206, 22);
		getContentPane().add(passwordField);
		
		JLabel Administrator = new JLabel("Administrator");
		Administrator.setFont(new Font("Dialog", Font.BOLD, 30));
		Administrator.setBounds(208, 66, 216, 85);
		getContentPane().add(Administrator);
		
		 LoginButton = new JButton("Login");
		 LoginButton.setIcon(new ImageIcon(Login.class.getResource("/icons/ok.png")));
		LoginButton.addActionListener(new AllActionListener() );//登陆监听事件
		LoginButton.setBounds(183, 283, 268, 28);
		getContentPane().add(LoginButton);
		JLabel passwordForget = new JLabel("forget the password?");
		passwordForget.setBounds(264, 323, 137, 18);
		getContentPane().add(passwordForget);
		
		JLabel lblRegister = new JLabel("Register");
		lblRegister.addMouseListener(new MouseAdapter() {
     
			@Override
			public void mousePressed(MouseEvent e) {
     
				new  RegisterF().setVisible(true);
			}
		});
		 
		lblRegister.setFont(new Font("Dialog", Font.BOLD, 15));
		lblRegister.setBounds(12, 396, 78, 28);
		getContentPane().add(lblRegister);
		
		JLabel label = new JLabel(" ");
		label.setIcon(new ImageIcon(Login.class.getResource("/images/51eec89d4a5c893763311fc6da31b13e.jpg")));
		label.setBounds(0, 0, 649, 465);
		getContentPane().add(label);
	}
}

(25)MainWindowServerF

package com.employee.frame;

import java.awt.EventQueue;

import javax.swing.JFrame;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.KeyStroke;

import com.employee.chart.PlanChartD;

import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JButton;
import java.awt.Color;

public class MainWindowServerF extends JFrame{
     
 
	public MainWindowServerF() {
     
		 try {
     
			 setDefaultCloseOperation(JFrame.

你可能感兴趣的:(Java)