91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 15KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-09
  • 語言: Java
  • 標簽: 工資??java??sql??

資源簡介

員工工資管理系統(tǒng),包括登陸界面及系統(tǒng)相關基本功能

資源截圖

代碼片段和文件信息

//添加職工面板類AddEmployee

//導入系統(tǒng)的類包
import?java.awt.*;
import?java.sql.*;
import?javax.swing.*;
import?java.awt.event.*;
//創(chuàng)建“添加職工“面板類
public?class?AddEmployee?extends?JPanel?implements?ActionListener
{
//聲明連接數(shù)據(jù)庫對象
Connection?con;
//聲明SQL語句對象?
Statement?st;
//創(chuàng)建組件對象:標簽、文本行、單選
JLabel?jLabel1=new?JLabel(“職工工號“);
JLabel?jLabel2=new?JLabel(“職工姓名“);
JLabel?jLabel3=new?JLabel(“職工性別“);
JLabel?jLabel4=new?JLabel(“職工年齡“);
JLabel?jLabel5=new?JLabel(“家庭住址“);
JLabel?jLabel6=new?JLabel(“聯(lián)系電話“);
JTextField?jTextField1=new?JTextField();
JTextField?jTextField2=new?JTextField();
JTextField?jTextField3=new?JTextField();
JTextField?jTextField4=new?JTextField();
JTextField?jTextField5=new?JTextField();
JRadioButton?jRadioButton1=new?JRadioButton(“男“);
JRadioButton?jRadioButton2=new?JRadioButton(“女“);
ButtonGroup?buttonGroup1=new?ButtonGroup();
JButton?jButton1=new?JButton(“添加職工“);
//構造方法
public?AddEmployee()
{
try{
//調用初始化方法
jbInit();
}
catch(Exception?exception){
exception.printStackTrace();
}
}
//界面初始化方法
private?void?jbInit()?throws?Exception
{
//連接數(shù)據(jù)庫
con=DBConnect.getConn();
st=con.createStatement();
//框架的布局
this.setLayout(null);
//設置各組件的大小
jLabel1.setBounds(new?Rectangle(21176424));
jLabel2.setBounds(new?Rectangle(21515322));
jLabel3.setBounds(new?Rectangle(21866127));
jLabel4.setBounds(new?Rectangle(211225925));
jLabel5.setBounds(new?Rectangle(211685424));
jLabel6.setBounds(new?Rectangle(212055424));
jTextField1.setBounds(new?Rectangle(1021020030));
jTextField2.setBounds(new?Rectangle(1024920030));
jTextField3.setBounds(new?Rectangle(1021178033));
jTextField4.setBounds(new?Rectangle(10216320029));
jTextField5.setBounds(new?Rectangle(10220020029));
jRadioButton1.setBounds(new?Rectangle(102836530));
jRadioButton2.setBounds(new?Rectangle(190858530));
jButton1.setBounds(new?Rectangle(13024015032));
//設置單選按鈕被選中
jRadioButton1.setSelected(true);
//添加按鈕動作事件
jButton1.addActionListener(this);
//添加組件到面板
this.add(jLabel1);
this.add(jTextField1);
this.add(jLabel2);
this.add(jTextField2);
this.add(jLabel3);
buttonGroup1.add(jRadioButton1);
buttonGroup1.add(jRadioButton2);
this.add(jRadioButton1);
this.add(jRadioButton2);
this.add(jLabel4);
this.add(jTextField3);
this.add(jLabel5);
this.add(jTextField4);
this.add(jLabel6);
this.add(jTextField5);
this.add(jButton1);
}
//點擊按鈕事件
public?void?actionPerformed(ActionEvent?e)
{
//獲取用戶輸入的信息
String?EmployeeID=jTextField1.getText();
String?EmployeeName=jTextField2.getText();
String?EmployeeSex=““;
if(jRadioButton1.isSelected())
EmployeeSex+=“男“;
if(jRadioButton2.isSelected())
EmployeeSex+=“女“;
String?EmployeeAge=jTextField3.getText();
String?EmployeeAddress=jTextField4.getText();
String?EmployeePhone=jTextField5.getText();
try{
//設置日期格式
st

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????3835??2015-06-08?17:13??員工工資管理系統(tǒng)源代碼\AddEmployee.java

?????文件???????2039??2015-06-08?17:15??員工工資管理系統(tǒng)源代碼\AddSalary.java

?????文件????????373??2015-06-08?17:15??員工工資管理系統(tǒng)源代碼\DBclose.java

?????文件????????798??2015-06-08?17:16??員工工資管理系統(tǒng)源代碼\DBConnect.java

?????文件???????1895??2015-06-08?17:19??員工工資管理系統(tǒng)源代碼\DeleteEmployee.java

?????文件???????1283??2015-06-08?17:20??員工工資管理系統(tǒng)源代碼\EmployeeHelp.java

?????文件???????2225??2015-06-08?17:21??員工工資管理系統(tǒng)源代碼\InquireOnGH.java

?????文件???????2235??2015-06-08?17:22??員工工資管理系統(tǒng)源代碼\InquireOnName.java

?????文件???????2746??2015-06-08?17:23??員工工資管理系統(tǒng)源代碼\jiemian.java

?????文件???????6014??2015-06-08?17:24??員工工資管理系統(tǒng)源代碼\Mainframe.java

?????文件???????5220??2015-06-08?17:24??員工工資管理系統(tǒng)源代碼\ModifyEmployee.java

?????文件???????3326??2015-06-08?17:25??員工工資管理系統(tǒng)源代碼\ModifySalary.java

?????文件???????2063??2015-06-08?17:26??員工工資管理系統(tǒng)源代碼\SalaryInquire.java

?????文件????????710??2015-06-08?17:27??員工工資管理系統(tǒng)源代碼\sgkgl.java

?????目錄??????????0??2015-06-15?14:23??員工工資管理系統(tǒng)源代碼

-----------?---------??----------?-----??----

????????????????34762????????????????????15


評論

共有 條評論