Multiactions Status Change

This commit is contained in:
ma0068
2024-04-26 14:16:36 +02:00
parent 5e3a7d4307
commit bc7fa71894
9 changed files with 1527 additions and 8 deletions
@@ -279,6 +279,7 @@ class Prestudent extends FHCAPI_Controller
return $this->terminateWithSuccess(getData($result) ?: []);
}
//TODO(manu) multi
public function getStudienplaene($prestudent_id)
{
$this->load->model('crm/Prestudent_model', 'PrestudentModel');
@@ -365,12 +365,12 @@ class Status extends FHCAPI_Controller
//Handle Abbrecher and Unterbrecher
//TODO (manu) implement later with multiactions
// not active yet: works only for "status ändern" in FAS
/* if($status_kurzbz == 'Abbrecher' || $status_kurzbz == 'Unterbrecher')
if($status_kurzbz == 'Abbrecher' || $status_kurzbz == 'Unterbrecher')
{
$ausbildungssemester = 0;
$gruppe = '';
$verband = $status_kurzbz == 'Abbrecher' ? 'A' : 'B';
}*/
}
//process studentlehrverband
$this->load->model('education/Studentlehrverband_model', 'StudentlehrverbandModel');
@@ -394,7 +394,7 @@ class Status extends FHCAPI_Controller
//not active yet: works only for "status ändern" in FAS
//Todo(Manu) Later for multiactions
/*
if($status_kurzbz == 'Abbrecher' || $status_kurzbz == 'Unterbrecher')
{
$result = $this->StudentModel->update(
@@ -416,12 +416,13 @@ class Status extends FHCAPI_Controller
return $this->outputJson($result->code);
}
}
*/
}
$this->db->trans_commit();
return $this->outputJsonSuccess(true);
//return $this->outputJsonSuccess($prestudent_id);
$this->terminateWithSuccess($prestudent_id);
}
public function loadStatus()
@@ -41,6 +41,10 @@ class Config extends FHC_Controller
'title' => 'Status',
'component' => './Stv/Studentenverwaltung/Details/Status.js'
];
$result['multistatus'] = [
'title' => 'MultiStatus',
'component' => './Stv/Studentenverwaltung/Details/MultiStatus.js'
];
$result['konto'] = [
'title' => 'Konto',
'component' => './Stv/Studentenverwaltung/Details/Konto.js',
@@ -83,6 +87,22 @@ class Config extends FHC_Controller
'additionalCols' => []
]
];
$result['multistatus'] = [
'title' => 'MultiStatus',
'component' => './Stv/Studentenverwaltung/Details/MultiStatus.js',
'config' => [
'abbrecherStgl' => $this->permissionlib->isBerechtigt('admin'),
'abbrecherStud' => $this->permissionlib->isBerechtigt('admin')
]
];
/* $result['status'] = [
'title' => 'Status',
'component' => './Stv/Studentenverwaltung/Details/Status.js',
'config' => [
'abbrecherStgl' => $this->permissionlib->isBerechtigt('admin'),
'abbrecherStud' => $this->permissionlib->isBerechtigt('admin')
]
];*/
Events::trigger('stv_conf_students', function & () use (&$result) {
return $result;