⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 empondutyrec.java

📁 酒店信息管理系统包括客户的信息
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
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.JPanel;
import javax.swing.BorderFactory;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextArea;
import javax.swing.UIManager;
import javax.swing.border.TitledBorder;
import javax.swing.JTextPane;
import java.awt.Color;
import javax.swing.Box;
import javax.swing.JSplitPane;
import javax.swing.JCheckBox;
import javax.swing.JScrollPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.DriverManager;
import javax.swing.JOptionPane;
import java.sql.SQLException;
import java.sql.ResultSet;

/**
 * <p>Title: 酒店信息管理系统</p>
 *
 * <p>Description: HotelInformationManageSystem</p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: JSP</p>
 *
 * @author 江世澎
 * @version 1.0
 */
public class EmpOnDutyRec extends JFrame {
    XYLayout xYLayout1 = new XYLayout();
    JPanel jPEmpQueryID = new JPanel();
    JTextField jTFEmpQuery = new JTextField();
    JButton jBEmpQuery = new JButton();
    JLabel jLQuery = new JLabel();
    JPanel jPQuit = new JPanel();
    JButton jBEditFinish = new JButton();
    JButton jBQuit = new JButton();
    XYLayout xYLayout3 = new XYLayout();
    JPanel jPEmpOnDutyInfo01 = new JPanel();
    JLabel jLDuty = new JLabel();
    JLabel jLDepartment = new JLabel();
    JLabel jLName = new JLabel();
    JTextField jTFName = new JTextField();
    JTextField jTFDepartment = new JTextField();
    JTextField jTFDuty = new JTextField();
    XYLayout xYLayout4 = new XYLayout();
    JLabel jLEmpID = new JLabel();
    JTextField jTFEmpID = new JTextField();
    JPanel jPEmpOnDutyInfo02 = new JPanel();
    XYLayout xYLayout2 = new XYLayout();
    JLabel jLFloorNo = new JLabel();
    JTextField jTFFloorNo = new JTextField();
    JLabel jLProceeding = new JLabel();
    TitledBorder titledBorder1 = new TitledBorder("");
    JLabel jLPhone = new JLabel();
    XYLayout xYLayout5 = new XYLayout();
    JPanel jPEmpOnDutyInfo03 = new JPanel();
    XYLayout xYLayout7 = new XYLayout();
    JPanel jPEmpOnDutyInfo04 = new JPanel();
    XYLayout xYLayout8 = new XYLayout();
    JTextField jTFPhone = new JTextField();
    JLabel jLDutyDate = new JLabel();
    JLabel jLRemark = new JLabel();
    JPanel jPEdit = new JPanel();
    XYLayout xYLayout10 = new XYLayout();
    JLabel jLAm = new JLabel();
    JPanel jPanel10 = new JPanel();
    XYLayout xYLayout11 = new XYLayout();
    JLabel jLPm = new JLabel();
    JLabel jLSu = new JLabel();
    JLabel jLMo = new JLabel();
    JLabel jLTu = new JLabel();
    JLabel jLWe = new JLabel();
    JLabel jLTh = new JLabel();
    JLabel jLFr = new JLabel();
    JLabel jLSa = new JLabel();
    JButton jBOnDutySet = new JButton();
    JCheckBox jCBSuAm = new JCheckBox();
    JCheckBox jCBMoAm = new JCheckBox();
    JCheckBox jCBTuAm = new JCheckBox();
    JCheckBox jCBWeAm = new JCheckBox();
    JCheckBox jCBThAm = new JCheckBox();
    JCheckBox jCBFrAm = new JCheckBox();
    JCheckBox jCBSaAm = new JCheckBox();
    JCheckBox jCBSuPm = new JCheckBox();
    JCheckBox jCBMoPm = new JCheckBox();
    JCheckBox jCBTuPm = new JCheckBox();
    JCheckBox jCBWePm = new JCheckBox();
    JCheckBox jCBThPm = new JCheckBox();
    JCheckBox jCBFrPm = new JCheckBox();
    JCheckBox jCBSaPm = new JCheckBox();
    JScrollPane jScrollPane1 = new JScrollPane();
    JTextArea jTAProceeding = new JTextArea();
    JScrollPane jScrollPane2 = new JScrollPane();
    JTextArea jTARemark = new JTextArea();
    JButton jBEdit = new JButton();
    DataConnect Connect1 = new DataConnect();
    DataConnect Connect2 = new DataConnect();
    ResultSet rs1l = null;
    String strEmpuserID = null;
    hotelinformationmanagesystem.JudgeValidity judgeval = new JudgeValidity();

    public EmpOnDutyRec() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        getContentPane().setLayout(xYLayout1);
        this.setSize(545, 356); //设置窗口大小
        this.setResizable(false);
        this.setTitle("值班员工信息管理界面");
        xYLayout1.setWidth(541);
        xYLayout1.setHeight(326);
        jPEmpQueryID.setBorder(BorderFactory.createEtchedBorder());
        jPEmpQueryID.setLayout(xYLayout3);
        jBEmpQuery.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jBEmpQuery.setText("查找");
        jBEmpQuery.addActionListener(new EmpOnDutyRec_jBEmpQuery_actionAdapter(this));
        jLQuery.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLQuery.setText("员工ID");
        jPQuit.setBorder(BorderFactory.createEtchedBorder());
        jPQuit.setLayout(xYLayout5);
        jBEditFinish.setEnabled(false);
        jBEditFinish.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jBEditFinish.setText("完成");
        jBEditFinish.addActionListener(new
                                       EmpOnDutyRec_jBEditFinish_actionAdapter(this));
        jBQuit.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
        jBQuit.setText("退出");
        jBQuit.addActionListener(new EmpOnDutyRec_jBQuit_actionAdapter(this));
        jPEmpOnDutyInfo01.setBorder(BorderFactory.createEtchedBorder());
        jPEmpOnDutyInfo01.setLayout(xYLayout4);
        jLDuty.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLDuty.setText("职 务");
        jLDepartment.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLDepartment.setText("部 门");
        jLName.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLName.setText("姓 名");
        jLEmpID.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLEmpID.setText("员工ID");
        jTFEmpID.setEnabled(false);
        jTFEmpID.setSelectionEnd(11);
        jTFEmpID.setSelectionStart(11);
        jPEmpOnDutyInfo02.setBorder(BorderFactory.createEtchedBorder());
        jPEmpOnDutyInfo02.setLayout(xYLayout2);
        jLFloorNo.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLFloorNo.setText("值班楼层");
        jLProceeding.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLProceeding.setText("负责事项");
        jLPhone.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLPhone.setText("联系电话");
        jPEmpOnDutyInfo03.setLayout(xYLayout7);
        jPEmpOnDutyInfo03.setBorder(BorderFactory.createEtchedBorder());
        jPEmpOnDutyInfo04.setBorder(BorderFactory.createEtchedBorder());
        jPEmpOnDutyInfo04.setInputVerifier(null);
        jPEmpOnDutyInfo04.setLayout(xYLayout8);
        jLDutyDate.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLDutyDate.setText("值班日期 ");
        jLRemark.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jLRemark.setText("备注");
        jTFDuty.setEnabled(false);
        jTFDuty.setSelectionEnd(11);
        jTFDuty.setSelectionStart(11);
        jPEdit.setLayout(xYLayout10);
        jPEdit.setBorder(BorderFactory.createEtchedBorder());
        jLAm.setText("早班");
        jPanel10.setLayout(xYLayout11);
        jPanel10.setBorder(BorderFactory.createLineBorder(Color.black));
        jLPm.setText("晚班");
        jLSu.setText("日");
        jLMo.setText("一");
        jLTu.setText("二");
        jLWe.setText("三");
        jLTh.setText("四");
        jLFr.setText("五");
        jLSa.setText("六");
        jBOnDutySet.setEnabled(false);
        jBOnDutySet.setText("设置");
        jBOnDutySet.addActionListener(new
                                      EmpOnDutyRec_jBOnDutySet_actionAdapter(this));
        jTFName.setEnabled(false);
        jTFDepartment.setEnabled(false);
        jBEdit.setEnabled(false);
        jBEdit.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
        jBEdit.setText("设置");
        jBEdit.addActionListener(new EmpOnDutyRec_jBEdit_actionAdapter(this));
        jTARemark.setEnabled(false);
        jTFFloorNo.setEnabled(false);
        jTAProceeding.setEnabled(false);
        jTFPhone.setEnabled(false);
        jCBSuAm.setEnabled(false);
        jCBSuPm.setEnabled(false);
        jCBMoAm.setEnabled(false);
        jCBMoPm.setEnabled(false);
        jCBTuAm.setEnabled(false);
        jCBTuPm.setEnabled(false);
        jCBWeAm.setEnabled(false);
        jCBWePm.setEnabled(false);
        jCBThAm.setEnabled(false);
        jCBThPm.setEnabled(false);
        jCBFrAm.setEnabled(false);
        jCBFrPm.setEnabled(false);
        jCBSaAm.setEnabled(false);
        jCBSaPm.setEnabled(false);
        jPEmpOnDutyInfo01.add(jLEmpID, new XYConstraints(3, 93, -1, -1));
        jPEmpOnDutyInfo01.add(jLDuty, new XYConstraints(5, 67, -1, -1));
        jPEmpOnDutyInfo01.add(jLDepartment, new XYConstraints(5, 34, -1, 20));
        jPEmpOnDutyInfo01.add(jLName, new XYConstraints(5, 3, -1, 20));
        jPEmpOnDutyInfo04.add(jLRemark, new XYConstraints(4, 6, -1, -1));
        jPEmpOnDutyInfo01.add(jTFEmpID, new XYConstraints(83, 90, 111, -1));
        jPEmpOnDutyInfo01.add(jTFDuty, new XYConstraints(83, 63, 111, -1));
        jPEmpOnDutyInfo01.add(jTFDepartment, new XYConstraints(83, 34, 111, -1));
        jPEmpOnDutyInfo01.add(jTFName, new XYConstraints(83, 3, 111, -1));
        jPEmpOnDutyInfo03.add(jLDutyDate, new XYConstraints(4, 3, 81, -1));
        jPEmpOnDutyInfo03.add(jLSu, new XYConstraints(50, 26, -1, -1));
        jPEmpOnDutyInfo03.add(jLTu, new XYConstraints(100, 26, -1, -1));
        jPEmpOnDutyInfo03.add(jLSa, new XYConstraints(200, 26, -1, -1));
        jPEmpOnDutyInfo03.add(jBOnDutySet, new XYConstraints(154, 3, 61, 18));
        jPEmpOnDutyInfo03.add(jLPm, new XYConstraints(10, 89, -1, -1));
        jPEmpOnDutyInfo03.add(jLAm, new XYConstraints(10, 50, -1, -1));
        jPEmpOnDutyInfo03.add(jPanel10, new XYConstraints(44, 42, 172, 72));
        jPanel10.add(jCBSuAm, new XYConstraints(2, 4, -1, -1));
        this.getContentPane().add(jPEmpOnDutyInfo03,
                                  new XYConstraints(215, 7, 224, 122));
        this.getContentPane().add(jPEmpOnDutyInfo04,
                                  new XYConstraints(215, 131, 224, 192));
        this.getContentPane().add(jPEmpOnDutyInfo02,
                                  new XYConstraints(5, 131, 206, 192));
        this.getContentPane().add(jPEmpOnDutyInfo01,
                                  new XYConstraints(5, 7, 206, 122));
        jPanel10.add(jCBMoAm, new XYConstraints(24, 4, -1, -1));
        jPEmpOnDutyInfo03.add(jLMo, new XYConstraints(74, 26, -1, -1));
        jPEmpOnDutyInfo03.add(jLFr, new XYConstraints(177, 26, -1, -1));
        jPEmpOnDutyInfo03.add(jLTh, new XYConstraints(152, 26, -1, -1));
        jPEmpOnDutyInfo03.add(jLWe, new XYConstraints(126, 26, -1, -1));
        jPanel10.add(jCBTuAm, new XYConstraints(51, 4, -1, -1));
        jPanel10.add(jCBSuPm, new XYConstraints(2, 42, -1, -1));
        jPanel10.add(jCBMoPm, new XYConstraints(24, 42, -1, -1));
        jPanel10.add(jCBTuPm, new XYConstraints(51, 42, -1, -1));
        jPanel10.add(jCBWePm, new XYConstraints(75, 42, -1, -1));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -