Compare commits
8 Commits
v29.0.0.OS
...
alpha
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7dcc5fb58e | ||
|
|
d69d573e65 | ||
|
|
528191e8da | ||
|
|
07aea4cdf0 | ||
|
|
3eaf290a58 | ||
|
|
c276009bd8 | ||
|
|
ea93d4604c | ||
|
|
caf41de755 |
@@ -19,6 +19,9 @@ include APP_BASE_PATH.'modulejslibs.inc.php';
|
|||||||
<div class="tab-pane active" id="tabPageEmployeeFieldName">
|
<div class="tab-pane active" id="tabPageEmployeeFieldName">
|
||||||
<div id="EmployeeFieldName" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
<div id="EmployeeFieldName" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="EmployeeFieldNameForm" class="reviewBlock" data-content="Form" style="padding-left:5px;display:none;">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -28,20 +28,23 @@ include APP_BASE_PATH.'modulejslibs.inc.php';
|
|||||||
<div id="JobTitleForm"></div>
|
<div id="JobTitleForm"></div>
|
||||||
<div id="JobTitleFilterForm"></div>
|
<div id="JobTitleFilterForm"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="tabPagePayGrades">
|
<div class="tab-pane" id="tabPagePayGrades">
|
||||||
<div id="PayGradeTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
<div id="PayGradeTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
<div id="PayGradeForm"></div>
|
<div id="PayGradeForm"></div>
|
||||||
<div id="PayGradeFilterForm"></div>
|
<div id="PayGradeFilterForm"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="tabPageEmploymentStatus">
|
<div class="tab-pane" id="tabPageEmploymentStatus">
|
||||||
<div id="EmploymentStatusTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
<div id="EmploymentStatusTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
<div id="EmploymentStatusForm"></div>
|
<div id="EmploymentStatusForm"></div>
|
||||||
<div id="EmploymentStatusFilterForm"></div>
|
<div id="EmploymentStatusFilterForm"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="dataGroup"></div>
|
|
||||||
<?php
|
<?php
|
||||||
$moduleData = [
|
$moduleData = [
|
||||||
'user_level' => $user->user_level,
|
'user_level' => $user->user_level,
|
||||||
|
|||||||
@@ -4,12 +4,17 @@
|
|||||||
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Classes\PermissionManager;
|
||||||
|
use Loans\Common\Model\CompanyLoan;
|
||||||
|
use Loans\Common\Model\EmployeeCompanyLoan;
|
||||||
|
|
||||||
$moduleName = 'loans';
|
$moduleName = 'loans';
|
||||||
$moduleGroup = 'admin';
|
$moduleGroup = 'admin';
|
||||||
define('MODULE_PATH',dirname(__FILE__));
|
define('MODULE_PATH',dirname(__FILE__));
|
||||||
include APP_BASE_PATH.'header.php';
|
include APP_BASE_PATH.'header.php';
|
||||||
include APP_BASE_PATH.'modulejslibs.inc.php';
|
include APP_BASE_PATH.'modulejslibs.inc.php';
|
||||||
?><div class="span9">
|
?>
|
||||||
|
<div class="span9">
|
||||||
|
|
||||||
<ul class="nav nav-tabs" id="modTab" style="margin-bottom:0px;margin-left:5px;border-bottom: none;">
|
<ul class="nav nav-tabs" id="modTab" style="margin-bottom:0px;margin-left:5px;border-bottom: none;">
|
||||||
<li class="active"><a id="tabCompanyLoan" href="#tabPageCompanyLoan"><?=t('Loan Types')?></a></li>
|
<li class="active"><a id="tabCompanyLoan" href="#tabPageCompanyLoan"><?=t('Loan Types')?></a></li>
|
||||||
@@ -18,31 +23,32 @@ include APP_BASE_PATH.'modulejslibs.inc.php';
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="tabPageCompanyLoan">
|
<div class="tab-pane active" id="tabPageCompanyLoan">
|
||||||
<div id="CompanyLoan" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
<div id="CompanyLoanTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
|
<div id="CompanyLoanForm"></div>
|
||||||
</div>
|
<div id="CompanyLoanFilterForm"></div>
|
||||||
<div id="CompanyLoanForm" class="reviewBlock" data-content="Form" style="padding-left:5px;display:none;">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="tabPageEmployeeCompanyLoan">
|
<div class="tab-pane" id="tabPageEmployeeCompanyLoan">
|
||||||
<div id="EmployeeCompanyLoan" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
<div id="EmployeeCompanyLoanTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
|
<div id="EmployeeCompanyLoanForm"></div>
|
||||||
</div>
|
<div id="EmployeeCompanyLoanFilterForm"></div>
|
||||||
<div id="EmployeeCompanyLoanForm" class="reviewBlock" data-content="Form" style="padding-left:5px;display:none;">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$moduleData = [
|
||||||
|
'user_level' => $user->user_level,
|
||||||
|
'permissions' => [
|
||||||
|
'CompanyLoan' => PermissionManager::checkGeneralAccess(new CompanyLoan()),
|
||||||
|
'EmployeeCompanyLoan' => PermissionManager::checkGeneralAccess(new EmployeeCompanyLoan()),
|
||||||
|
]
|
||||||
|
];
|
||||||
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var modJsList = new Array();
|
initAdminLoan(<?=json_encode($moduleData)?>);
|
||||||
|
|
||||||
modJsList['tabCompanyLoan'] = new CompanyLoanAdapter('CompanyLoan','CompanyLoan');
|
|
||||||
modJsList['tabEmployeeCompanyLoan'] = new EmployeeCompanyLoanAdapter('EmployeeCompanyLoan','EmployeeCompanyLoan');
|
|
||||||
|
|
||||||
var modJs = modJsList['tabCompanyLoan'];
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php include APP_BASE_PATH.'footer.php';?>
|
<?php include APP_BASE_PATH.'footer.php';?>
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
use Classes\PermissionManager;
|
||||||
|
use Salary\Common\Model\SalaryComponentType;
|
||||||
|
use Salary\Common\Model\SalaryComponent;
|
||||||
|
use Salary\Common\Model\EmployeeSalary;
|
||||||
|
|
||||||
|
|
||||||
$moduleName = 'salary';
|
$moduleName = 'salary';
|
||||||
$moduleGroup = 'admin';
|
$moduleGroup = 'admin';
|
||||||
@@ -6,7 +11,7 @@ define('MODULE_PATH',dirname(__FILE__));
|
|||||||
include APP_BASE_PATH.'header.php';
|
include APP_BASE_PATH.'header.php';
|
||||||
include APP_BASE_PATH.'modulejslibs.inc.php';
|
include APP_BASE_PATH.'modulejslibs.inc.php';
|
||||||
|
|
||||||
$moduleBuilder = new \Classes\ModuleBuilder\ModuleBuilder();
|
/*$moduleBuilder = new \Classes\ModuleBuilder\ModuleBuilder();
|
||||||
|
|
||||||
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab(
|
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab(
|
||||||
'SalaryComponentType','SalaryComponentType','Salary Component Types','SalaryComponentTypeAdapter','','',true
|
'SalaryComponentType','SalaryComponentType','Salary Component Types','SalaryComponentTypeAdapter','','',true
|
||||||
@@ -21,4 +26,55 @@ $moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab(
|
|||||||
|
|
||||||
echo \Classes\UIManager::getInstance()->renderModule($moduleBuilder);
|
echo \Classes\UIManager::getInstance()->renderModule($moduleBuilder);
|
||||||
|
|
||||||
include APP_BASE_PATH.'footer.php';
|
include APP_BASE_PATH.'footer.php';*/
|
||||||
|
|
||||||
|
?><div class="span9">
|
||||||
|
|
||||||
|
<ul class="nav nav-tabs" id="modTab" style="margin-bottom:0px;margin-left:5px;border-bottom: none;">
|
||||||
|
<li class="active"><a id="tabSalaryComponentType" href="#tabSalaryComponentType"><?=t('Salary Component Types')?></a></li>
|
||||||
|
<li><a id="tabSalaryComponent" href="#tabPageSalaryComponent"><?=t('Salary Components')?></a></li>
|
||||||
|
<li><a id="tabEmployeeSalary" href="#tabPageEmployeeSalary"><?=t('Employee Salary Components')?></a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
<div class="tab-pane active" id="tabPageSalaryComponentType">
|
||||||
|
<div id="SalaryComponentTypeTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
|
<div id="SalaryComponentTypeForm"></div>
|
||||||
|
<div id="SalaryComponentTypeFilterForm"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-pane" id="tabPageSalaryComponent">
|
||||||
|
<div id="SalaryComponentTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
|
<div id="SalaryComponentForm"></div>
|
||||||
|
<div id="SalaryComponentFilterForm"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-pane" id="tabPageEmployeeSalary">
|
||||||
|
<div id="EmployeeSalaryTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
|
<div id="EmployeeSalaryForm"></div>
|
||||||
|
<div id="EmployeeSalaryFilterForm"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$moduleData = [
|
||||||
|
'user_level' => $user->user_level,
|
||||||
|
'permissions' => [
|
||||||
|
'SalaryComponentType' => PermissionManager::checkGeneralAccess(new SalaryComponentType()),
|
||||||
|
'SalaryComponent' => PermissionManager::checkGeneralAccess(new SalaryComponent()),
|
||||||
|
'EmployeeSalary' => PermissionManager::checkGeneralAccess(new EmployeeSalary()),
|
||||||
|
|
||||||
|
]
|
||||||
|
];
|
||||||
|
?>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
initAdminSalary(<?=json_encode($moduleData)?>);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<?php include APP_BASE_PATH.'footer.php';?>
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Classes\PermissionManager;
|
||||||
|
use Loans\Common\Model\EmployeeCompanyLoan;
|
||||||
|
|
||||||
$moduleName = 'loans';
|
$moduleName = 'loans';
|
||||||
$moduleGroup = 'modules';
|
$moduleGroup = 'modules';
|
||||||
define('MODULE_PATH',dirname(__FILE__));
|
define('MODULE_PATH',dirname(__FILE__));
|
||||||
@@ -17,26 +20,27 @@ include APP_BASE_PATH.'modulejslibs.inc.php';
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="tabPageEmployeeCompanyLoan">
|
<div class="tab-pane active" id="tabPageEmployeeCompanyLoan">
|
||||||
<div id="EmployeeCompanyLoan" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
|
||||||
|
|
||||||
</div>
|
<div id="EmployeeCompanyLoanTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
<div id="EmployeeCompanyLoanForm" class="reviewBlock" data-content="Form" style="padding-left:5px;display:none;">
|
<div id="EmployeeCompanyLoanForm"></div>
|
||||||
|
<div id="EmployeeCompanyLoanFilterForm"></div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$moduleData = [
|
||||||
|
'user_level' => $user->user_level,
|
||||||
|
'permissions' => [
|
||||||
|
'EmployeeCompanyLoan' => PermissionManager::checkGeneralAccess(new EmployeeCompanyLoan()),
|
||||||
|
]
|
||||||
|
];
|
||||||
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var modJsList = new Array();
|
initAdminLoan(<?=json_encode($moduleData)?>);
|
||||||
|
|
||||||
modJsList['tabEmployeeCompanyLoan'] = new EmployeeCompanyLoanAdapter('EmployeeCompanyLoan','EmployeeCompanyLoan');
|
|
||||||
modJsList['tabEmployeeCompanyLoan'].setShowAddNew(false);
|
|
||||||
modJsList['tabEmployeeCompanyLoan'].setShowSave(false);
|
|
||||||
modJsList['tabEmployeeCompanyLoan'].setShowDelete(false);
|
|
||||||
modJsList['tabEmployeeCompanyLoan'].setShowEdit(true);
|
|
||||||
|
|
||||||
var modJs = modJsList['tabEmployeeCompanyLoan'];
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php include APP_BASE_PATH.'footer.php';?>
|
<?php include APP_BASE_PATH.'footer.php';?>
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Classes\PermissionManager;
|
||||||
|
use Salary\Common\Model\EmployeeSalary;
|
||||||
|
|
||||||
$moduleName = 'salary';
|
$moduleName = 'salary';
|
||||||
$moduleGroup = 'modules';
|
$moduleGroup = 'modules';
|
||||||
define('MODULE_PATH',dirname(__FILE__));
|
define('MODULE_PATH',dirname(__FILE__));
|
||||||
@@ -17,32 +20,25 @@ include APP_BASE_PATH.'modulejslibs.inc.php';
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="tabPageEmployeeSalary">
|
<div class="tab-pane active" id="tabPageEmployeeSalary">
|
||||||
<div id="EmployeeSalary" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
<div id="EmployeeSalaryTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
||||||
|
<div id="EmployeeSalaryForm"></div>
|
||||||
</div>
|
<div id="EmployeeSalaryFilterForm"></div>
|
||||||
<div id="EmployeeSalaryForm" class="reviewBlock" data-content="Form" style="padding-left:5px;display:none;">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$moduleData = [
|
||||||
|
'user_level' => $user->user_level,
|
||||||
|
'permissions' => [
|
||||||
|
'EmployeeSalary' => PermissionManager::checkGeneralAccess(new EmployeeSalary()),
|
||||||
|
]
|
||||||
|
];
|
||||||
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var modJsList = new Array();
|
initAdminSalary(<?=json_encode($moduleData)?>);
|
||||||
|
|
||||||
modJsList['tabEmployeeSalary'] = new EmployeeSalaryAdapter('EmployeeSalary');
|
|
||||||
|
|
||||||
<?php if(isset($modulePermissions['perm']['Add Salary']) && $modulePermissions['perm']['Add Salary'] == "No"){?>
|
|
||||||
modJsList['tabEmployeeSalary'].setShowAddNew(false);
|
|
||||||
<?php }?>
|
|
||||||
<?php if(isset($modulePermissions['perm']['Delete Salary']) && $modulePermissions['perm']['Delete Salary'] == "No"){?>
|
|
||||||
modJsList['tabEmployeeSalary'].setShowDelete(false);
|
|
||||||
<?php }?>
|
|
||||||
<?php if(isset($modulePermissions['perm']['Edit Salary']) && $modulePermissions['perm']['Edit Salary'] == "No"){?>
|
|
||||||
modJsList['tabEmployeeSalary'].setShowEdit(false);
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
var modJs = modJsList['tabEmployeeSalary'];
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<?php include APP_BASE_PATH.'footer.php';?>
|
<?php include APP_BASE_PATH.'footer.php';?>
|
||||||
|
|||||||
22
release.md
22
release.md
@@ -1,5 +1,27 @@
|
|||||||
# Release Notes IceHrm Open Source
|
# Release Notes IceHrm Open Source
|
||||||
|
|
||||||
|
## Release note v29.0.0.OS
|
||||||
|
|
||||||
|
### 🧲 New features
|
||||||
|
|
||||||
|
* SAML support [https://icehrm.gitbook.io/icehrm/api-and-single-sign-on/sign-in-with-saml-okta](https://icehrm.gitbook.io/icehrm/api-and-single-sign-on/sign-in-with-saml-okta)
|
||||||
|
* Ability to control who can see employee documents
|
||||||
|
* New custom field module. With this module users can manage all the custom fields via a single module.
|
||||||
|
* Adding custom field support for company structure.
|
||||||
|
* UI improvements for client module.
|
||||||
|
* Introducing encrypted settings.
|
||||||
|
* Adding additional fields such as total time to employee time tracking report.
|
||||||
|
* Improvements to icehrm custom extension development [https://icehrm.gitbook.io/icehrm/developer-guide/creating-first-extension](https://icehrm.gitbook.io/icehrm/developer-guide/creating-first-extension)
|
||||||
|
|
||||||
|
### 🛡️ Security improvements
|
||||||
|
|
||||||
|
* More restrictive criteria for user passwords.
|
||||||
|
* Removing support for legacy API tokens. (if you are using the mobile app your users will need to re authorize)
|
||||||
|
* Removing unused custom field values.
|
||||||
|
|
||||||
|
### 🐛 Bug fixes
|
||||||
|
* Only relevant settings are displayed, under the `Other` tab on settings module
|
||||||
|
|
||||||
## Release note v28.2.0.OS
|
## Release note v28.2.0.OS
|
||||||
|
|
||||||
### New features
|
### New features
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { FieldNameAdapter, CustomFieldAdapter } from './lib';
|
import { FieldNameAdapter } from './lib';
|
||||||
|
|
||||||
window.FieldNameAdapter = FieldNameAdapter;
|
window.FieldNameAdapter = FieldNameAdapter;
|
||||||
window.CustomFieldAdapter = CustomFieldAdapter;
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import AdapterBase from '../../../api/AdapterBase';
|
import AdapterBase from '../../../api/AdapterBase';
|
||||||
import CustomFieldAdapter from '../../../api/CustomFieldAdapter';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FieldNameAdapter
|
* FieldNameAdapter
|
||||||
@@ -44,4 +43,4 @@ class FieldNameAdapter extends AdapterBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
module.exports = { FieldNameAdapter, CustomFieldAdapter };
|
module.exports = { FieldNameAdapter };
|
||||||
|
|||||||
@@ -3,5 +3,24 @@ import {
|
|||||||
EmployeeCompanyLoanAdapter,
|
EmployeeCompanyLoanAdapter,
|
||||||
} from './lib';
|
} from './lib';
|
||||||
|
|
||||||
window.CompanyLoanAdapter = CompanyLoanAdapter;
|
|
||||||
window.EmployeeCompanyLoanAdapter = EmployeeCompanyLoanAdapter;
|
import IceDataPipe from "../../../api/IceDataPipe";
|
||||||
|
|
||||||
|
|
||||||
|
function init(data) {
|
||||||
|
const modJsList = {};
|
||||||
|
modJsList.tabCompanyLoan = new CompanyLoanAdapter('CompanyLoan', 'CompanyLoan');
|
||||||
|
modJsList.tabCompanyLoan.setObjectTypeName('Company Loan');
|
||||||
|
modJsList.tabCompanyLoan.setDataPipe(new IceDataPipe(modJsList.tabCompanyLoan));
|
||||||
|
modJsList.tabCompanyLoan.setAccess(data.permissions.CompanyLoan);
|
||||||
|
|
||||||
|
modJsList.tabEmployeeCompanyLoan = new EmployeeCompanyLoanAdapter('EmployeeCompanyLoan', 'EmployeeCompanyLoan');
|
||||||
|
modJsList.tabEmployeeCompanyLoan.setObjectTypeName('Employee Company Loan');
|
||||||
|
modJsList.tabEmployeeCompanyLoan.setDataPipe(new IceDataPipe(modJsList.tabEmployeeCompanyLoan));
|
||||||
|
modJsList.tabEmployeeCompanyLoan.setAccess(data.permissions.EmployeeCompanyLoan);
|
||||||
|
|
||||||
|
window.modJs = modJsList.tabCompanyLoan;
|
||||||
|
window.modJsList = modJsList;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.initAdminLoan = init;
|
||||||
|
|||||||
@@ -2,13 +2,22 @@
|
|||||||
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
|
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
|
||||||
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
||||||
*/
|
*/
|
||||||
import AdapterBase from '../../../api/AdapterBase';
|
//import AdapterBase from '../../../api/AdapterBase';
|
||||||
|
import ReactModalAdapterBase from '../../../api/ReactModalAdapterBase';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CompanyLoanAdapter
|
* CompanyLoanAdapter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CompanyLoanAdapter extends AdapterBase {
|
class CompanyLoanAdapter extends ReactModalAdapterBase {
|
||||||
|
constructor(endPoint, tab, filter, orderBy) {
|
||||||
|
super(endPoint, tab, filter, orderBy);
|
||||||
|
this.fieldNameMap = {};
|
||||||
|
this.hiddenFields = {};
|
||||||
|
this.tableFields = {};
|
||||||
|
this.formOnlyFields = {};
|
||||||
|
}
|
||||||
|
|
||||||
getDataMapping() {
|
getDataMapping() {
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
@@ -25,13 +34,35 @@ class CompanyLoanAdapter extends AdapterBase {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTableColumns() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: 'Name',
|
||||||
|
dataIndex: 'name',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Details',
|
||||||
|
dataIndex: 'details',
|
||||||
|
sorter: true,
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
getFormFields() {
|
getFormFields() {
|
||||||
|
if(this.showSave){
|
||||||
return [
|
return [
|
||||||
['id', { label: 'ID', type: 'hidden' }],
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
['name', { label: 'Name', type: 'text', validation: '' }],
|
['name', { label: 'Name', type: 'text', validation: '' }],
|
||||||
['details', { label: 'Details', type: 'textarea', validation: 'none' }],
|
['details', { label: 'Details', type: 'textarea', validation: 'none' }],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
return [
|
||||||
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
|
['name', { label: 'Name', type: 'text', validation: '' }],
|
||||||
|
['details', { label: 'Details', type: 'textarea', validation: 'none' }],
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +70,15 @@ class CompanyLoanAdapter extends AdapterBase {
|
|||||||
* EmployeeCompanyLoanAdapter
|
* EmployeeCompanyLoanAdapter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class EmployeeCompanyLoanAdapter extends AdapterBase {
|
class EmployeeCompanyLoanAdapter extends ReactModalAdapterBase {
|
||||||
|
constructor(endPoint, tab, filter, orderBy) {
|
||||||
|
super(endPoint, tab, filter, orderBy);
|
||||||
|
this.fieldNameMap = {};
|
||||||
|
this.hiddenFields = {};
|
||||||
|
this.tableFields = {};
|
||||||
|
this.formOnlyFields = {};
|
||||||
|
}
|
||||||
|
|
||||||
getDataMapping() {
|
getDataMapping() {
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
@@ -66,6 +105,46 @@ class EmployeeCompanyLoanAdapter extends AdapterBase {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTableColumns() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: 'Employee',
|
||||||
|
dataIndex: 'employee',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Loan Type',
|
||||||
|
dataIndex: 'loan',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Loan Start Date',
|
||||||
|
dataIndex: 'start_date',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Loan Period (Months)',
|
||||||
|
dataIndex: 'period_months',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Currency',
|
||||||
|
dataIndex: 'currency',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Amount',
|
||||||
|
dataIndex: 'amount',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Status',
|
||||||
|
dataIndex: 'status',
|
||||||
|
sorter: true,
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
getFormFields() {
|
getFormFields() {
|
||||||
return [
|
return [
|
||||||
['id', { label: 'ID', type: 'hidden' }],
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
@@ -97,5 +176,5 @@ class EmployeeCompanyLoanAdapter extends AdapterBase {
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
CompanyLoanAdapter,
|
CompanyLoanAdapter,
|
||||||
EmployeeCompanyLoanAdapter,
|
EmployeeCompanyLoanAdapter
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,6 +4,33 @@ import {
|
|||||||
EmployeeSalaryAdapter,
|
EmployeeSalaryAdapter,
|
||||||
} from './lib';
|
} from './lib';
|
||||||
|
|
||||||
window.SalaryComponentTypeAdapter = SalaryComponentTypeAdapter;
|
/*window.SalaryComponentTypeAdapter = SalaryComponentTypeAdapter;
|
||||||
window.SalaryComponentAdapter = SalaryComponentAdapter;
|
window.SalaryComponentAdapter = SalaryComponentAdapter;
|
||||||
window.EmployeeSalaryAdapter = EmployeeSalaryAdapter;
|
window.EmployeeSalaryAdapter = EmployeeSalaryAdapter;*/
|
||||||
|
|
||||||
|
import IceDataPipe from "../../../api/IceDataPipe";
|
||||||
|
|
||||||
|
|
||||||
|
function init(data) {
|
||||||
|
const modJsList = [];
|
||||||
|
modJsList.tabSalaryComponentType = new SalaryComponentTypeAdapter('SalaryComponentType', 'SalaryComponentType');
|
||||||
|
modJsList.tabSalaryComponentType.setObjectTypeName('Salary Component Types');
|
||||||
|
modJsList.tabSalaryComponentType.setDataPipe(new IceDataPipe(modJsList.tabSalaryComponentType));
|
||||||
|
modJsList.tabSalaryComponentType.setAccess(data.permissions.tabSalaryComponentType);
|
||||||
|
|
||||||
|
modJsList.tabSalaryComponent = new SalaryComponentAdapter('SalaryComponent', 'SalaryComponent');
|
||||||
|
modJsList.tabSalaryComponent.setObjectTypeName('Salary components');
|
||||||
|
modJsList.tabSalaryComponent.setDataPipe(new IceDataPipe(modJsList.tabSalaryComponent));
|
||||||
|
modJsList.tabSalaryComponent.setAccess(data.permissions.SalaryComponent);
|
||||||
|
|
||||||
|
modJsList.tabEmployeeSalary = new EmployeeSalaryAdapter('EmployeeSalary', 'EmployeeSalary');
|
||||||
|
modJsList.tabEmployeeSalary.setObjectTypeName('Employee Salary');
|
||||||
|
modJsList.tabEmployeeSalary.setDataPipe(new IceDataPipe(modJsList.tabEmployeeSalary));
|
||||||
|
modJsList.tabEmployeeSalary.setAccess(data.permissions.EmployeeSalary);
|
||||||
|
|
||||||
|
//window.modJs = modJsList.tabEmployeeSalary;
|
||||||
|
window.modJs = modJsList.tabSalaryComponentType;
|
||||||
|
window.modJsList = modJsList;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.initAdminSalary = init;
|
||||||
@@ -3,13 +3,22 @@
|
|||||||
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import AdapterBase from '../../../api/AdapterBase';
|
//import AdapterBase from '../../../api/AdapterBase';
|
||||||
|
import ReactModalAdapterBase from '../../../api/ReactModalAdapterBase';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SalaryComponentTypeAdapter
|
* SalaryComponentTypeAdapter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SalaryComponentTypeAdapter extends AdapterBase {
|
class SalaryComponentTypeAdapter extends ReactModalAdapterBase {
|
||||||
|
constructor(endPoint, tab, filter, orderBy) {
|
||||||
|
super(endPoint, tab, filter, orderBy);
|
||||||
|
this.fieldNameMap = {};
|
||||||
|
this.hiddenFields = {};
|
||||||
|
this.tableFields = {};
|
||||||
|
this.formOnlyFields = {};
|
||||||
|
}
|
||||||
|
|
||||||
getDataMapping() {
|
getDataMapping() {
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
@@ -26,7 +35,29 @@ class SalaryComponentTypeAdapter extends AdapterBase {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTableColumns() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: 'Code',
|
||||||
|
dataIndex: 'code',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Name',
|
||||||
|
dataIndex: 'name',
|
||||||
|
sorter: true,
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
getFormFields() {
|
getFormFields() {
|
||||||
|
if(this.showSave){
|
||||||
|
return [
|
||||||
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
|
['code', { label: 'Code', type: 'text', validation: '' }],
|
||||||
|
['name', { label: 'Name', type: 'text', validation: '' }],
|
||||||
|
];
|
||||||
|
}
|
||||||
return [
|
return [
|
||||||
['id', { label: 'ID', type: 'hidden' }],
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
['code', { label: 'Code', type: 'text', validation: '' }],
|
['code', { label: 'Code', type: 'text', validation: '' }],
|
||||||
@@ -40,7 +71,15 @@ class SalaryComponentTypeAdapter extends AdapterBase {
|
|||||||
* SalaryComponentAdapter
|
* SalaryComponentAdapter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SalaryComponentAdapter extends AdapterBase {
|
class SalaryComponentAdapter extends ReactModalAdapterBase {
|
||||||
|
constructor(endPoint, tab, filter, orderBy) {
|
||||||
|
super(endPoint, tab, filter, orderBy);
|
||||||
|
this.fieldNameMap = {};
|
||||||
|
this.hiddenFields = {};
|
||||||
|
this.tableFields = {};
|
||||||
|
this.formOnlyFields = {};
|
||||||
|
}
|
||||||
|
|
||||||
getDataMapping() {
|
getDataMapping() {
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
@@ -59,6 +98,27 @@ class SalaryComponentAdapter extends AdapterBase {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTableColumns() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: 'Name',
|
||||||
|
dataIndex: 'name',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Salary Component Type',
|
||||||
|
dataIndex: 'componentType',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Details',
|
||||||
|
dataIndex: 'details',
|
||||||
|
sorter: true,
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
getFormFields() {
|
getFormFields() {
|
||||||
return [
|
return [
|
||||||
['id', { label: 'ID', type: 'hidden' }],
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
@@ -74,7 +134,15 @@ class SalaryComponentAdapter extends AdapterBase {
|
|||||||
* EmployeeSalaryAdapter
|
* EmployeeSalaryAdapter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class EmployeeSalaryAdapter extends AdapterBase {
|
class EmployeeSalaryAdapter extends ReactModalAdapterBase {
|
||||||
|
constructor(endPoint, tab, filter, orderBy) {
|
||||||
|
super(endPoint, tab, filter, orderBy);
|
||||||
|
this.fieldNameMap = {};
|
||||||
|
this.hiddenFields = {};
|
||||||
|
this.tableFields = {};
|
||||||
|
this.formOnlyFields = {};
|
||||||
|
}
|
||||||
|
|
||||||
getDataMapping() {
|
getDataMapping() {
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
@@ -95,6 +163,31 @@ class EmployeeSalaryAdapter extends AdapterBase {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTableColumns() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: 'Employee',
|
||||||
|
dataIndex: 'employee',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Salary Component',
|
||||||
|
dataIndex: 'component',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Amount',
|
||||||
|
dataIndex: 'amount',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Details',
|
||||||
|
dataIndex: 'details',
|
||||||
|
sorter: true,
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
getFormFields() {
|
getFormFields() {
|
||||||
return [
|
return [
|
||||||
['id', { label: 'ID', type: 'hidden' }],
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
|
|||||||
46940
web/dist/admin-bundle.js
vendored
46940
web/dist/admin-bundle.js
vendored
File diff suppressed because one or more lines are too long
532
web/dist/common.js
vendored
532
web/dist/common.js
vendored
File diff suppressed because one or more lines are too long
10483
web/dist/login.js
vendored
10483
web/dist/login.js
vendored
File diff suppressed because one or more lines are too long
37720
web/dist/modules-bundle.js
vendored
37720
web/dist/modules-bundle.js
vendored
File diff suppressed because one or more lines are too long
68188
web/dist/third-party.js
vendored
68188
web/dist/third-party.js
vendored
File diff suppressed because one or more lines are too long
91755
web/dist/vendorAntd.js
vendored
91755
web/dist/vendorAntd.js
vendored
File diff suppressed because one or more lines are too long
39549
web/dist/vendorAntdIcons.js
vendored
39549
web/dist/vendorAntdIcons.js
vendored
File diff suppressed because one or more lines are too long
92738
web/dist/vendorAntv.js
vendored
92738
web/dist/vendorAntv.js
vendored
File diff suppressed because one or more lines are too long
15466
web/dist/vendorOther.js
vendored
15466
web/dist/vendorOther.js
vendored
File diff suppressed because one or more lines are too long
28928
web/dist/vendorReact.js
vendored
28928
web/dist/vendorReact.js
vendored
File diff suppressed because one or more lines are too long
@@ -2,4 +2,19 @@ import {
|
|||||||
EmployeeCompanyLoanAdapter,
|
EmployeeCompanyLoanAdapter,
|
||||||
} from './lib';
|
} from './lib';
|
||||||
|
|
||||||
window.EmployeeCompanyLoanAdapter = EmployeeCompanyLoanAdapter;
|
import IceDataPipe from "../../../api/IceDataPipe";
|
||||||
|
|
||||||
|
|
||||||
|
function init(data) {
|
||||||
|
const modJsList = {};
|
||||||
|
//modJsList.tabEmployeeCompanyLoan = new EmployeeCompanyLoanAdapter('EmployeeCompanyLoan','');
|
||||||
|
modJsList.tabEmployeeCompanyLoan = new EmployeeCompanyLoanAdapter('EmployeeCompanyLoan', 'EmployeeCompanyLoan');
|
||||||
|
//modJsList.tabEmployeeCompanyLoan.setObjectTypeName('Employee Company Loan');
|
||||||
|
modJsList.tabEmployeeCompanyLoan.setDataPipe(new IceDataPipe(modJsList.tabEmployeeCompanyLoan));
|
||||||
|
modJsList.tabEmployeeCompanyLoan.setAccess(data.permissions.EmployeeCompanyLoan);
|
||||||
|
|
||||||
|
window.modJs = modJsList.tabEmployeeCompanyLoan;
|
||||||
|
window.modJsList = modJsList;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.initAdminLoan = init;
|
||||||
|
|||||||
@@ -2,9 +2,18 @@
|
|||||||
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
|
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
|
||||||
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
||||||
*/
|
*/
|
||||||
import AdapterBase from '../../../api/AdapterBase';
|
//import AdapterBase from '../../../api/AdapterBase';
|
||||||
|
import ReactModalAdapterBase from '../../../api/ReactModalAdapterBase';
|
||||||
|
|
||||||
|
class EmployeeCompanyLoanAdapter extends ReactModalAdapterBase {
|
||||||
|
constructor(endPoint, tab, filter, orderBy) {
|
||||||
|
super(endPoint, tab, filter, orderBy);
|
||||||
|
this.fieldNameMap = {};
|
||||||
|
this.hiddenFields = {};
|
||||||
|
this.tableFields = {};
|
||||||
|
this.formOnlyFields = {};
|
||||||
|
}
|
||||||
|
|
||||||
class EmployeeCompanyLoanAdapter extends AdapterBase {
|
|
||||||
getDataMapping() {
|
getDataMapping() {
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
@@ -29,6 +38,46 @@ class EmployeeCompanyLoanAdapter extends AdapterBase {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTableColumns() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: 'Employee',
|
||||||
|
dataIndex: 'employee',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Loan Type',
|
||||||
|
dataIndex: 'loan',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Loan Start Date',
|
||||||
|
dataIndex: 'start_date',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Loan Period (Months)',
|
||||||
|
dataIndex: 'period_months',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Currency',
|
||||||
|
dataIndex: 'currency',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Amount',
|
||||||
|
dataIndex: 'amount',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Status',
|
||||||
|
dataIndex: 'status',
|
||||||
|
sorter: true,
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
getFormFields() {
|
getFormFields() {
|
||||||
return [
|
return [
|
||||||
['id', { label: 'ID', type: 'hidden' }],
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
|
|||||||
@@ -2,4 +2,18 @@ import {
|
|||||||
EmployeeSalaryAdapter,
|
EmployeeSalaryAdapter,
|
||||||
} from './lib';
|
} from './lib';
|
||||||
|
|
||||||
window.EmployeeSalaryAdapter = EmployeeSalaryAdapter;
|
import IceDataPipe from "../../../api/IceDataPipe";
|
||||||
|
|
||||||
|
|
||||||
|
function init(data) {
|
||||||
|
const modJsList = {};
|
||||||
|
modJsList.tabEmployeeSalary = new EmployeeSalaryAdapter('EmployeeSalary', 'EmployeeSalary');
|
||||||
|
modJsList.tabEmployeeSalary.setObjectTypeName('Employee Salary');
|
||||||
|
modJsList.tabEmployeeSalary.setDataPipe(new IceDataPipe(modJsList.tabEmployeeSalary));
|
||||||
|
modJsList.tabEmployeeSalary.setAccess(data.permissions.EmployeeSalary);
|
||||||
|
|
||||||
|
window.modJs = modJsList.tabEmployeeSalary;
|
||||||
|
window.modJsList = modJsList;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.initAdminSalary = init;
|
||||||
|
|||||||
@@ -2,9 +2,18 @@
|
|||||||
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
|
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
|
||||||
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
||||||
*/
|
*/
|
||||||
import AdapterBase from '../../../api/AdapterBase';
|
//import AdapterBase from '../../../api/AdapterBase';
|
||||||
|
import ReactModalAdapterBase from '../../../api/ReactModalAdapterBase';
|
||||||
|
|
||||||
|
class EmployeeSalaryAdapter extends ReactModalAdapterBase {
|
||||||
|
constructor(endPoint, tab, filter, orderBy) {
|
||||||
|
super(endPoint, tab, filter, orderBy);
|
||||||
|
this.fieldNameMap = {};
|
||||||
|
this.hiddenFields = {};
|
||||||
|
this.tableFields = {};
|
||||||
|
this.formOnlyFields = {};
|
||||||
|
}
|
||||||
|
|
||||||
class EmployeeSalaryAdapter extends AdapterBase {
|
|
||||||
getDataMapping() {
|
getDataMapping() {
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
@@ -23,6 +32,27 @@ class EmployeeSalaryAdapter extends AdapterBase {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTableColumns() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: 'Salary Component',
|
||||||
|
dataIndex: 'component',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Amount',
|
||||||
|
dataIndex: 'amount',
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Details',
|
||||||
|
dataIndex: 'details',
|
||||||
|
sorter: true,
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
getFormFields() {
|
getFormFields() {
|
||||||
return [
|
return [
|
||||||
['id', { label: 'ID', type: 'hidden' }],
|
['id', { label: 'ID', type: 'hidden' }],
|
||||||
|
|||||||
Reference in New Issue
Block a user