$qsd->getQSUser());
$sqs_objects['EditView_reports_to_name']['populate_list'] = array('reports_to_name', 'reports_to_id');
$quicksearch_js = '';
$this->ss->assign('REPORTS_TO_JS', $quicksearch_js);
$this->ss->assign('EDIT_REPORTS_TO', true);
}
//retrieve employee bean if it is not already in focus
if(empty($this->bean->id) && !empty($_REQUEST['record'])){
$this->bean->retrieve($_REQUEST['record']);
}
//populate values for non admin users
if(!empty($this->bean->id)) {
global $app_list_strings;
if( !empty($this->bean->status) ) {
$this->ss->assign('STATUS_READONLY',$app_list_strings['user_status_dom'][$this->bean->status]); }
if( !empty($this->bean->employee_status) ) {
$this->ss->assign('EMPLOYEE_STATUS_READONLY', $app_list_strings['employee_status_dom'][$this->bean->employee_status]);
}
if( !empty($this->bean->reports_to_id) ) {
$reportsToUser = get_assigned_user_name($this->bean->reports_to_id);
$reportsToUserField = "\n";
$reportsToUserField .= "";
$this->ss->assign('REPORTS_TO_READONLY', $reportsToUserField);
}
if( !empty($this->bean->title) ) {
$this->ss->assign('TITLE_READONLY', $this->bean->title);
}
if( !empty($this->bean->department) ) {
$this->ss->assign('DEPT_READONLY', $this->bean->department);
}
}
parent::display();
}
}
?>