Orange HRM 3.1 leave list customization

被刻印的时光 ゝ 提交于 2019-12-11 11:07:51

问题


In orangehrm3.1 I want to customize view leave request page. If leave request day is greater than 3 I need to hide Actions list box for supervisor. How do I do this?

Currently editing in LeaveListConfigurationFactory.php

$leaveRequestService = new LeaveRequestService();
$header7->populateFromArray(array(
    'name' => 'Actions',
    'width' => '10%',
    'isSortable' => false,
    'isExportable' => false,
    'elementType' => 'leaveListAction',
    'textAlignmentStyle' => 'left',
    'elementProperty' => array(
        'classPattern' => 'select_action quotaSelect',
        'defaultOption' => array('label' => 'Select Action', 'value' => ''),
        'hideIfEmpty' => true,
        'options' => array($leaveRequestService, 'getLeaveRequestActions', array(self::RECORD, self::$loggedInEmpNumber)),
        'namePattern' => 'select_leave_action_{id}',
        'idPattern' => 'select_leave_action_{id}',
        'hasHiddenField' => true,
        'hiddenFieldName' => '{eimId}-{leaveTypeId}',
        'hiddenFieldId' => '{eimId}-{leaveTypeId}',
        'hiddenFieldValueGetter' => 'getNumberOfDays',
        'hiddenFieldClass' => 'quotaHolder',
        'placeholderGetters' => array(
            'id' => 'getId',
            'eimId' => 'getEmpNumber',
            'leaveTypeId' => 'getLeaveTypeId'
        ),
    ),
));

来源:https://stackoverflow.com/questions/21479320/orange-hrm-3-1-leave-list-customization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!