mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Fehler behoben bei dem nach dem Laden der Lehrveranstaltungsdetails bei den Studienplaenen das Laden des Trees nicht mehr moeglich war
This commit is contained in:
@@ -1326,6 +1326,69 @@ class lehrveranstaltung extends basis_db
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Lädt alle kompatiblen LVs zu einer Lehrveranstaltung
|
||||
* @param $lehrveranstaltung_id ID der Lehrveranstaltung
|
||||
*/
|
||||
public function getLVkompatibel($lehrveranstaltung_id)
|
||||
{
|
||||
if (!is_numeric($lehrveranstaltung_id)) {
|
||||
$this->errormsg = 'Lehrveranstaltung_id muss eine gueltige Zahl sein';
|
||||
return false;
|
||||
}
|
||||
|
||||
$qry = "SELECT * FROM lehre.tbl_lehrveranstaltung WHERE lehrveranstaltung_id IN (
|
||||
SELECT lehrveranstaltung_id_kompatibel
|
||||
FROM lehre.tbl_lehrveranstaltung_kompatibel
|
||||
WHERE lehrveranstaltung_id=".$this->db_add_param($lehrveranstaltung_id, FHC_INTEGER).");";
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
while($row = $this->db_fetch_object())
|
||||
{
|
||||
$lv_obj = new lehrveranstaltung();
|
||||
|
||||
$lv_obj->lehrveranstaltung_id = $row->lehrveranstaltung_id;
|
||||
$lv_obj->studiengang_kz = $row->studiengang_kz;
|
||||
$lv_obj->bezeichnung = $row->bezeichnung;
|
||||
$lv_obj->kurzbz = $row->kurzbz;
|
||||
$lv_obj->lehrform_kurzbz = $row->lehrform_kurzbz;
|
||||
$lv_obj->semester = $row->semester;
|
||||
$lv_obj->ects = $row->ects;
|
||||
$lv_obj->semesterstunden = $row->semesterstunden;
|
||||
$lv_obj->anmerkung = $row->anmerkung;
|
||||
$lv_obj->lehre = $this->db_parse_bool($row->lehre);
|
||||
$lv_obj->lehreverzeichnis = $row->lehreverzeichnis;
|
||||
$lv_obj->aktiv = $this->db_parse_bool($row->aktiv);
|
||||
$lv_obj->ext_id = $row->ext_id;
|
||||
$lv_obj->insertamum = $row->insertamum;
|
||||
$lv_obj->insertvon = $row->insertvon;
|
||||
$lv_obj->planfaktor = $row->planfaktor;
|
||||
$lv_obj->planlektoren = $row->planlektoren;
|
||||
$lv_obj->planpersonalkosten = $row->planpersonalkosten;
|
||||
$lv_obj->plankostenprolektor = $row->plankostenprolektor;
|
||||
$lv_obj->updateamum = $row->updateamum;
|
||||
$lv_obj->updatevon = $row->updatevon;
|
||||
$lv_obj->sprache = $row->sprache;
|
||||
$lv_obj->sort = $row->sort;
|
||||
$lv_obj->incoming = $row->incoming;
|
||||
$lv_obj->zeugnis = $this->db_parse_bool($row->zeugnis);
|
||||
$lv_obj->projektarbeit = $this->db_parse_bool($row->projektarbeit);
|
||||
$lv_obj->koordinator = $row->koordinator;
|
||||
$lv_obj->bezeichnung_english = $row->bezeichnung_english;
|
||||
$lv_obj->orgform_kurzbz = $row->orgform_kurzbz;
|
||||
$lv_obj->lehrtyp_kurzbz = $row->lehrtyp_kurzbz;
|
||||
|
||||
$lv_obj->bezeichnung_arr['German'] = $row->bezeichnung;
|
||||
$lv_obj->bezeichnung_arr['English'] = $row->bezeichnung_english;
|
||||
if ($lv_obj->bezeichnung_arr['English'] == '')
|
||||
$lv_obj->bezeichnung_arr['English'] = $lv_obj->bezeichnung_arr['German'];
|
||||
|
||||
$this->lehrveranstaltungen[] = $lv_obj;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Speichert eine Kombination aus LV und ihrer kompatiblen Lehrveranstaltung
|
||||
|
||||
+3200
-3118
File diff suppressed because it is too large
Load Diff
@@ -1092,7 +1092,8 @@ $webservicerecht = array(
|
||||
array('soap/studienordnung','loadStudienordnungSTG','studienordnung'),
|
||||
array('soap/studienordnung','loadStudienplan','studienplan'),
|
||||
array('soap/studienordnung','saveSemesterZuordnung','studienordnung'),
|
||||
array('soap/studienordnung','deleteSemesterZuordnung','studienordnung')
|
||||
array('soap/studienordnung','deleteSemesterZuordnung','studienordnung'),
|
||||
array('soap/studienordnung','getLVkompatibel','lehrveranstaltung')
|
||||
);
|
||||
|
||||
foreach($webservicerecht as $row)
|
||||
|
||||
@@ -536,6 +536,33 @@ function LoadLVDetails(lvid, stpllvid)
|
||||
*/
|
||||
function loadLVKompatibilitaet(lvid)
|
||||
{
|
||||
$.ajax(
|
||||
{
|
||||
dataType: "json",
|
||||
url: "../../soap/fhcomplete.php",
|
||||
data: {
|
||||
"typ": "json",
|
||||
"class": "lehrveranstaltung",
|
||||
"method": "getLVkompatibel",
|
||||
"parameter_0":lvid
|
||||
},
|
||||
error: loadError
|
||||
}).success(function(data)
|
||||
{
|
||||
var html='';
|
||||
for(i in data.result)
|
||||
{
|
||||
if(data.result[i].metadata)
|
||||
{
|
||||
lvdata = data.result[i].metadata;
|
||||
html = html+'<br>'+lvdata.bezeichnung+' (Studiengang '+lvdata.studiengang_kz+', Semester '+lvdata.semester+')';
|
||||
}
|
||||
}
|
||||
$("#tab-kompatibel").html(html);
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
$.ajax(
|
||||
{
|
||||
dataType: "html",
|
||||
@@ -555,7 +582,7 @@ function loadLVKompatibilitaet(lvid)
|
||||
// html+="<br>ECTS: "+lvdata.ects;
|
||||
// html+="<br>Semesterstunden: "+lvdata.semesterstunden;
|
||||
$("#tab-kompatibel").html(data);
|
||||
});
|
||||
});*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user