From e79e19f1cf6ba2733dfeaabf646b6acbd9034bf5 Mon Sep 17 00:00:00 2001 From: Paminger Date: Wed, 13 May 2015 17:47:32 +0200 Subject: [PATCH 1/6] Planner Verantwortlichkeit --- system/checksystem.php | 54 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/system/checksystem.php b/system/checksystem.php index 22c331079..41ff8d055 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -2954,6 +2954,52 @@ if(!$result = @$db->db_query("SELECT beschreibung FROM public.tbl_studiensemeste echo ' public.tbl_studiensemester: Spalte beschreibung hinzugefuegt!
'; } +// Attribut typ bei Projektphase fuer Arbeitspaket, Phase, Milestone ... +if(!$result = @$db->db_query("SELECT typ FROM fue.tbl_projektphase")) +{ + $qry = "ALTER TABLE fue.tbl_projektphase ADD COLUMN typ varchar(32); + UPDATE fue.tbl_projektphase SET typ='Projektphase'; + ALTER TABLE fue.tbl_projektphase ALTER COLUMN typ SET NOT NULL; + "; + + + if(!$db->db_query($qry)) + echo 'fue.tbl_projektphase: '.$db->db_last_error().'
'; + else + echo '
fue.tbl_projektphase: neue Spalte typ fuer Arbeitspaket, Phase, Milestone ... hinzugefuegt'; +} + +// Attribut typ bei Projektphase fuer Verantwortliche Ressource +if(!$result = @$db->db_query("SELECT ressource_id FROM fue.tbl_projektphase")) +{ + $qry = "ALTER TABLE fue.tbl_projektphase ADD COLUMN ressource_id bigint; + ALTER TABLE fue.tbl_projektphase + ADD CONSTRAINT fk_projektphase_ressource FOREIGN KEY (ressource_id) + REFERENCES fue.tbl_ressource (ressource_id) MATCH SIMPLE + ON UPDATE CASCADE ON DELETE RESTRICT; + "; + + if(!$db->db_query($qry)) + echo 'fue.tbl_projektphase: '.$db->db_last_error().'
'; + else + echo '
fue.tbl_projektphase: neue Spalte ressource_id fuer Verantwortlichkeit hinzugefuegt'; +} +// Attribut typ bei Projekt fuer Verantwortliche Ressource +if(!$result = @$db->db_query("SELECT ressource_id FROM fue.tbl_projekt")) +{ + $qry = "ALTER TABLE fue.tbl_projekt ADD COLUMN ressource_id bigint; + ALTER TABLE fue.tbl_projekt + ADD CONSTRAINT fk_projekt_ressource FOREIGN KEY (ressource_id) + REFERENCES fue.tbl_ressource (ressource_id) MATCH SIMPLE + ON UPDATE CASCADE ON DELETE RESTRICT; + "; + + if(!$db->db_query($qry)) + echo 'fue.tbl_projekt: '.$db->db_last_error().'
'; + else + echo '
fue.tbl_projekt: neue Spalte ressource_id fuer Verantwortlichkeit hinzugefuegt'; +} + echo '


'; $tabellen=array( @@ -3034,8 +3080,8 @@ $tabellen=array( "campus.tbl_zeitwunsch" => array("stunde","mitarbeiter_uid","tag","gewicht","updateamum","updatevon","insertamum","insertvon"), "fue.tbl_aktivitaet" => array("aktivitaet_kurzbz","beschreibung","sort"), "fue.tbl_aufwandstyp" => array("aufwandstyp_kurzbz","bezeichnung"), - "fue.tbl_projekt" => array("projekt_kurzbz","nummer","titel","beschreibung","beginn","ende","oe_kurzbz","budget","farbe","aufwandstyp_kurzbz"), - "fue.tbl_projektphase" => array("projektphase_id","projekt_kurzbz","projektphase_fk","bezeichnung","beschreibung","start","ende","budget","insertamum","insertvon","updateamum","updatevon","personentage","farbe"), + "fue.tbl_projekt" => array("projekt_kurzbz","nummer","titel","beschreibung","beginn","ende","oe_kurzbz","budget","farbe","aufwandstyp_kurzbz","ressource_id"), + "fue.tbl_projektphase" => array("projektphase_id","projekt_kurzbz","projektphase_fk","bezeichnung","typ","beschreibung","start","ende","budget","insertamum","insertvon","updateamum","updatevon","personentage","farbe","ressource_id"), "fue.tbl_projekttask" => array("projekttask_id","projektphase_id","bezeichnung","beschreibung","aufwand","mantis_id","insertamum","insertvon","updateamum","updatevon","projekttask_fk","erledigt","ende","ressource_id","scrumsprint_id"), "fue.tbl_projekt_dokument" => array("projekt_dokument_id","projektphase_id","projekt_kurzbz","dms_id"), "fue.tbl_projekt_ressource" => array("projekt_ressource_id","projekt_kurzbz","projektphase_id","ressource_id","funktion_kurzbz","beschreibung","aufwand"), @@ -3150,7 +3196,7 @@ $tabellen=array( "public.tbl_preoutgoing_status" => array("preoutgoing_status_kurzbz","bezeichnung"), "public.tbl_prestudent" => array("prestudent_id","aufmerksamdurch_kurzbz","person_id","studiengang_kz","berufstaetigkeit_code","ausbildungcode","zgv_code","zgvort","zgvdatum","zgvmas_code","zgvmaort","zgvmadatum","aufnahmeschluessel","facheinschlberuf","reihungstest_id","anmeldungreihungstest","reihungstestangetreten","rt_gesamtpunkte","rt_punkte1","rt_punkte2","bismelden","anmerkung","dual","insertamum","insertvon","updateamum","updatevon","ext_id","ausstellungsstaat","rt_punkte3", "zgvdoktor_code", "zgvdoktorort", "zgvdoktordatum","mentor","zgvnation","zgvmanation","zgvdoktornation"), "public.tbl_prestudentstatus" => array("prestudent_id","status_kurzbz","studiensemester_kurzbz","ausbildungssemester","datum","orgform_kurzbz","insertamum","insertvon","updateamum","updatevon","ext_id","studienplan_id","bestaetigtam","bestaetigtvon","fgm","faktiv", "anmerkung"), - "public.tbl_raumtyp" => array("raumtyp_kurzbz","beschreibung"), + "public.tbl_raumtyp" => array("raumtyp_kurzbz","beschreibung","kosten"), "public.tbl_reihungstest" => array("reihungstest_id","studiengang_kz","ort_kurzbz","anmerkung","datum","uhrzeit","updateamum","updatevon","insertamum","insertvon","ext_id","freigeschaltet","max_teilnehmer","oeffentlich"), "public.tbl_status" => array("status_kurzbz","beschreibung","anmerkung","ext_id"), "public.tbl_semesterwochen" => array("semester","studiengang_kz","wochen"), @@ -3162,7 +3208,7 @@ $tabellen=array( "public.tbl_studentlehrverband" => array("student_uid","studiensemester_kurzbz","studiengang_kz","semester","verband","gruppe","updateamum","updatevon","insertamum","insertvon","ext_id"), "public.tbl_studiengang" => array("studiengang_kz","kurzbz","kurzbzlang","typ","bezeichnung","english","farbe","email","telefon","max_semester","max_verband","max_gruppe","erhalter_kz","bescheid","bescheidbgbl1","bescheidbgbl2","bescheidgz","bescheidvom","orgform_kurzbz","titelbescheidvom","aktiv","ext_id","zusatzinfo_html","moodle","sprache","testtool_sprachwahl","studienplaetze","oe_kurzbz","lgartcode","mischform","projektarbeit_note_anzeige", "onlinebewerbung"), "public.tbl_studiengangstyp" => array("typ","bezeichnung","beschreibung"), - "public.tbl_studiensemester" => array("studiensemester_kurzbz","bezeichnung","start","ende","studienjahr_kurzbz","ext_id"), + "public.tbl_studiensemester" => array("studiensemester_kurzbz","bezeichnung","start","ende","studienjahr_kurzbz","ext_id","beschreibung"), "public.tbl_tag" => array("tag"), "public.tbl_variable" => array("name","uid","wert"), "public.tbl_vorlage" => array("vorlage_kurzbz","bezeichnung","anmerkung","mimetype"), From f505e16dc59c202a5d2828a698c903475bed07b9 Mon Sep 17 00:00:00 2001 From: Paminger Date: Wed, 13 May 2015 17:49:47 +0200 Subject: [PATCH 2/6] Images for Planner --- skin/images/arbeitspaket.png | Bin 0 -> 540 bytes skin/images/milestone.png | Bin 0 -> 863 bytes skin/images/{phase.png => projektphase.png} | Bin 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 skin/images/arbeitspaket.png create mode 100644 skin/images/milestone.png rename skin/images/{phase.png => projektphase.png} (100%) diff --git a/skin/images/arbeitspaket.png b/skin/images/arbeitspaket.png new file mode 100644 index 0000000000000000000000000000000000000000..9015426153054c0b529b4d9ebdfa06a221d568ac GIT binary patch literal 540 zcmV+%0^|LOP)Vhlm95D^5CAW0*NO~l4h2`Gn+SSXee3p=k!DITN| zloYWEXca63MGv(U^qPobY>b#9Dp8{0UEbTVcsUg#cu}XB*@6F?*_nZVGy!PT%rNk5 zliHE-nb49(%`}10vsV}N{rqDUTQ;Bo7$dnCNIoxON&^{bA}^laGjk880qPdu^yOBT zEWa_clc&Tx2f*4|8y`gof^!a2aQL`dICk+4OK+dE`@k5lTlYsTutSWPkfmY@o;2kB zMZE(6RQjtR27v0WeY98J5hzgEvJDN{um$>(l@Gjpa+{MEra-d|pH&4=2yN1juSixu z;fgT;7AQWtIU$FSo`duYWUHV7)eJ(4YRG+92Ww!@-u*n7y$)#60)BA&kYbGBD?sJP zdQc>%Uxr2wvM|?-q){`MfcjsaLA`SadgR1;mgk#Ysp6f7xO?jg<1;~QC+VXy zJ@MAA0M19>Mh53JODVWnpw>WFU8GbZ8({Xk{Qr zNlj3Y*^6%g00OH?L_t(I%axK#NK|nY#=rmEJLA1N*GDEB)OrZasDZh+oSvYeh-b)!X&wkCqi5%=xUSx|_F{6#zu1AgWFc?@DNvi{=o` zb31h=C3AB8Z6^Sj!X$=0S8gvrAf%45EJH13#vp`HP#BtSD3rqJ8l3DdD$D`Ha;MgE zVZf?F;{_`ZSZ+ivaM`C+Z(3 zy#C(dnS~`$HdpLVs~B>P!OCIcuN!O=LdQG1`sJDF`RueL>!EAy12@kc&bs9OG9O}C zlIXN&Rr?p0a@>O>s=)e6!>h0VgJY)~t7IxXFDosw6duS%G|xfRb@-M=47tYf&NZUN zanj`{?Kd7o1OPy7T|;7sZgB-3|fr;X0czA^&R5dAdz!r1Ht08mwZ p@_LOR#2;B$Sa_Y67yBrZ={HtPHeP&+9RvUX002ovPDHLkV1i2wZan}1 literal 0 HcmV?d00001 diff --git a/skin/images/phase.png b/skin/images/projektphase.png similarity index 100% rename from skin/images/phase.png rename to skin/images/projektphase.png From 38536837e893e438981153a443dc6e0e61b29d44 Mon Sep 17 00:00:00 2001 From: Paminger Date: Mon, 18 May 2015 15:37:13 +0200 Subject: [PATCH 3/6] Projektphasentyp und Verantwortlich --- content/planner.overlay.xul.php | 5 +- content/projekt/projektphase.overlay.js.php | 24 ++++++- content/projekt/projektphase.overlay.xul.php | 7 +- .../projektphasedetail.overlay.xul.php | 72 +++++++++++-------- include/projektphase.class.php | 37 ++++++++-- rdf/projektphase.rdf.php | 8 ++- 6 files changed, 115 insertions(+), 38 deletions(-) diff --git a/content/planner.overlay.xul.php b/content/planner.overlay.xul.php index d4ca54f07..d9e3a478b 100755 --- a/content/planner.overlay.xul.php +++ b/content/planner.overlay.xul.php @@ -72,6 +72,8 @@ echo '