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

📄 empinfmanage.java~5~

📁 酒店信息管理系统包括客户的信息
💻 JAVA~5~
📖 第 1 页 / 共 2 页
字号:
        // jBChange.setFont(new ja.awt.Font("宋体", Font.BOLD, 18));
        jBChange.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
        jBChange.setToolTipText("完成");
        jBChange.setText("修改");
        jPTool5.setLayout(xYLayout3);
        jPTool5.setBorder(BorderFactory.createEtchedBorder());
        jPTool6.setLayout(xYLayout13);
        jPTool6.setBorder(BorderFactory.createEtchedBorder());
        jPTool4.setLayout(xYLayout14);
        jPTool4.setBorder(BorderFactory.createEtchedBorder());
        jBNewBuild.setText("新建");
        jBNewBuildFinish.setText("完成");
        jBChangeFinish.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
        jBChangeFinish.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));
        jPGetPassword.setFont(new java.awt.Font("Dialog", Font.BOLD, 13));
        jTGetIDCard.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jTGetPhone.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jTGetAddress.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jTGetReMark.setFont(new java.awt.Font("Dialog", Font.BOLD, 13));
        jBEmpID.setFont(new java.awt.Font("宋体", Font.PLAIN, 9));
        jBEmpID.setText("验证");
        jPEmpInf6.setBorder(BorderFactory.createEtchedBorder());
        jPTool3.setLayout(xYLayout15);
        jPTool3.setBorder(BorderFactory.createEtchedBorder());
        jBBack.setText("返回");
        jPEmpInf2.add(jLShowDuty, new XYConstraints(3, 57, -1, 20));
        jPEmpInf2.add(jLShowDepartment, new XYConstraints(3, 31, -1, 20));
        jPEmpInf2.add(jLShowEmpID, new XYConstraints(3, 6, -1, 20));
        jPEmpInf1.add(jShowName, new XYConstraints(5, 6, -1, 20));
        jPEmpInf1.add(jTGetName, new XYConstraints(98, 6, 104, -1));
        jPEmpInf1.add(jLShowSex, new XYConstraints(5, 38, 68, 20));
        jPEmpInf1.add(jTGetBirthday, new XYConstraints(98, 66, 86, -1));
        jPEmpInf1.add(jLShowNationality, new XYConstraints(5, 94, -1, 20));
        jPEmpInf1.add(jLShowBirthday, new XYConstraints(5, 66, -1, 20));
        jPEmpInf1.add(jTGetNationality, new XYConstraints(98, 94, 86, -1));
        jPEmpInf1.add(jLShowNative, new XYConstraints(5, 122, -1, -1));
        jPEmpInf.add(jPEmpInf1, new XYConstraints(4, 3, 249, 149));
        jPEmpInf5.add(jLShowIDCard, new XYConstraints(5, 7, -1, -1));
        jPEmpInf5.add(jLShowAddress, new XYConstraints(5, 60, -1, -1));
        jPEmpInf5.add(jTGetAddress, new XYConstraints(98, 58, 335, -1));
        jPEmpInf5.add(jLShowPhone, new XYConstraints(5, 33, -1, -1));
        jPEmpInf3.add(jLShowPassword, new XYConstraints(3, 1, -1, -1));
        jPEmpInf3.add(jPGetPassword, new XYConstraints(64, 1, 75, 18));
        jPEmpInf3.add(jBPassword, new XYConstraints(143, 1, 52, 18));
        jPEmpInf.add(jPEmpInf5, new XYConstraints(4, 155, 454, 85));
        jPTool1.add(jTSearchEmpID, new XYConstraints(60, 4, 125, 27));
        jPTool1.add(jBSearchEmpID, new XYConstraints(196, 4, 70, 27));
        jPTool1.add(jLSearchEmpID, new XYConstraints(4, 4, 53, 30));
        jPEmpInf.add(jPEmpInf3, new XYConstraints(256, 94, 202, 26));
        jPEmpInf.add(jPEmpInf4, new XYConstraints(256, 123, 202, 29));
        jPEmpInf4.add(jLShowPopedom, new XYConstraints(5, 4, -1, -1));
        jPEmpInf4.add(jBPopedom, new XYConstraints(143, 2, 52, 20));
        jPEmpInf1.add(jTGetNative, new XYConstraints(98, 120, 137, -1));
        jPEmpInf1.add(jCGetSex, new XYConstraints(98, 38, 48, 20));
        jPEmpInf.add(jPEmpInf2, new XYConstraints(256, 3, 202, 87));
        this.getContentPane().add(jPTool1, new XYConstraints(5, 389, 275, 41));
        jPTool2.add(jBPageUp, new XYConstraints(4, 4, 81, 26));
        jPTool2.add(jBPageDown, new XYConstraints(4, 35, 81, 26));
        jPTool2.add(jBEndPage, new XYConstraints(185, 34, 81, 26));
        jPTool2.add(jBTopPage, new XYConstraints(185, 4, 81, 26));
        jPTool2.add(jBBack, new XYConstraints(94, 18, 77, 31));
        this.getContentPane().add(jPTool2, new XYConstraints(5, 433, 274, 68));
        this.getContentPane().add(jPTool6, new XYConstraints(357, 463, 111, 38));
        this.getContentPane().add(jPTool4, new XYConstraints(283, 433, 69, 68));
        jPTool4.add(jBNewBuildFinish, new XYConstraints(2, 34, 61, 26));
        jPTool4.add(jBNewBuild, new XYConstraints(2, 4, 61, 26));
        jPEmpInf5.add(jTGetPhone, new XYConstraints(98, 30, 219, -1));
        jPEmpInf5.add(jTGetIDCard, new XYConstraints(98, 3, 219, -1));
        jPTool6.add(jBQuit, new XYConstraints(5, 2, 97, -1));
        this.getContentPane().add(jPTool5, new XYConstraints(357, 389, 111, 71));
        jPTool5.add(jBChange, new XYConstraints(5, 2, 97, 25));
        jPTool5.add(jBChangeFinish, new XYConstraints(5, 34, 97, 25));
        jPEmpInf2.add(jCGetDuty, new XYConstraints(64, 59, 130, 20));
        jPEmpInf2.add(jCGetDepartment, new XYConstraints(64, 31, 130, 20));
        jPEmpInf2.add(jTGetEmpID, new XYConstraints(64, 6, 75, -1));
        jPEmpInf2.add(jBEmpID, new XYConstraints(143, 5, 51, 21));
        jPEmpInf6.add(jLShowRemark, new XYConstraints(6, 2, 40, 21));
        jPEmpInf6.add(jSGetRemark, new XYConstraints(8, 23, 430, 95));
        jPEmpInf.add(jPEmpInf6, new XYConstraints(4, 246, 454, 127));
        jSGetRemark.getViewport().add(jTGetReMark);
        this.getContentPane().add(jPEmpInf, new XYConstraints(3, 5, 467, 381));
        this.getContentPane().add(jPTool3, new XYConstraints(283, 389, 69, 41));
        jPTool3.add(jBDelete, new XYConstraints(2, 3, 61, 30));
        jPEmpInf4.add(jTGetPopedom, new XYConstraints(64, 3, 75, -1));

        //---------------------------------------------------------------
        jCGetSex.addItem(" ");
        jCGetSex.addItem("男");
        jCGetSex.addItem("女");
        jCGetDepartment.addItem(" ");
        jCGetDepartment.addItem("服务部");
        jCGetDepartment.addItem("客房部");
        jCGetDuty.addItem(" ");
        jCGetDuty.addItem("经理");
        jCGetDuty.addItem("前台");
        jCGetDuty.addItem("服务员");
        //-----------------------------------------------------------------
        jTGetEmpID.setEnabled(false); //员工ID
        jTGetName.setEnabled(false); //姓名
        jTGetNationality.setEnabled(false); //民族
        jTGetBirthday.setEnabled(false); //出生年月
        jTGetNative.setEnabled(false); //籍贯
        jTGetIDCard.setEnabled(false); //身份证号
        jTGetAddress.setEnabled(false); //地址
        jTGetPhone.setEnabled(false); //联系电话
        jTGetPopedom.setEnabled(false); //权限
        jPGetPassword.setEnabled(false); //密码
        jTGetReMark.setEnabled(false); //备注
        jCGetSex.setEnabled(false); //性别
        jCGetDepartment.setEnabled(false); //部门
        jCGetDuty.setEnabled(false); //职责
        //------------------------------------------------------------------
        jTGetEmpID.setText(repower.strEmpID);
        jTGetName.setText(repower.strName); //姓名
        jCGetSex.removeAllItems(); //性别
        jCGetSex.addItem(repower.strSex);
        jTGetNationality.setText(repower.strNationality); //民族
        jTGetBirthday.setText(repower.strBirthday); //出生年月
        jTGetNative.setText(repower.strNative); //籍贯
        jTGetIDCard.setText(repower.strIDCard); //身份证号
        jTGetAddress.setText(repower.strAddress); //地址
        jTGetPhone.setText(repower.strPhone); //联系电话
        jCGetDepartment.removeAllItems(); //部门
        jCGetDepartment.addItem(repower.strDepartment);
       jCGetDuty.removeAllItems(); //职务
        jCGetDuty.addItem(repower.strDuty);
        jTGetPopedom.setText(repower.strPopedom); //权限
        jPGetPassword.setText(repower.strPassword); //密码
        jTGetReMark.setText(repower.strRemark); //备注

//--------------------------------------------------上述的功能是显示登陆者的信息
        jBPageUp.setEnabled(false); //上页
        jBPageDown.setEnabled(false); //下一页
        jBEndPage.setEnabled(false); //未页
        jBTopPage.setEnabled(false); //首页
        jBBack.setEnabled(false); //返回
        jBNewBuildFinish.setEnabled(false); //新建完成 
        jBEmpID.setEnabled(false); //ID验证 
        jBChangeFinish.setEnabled(false); //修改完成
        jBPassword.setEnabled(false); //密码修改
        jBDelete.setEnabled(false); //删除
        jBPopedom.setEnabled(false); //权限修改
        //-----------------------------------------------------
        if (repower.strPopedom.equals("0")) { //系统管理员
            jBPopedom.setEnabled(true);
        }
        if (repower.strPopedom.equals("2") || repower.strPopedom.equals("3") ||
            repower.strPopedom.equals("4")) { //客房部经理,前台接待员,其他工作人员
            jBSearchEmpID.setEnabled(false); //查找
            jTSearchEmpID.setEnabled(false); //员工ID框
            jBNewBuild.setEnabled(false); //新建 
        }
        //---------------------------------------------------上述为权限的初始设置
    }

    public void jBQuit_actionPerformed(ActionEvent e) {
        this.setVisible(false);
    }

    public void jBPopedom_actionPerformed(ActionEvent e) {
        jTGetPopedom.setVisible(true);
    }


}


class EmpInfManage_jBPopedom_actionAdapter implements ActionListener {
    private EmpInfManage adaptee;
    EmpInfManage_jBPopedom_actionAdapter(EmpInfManage adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jBPopedom_actionPerformed(e);
    }
}


class EmpInfManage_jBQuit_actionAdapter implements ActionListener {
    private EmpInfManage adaptee;
    EmpInfManage_jBQuit_actionAdapter(EmpInfManage adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jBQuit_actionPerformed(e);
    }
}

⌨️ 快捷键说明

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