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

文章目录

      • (43)Check_in
      • (44)DaoData
      • (45)Department
      • (46)Duty
      • (47)Employee
      • (48)Grade
      • (49)Money
      • (50) Paper
      • (51)RecruitPlan
      • (52)SetPaper
      • (53)User
      • (54)EmployeeFile
      • (55)FillComboBox
      • (56)PaperTest
    • 注:代码量>1万。

(43)Check_in

package com.employee.model;public class Check_in {private int jobNum;private String name;private String type;private String date;public int getJobNum() {return jobNum;}public void setJobNum(int jobNum) {this.jobNum = jobNum;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getType() {return type;}public void setType(String type) {this.type = type;}public String getDate() {return date;}public void setDate(String date) {this.date = date;}}

(44)DaoData

package com.employee.model;public class DaoData {private String url="jdbc:mysql://localhost:3306/employeeManage?useUnicode=true&characterEncoding=utf-8";private String DRAVER="com.mysql.jdbc.Driver";private String name="root";private String password="root";public String getUrl() {return url;}public void setUrl(String url) {this.url = url;}public String getDRAVER() {return DRAVER;}public void setDRAVER(String dRAVER) {DRAVER = dRAVER;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getPassword() {return password;}public void setPassword(String password) {this.password = password;}}

(45)Department

package com.employee.model;public class Department {private int nameMark;private  String name;private String establishPerson;public int getNameMark() {return nameMark;}public void setNameMark(int nameMark) {this.nameMark = nameMark;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getEstablishPerson() {return establishPerson;}public void setEstablishPerson(String establishPerson) {this.establishPerson = establishPerson;}}

(46)Duty

package com.employee.model;public class Duty {private int dutyNum;private String dutyName;private String department;public int getDutyNum() {return dutyNum;}public void setDutyNum(int dutyNum) {this.dutyNum = dutyNum;}public String getDutyName() {return dutyName;}public void setDutyName(String dutyName) {this.dutyName = dutyName;}public String getDepartment() {return department;}public void setDepartment(String department) {this.department = department;}}

(47)Employee

package com.employee.model;public class Employee {private String department;public String getDepartment() {return department;}public void setDepartment(String department) {this.department = department;}private int id;public int getId() {return id;}public void setId(int id) {this.id = id;}private double  jobNum;private String name;private String sex;private int age;private String birthDay; private String address;private String race;private String marriage;private String politicState;private double phoneNum;private double id_card;private String collage;private String major;private String cultureStandard;private String jobTime;//工作时间private Double creditNum;//银行卡private String profesion;//职业private String status;//工作状态private String signTime;//签约时间private String registrant;//登记人private String imagePath;//图片路径private String curriculum; //个人简历public String getImagePath() {return imagePath;}public void setImagePath(String imagePath) {this.imagePath = imagePath;}public String getCurriculum() {return curriculum;}public void setCurriculum(String curriculum) {this.curriculum = curriculum;}public double getJobNum() {return jobNum;}public void setJobNum(double jobNum) {this.jobNum = jobNum;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getSex() {return sex;}public void setSex(String sex) {this.sex = sex;}public int getAge() {return age;}public void setAge(int age) {this.age = age;}public String getBirthDay() {return birthDay;}public void setBirthDay(String birthDay) {this.birthDay = birthDay;}public String getAddress() {return address;}public void setAddress(String address) {this.address = address;}public String getRace() {return race;}public void setRace(String race) {this.race = race;}public String getMarriage() {return marriage;}public void setMarriage(String marriage) {this.marriage = marriage;}public String getPoliticState() {return politicState;}public void setPoliticState(String politicState) {this.politicState = politicState;}public void setPhoneNum(int phoneNum) {this.phoneNum = phoneNum;}public double getPhoneNum() {return phoneNum;}public void setPhoneNum(double phoneNum) {this.phoneNum = phoneNum;}public double getId_card() {return id_card;}public void setId_card(double id_card) {this.id_card = id_card;}public void setId_card(int id_card) {this.id_card = id_card;}public String getCollage() {return collage;}public void setCollage(String collage) {this.collage = collage;}public String getMajor() {return major;}public void setMajor(String major) {this.major = major;}public String getCultureStandard() {return cultureStandard;}public void setCultureStandard(String cultureStandard) {this.cultureStandard = cultureStandard;}public String getJobTime() {return jobTime;}public void setJobTime(String jobTime) {this.jobTime = jobTime;}public Double getCreditNum() {return creditNum;}public void setCreditNum(Double creditNum) {this.creditNum = creditNum;}public String getProfesion() {return profesion;}public void setProfesion(String profesion) {this.profesion = profesion;}public String getStatus() {return status;}public void setStatus(String status) {this.status = status;}public String getSignTime() {return signTime;}public void setSignTime(String signTime) {this.signTime = signTime;}public String getRegistrant() {return registrant;}public void setRegistrant(String registrant) {this.registrant = registrant;}}

(48)Grade

package com.employee.model;public class Grade {private int id;private int jobNum;private String name;private int score;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getJobNum() {return jobNum;}public void setJobNum(int jobNum) {this.jobNum = jobNum;}public String getName() {return name;}public void setName(String name) {this.name = name;}public int getScore() {return score;}public void setScore(int score) {this.score = score;}}

(49)Money

package com.employee.model;public class Money {private double jobNum;private String name;public double getJobNum() {return jobNum;}public void setJobNum(double jobNum) {this.jobNum = jobNum;}public String getName() {return name;}public void setName(String name) {this.name = name;}public float getSalary() {return salary;}public void setSalary(float salary) {this.salary = salary;}public float getGradeMoney() {return gradeMoney;}public void setGradeMoney(float gradeMoney) {this.gradeMoney = gradeMoney;}public float getEffectMoney() {return effectMoney;}public void setEffectMoney(float effectMoney) {this.effectMoney = effectMoney;}public float getCheckAdd() {return checkAdd;}public void setCheckAdd(float checkAdd) {this.checkAdd = checkAdd;}public float getCheckDec() {return checkDec;}public void setCheckDec(float checkDec) {this.checkDec = checkDec;}public float getCultureMoney() {return cultureMoney;}public void setCultureMoney(float cultureMoney) {this.cultureMoney = cultureMoney;}private float salary;private float gradeMoney;private float effectMoney;private float checkAdd;private float checkDec;private float cultureMoney;}

(50) Paper

package com.employee.model;public class Paper {private int id;public int getId() {return id;}public void setId(int id) {this.id = id;}public String getTopic() {return topic;}public void setTopic(String topic) {this.topic = topic;}public String getA() {return a;}public void setA(String a) {this.a = a;}public String getB() {return b;}public void setB(String b) {this.b = b;}public String getC() {return c;}public void setC(String c) {this.c = c;}public String getD() {return d;}public void setD(String d) {this.d = d;}public String getAnswer() {return answer;}public void setAnswer(String answer) {this.answer = answer;}private String topic;private String a;private String b;private String c;private String d;private String answer;}

(51)RecruitPlan

package com.employee.model;public class RecruitPlan {private String dutyName;private String partName;private String dliploma;private int num;private String process;public String getDutyName() {return dutyName;}public void setDutyName(String dutyName) {this.dutyName = dutyName;}public String getPartName() {return partName;}public void setPartName(String partName) {this.partName = partName;}public String getDliploma() {return dliploma;}public void setDliploma(String dliploma) {this.dliploma = dliploma;}public int getNum() {return num;}public void setNum(int num) {this.num = num;}public String getProcess() {return process;}public void setProcess(String process) {this.process = process;}}

(52)SetPaper

package com.employee.model;public class SetPaper {private int id;public int getId() {return id;}public void setId(int id) {this.id = id;}private int paperNum;private int paperTime;public int getPaperNum() {return paperNum;}public void setPaperNum(int paperNum) {this.paperNum = paperNum;}public int getPaperTime() {return paperTime;}public void setPaperTime(int paperTime) {this.paperTime = paperTime;}}

(53)User

package com.employee.model;public class User {private int account;private String name;private String password;private double phone;public int getAccount() {return account;}public void setAccount(int account) {this.account = account;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getPassword() {return password;}public void setPassword(String password) {this.password = password;}public double getPhone() {return phone;}public void setPhone(double phone) {this.phone = phone;}}

(54)EmployeeFile

package com.employee.operate;import java.sql.ResultSet;
import java.sql.SQLException;import javax.swing.ImageIcon;
import javax.swing.JOptionPane;import com.employee.dao.Dao;
import com.employee.frame.EmployeeInfoF;
import com.employee.frame.EmployeeInfoF2;
import com.employee.frame.EmployeeInfoFShow;
import com.employee.model.Employee;public class EmployeeFile {public static  String imagePath;/*** 将填写简历的申请这显示到窗体对话框上* @param index*/public static void showD(int index) {String sql="select * from employeeFileTemp where id=?";Employee emp=new Employee();emp.setId(index);try {ResultSet rs=Dao.searchAppli(emp, sql);while(rs.next()) {EmployeeInfoFShow.comboType.setSelectedItem(rs.getString("profesion"));EmployeeInfoFShow.nameField.setText(rs.getString("name"));EmployeeInfoFShow.ageField.setText(String.valueOf(rs.getInt("age")));EmployeeInfoFShow.birthDayField.setText(String.valueOf(rs.getString("birthDay")));EmployeeInfoFShow.addressField.setText(rs.getString("address"));EmployeeInfoFShow.comborace.setSelectedItem(rs.getString("race"));EmployeeInfoFShow.phoneNumField.setText(String.valueOf(rs.getDouble("phoneNum")));EmployeeInfoFShow.collageField.setText(rs.getString("collage"));EmployeeInfoFShow.majorField.setText(rs.getString("major"));EmployeeInfoFShow.jobTimeField.setText(rs.getString("jobTime"));EmployeeInfoFShow.id_cardField.setText(String.valueOf(rs.getDouble("id_Card")));EmployeeInfoFShow.creditNumField.setText(String.valueOf(rs.getString("creditNum")));EmployeeInfoFShow.textArea.setText((rs.getString("curriculum")));EmployeeInfoFShow. image.setIcon(new ImageIcon(rs.getString("imagePath")));EmployeeFile.imagePath=rs.getString("imagePath");//获取图片的路径if(rs.getString("sex").equals("男")) {EmployeeInfoFShow.manBtn.setSelected(true);}else {EmployeeInfoFShow.femalBtn.setSelected(true);}if(rs.getString("marriage").equals("是")) {EmployeeInfoFShow.yesBtn.setSelected(true);}else {EmployeeInfoFShow.noBtn.setSelected(true);}}} catch (SQLException e) {e.printStackTrace();}}/*** 将企业员工的信息显示到窗体上* @param index*/public static void showEmpAData(int index) {String sql="select * from employeeFile where id=?";Employee emp=new Employee();emp.setId(index);try {ResultSet rs=Dao.searchAppli(emp, sql);while(rs.next()) {EmployeeInfoF.jobNumField.setText(String.valueOf(rs.getInt("jobNum")));EmployeeInfoF.nameField.setText(rs.getString("name"));if(rs.getString("sex").equals("男")) {EmployeeInfoF.manBtn.setSelected(true);}else {EmployeeInfoF.femalBtn.setSelected(true);}EmployeeInfoF.ageField.setText(String.valueOf(rs.getInt("age")));EmployeeInfoF.birthDayField.setText(String.valueOf(rs.getString("birthDay")));EmployeeInfoF.addressField.setText(rs.getString("address"));EmployeeInfoF.raceField.setSelectedItem(rs.getString("race"));if(rs.getString("marriage").equals("是")) {EmployeeInfoF.yesBtn.setSelected(true);}else {EmployeeInfoF.noBtn.setSelected(true);}EmployeeInfoF.politcCombo.setSelectedItem(rs.getString("politicStatus"));EmployeeInfoF.phoneField.setText(String.valueOf(rs.getDouble("phoneNum")));EmployeeInfoF.id_cardField.setText(String.valueOf(rs.getDouble("id_Card")));EmployeeInfoF.collageField.setText(rs.getString("collage"));EmployeeInfoF.majorField.setText(rs.getString("major"));EmployeeInfoF.cultureCombo.setSelectedItem(rs.getString("cultureStandard"));EmployeeInfoF.jobTime.setText(rs.getString("jobTime"));EmployeeInfoF.creditNumField.setText(String.valueOf(rs.getString("creditNum")));EmployeeInfoF.profesionCombo.setSelectedItem(rs.getString("profesion"));EmployeeInfoF.statusCombo.setSelectedItem(rs.getString("status"));EmployeeInfoF.signTimeField.setText(rs.getString("signTime"));EmployeeInfoF.regesField.setText(rs.getString("registrant"));EmployeeInfoF.imagePath.setIcon(new ImageIcon(rs.getString("imagePath")));EmployeeInfoF.textArea.setText(rs.getString("curriculum"));EmployeeInfoF.departCombo.setSelectedItem(rs.getString("department"));}} catch (SQLException e) {e.printStackTrace();}}}

(55)FillComboBox

package com.employee.operate;import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;import javax.swing.JComboBox;import com.employee.dao.Dao;
import com.employee.frame.AddDutyDialog;public class FillComboBox {/*** 填充部门下拉框* @param comboBox*/public static void  fillPartBox(JComboBox comboBox) {List<String>list=new LinkedList<>();String sql="select * from department";try {ResultSet rs=Dao.allData(sql);while(rs.next()) {list.add(rs.getString("name"));}} catch (SQLException e) {e.printStackTrace();}for(int i=0;i<list.size();i++) {comboBox.addItem(list.get(i));}}/*** 填充岗位下拉框* @param comboBox*/public static void  fillDutyBox(JComboBox comboBox) {List<String>list=new LinkedList<>();String sql="select * from duty";try {ResultSet rs=Dao.allData(sql);while(rs.next()) {list.add(rs.getString("dutyName"));}} catch (SQLException e) {e.printStackTrace();}for(int i=0;i<list.size();i++) {comboBox.addItem(list.get(i));}}}

(56)PaperTest

package com.employee.operate;import java.sql.ResultSet;
import java.sql.SQLException;import com.employee.dao.Dao;
import com.employee.frame.testPaper;
import com.employee.model.Paper;public class PaperTest {public static  void fillPaper(Paper paper) {String sql="select * from paper where id=?";try {ResultSet rs=Dao.searchPaper(paper, sql);while(rs.next()) {testPaper.topicField.setText(rs.getString("topic"));testPaper.aField.setText(rs.getString("A"));testPaper.bField.setText(rs.getString("B"));testPaper.cField.setText(rs.getString("C"));testPaper.dField.setText(rs.getString("D"));}} catch (SQLException e) {e.printStackTrace();}}}

注:代码量>1万。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/517563.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

@Transactional注解导致 多数据源@DS无效 的解决方案

解决方案&#xff1a; 把Transactional替换成DSTransactional注解即可

高德亿级流量接入层服务的演化之路

2019杭州云栖大会上&#xff0c;高德地图技术团队向与会者分享了包括视觉与机器智能、路线规划、场景化/精细化定位时空数据应用、亿级流量架构演进等多个出行技术领域的热门话题。现场火爆&#xff0c;听众反响强烈。我们把其中的优秀演讲内容整理成文并陆续发布出来&#xff…

一篇与众不同的 String、StringBuilder 和 StringBuffer 详解

来源 | 程序员 cxuan责编 | Carol封图 | CSDN 付费下载自视觉中国这是一道老生常谈的问题了&#xff0c;字符串是不仅是 Java 中非常重要的一个对象&#xff0c;它在其他语言中也存在。比如 C、Visual Basic、C# 等。字符串使用 String 来表示&#xff0c;字符串一旦被创建出来…

Ververica Platform-阿里巴巴全新Flink企业版揭秘

摘要&#xff1a;2019云栖大会大数据 & AI专场&#xff0c;阿里巴巴资深技术专家王峰带来“Ververica Platform-阿里巴巴全新Flink企业版揭秘”的演讲。本文主要从Ververica由来开始谈起&#xff0c;着重讲了Ververica Platform的四个核心插件App Manager、Libra Service、…

让代码更简洁 和@Autowired说分手, 迎接 @RequiredArgsConstructor注解

在我们写controller或者Service层的时候&#xff0c;需要注入很多的mapper接口或者另外的service接口&#xff0c;这时候就会写很多的AutoWired注解&#xff0c;代码看起来很乱 lombok提供了一个注解&#xff1a; RequiredArgsConstructor(onConstructor _(Autowired)) 写在类上…

在linux下搭建mysql数据库(以linux 版本Ubuntu18.04为例进行讲解)

文章目录一 MySQL数据库的安装步骤及命令更新软件包1. 数据库安装2. MySQL的配置3.查看MySQL的服务状态三 进入数据库四 配置远程访问数据库一 MySQL数据库的安装步骤及命令 更新软件包 sudo apt-get update1. 数据库安装 sudo apt-get install mysql-server2. MySQL的配置 …

滴滴经验分享:SQLFlow如何让运营专家用上AI?

蚂蚁金服过去十五年&#xff0c;重塑支付改变生活&#xff0c;为全球超过十二亿人提供服务&#xff0c;这些背后离不开技术的支撑。在2019杭州云栖大会上&#xff0c;蚂蚁金服将十五年来的技术沉淀&#xff0c;以及面向未来的金融技术创新和参会者分享。我们将其中的优秀演讲整…

秒杀场景_Sentinel在秒杀场景的应用_05

上一篇解决了在高并发秒杀场景下的超卖问题&#xff0c;这一篇主要解决如何利用Sentinel防止服务器雪崩。 文章目录一、 商品微服务集成Sentinel1. 引入依赖2. 添加配置二、 秒杀微服务集成Sentinel2.1. 引入依赖2.2. 添加配置三、 Sentinel流控规则3.1. 登录Sentinel3.2. 请求…

SQLServer 密码验证登录18456错误解决方案

一、SQLServer18456错误 二、解决方案 第一步&#xff1a;确定这两个服务都是开启状态 &#xff08;1&#xff09;点击管理 &#xff08;2&#xff09;点击服务和应用程序 &#xff08;3&#xff09;确定这两个都是开启状态 &#xff08;4&#xff09;开启方法&#xff0c;右…

80% 的 Java 焦虑,都可以被这张图解决

昨晚&#xff0c;我在路口等车的时候&#xff0c;听到几个人在那讨论问题&#xff1a;“之前我用 jprofiler 监控 jvm 里的对象&#xff0c;当老年代满了&#xff0c;我手动触发一次 fgc&#xff0c;发现只能回收一半&#xff0c;再触发一次&#xff0c;就完全回收&#xff0c;…

直击案发现场!TCP 10倍延迟的真相是?

阿里妹导读&#xff1a;什么是经验&#xff1f;就是遇到问题&#xff0c;解决问题&#xff0c;总结方法。遇到的问题多了&#xff0c;解决的办法多了&#xff0c;经验自然就积累出来了。今天的文章是阿里技术专家蛰剑在工作中遇到的一个问题引发的对TCP性能和发送接收Buffer关系…

今日头条在消息服务平台和容灾体系建设方面的实践与思考

本篇文章整理自今日头条的沈辉在 RocketMQ 开发者沙龙中的演讲&#xff0c;主要和大家分享一下&#xff0c;RocketMQ 在微服务架构下的实践和容灾体系建设。沈辉是今日头条的架构师&#xff0c;主要负责 RocketMQ 在头条的落地以及架构设计&#xff0c;参与消息系统的时间大概一…

秒杀场景_同步秒杀分析和实战_01

文章目录一、应用部署准备1. mysql安装部署2. redis安装部署3. nacos安装部署二、数据库准备2.1. 创建数据库2.2. 初始化表结构2.3. 搭建微服务父工程三、商品模块微服务3.1. 搭建product-serv模块3.2. 配置yml3.3. 实体3.4. 接口3.5. service3.6. controller3.7. 启动类四、秒…

Kali 2020版 Linux操作系统解决系统语言问题(英文--中文)

文章目录一、更新镜像源&#xff08;1&#xff09;进入配置文件&#xff08;2&#xff09;更新软件包二、修改配置(1)打开终端输入以下数据(2)修改配置文件三、安装中文字体四、restart(重启Kali Linux系统)一、更新镜像源 镜像源有很多&#xff0c;我这里提供了阿里云的镜像源…

Spark Relational Cache实现亚秒级响应的交互式分析

本次分享主要分为以下四个方面&#xff1a; 项目介绍技术分析如何使用性能分析 一、项目介绍 项目背景 阿里云EMR是一个开源大数据解决方案&#xff0c;目前EMR上面已经集成了很多开源组件&#xff0c;并且组件数量也在不断的增加中。EMR下层可以访问各种各样的存储&#xf…

阿里巴巴 Kubernetes 应用管理实践中的经验与教训

导读&#xff1a;云原生时代&#xff0c;Kubernetes 的重要性日益凸显。然而&#xff0c;大多数互联网公司在 Kubernetes 上的探索并非想象中顺利&#xff0c;Kubernetes 自带的复杂性足以让一批开发者望而却步。本文中&#xff0c;阿里巴巴技术专家孙健波在接受采访时基于阿里…

那些被大数据时代抛弃的人

作者 | 衣公子来源 | 衣公子的剑&#xff08;ID&#xff1a;yigongzidejian&#xff09;前言2000年&#xff0c;微软如日中天。有人问比尔盖茨&#xff08;Bill Gates&#xff09;对于IT行业的看法。盖茨说&#xff0c;挺好的&#xff0c;就是有点noise。 noise&#xff0c;本意…

linux操作系统环境变量的配置

文章目录1. 进入配置文件2. 环境变量添加格式3.使配置文件立即生效4. 实例1. 进入配置文件 sudo vim /etc/profile2. 环境变量添加格式 export 变量名路径 export PATH${PATH}:${变量名}/子路径3.使配置文件立即生效 source /etc/profile4. 实例 export MAVEN_HOME/usr/lo…

秒杀场景_多线程异步抢单队列分析与实现_02

文章目录1. 实体2. Service改造3. 启动类1. 实体 package com.gblfy.entity;import java.io.Serializable;/*** 用户排队抢单信息实体*/Data public class SkillEntity implements Serializable {private Long productId;private String userId; }2. Service改造 SkillGoodSe…

AI赋能DevOps:数据驱动的全栈工程师实践

DevOps是什么&#xff1f; 对于传统的软件研发而言&#xff0c;开发&#xff0c;测试&#xff0c;运维&#xff0c;运营&#xff0c;有不同的岗位进行分工协作&#xff0c;以保证质量和专业度&#xff0c;同一件事情&#xff0c;依赖不同岗位的排期、沟通、协调&#xff0c;效率…