change buchbar to zeitaufzeichnung

This commit is contained in:
OliiverHacker
2021-04-01 18:29:19 +02:00
parent 8a672780b2
commit 131ec0e33c
13 changed files with 67 additions and 67 deletions
+11 -11
View File
@@ -153,15 +153,15 @@ function onselectProjekt()
var aufwand_pt=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#aufwand_pt" )); var aufwand_pt=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#aufwand_pt" ));
var anzahl_ma=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#anzahl_ma" )); var anzahl_ma=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#anzahl_ma" ));
var aufwandstyp_kurzbz=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#aufwandstyp_kurzbz" )); var aufwandstyp_kurzbz=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#aufwandstyp_kurzbz" ));
var buchbar=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#buchbar" )); var zeitaufzeichnung=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#zeitaufzeichnung" ));
if (!buchbar) if (!zeitaufzeichnung)
{ {
buchbar='Nein'; zeitaufzeichnung='Nein';
} }
else else
{ {
buchbar='Ja'; zeitaufzeichnung='Ja';
} }
//Daten den Feldern zuweisen //Daten den Feldern zuweisen
@@ -179,10 +179,10 @@ function onselectProjekt()
document.getElementById('checkbox-projekt-detail-neu').checked=false; document.getElementById('checkbox-projekt-detail-neu').checked=false;
document.getElementById('textbox-projekt-anzahl_ma').value=anzahl_ma; document.getElementById('textbox-projekt-anzahl_ma').value=anzahl_ma;
document.getElementById('textbox-projekt-aufwand_pt').value=aufwand_pt; document.getElementById('textbox-projekt-aufwand_pt').value=aufwand_pt;
if(buchbar=='Nein') if(zeitaufzeichnung=='Nein')
document.getElementById('checkbox-projekt-detail-buchbar').checked=false; document.getElementById('checkbox-projekt-detail-zeitaufzeichnung').checked=false;
else else
document.getElementById('checkbox-projekt-detail-buchbar').checked=true; document.getElementById('checkbox-projekt-detail-zeitaufzeichnung').checked=true;
MenulistSelectItemOnValue('menulist-projekt-detail-aufwandstyp', aufwandstyp_kurzbz); MenulistSelectItemOnValue('menulist-projekt-detail-aufwandstyp', aufwandstyp_kurzbz);
@@ -217,7 +217,7 @@ function saveProjektDetail()
aufwandstyp_kurzbz = MenulistGetSelectedValue('menulist-projekt-detail-aufwandstyp'); aufwandstyp_kurzbz = MenulistGetSelectedValue('menulist-projekt-detail-aufwandstyp');
anzahl_ma = document.getElementById('textbox-projekt-anzahl_ma').value; anzahl_ma = document.getElementById('textbox-projekt-anzahl_ma').value;
aufwand_pt = document.getElementById('textbox-projekt-aufwand_pt').value; aufwand_pt = document.getElementById('textbox-projekt-aufwand_pt').value;
buchbar = document.getElementById('checkbox-projekt-detail-buchbar').checked; zeitaufzeichnung = document.getElementById('checkbox-projekt-detail-zeitaufzeichnung').checked;
var soapBody = new SOAPObject("saveProjekt"); var soapBody = new SOAPObject("saveProjekt");
//soapBody.appendChild(new SOAPObject("username")).val('joe'); //soapBody.appendChild(new SOAPObject("username")).val('joe');
@@ -237,13 +237,13 @@ function saveProjektDetail()
projekt.appendChild(new SOAPObject("anzahl_ma")).val(anzahl_ma); projekt.appendChild(new SOAPObject("anzahl_ma")).val(anzahl_ma);
projekt.appendChild(new SOAPObject("aufwand_pt")).val(aufwand_pt); projekt.appendChild(new SOAPObject("aufwand_pt")).val(aufwand_pt);
if(buchbar) if(zeitaufzeichnung)
{ {
projekt.appendChild(new SOAPObject("buchbar")).val('true'); projekt.appendChild(new SOAPObject("zeitaufzeichnung")).val('true');
} }
else else
{ {
projekt.appendChild(new SOAPObject("buchbar")).val('false'); projekt.appendChild(new SOAPObject("zeitaufzeichnung")).val('false');
} }
if(neu) if(neu)
@@ -166,9 +166,9 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
</row> </row>
<row> <row>
<label value="Buchbar" control="checkbox-projekt-detail-buchbar"/> <label value="Zeitaufzeichnung" control="checkbox-projekt-detail-zeitaufzeichnung"/>
<hbox> <hbox>
<checkbox id="checkbox-projekt-detail-buchbar"/> <checkbox id="checkbox-projekt-detail-zeitaufzeichnung"/>
<spacer /> <spacer />
</hbox> </hbox>
+11 -11
View File
@@ -161,15 +161,15 @@ function onselectTreeProjektphase()
var budget=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#budget" )); var budget=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#budget" ));
var personentage=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#personentage" )); var personentage=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#personentage" ));
var farbe=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#farbe" )); var farbe=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#farbe" ));
var buchbar=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#buchbar" )); var zeitaufzeichnung=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#zeitaufzeichnung" ));
if (!buchbar) if (!zeitaufzeichnung)
{ {
buchbar='Nein'; zeitaufzeichnung='Nein';
} }
else else
{ {
buchbar='Ja'; zeitaufzeichnung='Ja';
} }
//alert(typ); //alert(typ);
@@ -189,10 +189,10 @@ function onselectTreeProjektphase()
document.getElementById('textbox-projektphase-detail-personentage').value=personentage; document.getElementById('textbox-projektphase-detail-personentage').value=personentage;
document.getElementById('textbox-projektphase-detail-farbe').value=farbe; document.getElementById('textbox-projektphase-detail-farbe').value=farbe;
document.getElementById('checkbox-projektphase-detail-neu').checked=false; document.getElementById('checkbox-projektphase-detail-neu').checked=false;
if(buchbar=='Nein') if(zeitaufzeichnung=='Nein')
document.getElementById('checkbox-projektphase-detail-buchbar').checked=false; document.getElementById('checkbox-projektphase-detail-zeitaufzeichnung').checked=false;
else else
document.getElementById('checkbox-projektphase-detail-buchbar').checked=true; document.getElementById('checkbox-projektphase-detail-zeitaufzeichnung').checked=true;
MenulistSelectItemOnValue('menulist-projektphase-detail-projektphase_fk', projektphase_fk); MenulistSelectItemOnValue('menulist-projektphase-detail-projektphase_fk', projektphase_fk);
MenulistSelectItemOnValue('menulist-projektphase-detail-ressource', ressource_id); MenulistSelectItemOnValue('menulist-projektphase-detail-ressource', ressource_id);
@@ -247,7 +247,7 @@ function saveProjektphaseDetail()
var personentage = document.getElementById('textbox-projektphase-detail-personentage').value; var personentage = document.getElementById('textbox-projektphase-detail-personentage').value;
var farbe = document.getElementById('textbox-projektphase-detail-farbe').value; var farbe = document.getElementById('textbox-projektphase-detail-farbe').value;
var neu = document.getElementById('checkbox-projektphase-detail-neu').checked; var neu = document.getElementById('checkbox-projektphase-detail-neu').checked;
var buchbar = document.getElementById('checkbox-projektphase-detail-buchbar').checked; var zeitaufzeichnung = document.getElementById('checkbox-projektphase-detail-zeitaufzeichnung').checked;
var soapBody = new SOAPObject("saveProjektphase"); var soapBody = new SOAPObject("saveProjektphase");
//soapBody.appendChild(new SOAPObject("username")).val('joe'); //soapBody.appendChild(new SOAPObject("username")).val('joe');
@@ -266,13 +266,13 @@ function saveProjektphaseDetail()
phase.appendChild(new SOAPObject("budget")).val(budget); phase.appendChild(new SOAPObject("budget")).val(budget);
phase.appendChild(new SOAPObject("personentage")).val(personentage); phase.appendChild(new SOAPObject("personentage")).val(personentage);
phase.appendChild(new SOAPObject("farbe")).val(farbe); phase.appendChild(new SOAPObject("farbe")).val(farbe);
if(buchbar) if(zeitaufzeichnung)
{ {
phase.appendChild(new SOAPObject("buchbar")).val('true'); phase.appendChild(new SOAPObject("zeitaufzeichnung")).val('true');
} }
else else
{ {
phase.appendChild(new SOAPObject("buchbar")).val('false'); phase.appendChild(new SOAPObject("zeitaufzeichnung")).val('false');
} }
if(neu) if(neu)
{ {
@@ -145,9 +145,9 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
</row> </row>
<row> <row>
<label value="Buchbar" control="checkbox-projektphase-detail-buchbar"/> <label value="Zeitaufzeichnung" control="checkbox-projektphase-detail-zeitaufzeichnung"/>
<hbox> <hbox>
<checkbox id="checkbox-projektphase-detail-buchbar"/> <checkbox id="checkbox-projektphase-detail-zeitaufzeichnung"/>
<spacer /> <spacer />
</hbox> </hbox>
+10 -10
View File
@@ -47,7 +47,7 @@ class projekt extends basis_db
public $farbe; public $farbe;
public $anzahl_ma; // integer public $anzahl_ma; // integer
public $aufwand_pt; // integer public $aufwand_pt; // integer
public $buchbar; //bool public $zeitaufzeichnung; //bool
/** /**
@@ -86,7 +86,7 @@ class projekt extends basis_db
$this->farbe = $row->farbe; $this->farbe = $row->farbe;
$this->anzahl_ma = $row->anzahl_ma; $this->anzahl_ma = $row->anzahl_ma;
$this->aufwand_pt = $row->aufwand_pt; $this->aufwand_pt = $row->aufwand_pt;
$this->buchbar = $this->db_parse_bool($row->buchbar); $this->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
return true; return true;
} }
@@ -141,7 +141,7 @@ class projekt extends basis_db
$obj->aufwandstyp_kurzbz = $row->aufwandstyp_kurzbz; $obj->aufwandstyp_kurzbz = $row->aufwandstyp_kurzbz;
$obj->anzahl_ma = $row->anzahl_ma; $obj->anzahl_ma = $row->anzahl_ma;
$obj->aufwand_pt = $row->aufwand_pt; $obj->aufwand_pt = $row->aufwand_pt;
$obj->buchbar = $this->db_parse_bool($row->buchbar); $obj->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
$this->result[] = $obj; $this->result[] = $obj;
} }
@@ -185,7 +185,7 @@ class projekt extends basis_db
$obj->farbe = $row->farbe; $obj->farbe = $row->farbe;
$obj->anzahl_ma = $row->anzahl_ma; $obj->anzahl_ma = $row->anzahl_ma;
$obj->aufwand_pt = $row->aufwand_pt; $obj->aufwand_pt = $row->aufwand_pt;
$obj->buchbar = $this->db_parse_bool($row->buchbar); $obj->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
$this->result[] = $obj; $this->result[] = $obj;
} }
@@ -229,7 +229,7 @@ class projekt extends basis_db
$obj->aufwandstyp_kurzbz = $row->aufwandstyp_kurzbz; $obj->aufwandstyp_kurzbz = $row->aufwandstyp_kurzbz;
$obj->anzahl_ma = $row->anzahl_ma; $obj->anzahl_ma = $row->anzahl_ma;
$obj->aufwand_pt = $row->aufwand_pt; $obj->aufwand_pt = $row->aufwand_pt;
$obj->buchbar = $this->db_parse_bool($row->buchbar); $obj->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
$this->result[] = $obj; $this->result[] = $obj;
} }
@@ -297,7 +297,7 @@ class projekt extends basis_db
{ {
//Neuen Datensatz einfuegen //Neuen Datensatz einfuegen
$qry = 'INSERT INTO fue.tbl_projekt (projekt_kurzbz, nummer, titel,beschreibung, beginn, ende, budget, farbe, oe_kurzbz, aufwand_pt, anzahl_ma, aufwandstyp_kurzbz, buchbar) VALUES('. $qry = 'INSERT INTO fue.tbl_projekt (projekt_kurzbz, nummer, titel,beschreibung, beginn, ende, budget, farbe, oe_kurzbz, aufwand_pt, anzahl_ma, aufwandstyp_kurzbz, zeitaufzeichnung) VALUES('.
$this->db_add_param($this->projekt_kurzbz).', '. $this->db_add_param($this->projekt_kurzbz).', '.
$this->db_add_param($this->nummer).', '. $this->db_add_param($this->nummer).', '.
$this->db_add_param($this->titel).', '. $this->db_add_param($this->titel).', '.
@@ -310,7 +310,7 @@ class projekt extends basis_db
$this->db_add_param($this->aufwand_pt).','. $this->db_add_param($this->aufwand_pt).','.
$this->db_add_param($this->anzahl_ma).','. $this->db_add_param($this->anzahl_ma).','.
$this->db_add_param($this->aufwandstyp_kurzbz).', '. $this->db_add_param($this->aufwandstyp_kurzbz).', '.
$this->db_add_param($this->buchbar,FHC_BOOLEAN).');'; $this->db_add_param($this->zeitaufzeichnung,FHC_BOOLEAN).');';
} }
else else
{ {
@@ -329,7 +329,7 @@ class projekt extends basis_db
'anzahl_ma='.$this->db_add_param($this->anzahl_ma).', '. 'anzahl_ma='.$this->db_add_param($this->anzahl_ma).', '.
'aufwand_pt='.$this->db_add_param($this->aufwand_pt).', '. 'aufwand_pt='.$this->db_add_param($this->aufwand_pt).', '.
'aufwandstyp_kurzbz='.$this->db_add_param($this->aufwandstyp_kurzbz).', '. 'aufwandstyp_kurzbz='.$this->db_add_param($this->aufwandstyp_kurzbz).', '.
'buchbar='.$this->db_add_param($this->buchbar,FHC_BOOLEAN).' '. 'zeitaufzeichnung='.$this->db_add_param($this->zeitaufzeichnung,FHC_BOOLEAN).' '.
'WHERE projekt_kurzbz='.$this->db_add_param($this->projekt_kurzbz).';'; 'WHERE projekt_kurzbz='.$this->db_add_param($this->projekt_kurzbz).';';
} }
@@ -424,7 +424,7 @@ class projekt extends basis_db
$obj->beginn = $row->beginn; $obj->beginn = $row->beginn;
$obj->ende = $row->ende; $obj->ende = $row->ende;
$obj->oe_kurzbz = $row->oe_kurzbz; $obj->oe_kurzbz = $row->oe_kurzbz;
$obj->buchbar = $this->db_parse_bool($row->buchbar); $obj->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
$this->result[] = $obj; $this->result[] = $obj;
} }
@@ -457,7 +457,7 @@ class projekt extends basis_db
$this->farbe = $row->farbe; $this->farbe = $row->farbe;
$this->anzahl_ma = $row->anzahl_ma; $this->anzahl_ma = $row->anzahl_ma;
$this->aufwand_pt = $row->aufwand_pt; $this->aufwand_pt = $row->aufwand_pt;
$this->buchbar = $this->db_parse_bool($row->buchbar); $this->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
return true; return true;
} }
+8 -8
View File
@@ -48,7 +48,7 @@ class projektphase extends basis_db
public $insertvon; // bigint public $insertvon; // bigint
public $updateamum; // timestamp public $updateamum; // timestamp
public $updatevon; // bigint public $updatevon; // bigint
public $buchbar; // bool public $zeitaufzeichnung; // bool
/** /**
@@ -101,7 +101,7 @@ class projektphase extends basis_db
$this->insertvon = $row->insertvon; $this->insertvon = $row->insertvon;
$this->updateamum = $row->updateamum; $this->updateamum = $row->updateamum;
$this->updatevon = $row->updatevon; $this->updatevon = $row->updatevon;
$this->buchbar = $this->db_parse_bool($row->buchbar); $this->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
return true; return true;
} }
else else
@@ -160,7 +160,7 @@ class projektphase extends basis_db
$obj->insertvon = $row->insertvon; $obj->insertvon = $row->insertvon;
$obj->updateamum = $row->updateamum; $obj->updateamum = $row->updateamum;
$obj->updatevon = $row->updatevon; $obj->updatevon = $row->updatevon;
$obj->buchbar = $this->db_parse_bool($row->buchbar); $obj->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
$this->result[] = $obj; $this->result[] = $obj;
} }
@@ -216,7 +216,7 @@ class projektphase extends basis_db
$obj->insertvon = $row->insertvon; $obj->insertvon = $row->insertvon;
$obj->updateamum = $row->updateamum; $obj->updateamum = $row->updateamum;
$obj->updatevon = $row->updatevon; $obj->updatevon = $row->updatevon;
$obj->buchbar = $this->db_parse_bool($row->buchbar); $obj->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
$this->result[] = $obj; $this->result[] = $obj;
} }
//var_dump($this->result); //var_dump($this->result);
@@ -263,7 +263,7 @@ class projektphase extends basis_db
$obj->insertvon = $row->insertvon; $obj->insertvon = $row->insertvon;
$obj->updateamum = $row->updateamum; $obj->updateamum = $row->updateamum;
$obj->updatevon = $row->updatevon; $obj->updatevon = $row->updatevon;
$obj->buchbar = $this->db_parse_bool($row->buchbar); $obj->zeitaufzeichnung = $this->db_parse_bool($row->zeitaufzeichnung);
$this->result[] = $obj; $this->result[] = $obj;
} }
@@ -325,7 +325,7 @@ class projektphase extends basis_db
//Neuen Datensatz einfuegen //Neuen Datensatz einfuegen
$qry='BEGIN; INSERT INTO fue.tbl_projektphase (projekt_kurzbz, projektphase_fk, bezeichnung, typ, $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, buchbar) VALUES ('. beschreibung, start, ende, budget, ressource_id, insertvon, insertamum, updatevon, updateamum, farbe, personentage, zeitaufzeichnung) VALUES ('.
$this->db_add_param($this->projekt_kurzbz).', '. $this->db_add_param($this->projekt_kurzbz).', '.
$this->db_add_param($this->projektphase_fk).', '. $this->db_add_param($this->projektphase_fk).', '.
$this->db_add_param($this->bezeichnung).', '. $this->db_add_param($this->bezeichnung).', '.
@@ -339,7 +339,7 @@ class projektphase extends basis_db
$this->db_add_param($this->updatevon).', now(), '. $this->db_add_param($this->updatevon).', now(), '.
$this->db_add_param($this->farbe).', '. $this->db_add_param($this->farbe).', '.
$this->db_add_param($this->personentage).', '. $this->db_add_param($this->personentage).', '.
$this->db_add_param($this->buchbar,FHC_BOOLEAN).');'; $this->db_add_param($this->zeitaufzeichnung,FHC_BOOLEAN).');';
} }
else else
{ {
@@ -359,7 +359,7 @@ class projektphase extends basis_db
'personentage='.$this->db_add_param($this->personentage).', '. 'personentage='.$this->db_add_param($this->personentage).', '.
'updateamum= now(), '. 'updateamum= now(), '.
'updatevon='.$this->db_add_param($this->updatevon).', '. 'updatevon='.$this->db_add_param($this->updatevon).', '.
'buchbar='.$this->db_add_param($this->buchbar,FHC_BOOLEAN).' '. 'zeitaufzeichnung='.$this->db_add_param($this->zeitaufzeichnung,FHC_BOOLEAN).' '.
'WHERE projektphase_id='.$this->db_add_param($this->projektphase_id, FHC_INTEGER).';'; 'WHERE projektphase_id='.$this->db_add_param($this->projektphase_id, FHC_INTEGER).';';
} }
+1 -1
View File
@@ -72,7 +72,7 @@ for ($i=0;$i<count($projekt_obj->result);$i++)
<PROJEKT:anzahl_ma>'.$projekt->anzahl_ma.'</PROJEKT:anzahl_ma> <PROJEKT:anzahl_ma>'.$projekt->anzahl_ma.'</PROJEKT:anzahl_ma>
<PROJEKT:aufwand_pt>'.$projekt->aufwand_pt.'</PROJEKT:aufwand_pt> <PROJEKT:aufwand_pt>'.$projekt->aufwand_pt.'</PROJEKT:aufwand_pt>
<PROJEKT:aufwandstyp_kurzbz>'.$projekt->aufwandstyp_kurzbz.'</PROJEKT:aufwandstyp_kurzbz> <PROJEKT:aufwandstyp_kurzbz>'.$projekt->aufwandstyp_kurzbz.'</PROJEKT:aufwandstyp_kurzbz>
<PROJEKT:buchbar>'.$projekt->buchbar.'</PROJEKT:buchbar> <PROJEKT:zeitaufzeichnung>'.$projekt->zeitaufzeichnung.'</PROJEKT:zeitaufzeichnung>
</RDF:Description>'."\n"; </RDF:Description>'."\n";
$sequenz.='<RDF:li RDF:resource="'.$rdf_url.$projekt->projekt_kurzbz.'" />'."\n"; $sequenz.='<RDF:li RDF:resource="'.$rdf_url.$projekt->projekt_kurzbz.'" />'."\n";
+6 -6
View File
@@ -63,7 +63,7 @@ if($projektphase_id != '')
$oRdf->obj[$i]->setAttribut('farbe',$phase->farbe); $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); $oRdf->obj[$i]->setAttribut('ressource_id',$phase->ressource_id);
$oRdf->obj[$i]->setAttribut('buchbar',$phase->buchbar); $oRdf->obj[$i]->setAttribut('zeitaufzeichnung',$phase->zeitaufzeichnung);
if($phase->projektphase_fk!='') if($phase->projektphase_fk!='')
$oRdf->addSequence($phase->projektphase_id, $phase->projektphase_fk); $oRdf->addSequence($phase->projektphase_id, $phase->projektphase_fk);
@@ -95,7 +95,7 @@ if($projektphase_id != '')
$oRdf->obj[$idx]->setAttribut('personentage', ''); $oRdf->obj[$idx]->setAttribut('personentage', '');
$oRdf->obj[$idx]->setAttribut('farbe', ''); $oRdf->obj[$idx]->setAttribut('farbe', '');
$oRdf->obj[$idx]->setAttribut('typ', ''); $oRdf->obj[$idx]->setAttribut('typ', '');
$oRdf->obj[$idx]->setAttribut('buchbar',''); $oRdf->obj[$idx]->setAttribut('zeitaufzeichnung','');
$oRdf->addSequence('opt'); $oRdf->addSequence('opt');
} }
@@ -115,7 +115,7 @@ if($projektphase_id != '')
$oRdf->obj[$idx]->setAttribut('personentage', $phase->personentage); $oRdf->obj[$idx]->setAttribut('personentage', $phase->personentage);
$oRdf->obj[$idx]->setAttribut('farbe', $phase->farbe); $oRdf->obj[$idx]->setAttribut('farbe', $phase->farbe);
$oRdf->obj[$idx]->setAttribut('typ', $phase->typ); $oRdf->obj[$idx]->setAttribut('typ', $phase->typ);
$oRdf->obj[$idx]->setAttribut('buchbar',$phase->buchbar); $oRdf->obj[$idx]->setAttribut('zeitaufzeichnung',$phase->zeitaufzeichnung);
$oRdf->addSequence($phase->projektphase_id); $oRdf->addSequence($phase->projektphase_id);
} }
@@ -166,7 +166,7 @@ else
$oRdf->obj[$idx]->setAttribut('beginn',''); $oRdf->obj[$idx]->setAttribut('beginn','');
$oRdf->obj[$idx]->setAttribut('ende',''); $oRdf->obj[$idx]->setAttribut('ende','');
$oRdf->obj[$idx]->setAttribut('typ','organisationseinheit'); $oRdf->obj[$idx]->setAttribut('typ','organisationseinheit');
$oRdf->obj[$idx]->setAttribut('buchbar',''); $oRdf->obj[$idx]->setAttribut('zeitaufzeichnung','');
$oRdf->addSequence($projekt->oe_kurzbz); $oRdf->addSequence($projekt->oe_kurzbz);
@@ -188,7 +188,7 @@ else
$oRdf->obj[$idx]->setAttribut('beginn',$datum_obj->formatDatum($projekt->beginn,'d.m.Y')); $oRdf->obj[$idx]->setAttribut('beginn',$datum_obj->formatDatum($projekt->beginn,'d.m.Y'));
$oRdf->obj[$idx]->setAttribut('ende',$datum_obj->formatDatum($projekt->ende,'d.m.Y')); $oRdf->obj[$idx]->setAttribut('ende',$datum_obj->formatDatum($projekt->ende,'d.m.Y'));
$oRdf->obj[$idx]->setAttribut('typ','projekt'); $oRdf->obj[$idx]->setAttribut('typ','projekt');
$oRdf->obj[$idx]->setAttribut('buchbar',$projekt->buchbar); $oRdf->obj[$idx]->setAttribut('zeitaufzeichnung',$projekt->zeitaufzeichnung);
$oRdf->addSequence($projekt->oe_kurzbz.'/'.$projekt->projekt_kurzbz, $projekt->oe_kurzbz); $oRdf->addSequence($projekt->oe_kurzbz.'/'.$projekt->projekt_kurzbz, $projekt->oe_kurzbz);
@@ -229,7 +229,7 @@ else
$oRdf->obj[$idx]->setAttribut('typ',strtolower($projektphase->typ)); $oRdf->obj[$idx]->setAttribut('typ',strtolower($projektphase->typ));
$oRdf->obj[$idx]->setAttribut('ressource_bezeichnung',$projektphase->ressource_bezeichnung); $oRdf->obj[$idx]->setAttribut('ressource_bezeichnung',$projektphase->ressource_bezeichnung);
$oRdf->obj[$idx]->setAttribut('ressource_id',$projektphase->ressource_id); $oRdf->obj[$idx]->setAttribut('ressource_id',$projektphase->ressource_id);
$oRdf->obj[$idx]->setAttribut('buchbar',$projektphase->buchbar); $oRdf->obj[$idx]->setAttribut('zeitaufzeichnung',$projektphase->zeitaufzeichnung);
if (!is_null($projektphase->projektphase_fk)) if (!is_null($projektphase->projektphase_fk))
$oRdf->addSequence($projekt->oe_kurzbz.'/'.$projekt->projekt_kurzbz.'/'.$projektphase->projektphase_id, $projekt->oe_kurzbz.'/'.$projekt->projekt_kurzbz.'/'.$projektphase->projektphase_fk); $oRdf->addSequence($projekt->oe_kurzbz.'/'.$projekt->projekt_kurzbz.'/'.$projektphase->projektphase_id, $projekt->oe_kurzbz.'/'.$projekt->projekt_kurzbz.'/'.$projektphase->projektphase_fk);
else else
+3 -3
View File
@@ -72,13 +72,13 @@ function saveProjekt($username, $passwort, $projekt)
$projektNew->anzahl_ma = $projekt->anzahl_ma; $projektNew->anzahl_ma = $projekt->anzahl_ma;
$projektNew->aufwand_pt = $projekt->aufwand_pt; $projektNew->aufwand_pt = $projekt->aufwand_pt;
if($projekt->buchbar=='true') if($projekt->zeitaufzeichnung=='true')
{ {
$projektNew->buchbar = true; $projektNew->zeitaufzeichnung = true;
} }
else else
{ {
$projektNew->buchbar = false; $projektNew->zeitaufzeichnung = false;
} }
if($projekt->neu=='true') if($projekt->neu=='true')
+1 -1
View File
@@ -30,7 +30,7 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:part name="farbe" type="xsd:string"></wsdl:part> <wsdl:part name="farbe" type="xsd:string"></wsdl:part>
<wsdl:part name="oe_kurzbz" type="xsd:string"></wsdl:part> <wsdl:part name="oe_kurzbz" type="xsd:string"></wsdl:part>
<wsdl:part name="neu" type="xsd:string"></wsdl:part> <wsdl:part name="neu" type="xsd:string"></wsdl:part>
<wsdl:part name="buchbar" type="xsd:string"></wsdl:part> <wsdl:part name="zeitaufzeichnung" type="xsd:string"></wsdl:part>
<wsdl:part name="aufwandstyp_kurzbz" type="xsd:string"></wsdl:part> <wsdl:part name="aufwandstyp_kurzbz" type="xsd:string"></wsdl:part>
</xsd:all> </xsd:all>
</xsd:complexType> </xsd:complexType>
+3 -3
View File
@@ -82,13 +82,13 @@ function saveProjektphase($username, $passwort, $phase)
$projektphase->updatevon = $user; $projektphase->updatevon = $user;
$projektphase->updateamum = date('Y-m-d H:i:s'); $projektphase->updateamum = date('Y-m-d H:i:s');
if($phase->buchbar=='true') if($phase->zeitaufzeichnung=='true')
{ {
$projektphase->buchbar = true; $projektphase->zeitaufzeichnung = true;
} }
else else
{ {
$projektphase->buchbar = false; $projektphase->zeitaufzeichnung = false;
} }
if($phase->neu=='true') if($phase->neu=='true')
+1 -1
View File
@@ -35,7 +35,7 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<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="user" type="xsd:string"></wsdl:part>
<wsdl:part name="neu" type="xsd:boolean"></wsdl:part> <wsdl:part name="neu" type="xsd:boolean"></wsdl:part>
<wsdl:part name="buchbar" type="xsd:string"></wsdl:part> <wsdl:part name="zeitaufzeichnung" type="xsd:string"></wsdl:part>
</xsd:all> </xsd:all>
</xsd:complexType> </xsd:complexType>
+8 -8
View File
@@ -2032,26 +2032,26 @@ if (!$result = @$db->db_query("SELECT projekt_id FROM fue.tbl_projekt LIMIT 1"))
} }
// add column buchbar to fue.tbl_project // add column zeitaufzeichnung to fue.tbl_project
if (!$result = @$db->db_query("SELECT buchbar FROM fue.tbl_projekt LIMIT 1")) if (!$result = @$db->db_query("SELECT zeitaufzeichnung FROM fue.tbl_projekt LIMIT 1"))
{ {
$qry = "ALTER TABLE fue.tbl_projekt ADD COLUMN buchbar BOOLEAN NOT NULL DEFAULT true;"; $qry = "ALTER TABLE fue.tbl_projekt ADD COLUMN zeitaufzeichnung BOOLEAN NOT NULL DEFAULT true;";
if(!$db->db_query($qry)) if(!$db->db_query($qry))
echo '<strong>fue.tbl_projekt '.$db->db_last_error().'</strong><br>'; echo '<strong>fue.tbl_projekt '.$db->db_last_error().'</strong><br>';
else else
echo '<br>Spalte buchbar zu fue.tbl_projekt hinzugefügt'; echo '<br>Spalte zeitaufzeichnung zu fue.tbl_projekt hinzugefügt';
} }
// add column buchbar to fue.tbl_projectphase // add column zeitaufzeichnung to fue.tbl_projectphase
if (!$result = @$db->db_query("SELECT buchbar FROM fue.tbl_projektphase LIMIT 1")) if (!$result = @$db->db_query("SELECT zeitaufzeichnung FROM fue.tbl_projektphase LIMIT 1"))
{ {
$qry = "ALTER TABLE fue.tbl_projektphase ADD COLUMN buchbar BOOLEAN NOT NULL DEFAULT true;"; $qry = "ALTER TABLE fue.tbl_projektphase ADD COLUMN zeitaufzeichnung BOOLEAN NOT NULL DEFAULT true;";
if(!$db->db_query($qry)) if(!$db->db_query($qry))
echo '<strong>fue.tbl_projektphase '.$db->db_last_error().'</strong><br>'; echo '<strong>fue.tbl_projektphase '.$db->db_last_error().'</strong><br>';
else else
echo '<br>Spalte buchbar zu fue.tbl_projektphase hinzugefügt'; echo '<br>Spalte zeitaufzeichnung zu fue.tbl_projektphase hinzugefügt';
} }
// Extension Schema // Extension Schema