110 lines
3.8 KiB
JavaScript
110 lines
3.8 KiB
JavaScript
import { EnumBaseStation, EnumEmployeeStatus, EnumGender, EnumMaritalStatus, EnumPaymentMode, EnumPersonType, EnumPFMembershipType, EnumProfileStatus, EnumRole, EnumTaxCircle } from '../enums';
|
|
import { SearchEmployee } from './searchEmployee';
|
|
// do not change this class without discuss with shamim
|
|
export class Employee {
|
|
// do not change this class without discuss with shamim
|
|
constructor() {
|
|
this.lineManager = '';
|
|
this.globalID = '';
|
|
this.employeeNo = '';
|
|
this.name = '';
|
|
this.gender = EnumGender.Regardless;
|
|
this.birthDate = new Date();
|
|
this.joiningDate = new Date();
|
|
this.retirementDate = new Date();
|
|
this.sBU = '';
|
|
this.emailAddress = '';
|
|
this.mobileNo = '';
|
|
this.tinNo = '';
|
|
this.categoryID = 0;
|
|
this.categoryName = '';
|
|
this.foreignExPat = false;
|
|
this.personType = EnumPersonType.None;
|
|
this.profileStatus = EnumProfileStatus.Approve;
|
|
this.taxCircle = EnumTaxCircle.CityCorporation;
|
|
this.isConfirmed = false;
|
|
this.endOfContractDate = null;
|
|
this.status = EnumEmployeeStatus.Live;
|
|
this.statusName = '';
|
|
this.isShownInTaxSheet = false;
|
|
this.pfMemberType = EnumPFMembershipType.NotYetLive;
|
|
this.pfPercentage = 0;
|
|
this.branchID = null;
|
|
this.accountNo = '';
|
|
this.outPayBranchID = null;
|
|
this.outPayAccountNo = '';
|
|
this.departmentName = '';
|
|
this.departmentID = null;
|
|
this.locationName = '';
|
|
this.locationID = null;
|
|
this.religionName = '';
|
|
this.religionID = undefined;
|
|
this.maritalStatus = EnumMaritalStatus.None;
|
|
this.designationName = '';
|
|
this.designationID = null;
|
|
this.gradeName = '';
|
|
this.gradeID = null;
|
|
this.basicSalary = 0;
|
|
this.currentHistoryID = null;
|
|
this.prevBasic = 0;
|
|
this.paymentMode = EnumPaymentMode.Cash_Payment;
|
|
this.outPayPaymentMode = EnumPaymentMode.Cash_Payment;
|
|
this.fatherName = '';
|
|
this.isEligibleOT = false;
|
|
this.descriptionText = '';
|
|
this.payrollTypeID = 0;
|
|
this.grossSalary = 0;
|
|
this.taxAmount = 0;
|
|
this.lineManagerID = null;
|
|
this.secondLineManagerID = null;
|
|
this.lineManagerNo = '';
|
|
this.positionID = null;
|
|
this.positionName = '';
|
|
this.costcenterName = '';
|
|
this.role = EnumRole.None;
|
|
this.geId = '';
|
|
this.extraField1 = '';
|
|
this.extraField2 = EnumBaseStation.None;
|
|
this.extraField3 = '';
|
|
this.extraField4 = '';
|
|
this.extraField5 = '';
|
|
this.vendorCode = '';
|
|
this.firstName = '';
|
|
this.lastName = '';
|
|
this.crgId = undefined;
|
|
this.profileCompletionPercent = undefined;
|
|
this.insuranceId = '';
|
|
this.inclusionDate = null;
|
|
this.isFixedLocation = false;
|
|
this.lineManagerDeg = '';
|
|
}
|
|
getSearchEmployee() {
|
|
var emp = new SearchEmployee();
|
|
emp.employeeID = this.id;
|
|
emp.name = this.name;
|
|
emp.employeeNo = this.employeeNo;
|
|
emp.departmentID = this.departmentID;
|
|
emp.locationID = this.locationID;
|
|
emp.designationID = this.designationID;
|
|
emp.gradeID = this.gradeID;
|
|
emp.email = this.emailAddress;
|
|
return emp;
|
|
}
|
|
getStatusString(empStatus) {
|
|
var str = "Live";
|
|
switch (empStatus) {
|
|
case EnumEmployeeStatus.Live:
|
|
str = "Live";
|
|
break;
|
|
case EnumEmployeeStatus.Suspend:
|
|
//case EnumEmployeeStatus.Withheld:
|
|
case EnumEmployeeStatus.IA:
|
|
case EnumEmployeeStatus.Discontinued:
|
|
str = "Discontinued";
|
|
break;
|
|
default:
|
|
}
|
|
return str;
|
|
}
|
|
}
|
|
//# sourceMappingURL=employee.js.map
|