mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-16 03:29:34 +00:00
0bc0a09bf4
- application/extensions file system permission now is 775 - application/logs file system permission now is 775 - Added extensions directory in application/: config, controllers, helpers, hooks, libraries, models, views and widgets - Added view views/extensions/manage.php - Added controller controllers/system/extensions/Manager.php - Added library ExtensionsLib to manage extensions - Added model models/system/Extensions_model.php - Moved code related to print out info from MigrationLib to EPrintfLib
82 lines
2.4 KiB
PHP
82 lines
2.4 KiB
PHP
<?php
|
|
require_once('../../config/vilesci.config.inc.php');
|
|
require_once('../../include/functions.inc.php');
|
|
|
|
?>
|
|
|
|
function updateProjektRessource()
|
|
{
|
|
if(projekt_ressource_id!='')
|
|
{
|
|
|
|
aufwand = document.getElementById("textbox-ressource-aufwand").value;
|
|
if (document.getElementById("leitung").selected)
|
|
funktion_kurzbz = 'Leitung';
|
|
else
|
|
funktion_kurzbz = 'Mitarbeiter';
|
|
|
|
|
|
|
|
try
|
|
{
|
|
var soapBody = new SOAPObject("saveProjektRessource");
|
|
var projektRessource = new SOAPObject("projektRessource");
|
|
|
|
projektRessource.appendChild(new SOAPObject("projekt_ressource_id")).val(projekt_ressource_id);
|
|
|
|
if(projekt_kurzbz != '')
|
|
{
|
|
projektRessource.appendChild(new SOAPObject("projektphase_id")).val('');
|
|
projektRessource.appendChild(new SOAPObject("projekt_kurzbz")).val(projekt_kurzbz);
|
|
}
|
|
else if(projektphase_id != '')
|
|
{
|
|
projektRessource.appendChild(new SOAPObject("projektphase_id")).val(projektphase_id);
|
|
projektRessource.appendChild(new SOAPObject("projekt_kurzbz")).val('');
|
|
}
|
|
|
|
projektRessource.appendChild(new SOAPObject("ressource_id")).val(ressource_id);
|
|
projektRessource.appendChild(new SOAPObject("funktion_kurzbz")).val(funktion_kurzbz);
|
|
projektRessource.appendChild(new SOAPObject("beschreibung")).val(beschreibung);
|
|
projektRessource.appendChild(new SOAPObject("aufwand")).val(aufwand);
|
|
|
|
soapBody.appendChild(projektRessource);
|
|
|
|
var sr = new SOAPRequest("saveProjektRessource",soapBody);
|
|
SOAPClient.Proxy="<?php echo APP_ROOT;?>soap/ressource_projekt.soap.php?"+gettimestamp();
|
|
|
|
function mycallb(obj)
|
|
{
|
|
var me=obj;
|
|
this.invoke=function (respObj)
|
|
{
|
|
try
|
|
{
|
|
var id = respObj.Body[0].saveProjektRessourceResponse[0].message[0].Text;
|
|
}
|
|
catch(e)
|
|
{
|
|
var fehler = respObj.Body[0].Fault[0].faultstring[0].Text;
|
|
alert('Fehler: '+fehler);
|
|
return;
|
|
}
|
|
me.RefreshRessource();
|
|
}
|
|
}
|
|
|
|
var cb=new mycallb(this);
|
|
|
|
//SOAPClient.SendRequest(sr,cb.invoke);
|
|
SOAPClient.SendRequest(sr);
|
|
}
|
|
catch(e)
|
|
{
|
|
debug("Ressource load failed with exception: "+e);
|
|
}
|
|
|
|
}
|
|
//window.opener.location.reload(false);
|
|
window.close();
|
|
|
|
}
|