From 62e80c7ce20fc66048f076e6fb7f6d72e94d9505 Mon Sep 17 00:00:00 2001 From: oesi Date: Wed, 15 Apr 2015 14:46:33 +0200 Subject: [PATCH 01/10] Fehler bei der Anzeige der Verplanten Stunden behoben wenn die Stundengrenze pro Semester ueberschritten wurde --- content/lvplanung/lehrveranstaltungDBDML.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/lvplanung/lehrveranstaltungDBDML.php b/content/lvplanung/lehrveranstaltungDBDML.php index 30494298f..ceba53dc9 100644 --- a/content/lvplanung/lehrveranstaltungDBDML.php +++ b/content/lvplanung/lehrveranstaltungDBDML.php @@ -140,28 +140,28 @@ function getStundenproInstitut($mitarbeiter_uid, $studiensemester_kurzbz) { global $db; - $ret="Der Lektor ist in folgenden Instituten zugeteilt:\n"; + $ret="Der Lektor ist in folgenden Organisationseinheiten zugeteilt:\n"; //Liste mit den Stunden in den jeweiligen Instituten anzeigen - $qry = "SELECT sum(tbl_lehreinheitmitarbeiter.semesterstunden) as summe, tbl_fachbereich.bezeichnung + $qry = "SELECT sum(tbl_lehreinheitmitarbeiter.semesterstunden) as summe, tbl_organisationseinheit.bezeichnung FROM lehre.tbl_lehreinheitmitarbeiter JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) JOIN lehre.tbl_lehrveranstaltung as lehrfach ON(lehrfach_id=lehrfach.lehrveranstaltung_id) - JOIN public.tbl_fachbereich USING(oe_kurzbz) + JOIN public.tbl_organisationseinheit USING(oe_kurzbz) WHERE mitarbeiter_uid=".$db->db_add_param($mitarbeiter_uid)." AND studiensemester_kurzbz=".$db->db_add_param($studiensemester_kurzbz)." AND faktor>0 AND stundensatz>0 AND bismelden - GROUP BY tbl_fachbereich.bezeichnung"; + GROUP BY tbl_organisationseinheit.bezeichnung"; if($result = $db->db_query($qry)) { while($row = $db->db_fetch_object($result)) { - $ret .=$row->summe.' Stunden im Institut '.$row->bezeichnung."\n"; + $ret .=$row->summe.' Stunden im OE '.$row->bezeichnung."\n"; } } return $ret; From bda227b9c5bacf6944126a42fec750fd6a1590a3 Mon Sep 17 00:00:00 2001 From: oesi Date: Wed, 15 Apr 2015 14:52:05 +0200 Subject: [PATCH 02/10] Fixed Typo --- content/lvplanung/lehrveranstaltungDBDML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/lvplanung/lehrveranstaltungDBDML.php b/content/lvplanung/lehrveranstaltungDBDML.php index ceba53dc9..9171359d5 100644 --- a/content/lvplanung/lehrveranstaltungDBDML.php +++ b/content/lvplanung/lehrveranstaltungDBDML.php @@ -161,7 +161,7 @@ function getStundenproInstitut($mitarbeiter_uid, $studiensemester_kurzbz) { while($row = $db->db_fetch_object($result)) { - $ret .=$row->summe.' Stunden im OE '.$row->bezeichnung."\n"; + $ret .=$row->summe.' Stunden '.$row->bezeichnung."\n"; } } return $ret; From 0292f00409eae91db6d9dde1871d3b5e60e438a1 Mon Sep 17 00:00:00 2001 From: oesi Date: Wed, 15 Apr 2015 18:55:38 +0200 Subject: [PATCH 03/10] =?UTF-8?q?-=20Stundenplandb=20und=20Ignore-Kollisio?= =?UTF-8?q?n=20Status=20wird=20jetzt=20auch=20direkt=20nach=20dem=20Tempus?= =?UTF-8?q?=20start=20farblich=20korrekt=20markiert=20-=20Fehlermeldung=20?= =?UTF-8?q?beim=20Eintragen=20von=20max-kollision=20behoben=20wenn=20die?= =?UTF-8?q?=20Variable=20vorher=20nicht=20gesetzt=20war=20-=20alten=20Link?= =?UTF-8?q?=20auf=20ToDo=20Liste=20aus=20Tempus-Men=C3=BC=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/fasDBDML.php | 12 ++++++++++-- content/tempus.js.php | 23 +++++++++++------------ content/tempus.xul.php | 9 +-------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/content/fasDBDML.php b/content/fasDBDML.php index 0e5ad4f5a..da3bb60f4 100644 --- a/content/fasDBDML.php +++ b/content/fasDBDML.php @@ -582,8 +582,16 @@ if(!$error) } else { - $return = false; - $errormsg = 'Fehler: '.$variable->errormsg; + if($variable->errormsg=='') + { + $return = true; + $data = ''; + } + else + { + $return = false; + $errormsg = 'Fehler: '.$variable->errormsg; + } } } else diff --git a/content/tempus.js.php b/content/tempus.js.php index 64c66ae2d..ed27b118b 100644 --- a/content/tempus.js.php +++ b/content/tempus.js.php @@ -90,10 +90,17 @@ function onLoad() //wenn zb ein IFrame geladen wird onLoad=function() {return false}; + if(document.getElementById('statusbarpanel-ignore_kollision')) + { + // Anzeige von DBTable und Ignorekoll. aktualisieren + updateignorekollision(); + updatedbstpltable(); + } + //Notizen des Users laden notiz = document.getElementById('box-notizen'); - notiz.LoadNotizTree('','','','','','','', getUsername(),''); - + if(notiz) + notiz.LoadNotizTree('','','','','','','', getUsername(),''); } catch(e) { @@ -294,7 +301,7 @@ function updateignorekollision() if(getvariable('ignore_kollision')=='true') { panel.label='Kollisionscheck AUS'; - panel.style.backgroundColor='red'; + panel.style.backgroundColor='#FF0000'; panel.style.MozAppearance = "none" document.getElementById('menu-prefs-ignore_kollision').setAttribute('checked','true'); } @@ -322,7 +329,7 @@ function updatedbstpltable() } else { - panel.style.backgroundColor='transparent'; + panel.style.backgroundColor=''; panel.style.MozAppearance = "none" } } @@ -463,14 +470,6 @@ function UnDo(log_id, bezeichnung) } } -// **** -// * Oeffnet die ToDoListe fuers Tempus -// **** -function HelpOpenToDo() -{ - window.open('ToDo_Tempus.html','ToDo'); -} - // **** // * Zeigt das Fenster zur Kollisionspruefung auf Studentenebene an // **** diff --git a/content/tempus.xul.php b/content/tempus.xul.php index 160ab0c84..d1dcc514b 100644 --- a/content/tempus.xul.php +++ b/content/tempus.xul.php @@ -79,7 +79,6 @@ echo ''; - @@ -264,12 +263,6 @@ echo ''; label = "&menu-help-manual.label;" command = "menu-help-manual:command" accesskey = "&menu-help-manual.accesskey;"/> - @@ -316,7 +309,7 @@ echo ''; ?> - oncommand="updateignorekollision()"/> + oncommand="updateignorekollision()"/> From e8a7acd2b4084115ec4a1f17fe5a887453c7ccc0 Mon Sep 17 00:00:00 2001 From: Paminger Date: Thu, 16 Apr 2015 10:33:33 +0200 Subject: [PATCH 04/10] Extensions for AddOn Odoo --- include/appdaten.class.php | 1 + include/person.class.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/appdaten.class.php b/include/appdaten.class.php index e025866bd..e7fc4a19e 100644 --- a/include/appdaten.class.php +++ b/include/appdaten.class.php @@ -171,6 +171,7 @@ class appdaten extends basis_db else { $this->new = true; + return 0; } } else diff --git a/include/person.class.php b/include/person.class.php index dacf3bf4a..5ff6ebc37 100644 --- a/include/person.class.php +++ b/include/person.class.php @@ -28,7 +28,7 @@ require_once(dirname(__FILE__).'/datum.class.php'); class person extends basis_db { public $errormsg; // string - public $new; // boolean + public $new=true; // boolean public $personen = array(); // person Objekt public $done=false; // boolean @@ -51,12 +51,12 @@ class person extends basis_db public $ersatzkennzeichen; // char(10) public $familienstand; // char(1) public $anzahlkinder; // smalint - public $aktiv; // boolean + public $aktiv=true; // boolean public $insertamum; // timestamp public $insertvon; // varchar(16) public $updateamum; // timestamp public $updatevon; // varchar(16) - public $geschlecht; // varchar(1) + public $geschlecht='u'; // varchar(1) - Default: undefined public $staatsbuergerschaft;// varchar(3) public $geburtsnation; // varchar(3); public $ext_id; // bigint @@ -137,7 +137,7 @@ class person extends basis_db $this->errormsg = "Es ist kein Personendatensatz mit dieser ID vorhanden"; return false; } - + $this->new=false; return true; } else From a753ec4d776d895e6547a2c9796cb965e96ed0eb Mon Sep 17 00:00:00 2001 From: Gerald Raab Date: Thu, 16 Apr 2015 11:21:09 +0200 Subject: [PATCH 05/10] ZA anzeigen und syncen --- cis/private/profile/urlaubsfreigabe.php | 3 ++- cis/private/profile/urlaubstool.php | 2 +- cis/private/profile/zeitsperre_resturlaub.php | 2 +- include/zeitsperre.class.php | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) mode change 100644 => 100755 cis/private/profile/urlaubsfreigabe.php mode change 100644 => 100755 cis/private/profile/urlaubstool.php mode change 100644 => 100755 cis/private/profile/zeitsperre_resturlaub.php diff --git a/cis/private/profile/urlaubsfreigabe.php b/cis/private/profile/urlaubsfreigabe.php old mode 100644 new mode 100755 index 1b8379c64..19ab27115 --- a/cis/private/profile/urlaubsfreigabe.php +++ b/cis/private/profile/urlaubsfreigabe.php @@ -69,7 +69,8 @@ $addon_obj = new addon(); $addon_obj->loadAddons(); foreach($addon_obj->result as $addon) { - echo ''; + if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php')) + echo ''; } // Wenn Seite fertig geladen ist Addons aufrufen diff --git a/cis/private/profile/urlaubstool.php b/cis/private/profile/urlaubstool.php old mode 100644 new mode 100755 index be9d7da19..ceecff68c --- a/cis/private/profile/urlaubstool.php +++ b/cis/private/profile/urlaubstool.php @@ -449,7 +449,7 @@ $addon_obj = new addon(); $addon_obj->loadAddons(); foreach($addon_obj->result as $addon) { - if(file_exists('./../../addons/'.$addon->kurzbz.'/cis/init.js.php')) + if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php')) echo ''; } diff --git a/cis/private/profile/zeitsperre_resturlaub.php b/cis/private/profile/zeitsperre_resturlaub.php old mode 100644 new mode 100755 index 5e5667296..9988815e6 --- a/cis/private/profile/zeitsperre_resturlaub.php +++ b/cis/private/profile/zeitsperre_resturlaub.php @@ -86,7 +86,7 @@ $addon_obj = new addon(); $addon_obj->loadAddons(); foreach($addon_obj->result as $addon) { - if(file_exists('./../../addons/'.$addon->kurzbz.'/cis/init.js.php')) + if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php')) echo ''; } diff --git a/include/zeitsperre.class.php b/include/zeitsperre.class.php index 01516a590..c5e303660 100755 --- a/include/zeitsperre.class.php +++ b/include/zeitsperre.class.php @@ -480,9 +480,9 @@ class zeitsperre extends basis_db unset($this->result); $this->result=array(); - $qry = "select datum::date, freigabevon, zeitsperretyp_kurzbz - from (SELECT generate_series(vondatum::timestamp, bisdatum::timestamp, '1 day') as datum, freigabevon, mitarbeiter_uid, zeitsperretyp_kurzbz FROM campus.tbl_zeitsperre ) a - where a.mitarbeiter_uid = ".$this->db_add_param($uid)." and datum>(now() - interval '50 Days') and zeitsperretyp_kurzbz in ('Krank','Urlaub')"; + $qry = "select datum::date, freigabevon, zeitsperretyp_kurzbz + from (SELECT generate_series(vondatum::timestamp, bisdatum::timestamp, '1 day') as datum, freigabevon, mitarbeiter_uid, zeitsperretyp_kurzbz FROM campus.tbl_zeitsperre where vonstunde is null and bisstunde is null) a + where a.mitarbeiter_uid = ".$this->db_add_param($uid)." and datum>(now() - interval '50 Days') and zeitsperretyp_kurzbz in ('Krank','Urlaub', 'ZA')"; From 9367afebecafa30c7f5cff1794818c7a643086d1 Mon Sep 17 00:00:00 2001 From: oesi Date: Thu, 16 Apr 2015 12:08:52 +0200 Subject: [PATCH 06/10] =?UTF-8?q?Feldbezeichnung=20f=C3=BCr=20ZGV=20Nation?= =?UTF-8?q?=20angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/student/studentdetailoverlay.xul.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/student/studentdetailoverlay.xul.php b/content/student/studentdetailoverlay.xul.php index d331d1bef..0ce409a20 100644 --- a/content/student/studentdetailoverlay.xul.php +++ b/content/student/studentdetailoverlay.xul.php @@ -300,7 +300,7 @@ echo ''; -