📄 empondutyquery.java~66~
字号:
package EmpManagement;
import java.awt.BorderLayout;
import hotelinformationmanagesystem.*;
import javax.swing.JFrame;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import javax.swing.JTable;
import ShowTable.TableExample;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.BorderFactory;
import java.awt.Font;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JCheckBox;
import java.awt.Color;
import javax.swing.ButtonGroup;
import javax.swing.JOptionPane;
/**
* <p>Title: 酒店信息管理系统</p>
*
* <p>Description: HotelInformationManageSystem</p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: JSP</p>
*
* @author 江世澎
* @version 1.0
*/
public class EmpOnDutyQuery extends JFrame {
JTable jTable1;
TableExample table = new TableExample();
JScrollPane jScrollPane1 = new JScrollPane();
XYLayout xYLayout1 = new XYLayout();
JPanel jPanel1 = new JPanel();
XYLayout xYLayout2 = new XYLayout();
JPanel jPanel2 = new JPanel();
XYLayout xYLayout3 = new XYLayout();
JLabel jLabel4 = new JLabel();
JLabel jLabel5 = new JLabel();
JLabel jLabel6 = new JLabel();
JLabel jLabel7 = new JLabel();
JLabel jLabel8 = new JLabel();
JLabel jLabel9 = new JLabel();
JLabel jLabel10 = new JLabel();
JRadioButton jRadioButton1 = new JRadioButton();
JRadioButton jRadioButton2 = new JRadioButton();
JRadioButton jRadioButton3 = new JRadioButton();
JRadioButton jRadioButton4 = new JRadioButton();
JRadioButton jRadioButton5 = new JRadioButton();
JRadioButton jRadioButton6 = new JRadioButton();
JRadioButton jRadioButton7 = new JRadioButton();
JPanel jPanel3 = new JPanel();
XYLayout xYLayout4 = new XYLayout();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JPanel jPanel4 = new JPanel();
XYLayout xYLayout5 = new XYLayout();
JTextField jTextField1 = new JTextField();
JRadioButton jRadioButton15 = new JRadioButton();
JPanel jPanel5 = new JPanel();
XYLayout xYLayout6 = new XYLayout();
JRadioButton jRadioButton17 = new JRadioButton();
JTextField jTextField2 = new JTextField();
JPanel jPanel6 = new JPanel();
XYLayout xYLayout7 = new XYLayout();
JPanel jPanel7 = new JPanel();
XYLayout xYLayout8 = new XYLayout();
JRadioButton jRadioButton9 = new JRadioButton();
JComboBox jComboBox1 = new JComboBox();
JRadioButton jRadioButton10 = new JRadioButton();
JComboBox jComboBox2 = new JComboBox();
ButtonGroup buttonGroup1 = new ButtonGroup();
ButtonGroup buttonGroup2 = new ButtonGroup();
JLabel jLabel1 = new JLabel();
JRadioButton jRadioButton8 = new JRadioButton();
public EmpOnDutyQuery() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
jTable1 = table.createTable();
getContentPane().setLayout(xYLayout1);
this.setResizable(false);
this.setTitle("酒店值班员工查询界面");
this.setSize(466, 302);
SetFormCenter wcenter = new SetFormCenter();
wcenter.setcenter(this);
xYLayout1.setWidth(463);
xYLayout1.setHeight(274);
jPanel1.setLayout(xYLayout2);
jPanel1.setBorder(BorderFactory.createEtchedBorder());
jPanel2.setLayout(xYLayout3);
jPanel2.setBorder(BorderFactory.createLineBorder(Color.black));
jLabel4.setText("五");
jLabel5.setText("日");
jLabel6.setText("二");
jLabel7.setText("六");
jLabel8.setText("四");
jLabel9.setText("三");
jLabel10.setText("一");
jPanel3.setLayout(xYLayout4);
jPanel3.setBorder(BorderFactory.createEtchedBorder());
jButton1.setFont(new java.awt.Font("宋体", Font.BOLD, 16));
jButton1.setText("查询");
jButton1.addActionListener(new EmpOnDutyQuery_jButton1_actionAdapter(this));
jButton2.setFont(new java.awt.Font("宋体", Font.BOLD, 16));
jButton2.setText("退出");
jButton2.addActionListener(new EmpOnDutyQuery_jButton2_actionAdapter(this));
jPanel4.setLayout(xYLayout5);
jPanel4.setBorder(BorderFactory.createEtchedBorder());
jRadioButton15.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jRadioButton15.setText("按员工ID");
jRadioButton15.addActionListener(new
EmpOnDutyQuery_jRadioButton15_actionAdapter(this));
jPanel5.setLayout(xYLayout6);
jPanel5.setBorder(BorderFactory.createEtchedBorder());
jRadioButton17.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jRadioButton17.setText("按姓名查询");
jRadioButton17.addActionListener(new
EmpOnDutyQuery_jRadioButton17_actionAdapter(this));
jPanel6.setLayout(xYLayout7);
jPanel6.setBorder(BorderFactory.createEtchedBorder());
jPanel7.setLayout(xYLayout8);
jPanel7.setBorder(BorderFactory.createEtchedBorder());
jRadioButton9.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jRadioButton9.setText("按部门");
jRadioButton9.addActionListener(new
EmpOnDutyQuery_jRadioButton9_actionAdapter(this));
jRadioButton10.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jRadioButton10.setText("按职务");
jRadioButton10.addActionListener(new
EmpOnDutyQuery_jRadioButton10_actionAdapter(this));
jLabel1.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jLabel1.setText("值班日期");
jRadioButton7.addActionListener(new
EmpOnDutyQuery_jRadioButton7_actionAdapter(this));
jRadioButton1.setSelected(true);
jRadioButton8.setSelected(true);
jScrollPane1.getViewport().add(jTable1);
jPanel2.add(jRadioButton1, new XYConstraints(28, 1, -1, -1));
jPanel2.add(jRadioButton2, new XYConstraints(55, 1, -1, -1));
jPanel2.add(jRadioButton3, new XYConstraints(81, 1, -1, -1));
jPanel2.add(jRadioButton4, new XYConstraints(108, 1, -1, -1));
jPanel2.add(jRadioButton5, new XYConstraints(132, 1, -1, -1));
jPanel2.add(jRadioButton6, new XYConstraints(155, 1, -1, -1));
jPanel2.add(jRadioButton7, new XYConstraints(4, 1, -1, -1));
jPanel1.add(jLabel1, new XYConstraints(6, 2, -1, -1));
this.getContentPane().add(jPanel4, new XYConstraints(2, 233, 210, 36));
jPanel3.add(jButton1, new XYConstraints(1, 3, 69, 32));
jPanel3.add(jButton2, new XYConstraints(1, 36, 69, 32));
this.getContentPane().add(jRadioButton8,
new XYConstraints(10, 270, -1, -1));
jPanel1.add(jLabel10, new XYConstraints(49, 22, -1, -1));
jPanel1.add(jLabel5, new XYConstraints(28, 22, -1, -1));
jPanel1.add(jLabel8, new XYConstraints(129, 22, -1, -1));
jPanel1.add(jLabel4, new XYConstraints(156, 22, -1, -1));
jPanel1.add(jLabel9, new XYConstraints(103, 22, -1, -1));
jPanel1.add(jLabel6, new XYConstraints(76, 22, -1, -1));
jPanel1.add(jLabel7, new XYConstraints(179, 22, -1, -1));
jPanel1.add(jPanel2, new XYConstraints(18, 38, 184, 26));
jPanel4.add(jRadioButton15, new XYConstraints(6, 3, -1, -1));
jPanel4.add(jTextField1, new XYConstraints(107, 2, 92, 24));
this.getContentPane().add(jPanel1, new XYConstraints(2, 158, 210, 73));
jPanel5.add(jRadioButton17, new XYConstraints(1, 3, -1, -1));
jPanel6.add(jRadioButton9, new XYConstraints(1, 2, -1, -1));
jPanel5.add(jTextField2, new XYConstraints(101, 2, 115, 24));
jPanel6.add(jComboBox1, new XYConstraints(72, 3, 84, 25));
this.getContentPane().add(jPanel7, new XYConstraints(215, 234, 164, 35));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -