Merge branch 'master' into feature-53904/Vertragshistorie_valorisierte_Gehaelter_anzeigen

This commit is contained in:
Harald Bamberger
2025-01-23 16:23:02 +01:00
6 changed files with 145 additions and 31 deletions
@@ -19,12 +19,17 @@ class Vertragsbestandteil_model extends DB_Model
protected function getVertragsbestandteilSQL()
{
$sapInstalled = $this->_checkIfSAPSyncTableExists();
$oe_kurzbz_sap = $sapInstalled ? 'sap.oe_kurzbz_sap' : 'NULL AS oe_kurzbz_sap';
$sap_join = $sapInstalled ? 'LEFT JOIN sync.tbl_sap_organisationsstruktur sap USING(oe_kurzbz)' : '';
$sql = <<<EOSQL
SELECT
v.*,
bf.funktion_kurzbz, bf.uid AS mitarbeiter_uid,
funktion.beschreibung AS funktion_bezeichnung,
oe.oe_kurzbz, oe.bezeichnung AS oe_bezeichnung, sap.oe_kurzbz_sap,
bf.funktion_kurzbz, bf.uid AS mitarbeiter_uid,
funktion.beschreibung AS funktion_bezeichnung,
oe.oe_kurzbz, oe.bezeichnung AS oe_bezeichnung, {$oe_kurzbz_sap},
oet.organisationseinheittyp_kurzbz AS oe_typ_kurzbz, oet.bezeichnung AS oe_typ_bezeichnung,
ft.freitexttyp_kurzbz, ft.titel, ft.anmerkung,
f.benutzerfunktion_id,
@@ -39,7 +44,7 @@ class Vertragsbestandteil_model extends DB_Model
hr.tbl_vertragsbestandteil_freitext ft USING(vertragsbestandteil_id)
LEFT JOIN
hr.tbl_vertragsbestandteil_funktion f USING(vertragsbestandteil_id)
LEFT JOIN
LEFT JOIN
public.tbl_benutzerfunktion bf USING(benutzerfunktion_id)
LEFT JOIN
public.tbl_funktion funktion USING(funktion_kurzbz)
@@ -47,8 +52,7 @@ class Vertragsbestandteil_model extends DB_Model
public.tbl_organisationseinheit oe USING(oe_kurzbz)
LEFT JOIN
public.tbl_organisationseinheittyp oet USING(organisationseinheittyp_kurzbz)
LEFT JOIN
sync.tbl_sap_organisationsstruktur sap USING(oe_kurzbz)
{$sap_join}
LEFT JOIN
hr.tbl_vertragsbestandteil_karenz k USING(vertragsbestandteil_id)
LEFT JOIN
@@ -178,4 +182,30 @@ EOSQL;
return $vbcount[0]->overlappingvbs;
}
/**
* Checks if sap sync table exists.
* @return bool
*/
private function _checkIfSAPSyncTableExists()
{
$params = array(
DB_NAME,
'sync',
'tbl_sap_organisationsstruktur'
);
$sql = "SELECT
1 AS exists
FROM
information_schema.tables
WHERE
table_catalog = ? AND
table_schema = ? AND
table_name = ?";
$res = $this->execReadOnlyQuery($sql, $params);
return hasData($res);
}
}
@@ -127,6 +127,8 @@ $worksheet->write($zeile, ++$i, "STAATSBÜRGERSCHAFT", $format_bold);
$maxlength[$i] = 16;
$worksheet->write($zeile, ++$i, "SVNR", $format_bold);
$maxlength[$i] = 4;
$worksheet->write($zeile, ++$i, "PERSON_ID", $format_bold);
$maxlength[$i] = 6;
$worksheet->write($zeile, ++$i, "ERSATZKENNZEICHEN", $format_bold);
$maxlength[$i] = 17;
$worksheet->write($zeile, ++$i, "GESCHLECHT", $format_bold);
@@ -399,6 +401,12 @@ function draw_content($row)
$maxlength[$i] = mb_strlen($row->svnr);
$worksheet->write($zeile, $i, $row->svnr);
$i++;
//Person_id
if (mb_strlen($row->person_id) > $maxlength[$i])
$maxlength[$i] = mb_strlen($row->person_id);
$worksheet->write($zeile, $i, $row->person_id);
$i++;
//Ersatzkennzeichen
if (mb_strlen($row->ersatzkennzeichen) > $maxlength[$i])
+1 -1
View File
@@ -67,7 +67,7 @@ require_once('dbupdate_3.4/25999_C4_permission.php');
require_once('dbupdate_3.4/33683_digitale_anwesenheitsliste_und_entschuldigungsmanagement_fuer_studierende_prototyp.php');
require_once('dbupdate_3.4/40717_lv_faktor.php');
require_once('dbupdate_3.4/48526_pep_tagging.php');
require_once('dbupdate_3.4/41950_perm_gehaelter.php');
// *** Pruefung und hinzufuegen der neuen Attribute und Tabellen
echo '<H2>Pruefe Tabellen und Attribute!</H2>';
+15
View File
@@ -63,3 +63,18 @@ if (!$result = @$db->db_query("SELECT 1 FROM lehre.tbl_lehrveranstaltung_faktor
else
echo 'Tabelle: lehre.tbl_lehrveranstaltung_faktor befüllt!';
}
// Add index to lehre.tbl_lehrveranstaltung_faktor
if ($result = $db->db_query("SELECT * FROM pg_class WHERE relname='idx_tbl_lehrveranstaltung_faktor_lvid'"))
{
if ($db->db_num_rows($result) == 0)
{
$qry = "CREATE INDEX idx_tbl_lehrveranstaltung_faktor_lvid ON lehre.tbl_lehrveranstaltung_faktor USING btree (lehrveranstaltung_id);";
if (! $db->db_query($qry))
echo '<strong>Indizes: ' . $db->db_last_error() . '</strong><br>';
else
echo 'Index fuer lehre.tbl_lehrveranstaltung_faktor.lehrveranstaltung_id hinzugefuegt';
}
}
@@ -0,0 +1,41 @@
<?php
/* Copyright (C) 2017 fhcomplete.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Harald Bamberger <harald.bamberger@technikum-wien.at>,
*
* Beschreibung:
* Permissions f. Gehaelter
*/
if (! defined('DB_NAME')) exit('No direct script access allowed');
// Add permission: basis/gehaelter
if($result = @$db->db_query("SELECT 1 FROM system.tbl_berechtigung WHERE berechtigung_kurzbz = 'basis/gehaelter';"))
{
if($db->db_num_rows($result) == 0)
{
$qry = "INSERT INTO system.tbl_berechtigung(berechtigung_kurzbz, beschreibung) VALUES('basis/gehaelter', 'Zugriff auf Gehaelter');";
if(!$db->db_query($qry))
{
echo '<strong>system.tbl_berechtigung '.$db->db_last_error().'</strong><br>';
}
else
{
echo 'system.tbl_berechtigung: Added permission "basis/gehaelter"<br>';
}
}
}
+44 -24
View File
@@ -18268,6 +18268,26 @@ array(
)
)
),
array(
'app' => 'international',
'category' => 'international',
'phrase' => 'internationalCredits',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'International Credits',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'International Credits',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'international',
'category' => 'international',
@@ -18397,11 +18417,11 @@ array(
array(
'sprache' => 'German',
'text' => 'Ab dem Studienjahr 2022/23 ist der Erwerb von internationalen und interkulturellen Kompetenzen Teil des Curriculums. <br />
Auf der Grundlage der vorliegenden Maßnahmen absolvieren Sie im Laufe ihres Studiums Internationalisierungsaktivitäten, die mit unterschiedlichen ECTS-Punkten hinterlegt sind. <br />
In Summe müssen 5 ECTS erworben werden, die im 6. Semester wirksam werden. <br/>
Auf der Grundlage der vorliegenden Maßnahmen absolvieren Sie im Laufe ihres Studiums Internationalisierungsaktivitäten, die mit unterschiedlichen International Credits hinterlegt sind. <br />
In Summe müssen 5 International Credits erworben werden, die im 6. Semester wirksam werden. <br/>
Das Modul „International skills“ wird mit der Beurteilung „Mit Erfolg teilgenommen“ abgeschlossen. <br />
Bitte wählen Sie die für Sie in Frage kommenden Maßnahmen aus und planen Sie das entsprechende Semester. <br />
Sobald die 5 ECTS erreicht wurden, überprüft der Studiengang die von Ihnen hochgeladenen Dokumente. <br /><br />
Sobald die 5 International Credits erreicht wurden, überprüft der Studiengang die von Ihnen hochgeladenen Dokumente. <br /><br />
Fragen zum Status Ihrer Maßnahme u.ä. richten Sie bitte an den Studiengang. <br />
Bei allen weiteren Fragen zum Thema Organisation und Finanzierung des Auslandsaufenthalts und/oder Sprachkurs gibt Ihnen das International Office der FH Technikum Wien unter <a href="mailto:international.office@technikum-wien.at">international.office@technikum-wien.at</a> gerne Auskunft.',
'description' => '',
@@ -18410,11 +18430,11 @@ array(
array(
'sprache' => 'English',
'text' => 'Starting with the study year 2022/23, the acquisition of international and intercultural competencies is part of the curriculum.<br />
On the basis of the measures at-hand, you will complete internationalization activities during the course of your studies, which are assigned different ECTS credits.<br />
In total, 5 ECTS must be acquired, which become effective in the 6th semester.<br />
On the basis of the measures at-hand, you will complete internationalization activities during the course of your studies, which are assigned different International Credits.<br />
In total, 5 International Credits must be acquired, which become effective in the 6th semester.<br />
The module “International skills” is completed with the assessment "Successfully participated". <br />
Please select the measures that apply to you and schedule the appropriate semester. <br />
Once the 5 ECTS have been achieved, the degree program will review the documents you have uploaded. <br /><br />
Once the 5 International Credits have been achieved, the degree program will review the documents you have uploaded. <br /><br />
Please direct questions regarding the status of your measure and the like should be directed to the study program. <br />
For all further questions regarding the organization and financing of your stay abroad and/or language course, please contact the International Office of the UAS Technikum Wien at <a href="mailto:international.office@technikum-wien.at">international.office@technikum-wien.at</a>.
',
@@ -18771,13 +18791,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'ECTS bestätigt',
'text' => 'International Credits bestätigt',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'ECTS confirmed',
'text' => 'International Credits confirmed',
'description' => '',
'insertvon' => 'system'
)
@@ -18791,13 +18811,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'ECTS - Maßnahme',
'text' => 'International Credits - Maßnahme',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'ECTS - Measures',
'text' => 'International Credits - Measures',
'description' => '',
'insertvon' => 'system'
)
@@ -19071,13 +19091,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Nur bestätigte Maßnahmen vorhanden, aber weniger als 5 ECTs.',
'text' => 'Nur bestätigte Maßnahmen vorhanden, aber weniger als 5 International Credits.',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Only confirmed measures, but fewer than 5 ECTs.',
'text' => 'Only confirmed measures, but fewer than 5 International Credits.',
'description' => '',
'insertvon' => 'system'
)
@@ -19091,13 +19111,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Es wurden 5 ECTs erreicht.',
'text' => 'Es wurden 5 International Credits erreicht.',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => '5 ECTs points have been achieved.',
'text' => '5 International Credits have been achieved.',
'description' => '',
'insertvon' => 'system'
)
@@ -19251,13 +19271,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'ECTS - bestätigt',
'text' => 'International Credits - bestätigt',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'ECTS - confirmed',
'text' => 'International Credits - confirmed',
'description' => '',
'insertvon' => 'system'
)
@@ -19391,13 +19411,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => '>=5 ECTS verplant',
'text' => '>=5 International Credits verplant',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => '>=5 ECTS planned',
'text' => '>=5 international credits planned',
'description' => '',
'insertvon' => 'system'
)
@@ -19411,13 +19431,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => '<5 ECTS verplant',
'text' => '<5 International Credits verplant',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => '<5 ECTS planned',
'text' => '<5 International Credits planned',
'description' => '',
'insertvon' => 'system'
)
@@ -19431,13 +19451,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => '>=5 ECTS bestätigt',
'text' => '>=5 International Credits bestätigt',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => '>=5 ECTS confirmed',
'text' => '>=5 International Credits confirmed',
'description' => '',
'insertvon' => 'system'
)
@@ -19451,13 +19471,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
'text' => '<5 ECTS bestätigt',
'text' => '<5 International Credits bestätigt',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => '<5 ECTS confirmed',
'text' => '<5 International Credits confirmed',
'description' => '',
'insertvon' => 'system'
)