📄 empinfrecord.java~12~
字号:
package hotelinformationmanagesystem;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.JPanel;
import javax.swing.BorderFactory;
import java.awt.Color;
import javax.swing.border.TitledBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.Box;
import java.awt.Component;
import javax.swing.JComboBox;
import javax.swing.DebugGraphics;
import javax.swing.JPasswordField;
import javax.swing.JCheckBox;
import javax.swing.JEditorPane;
import javax.swing.JTextArea;
import javax.swing.JSpinner;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JScrollPane;
import javax.swing.JOptionPane;
import java.sql.ResultSet;
import java.io.IOException;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
/**
* <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 EmpInfRecord extends JFrame {
XYLayout xYLayout1 = new XYLayout();
JPanel jPanel1 = new JPanel();
TitledBorder titledBorder1 = new TitledBorder("");
JButton jButton2 = 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 jPanel3 = new JPanel();
XYLayout xYLayout4 = new XYLayout();
JButton jButton3 = new JButton();
JButton jButton4 = new JButton();
JButton jButton5 = new JButton();
JButton jButton6 = new JButton();
JPanel jPanel4 = new JPanel();
JButton jButton7 = new JButton();
XYLayout xYLayout5 = new XYLayout();
JLabel jLabel4 = new JLabel();
JTextField jTextField3 = new JTextField();
JPanel jPanel5 = 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 jLabel8 = new JLabel();
JLabel jLabel9 = new JLabel();
JPanel jPanel6 = new JPanel();
XYLayout xYLayout7 = new XYLayout();
JPanel jPanel7 = new JPanel();
XYLayout xYLayout8 = new XYLayout();
JLabel jLabel10 = new JLabel();
JTextField jTextField9 = new JTextField();
JLabel jLabel11 = new JLabel();
JTextField jTextField10 = new JTextField();
JLabel jLabel12 = new JLabel();
JTextField jTextField11 = new JTextField();
JPanel jPanel8 = new JPanel();
XYLayout xYLayout9 = new XYLayout();
JLabel jLabel13 = new JLabel();
JPasswordField jPasswordField1 = new JPasswordField();
JButton jButton8 = new JButton();
JButton jButton9 = new JButton();
JPanel jPanel9 = new JPanel();
XYLayout xYLayout10 = new XYLayout();
JLabel jLabel14 = new JLabel();
JButton jButton10 = new JButton();
JPanel jPanel10 = new JPanel();
XYLayout xYLayout11 = new XYLayout();
JLabel jLabel15 = new JLabel();
TitledBorder titledBorder2 = new TitledBorder("");
JButton jButton11 = new JButton();
JPanel jPanel11 = new JPanel();
XYLayout xYLayout12 = new XYLayout();
JButton jButton12 = new JButton();
JScrollPane jScrollPane1 = new JScrollPane();
JTextArea jTextArea1 = new JTextArea();
JPanel jPanel2 = new JPanel();
XYLayout xYLayout3 = new XYLayout();
JPanel jPanel12 = new JPanel();
XYLayout xYLayout13 = new XYLayout();
JPanel jPanel13 = new JPanel();
XYLayout xYLayout14 = new XYLayout();
JButton jButton13 = new JButton();
JButton jButton14 = new JButton();
JButton jButton1 = new JButton();
JComboBox jComboBox2 = new JComboBox();
JComboBox jComboBox3 = new JComboBox();
JButton jBEmpID = new JButton();
JComboBox jComboBox4 = new JComboBox();
public EmpInfRecord() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(xYLayout1);
this.setTitle("酒店员工信息管理界面");
xYLayout1.setWidth(472);
xYLayout1.setHeight(503);
jPanel1.setBorder(BorderFactory.createEtchedBorder());
jPanel1.setToolTipText("");
jPanel1.setLayout(xYLayout2);
jShowName.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jShowName.setText("姓 名");
jLShowSex.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowSex.setText("性 别");
jButton2.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
jButton2.setActionCommand("退出");
jPanel3.setLayout(xYLayout4);
jPanel3.setBorder(BorderFactory.createEtchedBorder());
jButton3.setEnabled(false); //上一页
jButton3.setText("上一页");
jButton4.setEnabled(false); //下一页
jButton4.setText("下一页");
jButton5.setEnabled(false); //末页
jButton5.setText("末页");
jButton6.setEnabled(false); //首页
jButton6.setText("首页");
jPanel4.setBorder(BorderFactory.createEtchedBorder());
jPanel4.setLayout(xYLayout5);
jButton7.setText("查找");
jLabel4.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel4.setText("员工ID");
jPanel5.setLayout(xYLayout6);
jPanel5.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("籍 贯");
jLabel8.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel8.setText("部 门");
jLabel9.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel9.setText("职 务");
jPanel6.setBorder(BorderFactory.createEtchedBorder());
jPanel6.setLayout(xYLayout7);
jPanel7.setBorder(BorderFactory.createEtchedBorder());
jPanel7.setLayout(xYLayout8);
jLabel10.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel10.setText("身份证号");
jLabel11.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel11.setText("住 址");
jLabel12.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel12.setText("联系电话");
jPanel8.setBorder(BorderFactory.createEtchedBorder());
jPanel8.setLayout(xYLayout9);
jLabel13.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel13.setText("密 码");
jButton8.setEnabled(false); //修改
jButton8.setFont(new java.awt.Font("宋体", Font.PLAIN, 8));
jButton8.setText("修改");
jLShowEmpID.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLShowEmpID.setText("员工ID");
jButton2.setText("退出");
jButton9.setEnabled(false); //删除
jButton9.setText("删除");
jPanel9.setBorder(BorderFactory.createEtchedBorder());
jPanel9.setLayout(xYLayout10);
jLabel14.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel14.setText("权 限");
jButton10.setEnabled(false); //修改
jButton10.setFont(new java.awt.Font("宋体", Font.PLAIN, 8));
jButton10.setText("修改");
jPanel10.setBorder(BorderFactory.createEtchedBorder());
jPanel10.setLayout(xYLayout11);
//jLabel15.setFont(new java.awt.Font("宋体", Font.BOLD,8);
jLabel15.setFont(new java.awt.Font("宋体", Font.BOLD, 8));
//// jLabel15.sTex("备 注");
jLabel15.setText("备 注");
//jButton11.setFn(new java.awt.Font("体,Fot.BOLD, 18));
jButton11.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
jButton11.setText("修改");
jPanel11.setBorder(BorderFactory.createEtchedBorder());
jPanel11.setLayout(xYLayout12);
jButton12.setEnabled(false); //返回
jButton12.setText("返回");
jPanel2.setBorder(BorderFactory.createEtchedBorder());
jPanel2.setLayout(xYLayout3);
jPanel12.setLayout(xYLayout13);
jPanel12.setBorder(BorderFactory.createEtchedBorder());
jPanel13.setLayout(xYLayout14);
jPanel13.setBorder(BorderFactory.createEtchedBorder());
jButton13.setText("新建");
jButton14.setEnabled(false); //完成
jButton14.setText("完成");
jButton1.setEnabled(false); //完成
jButton1.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
jButton1.setText("完成");
jTGetName.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jCGetSex.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTGetBirthday.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTGetBirthday.setToolTipText("输入格式:YYYY-MM-DD");
jTGetNationality.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTGetNative.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTGetEmpID.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTGetEmpID.setToolTipText("");
jPasswordField1.setFont(new java.awt.Font("Dialog", Font.BOLD, 13));
jTextField9.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTextField11.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTextField10.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jTextArea1.setFont(new java.awt.Font("Dialog", Font.BOLD, 13));
jBEmpID.setEnabled(false);
jBEmpID.setFont(new java.awt.Font("宋体", Font.PLAIN, 8));
jBEmpID.setText("验证");
jPanel5.add(jLabel9, new XYConstraints(3, 57, -1, 20));
jPanel5.add(jLabel8, new XYConstraints(3, 31, -1, 20));
jPanel5.add(jLShowEmpID, new XYConstraints(3, 6, -1, 20));
jPanel6.add(jShowName, new XYConstraints(5, 6, -1, 20));
jPanel6.add(jTGetName, new XYConstraints(98, 6, 104, -1));
jPanel6.add(jLShowSex, new XYConstraints(5, 38, 68, 20));
jPanel6.add(jTGetBirthday, new XYConstraints(98, 66, 86, -1));
jPanel6.add(jLShowNationality, new XYConstraints(5, 94, -1, 20));
jPanel6.add(jLShowBirthday, new XYConstraints(5, 66, -1, 20));
jPanel6.add(jTGetNationality, new XYConstraints(98, 94, 86, -1));
jPanel6.add(jLShowNative, new XYConstraints(5, 122, -1, -1));
jPanel1.add(jPanel6, new XYConstraints(4, 3, 249, 149));
jPanel7.add(jLabel10, new XYConstraints(5, 7, -1, -1));
jPanel7.add(jLabel11, new XYConstraints(5, 60, -1, -1));
jPanel7.add(jTextField10, new XYConstraints(98, 58, 335, -1));
jPanel7.add(jLabel12, new XYConstraints(5, 33, -1, -1));
jPanel8.add(jLabel13, new XYConstraints(3, 1, -1, -1));
jPanel8.add(jPasswordField1, new XYConstraints(64, 1, 75, 18));
jPanel8.add(jButton8, new XYConstraints(143, 1, 52, 18));
jPanel1.add(jPanel7, new XYConstraints(4, 155, 454, 85));
jPanel4.add(jTextField3, new XYConstraints(60, 4, 125, 27));
jPanel4.add(jButton7, new XYConstraints(196, 4, 70, 27));
jPanel4.add(jLabel4, new XYConstraints(4, 4, 53, 30));
jPanel1.add(jPanel8, new XYConstraints(256, 94, 202, 26));
jPanel1.add(jPanel9, new XYConstraints(256, 123, 202, 29));
jPanel9.add(jLabel14, new XYConstraints(5, 4, -1, -1));
jPanel9.add(jButton10, new XYConstraints(143, 2, 52, 20));
jPanel10.add(jLabel15, new XYConstraints(6, 2, -1, -1));
jPanel6.add(jTGetNative, new XYConstraints(98, 120, 137, -1));
jPanel6.add(jCGetSex, new XYConstraints(98, 38, 48, 20));
jPanel1.add(jPanel5, new XYConstraints(256, 3, 202, 87));
jPanel11.add(jButton9, new XYConstraints(1, 4, 61, 27));
this.getContentPane().add(jPanel11, new XYConstraints(283, 389, 69, 41));
this.getContentPane().add(jPanel4, new XYConstraints(5, 389, 275, 41));
jPanel10.add(jScrollPane1, new XYConstraints(4, 24, 453, 95));
jScrollPane1.getViewport().add(jTextArea1);
this.getContentPane().add(jPanel10, new XYConstraints(5, 259, 463, 127));
this.getContentPane().add(jPanel1, new XYConstraints(3, 5, 465, 247));
jPanel3.add(jButton3, new XYConstraints(4, 4, 81, 26));
jPanel3.add(jButton4, new XYConstraints(4, 35, 81, 26));
jPanel3.add(jButton5, new XYConstraints(185, 34, 81, 26));
jPanel3.add(jButton6, new XYConstraints(185, 4, 81, 26));
jPanel3.add(jButton12, new XYConstraints(94, 18, 77, 31));
this.getContentPane().add(jPanel3, new XYConstraints(5, 433, 274, 68));
this.getContentPane().add(jPanel12, new XYConstraints(357, 463, 111, 38));
this.getContentPane().add(jPanel13, new XYConstraints(283, 433, 69, 68));
jPanel13.add(jButton14, new XYConstraints(2, 34, 61, 26));
jPanel13.add(jButton13, new XYConstraints(2, 4, 61, 26));
jPanel7.add(jTextField11, new XYConstraints(98, 30, 219, -1));
jPanel7.add(jTextField9, new XYConstraints(98, 3, 219, -1));
jPanel12.add(jButton2, new XYConstraints(5, 2, 97, -1));
this.getContentPane().add(jPanel2, new XYConstraints(357, 389, 111, 71));
jPanel2.add(jButton11, new XYConstraints(5, 2, 97, 25));
jPanel2.add(jButton1, new XYConstraints(5, 34, 97, 25));
jPanel5.add(jComboBox3, new XYConstraints(64, 59, 130, 20));
jPanel5.add(jComboBox2, new XYConstraints(64, 31, 130, 20));
jPanel5.add(jTGetEmpID, new XYConstraints(64, 6, 75, -1));
jPanel5.add(jBEmpID, new XYConstraints(143, 6, -1, -1));
jPanel9.add(jComboBox4, new XYConstraints(64, 2, 75, 20));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -