fixed DB connection issue,added EDIT process permission option

This commit is contained in:
safan
2011-02-02 10:56:23 +00:00
parent 79f9837b9c
commit 8bfa1e1607
6 changed files with 142 additions and 45 deletions

View File

@@ -158,6 +158,10 @@ if ( isset ($_REQUEST['action']) ) {
$sOutput = $oTask->update($aData);
echo $sOutput;
break;
case 'editObjectPermission':
// we also need the process uid variable for the function.
$oProcessMap->editObjectPermission($oData->op_uid,$oData->pro_uid);
break;
case 'triggersList':
$sOutput = $oProcessMap->getTriggers($oData->pro_uid);
$sOutput = $oJSON->encode($sOutput);

View File

@@ -61,6 +61,11 @@ switch($_GET['action'])
array_shift($rows);
break;
case 'editObjectPermission':
$rows = $oProcessMap->editExtObjectPermission($_GET['op_uid'],$_GET['pid']);
array_shift($rows);
break;
case 'editOutputDocument':
require_once 'classes/model/OutputDocument.php';
$oOutputDocument = new OutputDocument();
@@ -195,6 +200,7 @@ switch($_GET['action'])
$rows[$key] = 'Work Days';
else if($key == 'TAS_TYPE_DAY' && $value == '2')
$rows[$key] = 'Calendar Days';
if($key == 'TAS_TYPE' && $value == 'NORMAL')
$rows[$key] = false;
else if($key == 'TAS_TYPE' && $value == 'ADHOC')
@@ -214,4 +220,4 @@ switch($_GET['action'])
$result = $tmpData;
echo $result;
?>
?>

View File

@@ -36,6 +36,9 @@ if( isset($_POST['action']) ){
throw new Exception('dbconnections Fatal error, No action defined!...');
}
if(isset($_POST['PROCESS']))
$_SESSION['PROCESS'] = $_POST['PROCESS'];
#Global Definitions
require_once 'classes/model/DbSource.php';
require_once 'classes/model/Content.php';