From b6bfa3b6216096319b25f979769782841bdad129 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Wed, 23 Aug 2023 13:21:50 +0200 Subject: [PATCH] - prestudent_id beim archivieren setzen --- application/libraries/AkteLib.php | 7 +- application/models/crm/Akte_model.php | 3 +- .../lehrveranstaltungnotenoverlay.xul.php | 5 + .../lvplanung/lehrveranstaltungoverlay.js.php | 8 ++ content/pdfExport.php | 122 +++++++++--------- content/student/studentnotenoverlay.xul.php | 5 + content/student/studentoverlay.js.php | 8 ++ include/akte.class.php | 16 ++- rdf/zeugnisnote.rdf.php | 1 + system/dbupdate_3.4.php | 1 + ..._bei_archivierten_dokumenten_speichern.php | 26 ++++ 11 files changed, 133 insertions(+), 69 deletions(-) create mode 100644 system/dbupdate_3.4/30661_akte_prestudent_id_bei_archivierten_dokumenten_speichern.php diff --git a/application/libraries/AkteLib.php b/application/libraries/AkteLib.php index c4aee0095..6f2a6427a 100644 --- a/application/libraries/AkteLib.php +++ b/application/libraries/AkteLib.php @@ -43,7 +43,7 @@ class AkteLib */ public function add( $person_id, $dokument_kurzbz, $titel, $mimetype, $fileHandle, // Required parameters - $bezeichnung = null, $archiv = false, $signiert = false, $stud_selfservice = false + $bezeichnung = null, $archiv = false, $signiert = false, $stud_selfservice = false, $prestudent_id = null ) { // add new dms entry and new dms version for the Akte, using Akte data (title, mimetype, file content as handle) @@ -69,7 +69,8 @@ class AkteLib 'signiert' => $signiert, 'stud_selfservice' => $stud_selfservice, 'insertamum' => date('Y-m-d H:i:s'), - 'insertvon' => $this->_who + 'insertvon' => $this->_who, + 'prestudent_id' => $prestudent_id ) ); } @@ -127,7 +128,7 @@ class AkteLib $this->_ci->AkteModel->addSelect('person_id, dokument_kurzbz, mimetype, erstelltam, titel, bezeichnung, gedruckt, uid, dms_id, nachgereicht, nachgereicht_am, anmerkung, ausstellungsnation, formal_geprueft_amum, archiv, signiert, - stud_selfservice, akzeptiertamum, insertvon, insertamum, updatevon, updateamum'); + stud_selfservice, akzeptiertamum, insertvon, insertamum, updatevon, updateamum, prestudent_id'); $this->_ci->AkteModel->load($akte_id); $akteResult = $this->_ci->AkteModel->load($akte_id); diff --git a/application/models/crm/Akte_model.php b/application/models/crm/Akte_model.php index 15a38022e..751637690 100644 --- a/application/models/crm/Akte_model.php +++ b/application/models/crm/Akte_model.php @@ -35,7 +35,8 @@ class Akte_model extends DB_Model anmerkung, nachgereicht, nachgereicht_am, - CASE WHEN inhalt is not null THEN true ELSE false END as inhalt_vorhanden + CASE WHEN inhalt is not null THEN true ELSE false END as inhalt_vorhanden, + prestudent_id FROM public.tbl_akte WHERE person_id = ?'; diff --git a/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php b/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php index fda16c07a..718553d0a 100644 --- a/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php +++ b/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php @@ -136,6 +136,10 @@ echo " +