请帮助如何在 orangeHRM 中打开添加员工表单,我已经在 ohrm_user_role_screen 表中添加了新记录,以便在我们以主管身份登录时显示它,但表单添加员工没有出现并且屏幕上显示“需要凭据”。
问问题
833 次
1 回答
0
尝试这个..
orangehrm\symfony\plugins\cashmanCorePlugin\lib\role\SupervisorUserRoleDecorator.php
Add some role permission data to SupervisorUserRoleDecorator.php compare AdminUserRoleDecorator.php
orangehrm\symfony\plugins\cashmanCorePlugin\lib\role\AdminUserRoleDecorator.php
Like:
Add permission link for example
const EMPLOYEE_REPORT_LINK="./symfony/web/index.php/time/displayEmployeeReportCriteria?reportId=2";
/**
* Get the employee list ( whole employees )
* @return Employee[]
*/
public function getEmployeeList() {
$employeeList = $this->getEmployeeService()->getEmployeeList('empNumber', 'ASC', true);
if ($employeeList[0]->getEmpNumber() == null) {
return null;
} else {
return $employeeList;
}
}
public function getEmployeeListForAttendanceTotalSummaryReport() {
$employeeList = $this->getEmployeeService()->getEmployeeList('empNumber', 'ASC', true);
$employee = new Employee();
$employee->setEmpNumber('-1');
$employee->setFirstName("All");
if ($employeeList[0]->getEmpNumber() == null) {
$employeeList->add($employee);
return $employeeList;
} else {
$employeeList->add($employee);
return $employeeList;
}
}
于 2015-01-30T11:07:52.397 回答