mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
This commit is contained in:
@@ -110,7 +110,13 @@ class bisverwendung
|
||||
$this->verwendung_code = $row->verwendung_code;
|
||||
$this->mitarbeiter_uid = $row->mitarbeiter_uid;
|
||||
$this->hauptberufcode = $row->hauptberufcode;
|
||||
$this->hauptberuflich = ($row->hauptberuflich=='t'?true:false);
|
||||
if($row->hauptberuflich=='t')
|
||||
$this->hauptberuflich = true;
|
||||
elseif($row->hauptberuflich=='f')
|
||||
$this->hauptberuflich = false;
|
||||
else
|
||||
$this->hauptberuflich = '';
|
||||
|
||||
$this->habilitation = ($row->habilitation=='t'?true:false);
|
||||
$this->beginn = $row->beginn;
|
||||
$this->ende = $row->ende;
|
||||
@@ -208,6 +214,10 @@ class bisverwendung
|
||||
if($new==null)
|
||||
$new = $this->new;
|
||||
|
||||
if(is_bool($this->hauptberuflich))
|
||||
$hauptberuflich = ($this->hauptberuflich?'true':'false');
|
||||
else
|
||||
$hauptberuflich = 'null';
|
||||
if($new)
|
||||
{
|
||||
//Neuen Datensatz anlegen
|
||||
@@ -220,7 +230,7 @@ class bisverwendung
|
||||
$this->addslashes($this->verwendung_code).', '.
|
||||
$this->addslashes($this->mitarbeiter_uid).', '.
|
||||
$this->addslashes($this->hauptberufcode).', '.
|
||||
($this->hauptberuflich?'true':'false').', '.
|
||||
$hauptberuflich.', '.
|
||||
($this->habilitation?'true':'false').', '.
|
||||
$this->addslashes($this->beginn).', '.
|
||||
$this->addslashes($this->ende).', '.
|
||||
@@ -241,7 +251,7 @@ class bisverwendung
|
||||
" verwendung_code=".$this->addslashes($this->verwendung_code).",".
|
||||
" mitarbeiter_uid=".$this->addslashes($this->mitarbeiter_uid).",".
|
||||
" hauptberufcode=".$this->addslashes($this->hauptberufcode).",".
|
||||
" hauptberuflich=".($this->hauptberuflich?'true':'false').",".
|
||||
" hauptberuflich=".$hauptberuflich.",".
|
||||
" habilitation=".($this->habilitation?'true':'false').",".
|
||||
" beginn=".$this->addslashes($this->beginn).",".
|
||||
" ende=".$this->addslashes($this->ende).",".
|
||||
@@ -319,7 +329,12 @@ class bisverwendung
|
||||
$obj->verwendung_code = $row->verwendung_code;
|
||||
$obj->mitarbeiter_uid = $row->mitarbeiter_uid;
|
||||
$obj->hauptberufcode = $row->hauptberufcode;
|
||||
$obj->hauptberuflich = ($row->hauptberuflich=='t'?true:false);
|
||||
if($row->hauptberuflich=='t')
|
||||
$obj->hauptberuflich = true;
|
||||
elseif($row->hauptberuflich=='f')
|
||||
$obj->hauptberuflich = false;
|
||||
else
|
||||
$obj->hauptberuflich = '';
|
||||
$obj->habilitation = ($row->habilitation=='t'?true:false);
|
||||
$obj->beginn = $row->beginn;
|
||||
$obj->ende = $row->ende;
|
||||
|
||||
@@ -532,7 +532,7 @@ class mitarbeiter extends benutzer
|
||||
|
||||
function getPersonal($fix, $stgl, $fbl, $aktiv, $karenziert, $ausgeschieden, $studiensemester_kurzbz)
|
||||
{
|
||||
$qry = "SELECT distinct on(person_id) *, tbl_benutzer.aktiv as aktiv FROM ((public.tbl_mitarbeiter JOIN public.tbl_benutzer ON(mitarbeiter_uid=uid)) JOIN public.tbl_person USING(person_id)) LEFT JOIN public.tbl_benutzerfunktion USING(uid) WHERE true";
|
||||
$qry = "SELECT distinct on(person_id) *, tbl_benutzer.aktiv as aktiv, tbl_mitarbeiter.insertamum, tbl_mitarbeiter.insertvon FROM ((public.tbl_mitarbeiter JOIN public.tbl_benutzer ON(mitarbeiter_uid=uid)) JOIN public.tbl_person USING(person_id)) LEFT JOIN public.tbl_benutzerfunktion USING(uid) WHERE true";
|
||||
|
||||
if($fix=='true')
|
||||
$qry .= " AND fixangestellt=true";
|
||||
@@ -592,6 +592,8 @@ class mitarbeiter extends benutzer
|
||||
$obj->standort_kurzbz = $row->standort_kurzbz;
|
||||
$obj->anmerkung = $row->anmerkung;
|
||||
$obj->alias = $row->alias;
|
||||
$obj->insertamum = $row->insertamum;
|
||||
$obj->insertvon = $row->insertvon;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user