📄 empinfmanage.java~1~
字号:
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;
/**
* <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("下一页");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -