mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-15 22:12:16 +00:00
change buchbar to zeitaufzeichnung
This commit is contained in:
@@ -153,15 +153,15 @@ function onselectProjekt()
|
||||
var aufwand_pt=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#aufwand_pt" ));
|
||||
var anzahl_ma=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#anzahl_ma" ));
|
||||
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
|
||||
{
|
||||
buchbar='Ja';
|
||||
zeitaufzeichnung='Ja';
|
||||
}
|
||||
|
||||
//Daten den Feldern zuweisen
|
||||
@@ -179,10 +179,10 @@ function onselectProjekt()
|
||||
document.getElementById('checkbox-projekt-detail-neu').checked=false;
|
||||
document.getElementById('textbox-projekt-anzahl_ma').value=anzahl_ma;
|
||||
document.getElementById('textbox-projekt-aufwand_pt').value=aufwand_pt;
|
||||
if(buchbar=='Nein')
|
||||
document.getElementById('checkbox-projekt-detail-buchbar').checked=false;
|
||||
if(zeitaufzeichnung=='Nein')
|
||||
document.getElementById('checkbox-projekt-detail-zeitaufzeichnung').checked=false;
|
||||
else
|
||||
document.getElementById('checkbox-projekt-detail-buchbar').checked=true;
|
||||
document.getElementById('checkbox-projekt-detail-zeitaufzeichnung').checked=true;
|
||||
|
||||
MenulistSelectItemOnValue('menulist-projekt-detail-aufwandstyp', aufwandstyp_kurzbz);
|
||||
|
||||
@@ -217,7 +217,7 @@ function saveProjektDetail()
|
||||
aufwandstyp_kurzbz = MenulistGetSelectedValue('menulist-projekt-detail-aufwandstyp');
|
||||
anzahl_ma = document.getElementById('textbox-projekt-anzahl_ma').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");
|
||||
//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("aufwand_pt")).val(aufwand_pt);
|
||||
|
||||
if(buchbar)
|
||||
if(zeitaufzeichnung)
|
||||
{
|
||||
projekt.appendChild(new SOAPObject("buchbar")).val('true');
|
||||
projekt.appendChild(new SOAPObject("zeitaufzeichnung")).val('true');
|
||||
}
|
||||
else
|
||||
{
|
||||
projekt.appendChild(new SOAPObject("buchbar")).val('false');
|
||||
projekt.appendChild(new SOAPObject("zeitaufzeichnung")).val('false');
|
||||
}
|
||||
|
||||
if(neu)
|
||||
|
||||
@@ -166,9 +166,9 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
</row>
|
||||
<row>
|
||||
|
||||
<label value="Buchbar" control="checkbox-projekt-detail-buchbar"/>
|
||||
<label value="Zeitaufzeichnung" control="checkbox-projekt-detail-zeitaufzeichnung"/>
|
||||
<hbox>
|
||||
<checkbox id="checkbox-projekt-detail-buchbar"/>
|
||||
<checkbox id="checkbox-projekt-detail-zeitaufzeichnung"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
|
||||
|
||||
@@ -161,15 +161,15 @@ function onselectTreeProjektphase()
|
||||
var budget=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#budget" ));
|
||||
var personentage=getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#personentage" ));
|
||||
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
|
||||
{
|
||||
buchbar='Ja';
|
||||
zeitaufzeichnung='Ja';
|
||||
}
|
||||
//alert(typ);
|
||||
|
||||
@@ -189,10 +189,10 @@ function onselectTreeProjektphase()
|
||||
document.getElementById('textbox-projektphase-detail-personentage').value=personentage;
|
||||
document.getElementById('textbox-projektphase-detail-farbe').value=farbe;
|
||||
document.getElementById('checkbox-projektphase-detail-neu').checked=false;
|
||||
if(buchbar=='Nein')
|
||||
document.getElementById('checkbox-projektphase-detail-buchbar').checked=false;
|
||||
if(zeitaufzeichnung=='Nein')
|
||||
document.getElementById('checkbox-projektphase-detail-zeitaufzeichnung').checked=false;
|
||||
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-ressource', ressource_id);
|
||||
@@ -247,7 +247,7 @@ function saveProjektphaseDetail()
|
||||
var personentage = document.getElementById('textbox-projektphase-detail-personentage').value;
|
||||
var farbe = document.getElementById('textbox-projektphase-detail-farbe').value;
|
||||
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");
|
||||
//soapBody.appendChild(new SOAPObject("username")).val('joe');
|
||||
@@ -266,13 +266,13 @@ function saveProjektphaseDetail()
|
||||
phase.appendChild(new SOAPObject("budget")).val(budget);
|
||||
phase.appendChild(new SOAPObject("personentage")).val(personentage);
|
||||
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
|
||||
{
|
||||
phase.appendChild(new SOAPObject("buchbar")).val('false');
|
||||
phase.appendChild(new SOAPObject("zeitaufzeichnung")).val('false');
|
||||
}
|
||||
if(neu)
|
||||
{
|
||||
|
||||
@@ -145,9 +145,9 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
</row>
|
||||
<row>
|
||||
|
||||
<label value="Buchbar" control="checkbox-projektphase-detail-buchbar"/>
|
||||
<label value="Zeitaufzeichnung" control="checkbox-projektphase-detail-zeitaufzeichnung"/>
|
||||
<hbox>
|
||||
<checkbox id="checkbox-projektphase-detail-buchbar"/>
|
||||
<checkbox id="checkbox-projektphase-detail-zeitaufzeichnung"/>
|
||||
<spacer />
|
||||
</hbox>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user