save type

save ressourve_id
select type from dropdown menu
This commit is contained in:
Gerald Raab
2015-05-21 16:40:01 +02:00
parent 38536837e8
commit e479553fc7
6 changed files with 21 additions and 8 deletions
+3 -2
View File
@@ -146,7 +146,7 @@ function onselectTreeProjektphase()
var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].
getService(Components.interfaces.nsIRDFService);
var subject = rdfService.GetResource("http://www.technikum-wien.at/projektphase/" + projektphase_id);
console.log(subject);
//console.log(subject);
var predicateNS = "http://www.technikum-wien.at/projektphase/rdf";
//Daten holen
@@ -243,7 +243,8 @@ function saveProjektphaseDetail()
phase.appendChild(new SOAPObject("projektphase_fk")).val(projektphase_fk);
phase.appendChild(new SOAPObject("projekt_kurzbz")).val(projekt_kurzbz);
phase.appendChild(new SOAPObject("bezeichnung")).cdataval(bezeichnung);
phase.appendChild(new SOAPObject("typ")).cdataval(typ);
phase.appendChild(new SOAPObject("typ")).cdataval(typ);
phase.appendChild(new SOAPObject("ressource_id")).val(ressource_id);
phase.appendChild(new SOAPObject("beschreibung")).cdataval(beschreibung);
phase.appendChild(new SOAPObject("start")).val(start);
phase.appendChild(new SOAPObject("ende")).val(ende);
@@ -84,7 +84,14 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<spacer />
<label value="Typ" control="textbox-projektphase-detail-typ"/>
<hbox>
<textbox id="textbox-projektphase-detail-typ" maxlength="32" size="32" disabled="true"/>
<menulist id="textbox-projektphase-detail-typ" disabled="true">
<menupopup>
<menuitem value="Arbeitspaket" label="Arbeitspaket"/>
<menuitem value="Projektphase" label="Projektphase"/>
<menuitem value="Milestone" label="Milestone"/>
</menupopup>
</menulist>
<spacer />
</hbox>
</hbox>
+1 -1
View File
@@ -320,7 +320,7 @@ class projektphase extends basis_db
{
//Neuen Datensatz einfuegen
$qry='BEGIN; INSERT INTO fue.tbl_projektphase (projekt_kurzbz, projektphase_fk, bezeichnung,
$qry='BEGIN; INSERT INTO fue.tbl_projektphase (projekt_kurzbz, projektphase_fk, bezeichnung, typ,
beschreibung, start, ende, budget, ressource_id, insertvon, insertamum, updatevon, updateamum, farbe, personentage) VALUES ('.
$this->db_add_param($this->projekt_kurzbz).', '.
$this->db_add_param($this->projektphase_fk).', '.
+2 -1
View File
@@ -61,7 +61,8 @@ if($projektphase_id != '')
$oRdf->obj[$i]->setAttribut('fortschritt',$ergebnis);
$oRdf->obj[$i]->setAttribut('personentage',$phase->personentage);
$oRdf->obj[$i]->setAttribut('farbe',$phase->farbe);
$oRdf->obj[$i]->setAttribut('typ',$phase->typ);
$oRdf->obj[$i]->setAttribut('typ',$phase->typ);
$oRdf->obj[$i]->setAttribut('ressource_id',$phase->ressource_id);
if($phase->projektphase_fk!='')
$oRdf->addSequence($phase->projektphase_id, $phase->projektphase_fk);
+3 -1
View File
@@ -70,7 +70,9 @@ function saveProjektphase($username, $passwort, $phase)
$projektphase->projektphase_id=$phase->projektphase_id;
$projektphase->projekt_kurzbz=$phase->projekt_kurzbz;
$projektphase->projektphase_fk=$phase->projektphase_fk;
$projektphase->bezeichnung = $phase->bezeichnung;
$projektphase->bezeichnung = $phase->bezeichnung;
$projektphase->typ = $phase->typ;
$projektphase->ressource_id = $phase->ressource_id;
$projektphase->beschreibung = $phase->beschreibung;
$projektphase->start = $phase->start;
$projektphase->ende = $phase->ende;
+4 -2
View File
@@ -24,13 +24,15 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:part name="projektphase_id" type="xsd:string"></wsdl:part>
<wsdl:part name="projekt_kurzbz" type="xsd:string"></wsdl:part>
<wsdl:part name="projektphase_fk" type="xsd:string"></wsdl:part>
<wsdl:part name="bezeichnung" type="xsd:string"></wsdl:part>
<wsdl:part name="bezeichnung" type="xsd:string"></wsdl:part>
<wsdl:part name="typ" type="xsd:string"></wsdl:part>
<wsdl:part name="ressource_id" type="xsd:string"></wsdl:part>
<wsdl:part name="beschreibung" type="xsd:string"></wsdl:part>
<wsdl:part name="start" type="xsd:string"></wsdl:part>
<wsdl:part name="ende" type="xsd:string"></wsdl:part>
<wsdl:part name="budget" type="xsd:string"></wsdl:part>
<wsdl:part name="personentage" type="xsd:string"></wsdl:part>
<wsdl:part name="farbe" type="xsd:string"></wsdl:part>
<wsdl:part name="farbe" type="xsd:string"></wsdl:part>
<wsdl:part name="user" type="xsd:string"></wsdl:part>
<wsdl:part name="neu" type="xsd:boolean"></wsdl:part>
</xsd:all>