//export enum Gender { // none = 0, // Male = 1, // Female = 2, // Other = 3 //} //export enum EnumMaritalStatus { // None = 0, // Married = 1, // UnMarried = 2, // Divorced = 3, // Widow = 4 //} //################# // DO NOT USE THIS FILE //################# //export enum BloodGroup { // None = 0, // APos = 1, // ANeg = 2, // BPos = 3, // BNeg = 4, // OPos = 5, // ONeg = 6, // ABPos = 7, // ABNeg = 8, // NA = 9 //} <<<<<<< .mine var EnumProfileStatus; (function (EnumProfileStatus) { EnumProfileStatus[EnumProfileStatus["inserted_By_Employee"] = 0] = "inserted_By_Employee"; EnumProfileStatus[EnumProfileStatus["approve"] = 1] = "approve"; EnumProfileStatus[EnumProfileStatus["edit_By_Employee"] = 2] = "edit_By_Employee"; EnumProfileStatus[EnumProfileStatus["edit_By_Admin"] = 3] = "edit_By_Admin"; EnumProfileStatus[EnumProfileStatus["delete_By_Employee"] = 4] = "delete_By_Employee"; EnumProfileStatus[EnumProfileStatus["delete_By_Admin"] = 5] = "delete_By_Admin"; })(EnumProfileStatus = exports.EnumProfileStatus || (exports.EnumProfileStatus = {})); var EnumEmployeeType; (function (EnumEmployeeType) { EnumEmployeeType[EnumEmployeeType["Regardless"] = 0] = "Regardless"; EnumEmployeeType[EnumEmployeeType["Salary"] = 1] = "Salary"; EnumEmployeeType[EnumEmployeeType["Wages"] = 2] = "Wages"; })(EnumEmployeeType = exports.EnumEmployeeType || (exports.EnumEmployeeType = {})); var EnumSearchFrom; (function (EnumSearchFrom) { EnumSearchFrom[EnumSearchFrom["Employee"] = 1] = "Employee"; EnumSearchFrom[EnumSearchFrom["Salary"] = 2] = "Salary"; EnumSearchFrom[EnumSearchFrom["Bonus"] = 3] = "Bonus"; EnumSearchFrom[EnumSearchFrom["OutSidePayroll"] = 4] = "OutSidePayroll"; EnumSearchFrom[EnumSearchFrom["PFTran"] = 5] = "PFTran"; EnumSearchFrom[EnumSearchFrom["OverTime"] = 6] = "OverTime"; EnumSearchFrom[EnumSearchFrom["Loan"] = 7] = "Loan"; EnumSearchFrom[EnumSearchFrom["IT"] = 8] = "IT"; EnumSearchFrom[EnumSearchFrom["Attendance"] = 9] = "Attendance"; EnumSearchFrom[EnumSearchFrom["WorkPlanGroup"] = 10] = "WorkPlanGroup"; })(EnumSearchFrom = exports.EnumSearchFrom || (exports.EnumSearchFrom = {})); var EnumSearchParameter; (function (EnumSearchParameter) { EnumSearchParameter[EnumSearchParameter["FromDate"] = 1] = "FromDate"; EnumSearchParameter[EnumSearchParameter["ToDate"] = 2] = "ToDate"; EnumSearchParameter[EnumSearchParameter["CategoryID"] = 5] = "CategoryID"; EnumSearchParameter[EnumSearchParameter["DesignationID"] = 6] = "DesignationID"; EnumSearchParameter[EnumSearchParameter["GradeID"] = 7] = "GradeID"; EnumSearchParameter[EnumSearchParameter["ReligionID"] = 8] = "ReligionID"; EnumSearchParameter[EnumSearchParameter["DepartmentID"] = 9] = "DepartmentID"; EnumSearchParameter[EnumSearchParameter["BranchID"] = 10] = "BranchID"; EnumSearchParameter[EnumSearchParameter["Name"] = 11] = "Name"; EnumSearchParameter[EnumSearchParameter["FromEmployeeNO"] = 12] = "FromEmployeeNO"; EnumSearchParameter[EnumSearchParameter["ToEmployeeNO"] = 13] = "ToEmployeeNO"; EnumSearchParameter[EnumSearchParameter["Status"] = 14] = "Status"; EnumSearchParameter[EnumSearchParameter["Posted"] = 15] = "Posted"; EnumSearchParameter[EnumSearchParameter["Confirm"] = 16] = "Confirm"; EnumSearchParameter[EnumSearchParameter["OTEligible"] = 17] = "OTEligible"; EnumSearchParameter[EnumSearchParameter["BonusId"] = 18] = "BonusId"; EnumSearchParameter[EnumSearchParameter["Gender"] = 19] = "Gender"; EnumSearchParameter[EnumSearchParameter["JoiningDate"] = 22] = "JoiningDate"; EnumSearchParameter[EnumSearchParameter["FinalizedSalary"] = 24] = "FinalizedSalary"; EnumSearchParameter[EnumSearchParameter["SalaryBarchID"] = 25] = "SalaryBarchID"; EnumSearchParameter[EnumSearchParameter["OPIID"] = 26] = "OPIID"; EnumSearchParameter[EnumSearchParameter["Expatriate"] = 27] = "Expatriate"; EnumSearchParameter[EnumSearchParameter["TermID"] = 28] = "TermID"; EnumSearchParameter[EnumSearchParameter["BankID"] = 29] = "BankID"; EnumSearchParameter[EnumSearchParameter["PFMember"] = 30] = "PFMember"; EnumSearchParameter[EnumSearchParameter["AssingedAccCard"] = 31] = "AssingedAccCard"; EnumSearchParameter[EnumSearchParameter["LocationID"] = 32] = "LocationID"; EnumSearchParameter[EnumSearchParameter["GradeSegmentID"] = 33] = "GradeSegmentID"; EnumSearchParameter[EnumSearchParameter["CostCenterID"] = 34] = "CostCenterID"; EnumSearchParameter[EnumSearchParameter["PayrollTypeID"] = 35] = "PayrollTypeID"; EnumSearchParameter[EnumSearchParameter["EmployeeNo"] = 36] = "EmployeeNo"; EnumSearchParameter[EnumSearchParameter["CompanyID"] = 37] = "CompanyID"; EnumSearchParameter[EnumSearchParameter["TrainingTypeID"] = 38] = "TrainingTypeID"; EnumSearchParameter[EnumSearchParameter["TaxParameterID"] = 39] = "TaxParameterID"; EnumSearchParameter[EnumSearchParameter["ComplaintID"] = 40] = "ComplaintID"; EnumSearchParameter[EnumSearchParameter["PunishmentID"] = 41] = "PunishmentID"; EnumSearchParameter[EnumSearchParameter["SkillID"] = 42] = "SkillID"; EnumSearchParameter[EnumSearchParameter["BonusProcessID"] = 43] = "BonusProcessID"; EnumSearchParameter[EnumSearchParameter["ReportID"] = 44] = "ReportID"; EnumSearchParameter[EnumSearchParameter["ProductionBonusSetupID"] = 45] = "ProductionBonusSetupID"; EnumSearchParameter[EnumSearchParameter["NationalID"] = 46] = "NationalID"; EnumSearchParameter[EnumSearchParameter["IA"] = 47] = "IA"; EnumSearchParameter[EnumSearchParameter["WorkPlanGroupID"] = 48] = "WorkPlanGroupID"; EnumSearchParameter[EnumSearchParameter["CEOTier"] = 49] = "CEOTier"; })(EnumSearchParameter = exports.EnumSearchParameter || (exports.EnumSearchParameter = {})); var EnumChronology; (function (EnumChronology) { EnumChronology[EnumChronology["NotNeeded"] = 1] = "NotNeeded"; EnumChronology[EnumChronology["Month"] = 2] = "Month"; EnumChronology[EnumChronology["MonthRange"] = 3] = "MonthRange"; EnumChronology[EnumChronology["Date"] = 4] = "Date"; EnumChronology[EnumChronology["DateRange"] = 5] = "DateRange"; EnumChronology[EnumChronology["Year"] = 6] = "Year"; })(EnumChronology = exports.EnumChronology || (exports.EnumChronology = {})); var EnumSearchObjDataType; (function (EnumSearchObjDataType) { EnumSearchObjDataType[EnumSearchObjDataType["String"] = 1] = "String"; EnumSearchObjDataType[EnumSearchObjDataType["Number"] = 2] = "Number"; EnumSearchObjDataType[EnumSearchObjDataType["Date"] = 3] = "Date"; EnumSearchObjDataType[EnumSearchObjDataType["DateWithTime"] = 4] = "DateWithTime"; EnumSearchObjDataType[EnumSearchObjDataType["Object"] = 5] = "Object"; EnumSearchObjDataType[EnumSearchObjDataType["boolean"] = 6] = "boolean"; })(EnumSearchObjDataType = exports.EnumSearchObjDataType || (exports.EnumSearchObjDataType = {})); var EnumSQLOperator; (function (EnumSQLOperator) { EnumSQLOperator[EnumSQLOperator["None"] = 0] = "None"; EnumSQLOperator[EnumSQLOperator["EqualTo"] = 1] = "EqualTo"; EnumSQLOperator[EnumSQLOperator["NotEqualTo"] = 2] = "NotEqualTo"; EnumSQLOperator[EnumSQLOperator["GraterThan"] = 3] = "GraterThan"; EnumSQLOperator[EnumSQLOperator["SmallerThan"] = 4] = "SmallerThan"; EnumSQLOperator[EnumSQLOperator["Between"] = 5] = "Between"; EnumSQLOperator[EnumSQLOperator["NotBetween"] = 6] = "NotBetween"; EnumSQLOperator[EnumSQLOperator["In"] = 7] = "In"; EnumSQLOperator[EnumSQLOperator["NotIn"] = 8] = "NotIn"; EnumSQLOperator[EnumSQLOperator["Like"] = 9] = "Like"; EnumSQLOperator[EnumSQLOperator["Null"] = 10] = "Null"; EnumSQLOperator[EnumSQLOperator["NotNull"] = 11] = "NotNull"; })(EnumSQLOperator = exports.EnumSQLOperator || (exports.EnumSQLOperator = {})); var EnumPeriodicity; (function (EnumPeriodicity) { EnumPeriodicity[EnumPeriodicity["Monthly"] = 1] = "Monthly"; EnumPeriodicity[EnumPeriodicity["OneOff"] = 2] = "OneOff"; EnumPeriodicity[EnumPeriodicity["RegardLess"] = 3] = "RegardLess"; EnumPeriodicity[EnumPeriodicity["Schedule"] = 4] = "Schedule"; EnumPeriodicity[EnumPeriodicity["Periodic"] = 5] = "Periodic"; })(EnumPeriodicity = exports.EnumPeriodicity || (exports.EnumPeriodicity = {})); var EnumEntitleType; (function (EnumEntitleType) { EnumEntitleType[EnumEntitleType["Regardless"] = 0] = "Regardless"; EnumEntitleType[EnumEntitleType["Grade"] = 1] = "Grade"; EnumEntitleType[EnumEntitleType["Individual"] = 2] = "Individual"; })(EnumEntitleType = exports.EnumEntitleType || (exports.EnumEntitleType = {})); var EnumStatus; (function (EnumStatus) { EnumStatus[EnumStatus["Regardless"] = 0] = "Regardless"; EnumStatus[EnumStatus["Active"] = 1] = "Active"; EnumStatus[EnumStatus["Inactive"] = 2] = "Inactive"; })(EnumStatus = exports.EnumStatus || (exports.EnumStatus = {})); var EnumGender; (function (EnumGender) { EnumGender[EnumGender["None"] = 0] = "None"; EnumGender[EnumGender["Male"] = 1] = "Male"; EnumGender[EnumGender["Female"] = 2] = "Female"; EnumGender[EnumGender["Other"] = 3] = "Other"; })(EnumGender = exports.EnumGender || (exports.EnumGender = {})); var EnumAllowOrDeduct; (function (EnumAllowOrDeduct) { EnumAllowOrDeduct[EnumAllowOrDeduct["Allowance"] = 1] = "Allowance"; EnumAllowOrDeduct[EnumAllowOrDeduct["Deduction"] = 2] = "Deduction"; })(EnumAllowOrDeduct = exports.EnumAllowOrDeduct || (exports.EnumAllowOrDeduct = {})); var EnumLeaveEntryType; (function (EnumLeaveEntryType) { EnumLeaveEntryType[EnumLeaveEntryType["Normal"] = 1] = "Normal"; EnumLeaveEntryType[EnumLeaveEntryType["PaidLeave"] = 2] = "PaidLeave"; })(EnumLeaveEntryType = exports.EnumLeaveEntryType || (exports.EnumLeaveEntryType = {})); var EnumExtension = /** @class */ (function () { function EnumExtension() { } EnumExtension.getNamesAndValues = function (e) { return EnumExtension.getNames(e).map(function (n) { return ({ name: n.replace(/_/g, ' '), value: e[n] }); }); }; EnumExtension.getName = function (e, val) { if (EnumExtension.getNamesAndValues(e).filter(function (c) { return c.value == val; }) && EnumExtension.getNamesAndValues(e).filter(function (c) { return c.value == val; }).length > 0) { return EnumExtension.getNamesAndValues(e).filter(function (c) { return c.value == val; })[0].name; } return ''; }; EnumExtension.getNames = function (e) { return EnumExtension.getObjValues(e).filter(function (v) { return typeof v === 'string' && v.toLowerCase() !== 'none'; }); }; EnumExtension.getValues = function (e) { return EnumExtension.getObjValues(e).filter(function (v) { return typeof v === 'number'; }); }; EnumExtension.getObjValues = function (e) { return Object.keys(e).map(function (k) { return e[k]; }); }; return EnumExtension; }()); exports.EnumExtension = EnumExtension; ||||||| .r363 var EnumProfileStatus; (function (EnumProfileStatus) { EnumProfileStatus[EnumProfileStatus["inserted_By_Employee"] = 0] = "inserted_By_Employee"; EnumProfileStatus[EnumProfileStatus["approve"] = 1] = "approve"; EnumProfileStatus[EnumProfileStatus["edit_By_Employee"] = 2] = "edit_By_Employee"; EnumProfileStatus[EnumProfileStatus["edit_By_Admin"] = 3] = "edit_By_Admin"; EnumProfileStatus[EnumProfileStatus["delete_By_Employee"] = 4] = "delete_By_Employee"; EnumProfileStatus[EnumProfileStatus["delete_By_Admin"] = 5] = "delete_By_Admin"; })(EnumProfileStatus = exports.EnumProfileStatus || (exports.EnumProfileStatus = {})); var EnumEmployeeType; (function (EnumEmployeeType) { EnumEmployeeType[EnumEmployeeType["Regardless"] = 0] = "Regardless"; EnumEmployeeType[EnumEmployeeType["Salary"] = 1] = "Salary"; EnumEmployeeType[EnumEmployeeType["Wages"] = 2] = "Wages"; })(EnumEmployeeType = exports.EnumEmployeeType || (exports.EnumEmployeeType = {})); var EnumSearchFrom; (function (EnumSearchFrom) { EnumSearchFrom[EnumSearchFrom["Employee"] = 1] = "Employee"; EnumSearchFrom[EnumSearchFrom["Salary"] = 2] = "Salary"; EnumSearchFrom[EnumSearchFrom["Bonus"] = 3] = "Bonus"; EnumSearchFrom[EnumSearchFrom["OutSidePayroll"] = 4] = "OutSidePayroll"; EnumSearchFrom[EnumSearchFrom["PFTran"] = 5] = "PFTran"; EnumSearchFrom[EnumSearchFrom["OverTime"] = 6] = "OverTime"; EnumSearchFrom[EnumSearchFrom["Loan"] = 7] = "Loan"; EnumSearchFrom[EnumSearchFrom["IT"] = 8] = "IT"; EnumSearchFrom[EnumSearchFrom["Attendance"] = 9] = "Attendance"; EnumSearchFrom[EnumSearchFrom["WorkPlanGroup"] = 10] = "WorkPlanGroup"; })(EnumSearchFrom = exports.EnumSearchFrom || (exports.EnumSearchFrom = {})); var EnumSearchParameter; (function (EnumSearchParameter) { EnumSearchParameter[EnumSearchParameter["FromDate"] = 1] = "FromDate"; EnumSearchParameter[EnumSearchParameter["ToDate"] = 2] = "ToDate"; EnumSearchParameter[EnumSearchParameter["CategoryID"] = 5] = "CategoryID"; EnumSearchParameter[EnumSearchParameter["DesignationID"] = 6] = "DesignationID"; EnumSearchParameter[EnumSearchParameter["GradeID"] = 7] = "GradeID"; EnumSearchParameter[EnumSearchParameter["ReligionID"] = 8] = "ReligionID"; EnumSearchParameter[EnumSearchParameter["DepartmentID"] = 9] = "DepartmentID"; EnumSearchParameter[EnumSearchParameter["BranchID"] = 10] = "BranchID"; EnumSearchParameter[EnumSearchParameter["Name"] = 11] = "Name"; EnumSearchParameter[EnumSearchParameter["FromEmployeeNO"] = 12] = "FromEmployeeNO"; EnumSearchParameter[EnumSearchParameter["ToEmployeeNO"] = 13] = "ToEmployeeNO"; EnumSearchParameter[EnumSearchParameter["Status"] = 14] = "Status"; EnumSearchParameter[EnumSearchParameter["Posted"] = 15] = "Posted"; EnumSearchParameter[EnumSearchParameter["Confirm"] = 16] = "Confirm"; EnumSearchParameter[EnumSearchParameter["OTEligible"] = 17] = "OTEligible"; EnumSearchParameter[EnumSearchParameter["BonusId"] = 18] = "BonusId"; EnumSearchParameter[EnumSearchParameter["Gender"] = 19] = "Gender"; EnumSearchParameter[EnumSearchParameter["JoiningDate"] = 22] = "JoiningDate"; EnumSearchParameter[EnumSearchParameter["FinalizedSalary"] = 24] = "FinalizedSalary"; EnumSearchParameter[EnumSearchParameter["SalaryBarchID"] = 25] = "SalaryBarchID"; EnumSearchParameter[EnumSearchParameter["OPIID"] = 26] = "OPIID"; EnumSearchParameter[EnumSearchParameter["Expatriate"] = 27] = "Expatriate"; EnumSearchParameter[EnumSearchParameter["TermID"] = 28] = "TermID"; EnumSearchParameter[EnumSearchParameter["BankID"] = 29] = "BankID"; EnumSearchParameter[EnumSearchParameter["PFMember"] = 30] = "PFMember"; EnumSearchParameter[EnumSearchParameter["AssingedAccCard"] = 31] = "AssingedAccCard"; EnumSearchParameter[EnumSearchParameter["LocationID"] = 32] = "LocationID"; EnumSearchParameter[EnumSearchParameter["GradeSegmentID"] = 33] = "GradeSegmentID"; EnumSearchParameter[EnumSearchParameter["CostCenterID"] = 34] = "CostCenterID"; EnumSearchParameter[EnumSearchParameter["PayrollTypeID"] = 35] = "PayrollTypeID"; EnumSearchParameter[EnumSearchParameter["EmployeeNo"] = 36] = "EmployeeNo"; EnumSearchParameter[EnumSearchParameter["CompanyID"] = 37] = "CompanyID"; EnumSearchParameter[EnumSearchParameter["TrainingTypeID"] = 38] = "TrainingTypeID"; EnumSearchParameter[EnumSearchParameter["TaxParameterID"] = 39] = "TaxParameterID"; EnumSearchParameter[EnumSearchParameter["ComplaintID"] = 40] = "ComplaintID"; EnumSearchParameter[EnumSearchParameter["PunishmentID"] = 41] = "PunishmentID"; EnumSearchParameter[EnumSearchParameter["SkillID"] = 42] = "SkillID"; EnumSearchParameter[EnumSearchParameter["BonusProcessID"] = 43] = "BonusProcessID"; EnumSearchParameter[EnumSearchParameter["ReportID"] = 44] = "ReportID"; EnumSearchParameter[EnumSearchParameter["ProductionBonusSetupID"] = 45] = "ProductionBonusSetupID"; EnumSearchParameter[EnumSearchParameter["NationalID"] = 46] = "NationalID"; EnumSearchParameter[EnumSearchParameter["IA"] = 47] = "IA"; EnumSearchParameter[EnumSearchParameter["WorkPlanGroupID"] = 48] = "WorkPlanGroupID"; EnumSearchParameter[EnumSearchParameter["CEOTier"] = 49] = "CEOTier"; })(EnumSearchParameter = exports.EnumSearchParameter || (exports.EnumSearchParameter = {})); var EnumChronology; (function (EnumChronology) { EnumChronology[EnumChronology["NotNeeded"] = 1] = "NotNeeded"; EnumChronology[EnumChronology["Month"] = 2] = "Month"; EnumChronology[EnumChronology["MonthRange"] = 3] = "MonthRange"; EnumChronology[EnumChronology["Date"] = 4] = "Date"; EnumChronology[EnumChronology["DateRange"] = 5] = "DateRange"; EnumChronology[EnumChronology["Year"] = 6] = "Year"; })(EnumChronology = exports.EnumChronology || (exports.EnumChronology = {})); var EnumSearchObjDataType; (function (EnumSearchObjDataType) { EnumSearchObjDataType[EnumSearchObjDataType["String"] = 1] = "String"; EnumSearchObjDataType[EnumSearchObjDataType["Number"] = 2] = "Number"; EnumSearchObjDataType[EnumSearchObjDataType["Date"] = 3] = "Date"; EnumSearchObjDataType[EnumSearchObjDataType["DateWithTime"] = 4] = "DateWithTime"; EnumSearchObjDataType[EnumSearchObjDataType["Object"] = 5] = "Object"; EnumSearchObjDataType[EnumSearchObjDataType["boolean"] = 6] = "boolean"; })(EnumSearchObjDataType = exports.EnumSearchObjDataType || (exports.EnumSearchObjDataType = {})); var EnumSQLOperator; (function (EnumSQLOperator) { EnumSQLOperator[EnumSQLOperator["None"] = 0] = "None"; EnumSQLOperator[EnumSQLOperator["EqualTo"] = 1] = "EqualTo"; EnumSQLOperator[EnumSQLOperator["NotEqualTo"] = 2] = "NotEqualTo"; EnumSQLOperator[EnumSQLOperator["GraterThan"] = 3] = "GraterThan"; EnumSQLOperator[EnumSQLOperator["SmallerThan"] = 4] = "SmallerThan"; EnumSQLOperator[EnumSQLOperator["Between"] = 5] = "Between"; EnumSQLOperator[EnumSQLOperator["NotBetween"] = 6] = "NotBetween"; EnumSQLOperator[EnumSQLOperator["In"] = 7] = "In"; EnumSQLOperator[EnumSQLOperator["NotIn"] = 8] = "NotIn"; EnumSQLOperator[EnumSQLOperator["Like"] = 9] = "Like"; EnumSQLOperator[EnumSQLOperator["Null"] = 10] = "Null"; EnumSQLOperator[EnumSQLOperator["NotNull"] = 11] = "NotNull"; })(EnumSQLOperator = exports.EnumSQLOperator || (exports.EnumSQLOperator = {})); var EnumPeriodicity; (function (EnumPeriodicity) { EnumPeriodicity[EnumPeriodicity["Monthly"] = 1] = "Monthly"; EnumPeriodicity[EnumPeriodicity["OneOff"] = 2] = "OneOff"; EnumPeriodicity[EnumPeriodicity["RegardLess"] = 3] = "RegardLess"; EnumPeriodicity[EnumPeriodicity["Schedule"] = 4] = "Schedule"; EnumPeriodicity[EnumPeriodicity["Periodic"] = 5] = "Periodic"; })(EnumPeriodicity = exports.EnumPeriodicity || (exports.EnumPeriodicity = {})); var EnumEntitleType; (function (EnumEntitleType) { EnumEntitleType[EnumEntitleType["Regardless"] = 0] = "Regardless"; EnumEntitleType[EnumEntitleType["Grade"] = 1] = "Grade"; EnumEntitleType[EnumEntitleType["Individual"] = 2] = "Individual"; })(EnumEntitleType = exports.EnumEntitleType || (exports.EnumEntitleType = {})); var EnumStatus; (function (EnumStatus) { EnumStatus[EnumStatus["Regardless"] = 0] = "Regardless"; EnumStatus[EnumStatus["Active"] = 1] = "Active"; EnumStatus[EnumStatus["Inactive"] = 2] = "Inactive"; })(EnumStatus = exports.EnumStatus || (exports.EnumStatus = {})); var EnumGender; (function (EnumGender) { EnumGender[EnumGender["None"] = 0] = "None"; EnumGender[EnumGender["Male"] = 1] = "Male"; EnumGender[EnumGender["Female"] = 2] = "Female"; EnumGender[EnumGender["Other"] = 3] = "Other"; })(EnumGender = exports.EnumGender || (exports.EnumGender = {})); var EnumAllowOrDeduct; (function (EnumAllowOrDeduct) { EnumAllowOrDeduct[EnumAllowOrDeduct["Allowance"] = 1] = "Allowance"; EnumAllowOrDeduct[EnumAllowOrDeduct["Deduction"] = 2] = "Deduction"; })(EnumAllowOrDeduct = exports.EnumAllowOrDeduct || (exports.EnumAllowOrDeduct = {})); var EnumExtension = /** @class */ (function () { function EnumExtension() { } EnumExtension.getNamesAndValues = function (e) { return EnumExtension.getNames(e).map(function (n) { return ({ name: n.replace(/_/g, ' '), value: e[n] }); }); }; EnumExtension.getName = function (e, val) { if (EnumExtension.getNamesAndValues(e).filter(function (c) { return c.value == val; }) && EnumExtension.getNamesAndValues(e).filter(function (c) { return c.value == val; }).length > 0) { return EnumExtension.getNamesAndValues(e).filter(function (c) { return c.value == val; })[0].name; } return ''; }; EnumExtension.getNames = function (e) { return EnumExtension.getObjValues(e).filter(function (v) { return typeof v === 'string' && v.toLowerCase() !== 'none'; }); }; EnumExtension.getValues = function (e) { return EnumExtension.getObjValues(e).filter(function (v) { return typeof v === 'number'; }); }; EnumExtension.getObjValues = function (e) { return Object.keys(e).map(function (k) { return e[k]; }); }; return EnumExtension; }()); exports.EnumExtension = EnumExtension; ======= ////export enum EmployeeType { //// Permanent = 'Permanent', //// Temporary = 'Temporary' ////} ////export enum Grade { //// Grade1 = 'Grade1', //// Grade2 = 'Grade2' ////} ////export enum Department { //// Department1 = 'Department1', //// Department2 = 'Department2' ////} //export enum EnumProfileStatus { // inserted_By_Employee = 0, // approve = 1, // edit_By_Employee = 2, // edit_By_Admin = 3, // delete_By_Employee = 4, // delete_By_Admin = 5 //} //export enum EnumEmployeeType { // Regardless, // Salary, // Wages //} //export enum EnumSearchFrom { // Employee = 1, // Salary = 2, // Bonus = 3, // OutSidePayroll = 4, // PFTran = 5, // OverTime = 6, // Loan = 7, // IT = 8, // Attendance = 9, // WorkPlanGroup = 10 //} //export enum EnumSearchParameter { // FromDate = 1, // ToDate = 2, // CategoryID = 5, // DesignationID = 6, // GradeID = 7, // ReligionID = 8, // DepartmentID = 9, // BranchID = 10, // Name = 11, // FromEmployeeNO = 12, // ToEmployeeNO = 13, // Status = 14, // Posted = 15, // Confirm = 16, // OTEligible = 17, // BonusId = 18, // Gender = 19, // JoiningDate = 22, // FinalizedSalary = 24, // SalaryBarchID = 25, // OPIID = 26, // Expatriate = 27, // TermID = 28, // BankID = 29, // PFMember = 30, // AssingedAccCard = 31, // LocationID = 32, // GradeSegmentID = 33, // CostCenterID = 34, // PayrollTypeID = 35, // EmployeeNo = 36, // CompanyID = 37, // TrainingTypeID = 38, // TaxParameterID = 39, // ComplaintID = 40, // PunishmentID = 41, // SkillID = 42, // BonusProcessID = 43, // ReportID = 44, // ProductionBonusSetupID = 45, // NationalID = 46, // IA = 47, // WorkPlanGroupID = 48, // CEOTier = 49 //} //export enum EnumChronology { // NotNeeded = 1, // Month = 2, // MonthRange = 3, // Date = 4, // DateRange = 5, // Year = 6 //} //export enum EnumSearchObjDataType { // String = 1, // Number = 2, // Date = 3, // DateWithTime = 4, // Object = 5, // boolean = 6 //} //export enum EnumSQLOperator { // None = 0, // EqualTo = 1, // NotEqualTo = 2, // GraterThan = 3, // SmallerThan = 4, // Between = 5, // NotBetween = 6, // In = 7, // NotIn = 8, // Like = 9, // Null = 10, // NotNull = 11 //} //export enum EnumPeriodicity { // Monthly = 1, // OneOff = 2, // RegardLess = 3, // Schedule = 4, // Periodic = 5 //} //export enum EnumEntitleType { // Regardless = 0, // Grade = 1, // Individual = 2 //} //export enum EnumStatus { // Regardless = 0, // Active = 1, // Inactive = 2, //} //export enum EnumGender { // None = 0, // Male = 1, // Female = 2, // Other = 3 //} //export enum EnumAllowOrDeduct { // Allowance = 1, // Deduction = 2, //} //export enum EnumLeaveEntryType { // none, // normal, // paidLeave, //} ////export class EnumExtension { //// static getNamesAndValues(e: any) { //// return EnumExtension.getNames(e).map(n => ({ name: n.replace(/_/g, ' '), value: e[n] as T })); //// } //// static getName(e: any, val: number): string { //// if (EnumExtension.getNamesAndValues(e).filter(c => c.value == val) && //// EnumExtension.getNamesAndValues(e).filter(c => c.value == val).length > 0) { //// return EnumExtension.getNamesAndValues(e).filter(c => c.value == val)[0].name; //// } //// return ''; //// } //// static getNames(e: any) { //// return EnumExtension.getObjValues(e).filter(v => typeof v === 'string' && v.toLowerCase() !== 'none') as string[]; //// } //// static getValues(e: any) { //// return EnumExtension.getObjValues(e).filter(v => typeof v === 'number') as T[]; //// } //// public static getObjValues(e: any): (number | string)[] { //// return Object.keys(e).map(k => e[k]); //// } ////} >>>>>>> .r454 //# sourceMappingURL=enums.js.map