mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
Abschlussprüfungen im FAS für digitales Prüfungsprotokoll adaptiert
- Prüfungsantritt kann im FAS gesetzt werden - Freigabestatus des Protokolls wird im FAS angezeigt - Sortierung der Prüfungsantritte hinzugefügt
This commit is contained in:
@@ -50,6 +50,11 @@ class abschlusspruefung extends basis_db
|
||||
public $insertamum;
|
||||
public $insertvon;
|
||||
public $ext_id;
|
||||
public $protokoll;
|
||||
public $endezeit;
|
||||
public $pruefungsantritt_kurzbz;
|
||||
public $freigabedatum;
|
||||
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
@@ -108,6 +113,10 @@ class abschlusspruefung extends basis_db
|
||||
$this->insertamum = $row->insertamum;
|
||||
$this->insertvon = $row->insertvon;
|
||||
$this->ext_id = $row->ext_id;
|
||||
$this->protokoll = $row->protokoll;
|
||||
$this->endezeit = $row->endezeit;
|
||||
$this->pruefungsantritt_kurzbz = $row->pruefungsantritt_kurzbz;
|
||||
$this->freigabedatum = $row->freigabedatum;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -195,7 +204,7 @@ class abschlusspruefung extends basis_db
|
||||
$qry = "BEGIN;INSERT INTO lehre.tbl_abschlusspruefung (student_uid, vorsitz, pruefer1,
|
||||
pruefer2, pruefer3, abschlussbeurteilung_kurzbz, akadgrad_id, datum, uhrzeit, sponsion,
|
||||
pruefungstyp_kurzbz, anmerkung, updateamum, updatevon, insertamum, insertvon,
|
||||
note) VALUES (".
|
||||
note, protokoll, endezeit, pruefungsantritt_kurzbz, freigabedatum) VALUES (".
|
||||
$this->db_add_param($this->student_uid).', '.
|
||||
$this->db_add_param($this->vorsitz).', '.
|
||||
$this->db_add_param($this->pruefer1).', '.
|
||||
@@ -212,7 +221,11 @@ class abschlusspruefung extends basis_db
|
||||
$this->db_add_param($this->updatevon).', '.
|
||||
$this->db_add_param($this->insertamum).', '.
|
||||
$this->db_add_param($this->insertvon).', '.
|
||||
$this->db_add_param($this->note, FHC_INTEGER).');';
|
||||
$this->db_add_param($this->note, FHC_INTEGER).','.
|
||||
$this->db_add_param($this->protokoll).','.
|
||||
$this->db_add_param($this->endezeit).','.
|
||||
$this->db_add_param($this->pruefungsantritt_kurzbz).','.
|
||||
$this->db_add_param($this->freigabedatum).');';
|
||||
|
||||
}
|
||||
else
|
||||
@@ -233,7 +246,11 @@ class abschlusspruefung extends basis_db
|
||||
" pruefungstyp_kurzbz=".$this->db_add_param($this->pruefungstyp_kurzbz).",".
|
||||
" anmerkung=".$this->db_add_param($this->anmerkung).",".
|
||||
" updateamum=".$this->db_add_param($this->updateamum).",".
|
||||
" updatevon=".$this->db_add_param($this->updatevon).
|
||||
" updatevon=".$this->db_add_param($this->updatevon).",".
|
||||
" protokoll=".$this->db_add_param($this->protokoll).",".
|
||||
" endezeit=".$this->db_add_param($this->endezeit).",".
|
||||
" pruefungsantritt_kurzbz=".$this->db_add_param($this->pruefungsantritt_kurzbz).",".
|
||||
" freigabedatum=".$this->db_add_param($this->freigabedatum)." ".
|
||||
" WHERE abschlusspruefung_id=".$this->db_add_param($this->abschlusspruefung_id, FHC_INTEGER, false);
|
||||
}
|
||||
|
||||
@@ -315,6 +332,10 @@ class abschlusspruefung extends basis_db
|
||||
$obj->insertamum = $row->insertamum;
|
||||
$obj->insertvon = $row->insertvon;
|
||||
$obj->ext_id = $row->ext_id;
|
||||
$obj->protokoll = $row->protokoll;
|
||||
$obj->endezeit = $row->endezeit;
|
||||
$obj->pruefungsantritt_kurzbz = $row->pruefungsantritt_kurzbz;
|
||||
$obj->freigabedatum = $row->freigabedatum;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
@@ -366,6 +387,11 @@ class abschlusspruefung extends basis_db
|
||||
$this->insertamum = $row->insertamum;
|
||||
$this->insertvon = $row->insertvon;
|
||||
$this->ext_id = $row->ext_id;
|
||||
$this->protokoll = $row->protokoll;
|
||||
$this->endezeit = $row->endezeit;
|
||||
$this->pruefungsantritt_kurzbz = $row->pruefungsantritt_kurzbz;
|
||||
$this->freigabedatum = $row->freigabedatum;
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/* Copyright (C) 2020 FH Technikum-Wien
|
||||
*
|
||||
* 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: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>,
|
||||
*/
|
||||
/**
|
||||
* Klasse zur Verwaltung der Abschlusspruefungsantritte
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/basis_db.class.php');
|
||||
|
||||
class abschlusspruefung_antritt extends basis_db
|
||||
{
|
||||
public $new;
|
||||
public $result = array();
|
||||
|
||||
//Tabellenspalten
|
||||
public $pruefungsantritt_kurzbz;
|
||||
public $bezeichnung;
|
||||
public $bezeichnung_english;
|
||||
public $sort;
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
* @param $pruefungsantritt_kurzbz kurzbz des zu ladenden Datensatzes
|
||||
*/
|
||||
public function __construct($pruefungsantritt_kurzbz=null)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
if(!is_null($pruefungsantritt_kurzbz))
|
||||
$this->load($pruefungsantritt_kurzbz);
|
||||
}
|
||||
|
||||
/**
|
||||
* Laedt einen Datensatz
|
||||
* @param $pruefungsantritt_kurzbz Kurzbz des zu ladenden Datensatzes
|
||||
*/
|
||||
public function load($pruefungsantritt_kurzbz)
|
||||
{
|
||||
//laden des Datensatzes
|
||||
$qry = "SELECT
|
||||
*
|
||||
FROM
|
||||
lehre.tbl_abschlusspruefung_antritt
|
||||
WHERE pruefungsantritt_kurzbz=".$this->db_add_param($pruefungsantritt_kurzbz).";";
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
if($row = $this->db_fetch_object())
|
||||
{
|
||||
$this->pruefungsantritt_kurzbz = $row->pruefungsantritt_kurzbz;
|
||||
$this->bezeichnung = $row->bezeichnung;
|
||||
$this->bezeichnung_english = $row->bezeichnung_english;
|
||||
$this->sort = $row->sort;
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler bei der Datenbankabfrage';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler bei der Datenbankabfrage';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Liefert alle Abschlussprüfungsantritt
|
||||
* @return boolean true wenn erfolgreich, false im Fehlerfall
|
||||
*/
|
||||
public function getAll()
|
||||
{
|
||||
$qry = "SELECT
|
||||
*
|
||||
FROM
|
||||
lehre.tbl_abschlusspruefung_antritt
|
||||
ORDER BY sort";
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
while($row = $this->db_fetch_object())
|
||||
{
|
||||
$obj = new abschlusspruefung_antritt();
|
||||
$obj->pruefungsantritt_kurzbz = $row->pruefungsantritt_kurzbz;
|
||||
$obj->bezeichnung = $row->bezeichnung;
|
||||
$obj->bezeichnung_english = $row->bezeichnung_english;
|
||||
$obj->sort = $row->sort;
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Laden der Daten';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user