@@ -31,7 +31,7 @@ class HrEmployeeProfile extends Model
...
@@ -31,7 +31,7 @@ class HrEmployeeProfile extends Model
'photo_path','notes',
'photo_path','notes',
];
];
publicstaticfunctiongetEmploymentStatuses():array
publicstaticfunctiongetStatuses():array
{
{
return[
return[
'active'=>'نشط',
'active'=>'نشط',
...
@@ -44,6 +44,11 @@ class HrEmployeeProfile extends Model
...
@@ -44,6 +44,11 @@ class HrEmployeeProfile extends Model
];
];
}
}
publicstaticfunctiongetEmploymentStatuses():array
{
returnstatic::getStatuses();
}
publicstaticfunctiongetEmploymentTypes():array
publicstaticfunctiongetEmploymentTypes():array
{
{
return[
return[
...
@@ -107,7 +112,7 @@ class HrEmployeeProfile extends Model
...
@@ -107,7 +112,7 @@ class HrEmployeeProfile extends Model
{
{
$db=App::getInstance()->db();
$db=App::getInstance()->db();
$rows=$db->select(
$rows=$db->select(
"SELECT id, employee_id FROM hr_employee_profiles WHERE employment_status IN ('active','on_probation') AND is_archived = 0"
"SELECT id, employee_id, first_name_ar, last_name_ar, employee_number FROM hr_employee_profiles WHERE employment_status IN ('active','on_probation') AND is_archived = 0 ORDER BY first_name_ar ASC"