📄 empinfmanage.java~5~
字号:
package hotelinformationmanagesystem;
import java.awt.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.sql.ResultSet;
import java.io.IOException;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import javax.swing.*;
import javax.swing.BorderFactory;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* <p>Title: 酒店信息管理系统</p>
*
* <p>Description: The Management Information System of Hotel</p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: JSP</p>
*
* @author 江世澎
* @version 1.0
*/
public class EmpInfManage extends JFrame {
XYLayout xYLayout1 = new XYLayout();
JPanel jPEmpInf = new JPanel();
JButton jBQuit = new JButton();
JLabel jLShowEmpID = new JLabel();
XYLayout xYLayout2 = new XYLayout();
JTextField jTGetEmpID = new JTextField();
JLabel jShowName = new JLabel();
JTextField jTGetName = new JTextField();
JLabel jLShowSex = new JLabel();
JComboBox jCGetSex = new JComboBox();
JPanel jPTool2 = new JPanel();
XYLayout xYLayout4 = new XYLayout();
JButton jBPageUp = new JButton();
JButton jBPageDown = new JButton();
JButton jBEndPage = new JButton();
JButton jBTopPage = new JButton();
JPanel jPTool1 = new JPanel();
JButton jBSearchEmpID = new JButton();
XYLayout xYLayout5 = new XYLayout();
JLabel jLSearchEmpID = new JLabel();
JTextField jTSearchEmpID = new JTextField();
JPanel jPEmpInf2 = new JPanel();
XYLayout xYLayout6 = new XYLayout();
JLabel jLShowNationality = new JLabel();
JTextField jTGetNationality = new JTextField();
JLabel jLShowBirthday = new JLabel();
JTextField jTGetBirthday = new JTextField();
JLabel jLShowNative = new JLabel();
JTextField jTGetNative = new JTextField();
JLabel jLShowDepartment = new JLabel();
JLabel jLShowDuty = new JLabel();
JPanel jPEmpInf1 = new JPanel();
XYLayout xYLayout7 = new XYLayout();
JPanel jPEmpInf5 = new JPanel();
XYLayout xYLayout8 = new XYLayout();
JLabel jLShowIDCard = new JLabel();
JTextField jTGetIDCard = new JTextField();
JLabel jLShowAddress = new JLabel();
JTextField jTGetAddress = new JTextField();
JLabel jLShowPhone = new JLabel();
JTextField jTGetPhone = new JTextField();
JPanel jPEmpInf3 = new JPanel();
XYLayout xYLayout9 = new XYLayout();
JLabel jLShowPassword = new JLabel();
JPasswordField jPGetPassword = new JPasswordField();
JButton jBPassword = new JButton();
JButton jBDelete = new JButton();
JPanel jPEmpInf4 = new JPanel();
XYLayout xYLayout10 = new XYLayout();
JLabel jLShowPopedom = new JLabel();
JButton jBPopedom = new JButton();
JPanel jPEmpInf6 = new JPanel();
XYLayout xYLayout11 = new XYLayout();
JLabel jLShowRemark = new JLabel();
JButton jBChange = new JButton();
XYLayout xYLayout12 = new XYLayout();
JButton jBBack = new JButton();
JScrollPane jSGetRemark = new JScrollPane();
JTextArea jTGetReMark = new JTextArea();
JPanel jPTool5 = new JPanel();
XYLayout xYLayout3 = new XYLayout();
JPanel jPTool6 = new JPanel();
XYLayout xYLayout13 = new XYLayout();
JPanel jPTool4 = new JPanel();
XYLayout xYLayout14 = new XYLayout();
JButton jBNewBuild = new JButton();
JButton jBNewBuildFinish = new JButton();
JButton jBChangeFinish = new JButton();
JComboBox jCGetDepartment = new JComboBox();
JComboBox jCGetDuty = new JComboBox();
JButton jBEmpID = new JButton();
JPanel jPTool3 = new JPanel();
XYLayout xYLayout15 = new XYLayout();
//------------------------------------------------------
DataConnect connect1 = new DataConnect();
DataConnect connect2 = new DataConnect();
DataConnect connect3 = new DataConnect();
ResultSet rs1l = null;
//-------------------------------------------------------
ReturnPopedom repower = new ReturnPopedom();
String strNowEmpID = null;
JTextField jTGetPopedom = new JTextField();
public EmpInfManage() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(xYLayout1);
this.setTitle("酒店员工信息管理界面");
this.setSize(480, 540); //设置窗口初始位置
this.setResizable(false);
SetFormCenter wcenter = new SetFormCenter();
wcenter.setcenter(this);
xYLayout1.setWidth(474);
xYLayout1.setHeight(507);
jPEmpInf.setBorder(BorderFactory.createEtchedBorder());
jPEmpInf.setLayout(xYLayout2);
jShowName.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jShowName.setText("姓 名");
jLShowSex.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowSex.setText("性 别");
jBQuit.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
jBQuit.setActionCommand("退出");
jPTool2.setLayout(xYLayout4);
jPTool2.setBorder(BorderFactory.createEtchedBorder());
jBPageUp.setText("上一页");
jBPageDown.setText("下一页");
jBEndPage.setText("末页");
jBTopPage.setText("首页");
jPTool1.setBorder(BorderFactory.createEtchedBorder());
jPTool1.setLayout(xYLayout5);
jBSearchEmpID.setText("查找");
jLSearchEmpID.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLSearchEmpID.setText("员工ID");
jPEmpInf2.setLayout(xYLayout6);
jPEmpInf2.setBorder(BorderFactory.createEtchedBorder());
jLShowNationality.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowNationality.setText("民 族");
jLShowBirthday.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowBirthday.setText("出生年月");
jLShowNative.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowNative.setText("籍 贯");
jLShowDepartment.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowDepartment.setText("部 门");
jLShowDuty.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowDuty.setText("职 务");
jPEmpInf1.setBorder(BorderFactory.createEtchedBorder());
jPEmpInf1.setLayout(xYLayout7);
jPEmpInf5.setBorder(BorderFactory.createEtchedBorder());
jPEmpInf5.setLayout(xYLayout8);
jLShowIDCard.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowIDCard.setText("身份证号");
jLShowAddress.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowAddress.setText("住 址");
jLShowPhone.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowPhone.setText("联系电话");
jPEmpInf3.setBorder(BorderFactory.createEtchedBorder());
jPEmpInf3.setLayout(xYLayout9);
jLShowPassword.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowPassword.setText("密 码");
jBPassword.setFont(new java.awt.Font("宋体", Font.PLAIN, 8));
jBPassword.setText("修改");
jLShowEmpID.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowEmpID.setText("员工ID");
jBQuit.setText("退出");
jBQuit.addActionListener(new EmpInfManage_jBQuit_actionAdapter(this));
jBDelete.setText("删除");
jPEmpInf4.setBorder(BorderFactory.createEtchedBorder());
jPEmpInf4.setLayout(xYLayout10);
jLShowPopedom.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowPopedom.setText("权 限");
jBPopedom.setFont(new java.awt.Font("宋体", Font.BOLD, 8));
jBPopedom.setText("修改");
jBPopedom.addActionListener(new EmpInfManage_jBPopedom_actionAdapter(this));
jPEmpInf3.setBorder(BorderFactory.createEtchedBorder());
jPEmpInf6.setLayout(xYLayout10);
//jLShowRemark.setFont(new java.awt.Font("宋体", Fot.BOLD, 15));
jLShowRemark.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowRemark.setText("备注");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -