mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
Planner:
- Neue Projekte und Phasen werden inline angelegt und nicht mehr in eigenem Fenster - Beim Anlegen von neuen Notizen wird erledigt jetzt immer auf false gesetzt - Beim Laden von Notizen wird der Bearbeiter jetzt immer richtig geladen - Contextmenüs werden in neuen Seamonkey Versionen nicht mehr transparent angezeigt - Detailfelder sind beim Starten jetzt deaktiviert und werden erst bei Neu oder Bearbeiten entsperrt
This commit is contained in:
@@ -286,6 +286,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
||||
document.getAnonymousElementByAttribute(this ,'anonid', 'box-notiz-start').value='';
|
||||
document.getAnonymousElementByAttribute(this ,'anonid', 'box-notiz-ende').value='';
|
||||
document.getAnonymousElementByAttribute(this ,'anonid', 'menulist-notiz-bearbeiter').value='';
|
||||
document.getAnonymousElementByAttribute(this ,'anonid', 'checkbox-notiz-erledigt').checked=false;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
@@ -566,6 +567,14 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
||||
var children = menulist.getElementsByAttribute('value',bearbeiter);
|
||||
menulist.selectedItem=children[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
menulist = document.getAnonymousElementByAttribute(this ,'anonid', 'menulist-notiz-bearbeiter');
|
||||
this.BearbeiterLoad(menulist, bearbeiter);
|
||||
|
||||
var children = menulist.getElementsByAttribute('value',bearbeiter);
|
||||
menulist.selectedItem=null;
|
||||
}
|
||||
document.getAnonymousElementByAttribute(this ,'anonid', 'caption-notiz-detail').label="Bearbeiten";
|
||||
|
||||
}
|
||||
|
||||
@@ -229,18 +229,6 @@ function treeProjektmenueSelect()
|
||||
}
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Dialog fuer neues Projekt starten
|
||||
// ****
|
||||
function ProjektNeu()
|
||||
{
|
||||
// netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); // Trick 17
|
||||
var tree=document.getElementById('tree-projektmenue');
|
||||
var oe=getTreeCellText(tree, "treecol-projektmenue-oe", tree.currentIndex);
|
||||
window.open('<?php echo APP_ROOT; ?>content/projekt/projekt.window.xul.php?oe='+oe,'Projekt anlegen', 'height=384,width=512,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no');
|
||||
//alert (oe);
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Dialog fuer neue Ressource starten
|
||||
// ****
|
||||
|
||||
@@ -96,7 +96,7 @@ function onselectProjekt()
|
||||
// Trick 17 (sonst gibt's ein Permission denied)
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var tree = document.getElementById('tree-projekt');
|
||||
|
||||
|
||||
if (tree.currentIndex==-1) return;
|
||||
try
|
||||
{
|
||||
@@ -108,6 +108,9 @@ function onselectProjekt()
|
||||
//Projekt wurde markiert
|
||||
//Loeschen Button aktivieren
|
||||
document.getElementById('toolbarbutton-projekt-del').disabled=false;
|
||||
document.getElementById('textbox-projekt-detail-projekt_kurzbz').disabled=true;
|
||||
ProjektDisableFields(false);
|
||||
document.getElementById('caption-projekt-detail').label='Bearbeiten';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -310,46 +313,14 @@ function ProjektDelete()
|
||||
// ****
|
||||
function ProjektDetailReset()
|
||||
{
|
||||
/*
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-lvnr').value='';
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-unr').value='';
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-lehrveranstaltung').value='';
|
||||
document.getElementById('lehrveranstaltung-detail-checkbox-lehre').checked=true;
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-stundenblockung').value='';
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-wochenrythmus').value='';
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-startkw').value='';
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-anmerkung').value='';
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-sprache').value='German';
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-raumtyp').value='Dummy';
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-raumtypalternativ').value='Dummy';
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-studiensemester').value=getStudiensemester();
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-lehrform').value='UE';
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-lehreinheit_id').value='';
|
||||
|
||||
//mitarbeiterlehreinheit tree leeren
|
||||
lektortree = document.getElementById('lehrveranstaltung-detail-tree-lehreinheitmitarbeiter');
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = lektortree.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
{
|
||||
lektortree.database.RemoveDataSource(oldDatasources.getNext());
|
||||
}
|
||||
//Refresh damit die entfernten DS auch wirklich entfernt werden
|
||||
lektortree.builder.rebuild();
|
||||
|
||||
//Gruppentree leeren
|
||||
gruppentree = document.getElementById('lehrveranstaltung-detail-tree-lehreinheitgruppe');
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = gruppentree.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
{
|
||||
gruppentree.database.RemoveDataSource(oldDatasources.getNext());
|
||||
}
|
||||
//Refresh damit die entfernten DS auch wirklich entfernt werden
|
||||
gruppentree.builder.rebuild();
|
||||
*/
|
||||
document.getElementById('textbox-projekt-detail-projekt_kurzbz').value='';
|
||||
//document.getElementById('menulist-projekt-detail-oe_kurzbz').value='';
|
||||
document.getElementById('textbox-projekt-detail-titel').value='';
|
||||
document.getElementById('textbox-projekt-detail-nummer').value='';
|
||||
document.getElementById('textbox-projekt-detail-beschreibung').value='';
|
||||
document.getElementById('textbox-projekt-detail-beginn').value='';
|
||||
document.getElementById('textbox-projekt-detail-ende').value='';
|
||||
document.getElementById('textbox-projekt-detail-budget').value='';
|
||||
}
|
||||
|
||||
// ****
|
||||
@@ -357,24 +328,35 @@ function ProjektDetailReset()
|
||||
// ****
|
||||
function ProjektDisableFields(val)
|
||||
{
|
||||
/*
|
||||
//document.getElementById('lehrveranstaltung-detail-textbox-lvnr').disabled=val;
|
||||
//document.getElementById('lehrveranstaltung-detail-textbox-unr').disabled=val;
|
||||
//document.getElementById('lehrveranstaltung-detail-textbox-lehrveranstaltung').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-checkbox-lehre').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-stundenblockung').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-wochenrythmus').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-startkw').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-anmerkung').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-sprache').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-lehrfach').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-raumtyp').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-raumtypalternativ').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-studiensemester').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-menulist-lehrform').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-tree-lehreinheitgruppe').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-button-save').disabled=val;
|
||||
document.getElementById('menulist-projekt-detail-oe_kurzbz').disabled=val;
|
||||
document.getElementById('textbox-projekt-detail-titel').disabled=val;
|
||||
document.getElementById('textbox-projekt-detail-nummer').disabled=val;
|
||||
document.getElementById('textbox-projekt-detail-beschreibung').disabled=val;
|
||||
document.getElementById('textbox-projekt-detail-beginn').disabled=val;
|
||||
document.getElementById('textbox-projekt-detail-ende').disabled=val;
|
||||
document.getElementById('textbox-projekt-detail-budget').disabled=val;
|
||||
document.getElementById('button-projekt-detail-speichern').disabled=val;
|
||||
}
|
||||
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-unr').disabled=val;
|
||||
*/
|
||||
|
||||
// ****
|
||||
// * Neues Projekt anlegen
|
||||
// ****
|
||||
function ProjektNeu()
|
||||
{
|
||||
//Markierung im Tree entfernen
|
||||
var tree = document.getElementById('tree-projekt');
|
||||
tree.view.selection.clearSelection();
|
||||
|
||||
//Detailfelder resetten und aktivieren
|
||||
ProjektDetailReset();
|
||||
ProjektDisableFields(false);
|
||||
|
||||
//Label setzen und status auf neu setzen
|
||||
document.getElementById('textbox-projekt-detail-projekt_kurzbz').disabled=false;
|
||||
document.getElementById('checkbox-projekt-detail-neu').checked=true;
|
||||
document.getElementById('caption-projekt-detail').label='Neues Projekt';
|
||||
|
||||
//Detail Tab auswaehlen
|
||||
document.getElementById('tabs-projekt-main').selectedItem=document.getElementById('tab-projekt-detail');
|
||||
}
|
||||
@@ -1,146 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 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: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
|
||||
$user = get_uid();
|
||||
loadVariables($user);
|
||||
?>
|
||||
|
||||
// ****
|
||||
// * Laedt die zu bearbeitenden Daten
|
||||
// ****
|
||||
function initProjekt(projekt_kurzbz)
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
/*if(projekt_kurzbz!='')
|
||||
{
|
||||
//Daten holen
|
||||
var url = '<?php echo APP_ROOT ?>rdf/bankverbindung.rdf.php?bankverbindung_id='+bankverbindung_id+'&'+gettimestamp();
|
||||
|
||||
var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].
|
||||
getService(Components.interfaces.nsIRDFService);
|
||||
|
||||
var dsource = rdfService.GetDataSourceBlocking(url);
|
||||
|
||||
var subject = rdfService.GetResource("http://www.technikum-wien.at/bankverbindung/" + bankverbindung_id);
|
||||
|
||||
var predicateNS = "http://www.technikum-wien.at/bankverbindung/rdf";
|
||||
|
||||
//RDF parsen
|
||||
|
||||
person_id = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#person_id" ));
|
||||
name = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#name" ));
|
||||
anschrift = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#anschrift" ));
|
||||
bic = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#bic" ));
|
||||
blz = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#blz" ));
|
||||
iban = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#iban" ));
|
||||
kontonr = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#kontonr" ));
|
||||
typ = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#typ" ));
|
||||
verrechnung = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#verrechnung" ));
|
||||
neu = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Defaultwerte bei Neuem Datensatz
|
||||
neu = true;
|
||||
name='';
|
||||
anschrift='';
|
||||
bic='';
|
||||
blz='';
|
||||
iban='';
|
||||
kontonr='';
|
||||
typ='p';
|
||||
verrechnung='Ja';
|
||||
}
|
||||
|
||||
document.getElementById('bankverbindung-checkbox-neu').checked=neu;
|
||||
document.getElementById('bankverbindung-textbox-person_id').value=person_id;
|
||||
document.getElementById('bankverbindung-textbox-bankverbindung_id').value=bankverbindung_id;
|
||||
document.getElementById('bankverbindung-textbox-name').value=name;
|
||||
document.getElementById('bankverbindung-textbox-anschrift').value=anschrift;
|
||||
document.getElementById('bankverbindung-textbox-bic').value=bic;
|
||||
document.getElementById('bankverbindung-textbox-blz').value=blz;
|
||||
document.getElementById('bankverbindung-textbox-iban').value=iban;
|
||||
document.getElementById('bankverbindung-textbox-kontonr').value=kontonr;
|
||||
document.getElementById('bankverbindung-menulist-typ').value=typ;
|
||||
if(verrechnung=='Ja')
|
||||
document.getElementById('bankverbindung-checkbox-verrechnung').checked=true;
|
||||
else
|
||||
document.getElementById('bankverbindung-checkbox-verrechnung').checked=false; */
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Speichern der Daten
|
||||
// ****
|
||||
function saveProjekt()
|
||||
{
|
||||
var oe_kurzbz=document.getElementById('textbox-projekt-oe').value;
|
||||
var projekt_kurzbz=document.getElementById('textbox-projekt-projekt_kurzbz').value;
|
||||
var titel=document.getElementById('textbox-projekt-titel').value;
|
||||
var nummer=document.getElementById('textbox-projekt-nummer').value;
|
||||
var beschreibung=document.getElementById('textbox-projekt-beschreibung').value;
|
||||
var beginn=document.getElementById('textbox-projekt-beginn').value;
|
||||
var budget=document.getElementById('textbox-projekt-budget').value;
|
||||
var ende=document.getElementById('textbox-projekt-ende').value;
|
||||
// Variablen checken
|
||||
|
||||
// SOAP-Action
|
||||
|
||||
var soapBody = new SOAPObject("saveProjekt");
|
||||
//soapBody.appendChild(new SOAPObject("username")).val('joe');
|
||||
//soapBody.appendChild(new SOAPObject("passwort")).val('waschl');
|
||||
|
||||
var projekt = new SOAPObject("projekt");
|
||||
projekt.appendChild(new SOAPObject("projekt_kurzbz")).val(projekt_kurzbz);
|
||||
projekt.appendChild(new SOAPObject("oe_kurzbz")).val(oe_kurzbz);
|
||||
projekt.appendChild(new SOAPObject("titel")).val(titel);
|
||||
projekt.appendChild(new SOAPObject("nummer")).val(nummer);
|
||||
projekt.appendChild(new SOAPObject("beschreibung")).val(beschreibung);
|
||||
projekt.appendChild(new SOAPObject("beginn")).val(beginn);
|
||||
projekt.appendChild(new SOAPObject("ende")).val(ende);
|
||||
projekt.appendChild(new SOAPObject("budget")).val(budget);
|
||||
projekt.appendChild(new SOAPObject("neu")).val('true');
|
||||
soapBody.appendChild(projekt);
|
||||
|
||||
var sr = new SOAPRequest("saveProjekt",soapBody);
|
||||
SOAPClient.Proxy="<?php echo APP_ROOT;?>soap/projekt.soap.php?"+gettimestamp();
|
||||
SOAPClient.SendRequest(sr, clb_saveProjekt);
|
||||
}
|
||||
|
||||
function clb_saveProjekt(respObj)
|
||||
{
|
||||
try
|
||||
{
|
||||
var msg = respObj.Body[0].saveProjektResponse[0].message[0].Text;
|
||||
window.opener.ProjektmenueRefresh();
|
||||
window.opener.ProjektTreeRefresh();
|
||||
window.close();
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
var fehler = respObj.Body[0].Fault[0].faultstring[0].Text;
|
||||
alert('Fehler: '+fehler);
|
||||
}
|
||||
}
|
||||
@@ -1,117 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 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: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
header("Cache-Control: no-cache");
|
||||
header("Cache-Control: post-check=0, pre-check=0",false);
|
||||
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Pragma: no-cache");
|
||||
header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
|
||||
echo '<?xml-stylesheet href="'.APP_ROOT.'skin/planner.css" type="text/css"?>';
|
||||
if(isset($_GET['oe']))
|
||||
$oe=$_GET['oe'];
|
||||
else
|
||||
$oe='';
|
||||
//echo $oe;
|
||||
if(isset($_GET['projekt_kurzbz']))
|
||||
$projekt_kurzbz=$_GET['projekt_kurzbz'];
|
||||
else
|
||||
$projekt_kurzbz='';
|
||||
?>
|
||||
|
||||
<window id="window-projekt-neu" title="Neues Projekt anlegen"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onload="initProjekt(<?php echo ($projekt_kurzbz!=''?$projekt_kurzbz:"''"); ?>)"
|
||||
>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqSOAPClient.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqXMLUtils.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>content/projekt/projekt.window.js.php" />
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>content/functions.js.php"></script>
|
||||
<vbox>
|
||||
|
||||
<checkbox id="checkbox-projekt-neu" hidden="true"/>
|
||||
|
||||
<groupbox id="groupbox-projekt" flex="1">
|
||||
<caption label="Details"/>
|
||||
<grid id="grid-projekt-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="OE (Organisationseinheit)" control="textbox-projekt-oe"/>
|
||||
<textbox id="textbox-projekt-oe" value="<?php echo $oe; ?>" maxlength="32"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Kurzbezeichnung" control="textbox-projekt-projekt_kurzbz"/>
|
||||
<textbox id="textbox-projekt-projekt_kurzbz" maxlength="16"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Titel" control="textbox-projekt-titel"/>
|
||||
<textbox id="textbox-projekt-titel" maxlength="256"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Nummer" control="textbox-projekt-nummer"/>
|
||||
<textbox id="textbox-projekt-nummer" maxlength="8"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projekt-beschreibung"/>
|
||||
<textbox id="textbox-projekt-beschreibung" multiline="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beginn" control="textbox-projekt-beginn"/>
|
||||
<textbox id="textbox-projekt-beginn"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projekt-ende"/>
|
||||
<textbox id="textbox-projekt-ende"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Budget" control="textbox-projekt-budget"/>
|
||||
<textbox id="textbox-projekt-budget"/>
|
||||
</row>
|
||||
<!-- <row>
|
||||
<label value="Test" control="textbox-projekt-test"/>
|
||||
<menulist id="menulist-projekt-test" flex="1">
|
||||
<menupopup>
|
||||
<menuitem value="p" label="Privatkonto"/>
|
||||
<menuitem value="f" label="Firmenkonto"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Verrechnungskonto" control="bankverbindung-textbox-verrechnung"/>
|
||||
<checkbox id="bankverbindung-checkbox-verrechnung" checked="true"/>
|
||||
</row>-->
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projekt-speichern" oncommand="saveProjekt()" label="Speichern" />
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</vbox>
|
||||
</window>
|
||||
@@ -43,82 +43,85 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<label value="Neu"/>
|
||||
<checkbox id="checkbox-projekt-detail-neu" checked="true" />
|
||||
</vbox>
|
||||
<grid id="grid-projekt-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Projekt (KurzBz)" control="textbox-projekt-detail-projekt_kurzbz "/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekt-detail-projekt_kurzbz" size="16" maxlength="16" readonly="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="OE (Organisationseinheit)" control="textbox-projekt-detail-oe_kurzbz"/>
|
||||
<hbox>
|
||||
<menulist id="menulist-projekt-detail-oe_kurzbz"
|
||||
xmlns:ORGANISATIONSEINHEIT="http://www.technikum-wien.at/organisationseinheit/rdf#"
|
||||
datasources="<?php echo APP_ROOT;?>rdf/organisationseinheit.rdf.php"
|
||||
ref="http://www.technikum-wien.at/organisationseinheit/liste" >
|
||||
<template>
|
||||
<rule ORGANISATIONSEINHEIT:aktiv='false'>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#oe_kurzbz"
|
||||
label="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#organisationseinheittyp_kurzbz rdf:http://www.technikum-wien.at/organisationseinheit/rdf#bezeichnung"
|
||||
uri="rdf:*" style="text-decoration:line-through;"/>
|
||||
</menupopup>
|
||||
</rule>
|
||||
<rule>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#oe_kurzbz"
|
||||
label="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#organisationseinheittyp_kurzbz rdf:http://www.technikum-wien.at/organisationseinheit/rdf#bezeichnung"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
</rule>
|
||||
</template>
|
||||
</menulist>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Titel" control="textbox-projekt-detail-titel"/>
|
||||
<textbox id="textbox-projekt-detail-titel" maxlength="256"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Nummer" control="textbox-projekt-detail-nummer"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekt-detail-nummer" maxlength="8"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projekt-detail-beschreibung"/>
|
||||
<textbox id="textbox-projekt-detail-beschreibung" multiline="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beginn" control="textbox-projekt-detail-beginn"/>
|
||||
<box class="Datum" id="textbox-projekt-detail-beginn"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projekt-detail-ende"/>
|
||||
<box class="Datum" id="textbox-projekt-detail-ende"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Budget" control="textbox-projekt-detail-budget"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekt-detail-budget" size="12" maxlength="13"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projekt-detail-speichern" oncommand="saveProjektDetail()" label="Speichern" />
|
||||
</hbox>
|
||||
<groupbox flex="1">
|
||||
<caption id="caption-projekt-detail" label="Neues Projekt"/>
|
||||
<grid id="grid-projekt-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Projekt (KurzBz)" control="textbox-projekt-detail-projekt_kurzbz "/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekt-detail-projekt_kurzbz" size="16" maxlength="16" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="OE (Organisationseinheit)" control="textbox-projekt-detail-oe_kurzbz"/>
|
||||
<hbox>
|
||||
<menulist id="menulist-projekt-detail-oe_kurzbz" disabled="true"
|
||||
xmlns:ORGANISATIONSEINHEIT="http://www.technikum-wien.at/organisationseinheit/rdf#"
|
||||
datasources="<?php echo APP_ROOT;?>rdf/organisationseinheit.rdf.php"
|
||||
ref="http://www.technikum-wien.at/organisationseinheit/liste" >
|
||||
<template>
|
||||
<rule ORGANISATIONSEINHEIT:aktiv='false'>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#oe_kurzbz"
|
||||
label="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#organisationseinheittyp_kurzbz rdf:http://www.technikum-wien.at/organisationseinheit/rdf#bezeichnung"
|
||||
uri="rdf:*" style="text-decoration:line-through;"/>
|
||||
</menupopup>
|
||||
</rule>
|
||||
<rule>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#oe_kurzbz"
|
||||
label="rdf:http://www.technikum-wien.at/organisationseinheit/rdf#organisationseinheittyp_kurzbz rdf:http://www.technikum-wien.at/organisationseinheit/rdf#bezeichnung"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
</rule>
|
||||
</template>
|
||||
</menulist>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Titel" control="textbox-projekt-detail-titel"/>
|
||||
<textbox id="textbox-projekt-detail-titel" maxlength="256" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Nummer" control="textbox-projekt-detail-nummer"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekt-detail-nummer" maxlength="8" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projekt-detail-beschreibung"/>
|
||||
<textbox id="textbox-projekt-detail-beschreibung" multiline="true" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beginn" control="textbox-projekt-detail-beginn"/>
|
||||
<box class="Datum" id="textbox-projekt-detail-beginn" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projekt-detail-ende"/>
|
||||
<box class="Datum" id="textbox-projekt-detail-ende" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Budget" control="textbox-projekt-detail-budget"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekt-detail-budget" size="12" maxlength="13" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projekt-detail-speichern" oncommand="saveProjektDetail()" label="Speichern" disabled="true"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</vbox>
|
||||
|
||||
</overlay>
|
||||
@@ -73,8 +73,9 @@ function ProjektphaseFkLoad(menulist, kurzbz, id)
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
var url = '<?php echo APP_ROOT; ?>rdf/projektphase.rdf.php?projekt_kurzbz='+kurzbz+'&phase_id='+id+'&optional&'+gettimestamp();
|
||||
//nurmittitel=&
|
||||
var url = '<?php echo APP_ROOT; ?>rdf/projektphase.rdf.php?projekt_kurzbz='+kurzbz+'&optional&'+gettimestamp();
|
||||
if(typeof id!='undefined' && id!='')
|
||||
url = url +'&phase_id='+id;
|
||||
|
||||
var oldDatasources = menulist.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
@@ -119,6 +120,8 @@ function onselectTreeProjektphase()
|
||||
//Projektphase wurde markiert
|
||||
//Loeschen Button aktivieren
|
||||
document.getElementById('toolbarbutton-projektphase-del').disabled=false;
|
||||
ProjektphaseDetailDisable(false);
|
||||
document.getElementById('caption-projektphase-detail').label='Bearbeiten';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -298,15 +301,70 @@ function ProjektphaseTreeSelectPhase()
|
||||
}
|
||||
}
|
||||
|
||||
// Dialog fuer neues Projekt starten
|
||||
// ****
|
||||
// * Setzt die Detailfelder auf die Standardwerte zurueck
|
||||
// ****
|
||||
function ProjektphaseDetailReset()
|
||||
{
|
||||
document.getElementById('textbox-projektphase-detail-projektphase_id').value='';
|
||||
document.getElementById('textbox-projektphase-detail-projekt_kurzbz').value='';
|
||||
document.getElementById('textbox-projektphase-detail-bezeichnung').value='';
|
||||
document.getElementById('textbox-projektphase-detail-beschreibung').value='';
|
||||
document.getElementById('textbox-projektphase-detail-start').value='';
|
||||
document.getElementById('textbox-projektphase-detail-ende').value='';
|
||||
document.getElementById('textbox-projektphase-detail-budget').value='';
|
||||
document.getElementById('textbox-projektphase-detail-personentage').value='';
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Deaktiviert die Detailfelder
|
||||
// ****
|
||||
function ProjektphaseDetailDisable(val)
|
||||
{
|
||||
document.getElementById('menulist-projektphase-detail-projektphase_fk').disabled=val;
|
||||
document.getElementById('textbox-projektphase-detail-bezeichnung').disabled=val;
|
||||
document.getElementById('textbox-projektphase-detail-beschreibung').disabled=val;
|
||||
document.getElementById('textbox-projektphase-detail-start').disabled=val;
|
||||
document.getElementById('textbox-projektphase-detail-ende').disabled=val;
|
||||
document.getElementById('textbox-projektphase-detail-budget').disabled=val;
|
||||
document.getElementById('textbox-projektphase-detail-personentage').disabled=val;
|
||||
document.getElementById('button-projektphase-detail-speichern').disabled=val;
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Setzt die Felder fuer eine Neuanlage
|
||||
// ****
|
||||
function ProjektphaseNeu()
|
||||
{
|
||||
// Trick 17 (sonst gibt's ein Permission denied)
|
||||
var tree = document.getElementById('tree-projektphase');
|
||||
tree.view.selection.clearSelection();
|
||||
|
||||
ProjektphaseDetailReset();
|
||||
ProjektphaseDetailDisable(false);
|
||||
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
//Projekt Kurzbz ermitteln
|
||||
var tree=document.getElementById('tree-projektmenue');
|
||||
|
||||
var projekt_kurzbz=getTreeCellText(tree, "treecol-projektmenue-projekt_kurzbz", tree.currentIndex);
|
||||
window.open('<?php echo APP_ROOT; ?>content/projekt/projektphase.window.xul.php?projekt_kurzbz='+projekt_kurzbz,'Projektphase anlegen', 'height=384,width=512,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no');
|
||||
//alert (oe);
|
||||
|
||||
//Menulist fuer Parents laden und optionalen Eintrag markieren
|
||||
var menulist = document.getElementById('menulist-projektphase-detail-projektphase_fk');
|
||||
ProjektphaseFkLoad(menulist, projekt_kurzbz);
|
||||
MenulistSelectItemOnValue('menulist-projektphase-detail-projektphase_fk', '');
|
||||
|
||||
document.getElementById('textbox-projektphase-detail-projekt_kurzbz').value=projekt_kurzbz;
|
||||
|
||||
//Neu Status setzen
|
||||
document.getElementById('caption-projektphase-detail').label='Neue Phase';
|
||||
document.getElementById('checkbox-projektphase-detail-neu').checked=true;
|
||||
|
||||
//Detail Tab auswaehlen
|
||||
document.getElementById('projektphase-tabs').selectedItem=document.getElementById('projektphase-tab-detail');
|
||||
|
||||
}
|
||||
|
||||
function ProjektphaseDelete()
|
||||
{
|
||||
alert('noch nicht implementiert');
|
||||
}
|
||||
@@ -83,6 +83,8 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/projekt/projektphasedetail.overlay
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="treecol-projektphase-beginn" label="Beginn" flex="2" hidden="false" persist="hidden width ordinal"
|
||||
class="sortDirectionIndicator"
|
||||
sortActive="true"
|
||||
sortDirection="ascending"
|
||||
sort="rdf:http://www.technikum-wien.at/projektphase/rdf#beginn_iso" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="treecol-projektphase-ende" label="Ende" flex="2" hidden="false" persist="hidden width ordinal"
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 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: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
|
||||
$user = get_uid();
|
||||
loadVariables($user);
|
||||
?>
|
||||
|
||||
// ****
|
||||
// * Laedt die zu bearbeitenden Daten
|
||||
// ****
|
||||
function initProjektphase(projektphase_id)
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Speichern der Daten
|
||||
// ****
|
||||
function saveProjektphase()
|
||||
{
|
||||
var projektphase_id=document.getElementById('textbox-projektphase-projektphase_id').value;
|
||||
var projekt_kurzbz=document.getElementById('textbox-projektphase-projekt_kurzbz').value;
|
||||
var projektphase_fk=document.getElementById('textbox-projektphase-projektphase_fk').value;
|
||||
var bezeichnung=document.getElementById('textbox-projektphase-bezeichnung').value;
|
||||
var beschreibung=document.getElementById('textbox-projektphase-beschreibung').value;
|
||||
var start=document.getElementById('textbox-projektphase-start').value;
|
||||
var ende=document.getElementById('textbox-projektphase-ende').value;
|
||||
var budget=document.getElementById('textbox-projektphase-budget').value;
|
||||
var personentage=document.getElementById('textbox-projektphase-personentage').value;
|
||||
|
||||
// Variablen checken
|
||||
|
||||
// SOAP-Action
|
||||
var soapBody = new SOAPObject("saveProjektphase");
|
||||
//soapBody.appendChild(new SOAPObject("username")).val('joe');
|
||||
//soapBody.appendChild(new SOAPObject("passwort")).val('waschl');
|
||||
|
||||
var phase = new SOAPObject("phase");
|
||||
phase.appendChild(new SOAPObject("projektphase_id")).val(projektphase_id);
|
||||
phase.appendChild(new SOAPObject("projektphase_fk")).val(projektphase_fk);
|
||||
phase.appendChild(new SOAPObject("projekt_kurzbz")).val(projekt_kurzbz);
|
||||
phase.appendChild(new SOAPObject("bezeichnung")).val(bezeichnung);
|
||||
phase.appendChild(new SOAPObject("beschreibung")).val(beschreibung);
|
||||
phase.appendChild(new SOAPObject("start")).val(start);
|
||||
phase.appendChild(new SOAPObject("ende")).val(ende);
|
||||
phase.appendChild(new SOAPObject("budget")).val(budget);
|
||||
phase.appendChild(new SOAPObject("personentage")).val(personentage);
|
||||
phase.appendChild(new SOAPObject("neu")).val("true");
|
||||
|
||||
soapBody.appendChild(phase);
|
||||
|
||||
var sr = new SOAPRequest("saveProjektPhase",soapBody);
|
||||
SOAPClient.Proxy="<?php echo APP_ROOT;?>soap/projektphase.soap.php?"+gettimestamp();
|
||||
SOAPClient.SendRequest(sr, clb_saveProjektphase);
|
||||
}
|
||||
|
||||
function clb_saveProjektphase(respObj)
|
||||
{
|
||||
try
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var msg = respObj.Body[0].saveProjektphaseResponse[0].message[0].Text;
|
||||
window.opener.ProjektphaseTreeRefresh();
|
||||
window.close();
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
var fehler = respObj.Body[0].Fault[0].faultstring[0].Text;
|
||||
alert('Fehler: '+fehler);
|
||||
}
|
||||
}
|
||||
@@ -1,130 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 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: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
header("Cache-Control: no-cache");
|
||||
header("Cache-Control: post-check=0, pre-check=0",false);
|
||||
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Pragma: no-cache");
|
||||
header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
|
||||
echo '<?xml-stylesheet href="'.APP_ROOT.'skin/planner.css" type="text/css"?>';
|
||||
|
||||
// projektphase_id wenn das Formular zum bearbeiten verwendet wird
|
||||
if(isset($_GET['projektphase_id']))
|
||||
$projektphase_id=$_GET['projektphase_id'];
|
||||
else
|
||||
$projektphase_id='';
|
||||
//echo $oe;
|
||||
// projekt_kurzbz muss immer gesetzt sein
|
||||
if(isset($_GET['projekt_kurzbz']))
|
||||
$projekt_kurzbz=$_GET['projekt_kurzbz'];
|
||||
else
|
||||
$errormsg='projekt_kurzbz ist nicht gesetzt';
|
||||
// projektphase_fk wenn eine neue Phase unter einer bestehenden angelegt wird
|
||||
if(isset($_GET['projektphase_fk']))
|
||||
$projektphase_fk=$_GET['projektphase_fk'];
|
||||
else
|
||||
$projektphase_fk='';
|
||||
?>
|
||||
|
||||
<window id="window-projektphase-neu" title="Neue Projektphase anlegen"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqSOAPClient.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqXMLUtils.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>content/projekt/projektphase.window.js.php" />
|
||||
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>content/functions.js.php" />
|
||||
<vbox>
|
||||
|
||||
<checkbox id="checkbox-projektphase-neu" hidden="true"/>
|
||||
|
||||
<groupbox id="groupbox-projektphase" flex="1">
|
||||
<caption label="Details"/>
|
||||
<grid id="grid-projektphase-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="ID" control="textbox-projektphase-projektphase_id "/>
|
||||
<textbox id="textbox-projektphase-projektphase_id" disabled="true" value="<?php echo $projektphase_id; ?>" maxlength="64"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Projekt (Kurzbz)" control="textbox-projektphase-projekt_kurzbz"/>
|
||||
<textbox id="textbox-projektphase-projekt_kurzbz" value="<?php echo $projekt_kurzbz; ?>" maxlength="16"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Projektphase (FK)" control="textbox-projektphase-projektphase_fk"/>
|
||||
<textbox id="textbox-projektphase-projektphase_fk" value="<?php echo $projektphase_fk; ?>" maxlength="64"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Bezeichnung" control="textbox-projektphase-bezeichnung"/>
|
||||
<textbox id="textbox-projektphase-bezeichnung" maxlength="32" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projektphase-beschreibung"/>
|
||||
<textbox id="textbox-projektphase-beschreibung"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Start" control="textbox-projektphase-start"/>
|
||||
<textbox id="textbox-projektphase-start"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projektphase-ende"/>
|
||||
<textbox id="textbox-projektphase-ende"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Budget" control="textbox-projektphase-budget"/>
|
||||
<textbox id="textbox-projektphase-budget"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Personentage" control="textbox-projektphase-personentage"/>
|
||||
<textbox id="textbox-projektphase-personentage"/>
|
||||
</row>
|
||||
<!--
|
||||
<row>
|
||||
<label value="Test" control="textbox-projektphase-test"/>
|
||||
<menulist id="menulist-projektphase-test" flex="1">
|
||||
<menupopup>
|
||||
<menuitem value="p" label="Privatkonto"/>
|
||||
<menuitem value="f" label="Firmenkonto"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Verrechnungskonto" control="bankverbindung-textbox-verrechnung"/>
|
||||
<checkbox id="bankverbindung-checkbox-verrechnung" checked="true"/>
|
||||
</row>
|
||||
-->
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projektphase-speichern" oncommand="saveProjektphase()" label="Speichern" />
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</vbox>
|
||||
</window>
|
||||
@@ -43,85 +43,84 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<label value="Neu"/>
|
||||
<checkbox id="checkbox-projektphase-detail-neu" checked="true" />
|
||||
</vbox>
|
||||
<grid id="grid-projektphase-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Projektphase ID" control="textbox-projektphase-detail-projektphase_id "/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-projektphase_id" readonly="true" size="3"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Projekt Kurzbz" control="textbox-projektphase-detail-projekt_kurzbz"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-projekt_kurzbz" size="16" maxlength="16" readonly="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Projektphase FK" control="menulist-projektphase-detail-projektphase_fk"/>
|
||||
<menulist id="menulist-projektphase-detail-projektphase_fk"
|
||||
datasources="rdf:null"
|
||||
ref="http://www.technikum-wien.at/projektphase"
|
||||
oncommand=""
|
||||
>
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/projektphase/rdf#projektphase_id"
|
||||
label="rdf:http://www.technikum-wien.at/projektphase/rdf#bezeichnung"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
|
||||
</template>
|
||||
</menulist>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Bezeichnung" control="textbox-projektphase-detail-bezeichnung"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-bezeichnung" maxlength="32" size="32"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projektphase-detail-beschreibung"/>
|
||||
<textbox id="textbox-projektphase-detail-beschreibung" multiline="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Start" control="textbox-projektphase-detail-start"/>
|
||||
<box class="Datum" id="textbox-projektphase-detail-start"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projektphase-detail-ende"/>
|
||||
<box class="Datum" id="textbox-projektphase-detail-ende"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Budget" control="textbox-projektphase-detail-budget"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-budget" size="12" maxlength="13"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Personentage" control="textbox-projektphase-detail-personentage"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-personentage" size="4" maxlenght="5"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projektphase-detail-speichern" oncommand="saveProjektphaseDetail()" label="Speichern" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
<groupbox flex="1">
|
||||
<caption id="caption-projektphase-detail" label="Neue Phase"/>
|
||||
<grid id="grid-projektphase-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Projektphase ID" control="textbox-projektphase-detail-projektphase_id "/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-projektphase_id" readonly="true" size="3"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Projekt Kurzbz" control="textbox-projektphase-detail-projekt_kurzbz"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-projekt_kurzbz" size="16" maxlength="16" readonly="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Übergeordnete Projektphase" control="menulist-projektphase-detail-projektphase_fk"/>
|
||||
<menulist id="menulist-projektphase-detail-projektphase_fk"
|
||||
datasources="rdf:null"
|
||||
ref="http://www.technikum-wien.at/projektphase"
|
||||
disabled="true"
|
||||
>
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/projektphase/rdf#projektphase_id"
|
||||
label="rdf:http://www.technikum-wien.at/projektphase/rdf#bezeichnung"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
|
||||
<vbox id="projektphase-mantis" flex="1">
|
||||
<description>asdf Details</description>
|
||||
</template>
|
||||
</menulist>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Bezeichnung" control="textbox-projektphase-detail-bezeichnung"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-bezeichnung" maxlength="32" size="32" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projektphase-detail-beschreibung"/>
|
||||
<textbox id="textbox-projektphase-detail-beschreibung" multiline="true" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Start" control="textbox-projektphase-detail-start"/>
|
||||
<box class="Datum" id="textbox-projektphase-detail-start" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projektphase-detail-ende"/>
|
||||
<box class="Datum" id="textbox-projektphase-detail-ende" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Budget" control="textbox-projektphase-detail-budget"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-budget" size="12" maxlength="13" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Personentage" control="textbox-projektphase-detail-personentage"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projektphase-detail-personentage" size="4" maxlenght="5" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projektphase-detail-speichern" oncommand="saveProjektphaseDetail()" label="Speichern" disabled="true"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</vbox>
|
||||
</overlay>
|
||||
@@ -127,6 +127,8 @@ function TaskTreeRefresh()
|
||||
// ****
|
||||
function TaskNeu()
|
||||
{
|
||||
var tasktree=document.getElementById('projekttask-tree');
|
||||
tasktree.view.selection.clearSelection();
|
||||
tree = document.getElementById('tree-projektmenue');
|
||||
|
||||
//Projektphase_id holen
|
||||
@@ -139,8 +141,13 @@ function TaskNeu()
|
||||
}
|
||||
//Details zuruecksetzen
|
||||
TaskDetailReset();
|
||||
TaskDisableFields(false);
|
||||
|
||||
document.getElementById('textbox-projekttaskdetail-projektphase_id').value=projektphase_id;
|
||||
document.getElementById('caption-projekttask-detail').label='Neuer Task';
|
||||
|
||||
//Detail Tab auswaehlen
|
||||
document.getElementById('projekttask-tabs').selectedItem=document.getElementById('projekttask-tab-detail');
|
||||
}
|
||||
// ****
|
||||
// * Selectiert die Lektorzuordnung nachdem der Tree
|
||||
@@ -238,6 +245,8 @@ function TaskDetailReset()
|
||||
document.getElementById('textbox-projekttask-detail-beschreibung').value='';
|
||||
document.getElementById('textbox-projekttask-detail-aufwand').value='';
|
||||
document.getElementById('textbox-projekttask-detail-mantis_id').value='';
|
||||
MenulistSelectItemOnValue('textbox-projekttask-detail-ressource', '');
|
||||
document.getElementById('textbox-projekttask-detail-ende').value='';
|
||||
}
|
||||
|
||||
// ****
|
||||
@@ -245,38 +254,17 @@ function TaskDetailReset()
|
||||
// ****
|
||||
function TaskDisableFields(val)
|
||||
{
|
||||
document.getElementById('textbox-projekttaskdetail-projekttask_id').disabled=val;
|
||||
document.getElementById('textbox-projekttaskdetail-projektphase_id').disabled=val;
|
||||
//document.getElementById('textbox-projekttaskdetail-projekttask_id').disabled=val;
|
||||
//document.getElementById('textbox-projekttaskdetail-projektphase_id').disabled=val;
|
||||
document.getElementById('textbox-projekttask-detail-bezeichnung').disabled=val;
|
||||
document.getElementById('textbox-projekttask-detail-beschreibung').disabled=val;
|
||||
document.getElementById('textbox-projekttask-detail-aufwand').disabled=val;
|
||||
document.getElementById('textbox-projekttask-detail-mantis_id').disabled=val;
|
||||
document.getElementById('textbox-projekttask-detail-ressource').disabled=val;
|
||||
document.getElementById('textbox-projekttask-detail-ende').disabled=val;
|
||||
document.getElementById('button-projekttask-detail-speichern').disabled=val;
|
||||
}
|
||||
|
||||
|
||||
// ****
|
||||
// * Liefert den value eines Editierbaren DropDowns
|
||||
// * @param id = ID der Menulist
|
||||
// ****
|
||||
function MenulistGetSelectedValue(id)
|
||||
{
|
||||
menulist = document.getElementById(id);
|
||||
|
||||
//Es kann sein, dass im Eingabefeld nichts steht und
|
||||
//trotzdem ein Eintrag auf selected gesetzt ist.
|
||||
//In diesem Fall soll aber kein Wert zurueckgegeben werden
|
||||
if(menulist.value=='')
|
||||
return '';
|
||||
|
||||
//Wenn es Selektierte Eintraege gibt, dann den value zurueckliefern
|
||||
var children = menulist.getElementsByAttribute('selected','true');
|
||||
if(children.length>0)
|
||||
return children[0].value;
|
||||
else
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
// ****
|
||||
// * Speichert die Details
|
||||
// ****
|
||||
@@ -362,6 +350,8 @@ function onselectProjekttask()
|
||||
//Task wurde markiert
|
||||
//Loeschen Button aktivieren
|
||||
document.getElementById('projekttask-toolbar-del').disabled=false;
|
||||
document.getElementById('caption-projekttask-detail').label='Bearbeiten';
|
||||
TaskDisableFields(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -45,9 +45,9 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/projekt/mantisdetail.overlay.xul.p
|
||||
<!-- ************************ -->
|
||||
<vbox id="box-projekttask" flex="1" uid="" stg_kz="">
|
||||
<popupset>
|
||||
<popup id="projekttask-tree-popup">
|
||||
<menupopup id="projekttask-tree-popup">
|
||||
<menuitem label="Entfernen" oncommand="TaskDelete();" id="projekttask-tree-popup-entf" disabled="false"/>
|
||||
</popup>
|
||||
</menupopup>
|
||||
</popupset>
|
||||
<toolbox>
|
||||
<toolbar id="projekttask-nav-toolbar">
|
||||
|
||||
@@ -39,79 +39,78 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<!-- * Projekttaskdetail * -->
|
||||
<!-- ************************ -->
|
||||
<vbox id="box-projekttask-detail" flex="1">
|
||||
<grid id="grid-projekttask-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Task ID" control="textbox-projekttask-detail-projekttask_id "/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttaskdetail-projekttask_id" disabled="true" size="5"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Projektphase ID" control="textbox-projekttask-detail-projektphase_id"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttaskdetail-projektphase_id" size="3" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Bezeichnung" control="textbox-projekttask-detail-bezeichnung"/>
|
||||
<textbox id="textbox-projekttask-detail-bezeichnung"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projekttask-detail-beschreibung"/>
|
||||
<textbox id="textbox-projekttask-detail-beschreibung" multiline="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Aufwand" control="textbox-projekttask-detail-aufwand"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttask-detail-aufwand" size="5" maxlength="5"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="MantisID" control="textbox-projekttask-detail-mantis_id"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttask-detail-mantis_id" size="5" maxlength="5"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ressource" control="textbox-projekttask-detail-ressource"/>
|
||||
<menulist id="textbox-projekttask-detail-ressource"
|
||||
datasources="rdf:null"
|
||||
xmlns:RESSOURCE="http://www.technikum-wien.at/ressource/rdf#"
|
||||
ref="http://www.technikum-wien.at/ressource/alle"
|
||||
oncommand=""
|
||||
>
|
||||
<template>
|
||||
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/ressource/rdf#ressource_id"
|
||||
label="rdf:http://www.technikum-wien.at/ressource/rdf#bezeichnung ( rdf:http://www.technikum-wien.at/ressource/rdf#typ )"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
</template>
|
||||
</menulist>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projekttask-detail-ende"/>
|
||||
<box class="Datum" id="textbox-projekttask-detail-ende"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projekttask-detail-speichern" oncommand="saveProjekttaskDetail()" label="Speichern" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
<groupbox flex="1">
|
||||
<caption id="caption-projekttask-detail" label="Neuer Task"/>
|
||||
<grid id="grid-projekttask-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Task ID" control="textbox-projekttask-detail-projekttask_id "/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttaskdetail-projekttask_id" disabled="true" size="5"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Projektphase ID" control="textbox-projekttask-detail-projektphase_id"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttaskdetail-projektphase_id" size="3" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Bezeichnung" control="textbox-projekttask-detail-bezeichnung"/>
|
||||
<textbox id="textbox-projekttask-detail-bezeichnung" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Beschreibung" control="textbox-projekttask-detail-beschreibung"/>
|
||||
<textbox id="textbox-projekttask-detail-beschreibung" multiline="true" disabled="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Aufwand" control="textbox-projekttask-detail-aufwand"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttask-detail-aufwand" size="5" maxlength="5" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="MantisID" control="textbox-projekttask-detail-mantis_id"/>
|
||||
<hbox>
|
||||
<textbox id="textbox-projekttask-detail-mantis_id" size="5" maxlength="5" disabled="true"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ressource" control="textbox-projekttask-detail-ressource"/>
|
||||
<menulist id="textbox-projekttask-detail-ressource"
|
||||
datasources="rdf:null"
|
||||
xmlns:RESSOURCE="http://www.technikum-wien.at/ressource/rdf#"
|
||||
ref="http://www.technikum-wien.at/ressource/alle"
|
||||
disabled="true"
|
||||
>
|
||||
<template>
|
||||
|
||||
<vbox id="projekttask-mantis" flex="1">
|
||||
<description>Mantis Details</description>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/ressource/rdf#ressource_id"
|
||||
label="rdf:http://www.technikum-wien.at/ressource/rdf#bezeichnung ( rdf:http://www.technikum-wien.at/ressource/rdf#typ )"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
</template>
|
||||
</menulist>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ende" control="textbox-projekttask-detail-ende"/>
|
||||
<box class="Datum" id="textbox-projekttask-detail-ende" disabled="true"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox>
|
||||
<spacer flex="1" />
|
||||
<button id="button-projekttask-detail-speichern" oncommand="saveProjekttaskDetail()" label="Speichern" disabled="true"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</vbox>
|
||||
</overlay>
|
||||
+7
-2
@@ -22,9 +22,14 @@ menubar,menupopup,toolbar,tabpanels,tabbox,iframe,box,hbox,vbox,tree,label,descr
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
menupopup
|
||||
popup
|
||||
{
|
||||
border: 1px solid black;
|
||||
background-color: lightgray;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
popup>menuitem
|
||||
{
|
||||
color: black;
|
||||
}
|
||||
|
||||
tree treecol {
|
||||
|
||||
Reference in New Issue
Block a user