📄 empinfo.php
字号:
<?php
/*
// OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures
// all the essential functionalities required for any enterprise.
// Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com
// OrangeHRM is free software; you can redistribute it and/or modify it under the terms of
// the GNU General Public License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
// OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program;
// if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA
*/
require_once ROOT_PATH . '/lib/confs/Conf.php';
require_once ROOT_PATH . '/lib/confs/sysConf.php';
require_once ROOT_PATH . '/lib/dao/DMLFunctions.php';
require_once ROOT_PATH . '/lib/dao/SQLQBuilder.php';
require_once ROOT_PATH . '/lib/common/CommonFunctions.php';
require_once ROOT_PATH . '/lib/logs/LogFileWriter.php';
require_once ROOT_PATH . '/lib/models/hrfunct/EmpRepTo.php';
require_once ROOT_PATH . '/lib/common/UniqueIDGenerator.php';
class EmpInfo {
const EMPLOYEE_TABLE_NAME = 'hs_hr_employee';
const EMPLOYEE_FIELD_EMP_NUMBER = 'emp_number';
const EMPLOYEE_FIELD_FIRST_NAME = 'emp_firstname';
const EMPLOYEE_FIELD_LAST_NAME = 'emp_lastname';
const EMPLOYEE_FIELD_EMP_ID = 'employee_id';
const EMPLOYEE_FIELD_MIDDLE_NAME = 'emp_middle_name';
var $tableName = 'HS_HR_EMPLOYEE';
var $empId;
var $employeeId;
var $empLastName;
var $empFirstName;
var $empNickName;
var $empMiddleName;
//personal
var $empDOB;
var $empGender;
var $empNation;
var $empMarital;
var $empSINNo;
var $empSSNNo;
var $empOthID;
var $empDriLicNo;
var $empDriLicExpDat;
var $empMilitary;
var $smoker;
var $ethnicRace;
//job info
var $empJobTitle;
var $empStatus;
var $empEEOCat;
var $empLocation;
var $empjoindat;
//permanent contacts
var $empStreet1;
var $empStreet2;
var $empCity;
var $empProvince;
var $empCountry;
var $empZipCode;
var $empHomeTelephone;
var $empMobile;
var $empWorkTelephone;
var $empWorkEmail;
var $empOtherEmail;
var $employeeIdLength;
/* //immigration
*/
// custom fields
var $custom1;
var $custom2;
var $custom3;
var $custom4;
var $custom5;
var $custom6;
var $custom7;
var $custom8;
var $custom9;
var $custom10;
var $arrayDispList;
var $singleField;
function setCustom1($value) {
$this->custom1 = $value;
}
function getCustom1() {
return $this->custom1;
}
function setCustom2($value) {
$this->custom2 = $value;
}
function getCustom2() {
return $this->custom2;
}
function setCustom3($value) {
$this->custom3 = $value;
}
function getCustom3() {
return $this->custom3;
}
function setCustom4($value) {
$this->custom4 = $value;
}
function getCustom4() {
return $this->custom4;
}
function setCustom5($value) {
$this->custom5 = $value;
}
function getCustom5() {
return $this->custom5;
}
function setCustom6($value) {
$this->custom6 = $value;
}
function getCustom6() {
return $this->custom6;
}
function setCustom7($value) {
$this->custom7 = $value;
}
function getCustom7() {
return $this->custom7;
}
function setCustom8($value) {
$this->custom8 = $value;
}
function getCustom8() {
return $this->custom8;
}
function setCustom9($value) {
$this->custom9 = $value;
}
function getCustom9() {
return $this->custom9;
}
function setCustom10($value) {
$this->custom10 = $value;
}
function getCustom10() {
return $this->custom10;
}
function EmpInfo() {
$sysConfObj = new sysConf();
$this->employeeIdLength = $sysConfObj->getEmployeeIdLength();
}
function setEmpId($empId) {
$this->empId = $empId;
}
function setEmployeeId($employeeId) {
$this->employeeId = $employeeId;
}
function setEmpLastName($empLastName) {
$this->empLastName = $empLastName;
}
function setEmpFirstName($empFirstName) {
$this->empFirstName = $empFirstName;
}
function setEmpNickName($empNickName) {
$this->empNickName = $empNickName;
}
function setEmpMiddleName($empMiddleName) {
$this->empMiddleName = $empMiddleName;
}
//personal
function setEmpSINNo($empSINNo) {
$this->empSINNo = $empSINNo;
}
function setEmpSSNNo($empSSNNo) {
$this->empSSNNo = $empSSNNo;
}
function setEmpDOB($empDOB) {
$this->empDOB = $empDOB;
}
function setEmpOthID($empOthID) {
$this->empOthID = $empOthID;
}
function setEmpGender($empGender) {
$this->empGender = $empGender;
}
function setEmpDriLicNo($empDriLicNo) {
$this->empDriLicNo = $empDriLicNo;
}
function setEmpNation($empNation) {
$this->empNation = $empNation;
}
function setEmpDriLicExpDat($empDriLicExpDat) {
$this->empDriLicExpDat = $empDriLicExpDat;
}
function setEmpMarital($empMarital) {
$this->empMarital = $empMarital;
}
function setEmpsmoker($smoker) {
$this->smoker = $smoker;
}
function setEmpMilitary($empMilitary) {
$this->empMilitary = $empMilitary;
}
function setEmpEthnicRace($ethnicRace) {
$this->ethnicRace = $ethnicRace;
}
//job info
//job stat
function setEmpJobTitle($empJobTitle) {
$this->empJobTitle = $empJobTitle;
}
function setEmpStatus($empStatus) {
$this->empStatus = $empStatus;
}
function setEmpEEOCat($empEEOCat) {
$this->empEEOCat = $empEEOCat;
}
function setEmpLocation($empLocation) {
$this->empLocation = $empLocation;
}
function setEmpJoinedDate($empjoindat) {
$this->empjoindat = $empjoindat;
}
//permanent contacts
function setEmpStreet1($empStreet1) {
$this->empStreet1 = $empStreet1;
}
function setEmpStreet2($empStreet2) {
$this->empStreet2 = $empStreet2;
}
function setEmpCity($empCity) {
$this->empCity = $empCity;
}
function setEmpProvince($empProvince) {
$this->empProvince = $empProvince;
}
function setEmpCountry($empCountry) {
$this->empCountry = $empCountry;
}
function setEmpZipCode($empZipCode) {
$this->empZipCode = $empZipCode;
}
function setEmpHomeTelephone($empHomeTelephone) {
$this->empHomeTelephone = $empHomeTelephone;
}
function setEmpMobile($empMobile) {
$this->empMobile = $empMobile;
}
function setEmpWorkTelephone($empWorkTelephone) {
$this->empWorkTelephone = $empWorkTelephone;
}
function setEmpWorkEmail($empWorkEmail) {
$this->empWorkEmail = $empWorkEmail;
}
function setEmpOtherEmail($empOtherEmail) {
$this->empOtherEmail = $empOtherEmail;
}
//////////////
function getEmpId() {
return $this->empId;
}
function getPaddedEmpId() {
return str_pad($this->empId, $this->employeeIdLength, "0", STR_PAD_LEFT);
}
function getEmployeeId() {
return $this->employeeId;
}
function getEmpLastName() {
return $this->empLastName;
}
function getEmpFirstName() {
return $this->empFirstName;
}
function getEmpNickName() {
return $this->empNickName;
}
function getEmpMiddleName() {
return $this->empMiddleName;
}
//personal
function getEmpNICNo() {
return $this->empNICNo;
}
function getEmpMarital() {
return $this->empMarital;
}
function getEmpDOB() {
return $this->empDOB;
}
function getEmpSINNo() {
return $this->empSINNo;
}
function getEmpGender() {
return $this->empGender;
}
function getEmpSSNNo() {
return $this->empSSNNo;
}
function getEmpNation() {
return $this->empNation;
}
function getEmpOthID() {
return $this->empOthID;
}
function getEmpDriLicNo() {
return $this->empDriLicNo;
}
function getEmpDriLicExpDat() {
return $this->empDriLicExpDat;
}
function getEmpMilitary() {
return $this->empMilitary;
}
function getEmpsmoker() {
return $this->smoker;
}
function getEmpEthnicRace() {
return $this->ethnicRace;
}
//job info
function getEmpJobTitle() {
return $this->empJobTitle;
}
function getEmpStatus() {
return $this->empStatus;
}
function getEmpEEOCat() {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -