Pagination in process permission,process supervisor,and fixed issue with extjs
This commit is contained in:
@@ -4,9 +4,11 @@ try
|
|||||||
{
|
{
|
||||||
G::LoadClass('processMap');
|
G::LoadClass('processMap');
|
||||||
$oProcessMap = new processMap(new DBConnection);
|
$oProcessMap = new processMap(new DBConnection);
|
||||||
|
$start = isset($_POST['start'])? $_POST['start']: 0;
|
||||||
|
$limit = isset($_POST['limit'])? $_POST['limit']: '';
|
||||||
if ( isset($_GET['tid'] ) )
|
if ( isset($_GET['tid'] ) )
|
||||||
{
|
{
|
||||||
$rows = $oProcessMap->getExtStepsCriteria($_GET['tid']); //Getting all assigned steps on a task
|
$rows = $oProcessMap->getExtStepsCriteria($start, $limit, $_GET['tid']); //Getting all assigned steps on a task
|
||||||
array_shift($rows);
|
array_shift($rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,52 +121,4 @@ try
|
|||||||
'children' => $assignTaskChildren
|
'children' => $assignTaskChildren
|
||||||
);
|
);
|
||||||
|
|
||||||
/* $nodes = "[{
|
echo json_encode($steps);
|
||||||
text: 'Step 1 - Triggers (0)',
|
|
||||||
cls: 'blank',
|
|
||||||
iconCls: 'blank',
|
|
||||||
children: [{
|
|
||||||
text: 'Before - Triggers (0)',
|
|
||||||
cls: 'blank',
|
|
||||||
iconCls: 'blank',
|
|
||||||
children: [{
|
|
||||||
text: 'Assign Before Trigger',
|
|
||||||
leaf: true,
|
|
||||||
}]
|
|
||||||
},{
|
|
||||||
text: 'After - Triggers (0)',
|
|
||||||
leaf: true,
|
|
||||||
cls: 'blank',
|
|
||||||
iconCls: 'blank',
|
|
||||||
}]
|
|
||||||
},{
|
|
||||||
text: 'Step 2 - Triggers (0)',
|
|
||||||
|
|
||||||
children: [{
|
|
||||||
text: 'Before - Triggers (0)',
|
|
||||||
leaf: true,
|
|
||||||
|
|
||||||
},{
|
|
||||||
text: 'After - Triggers (0)',
|
|
||||||
leaf: true,
|
|
||||||
|
|
||||||
}]
|
|
||||||
},{
|
|
||||||
text: 'Assign Task - Triggers(0)',
|
|
||||||
|
|
||||||
children: [{
|
|
||||||
text: 'Before Assigment - Triggers(0)',
|
|
||||||
leaf: true,
|
|
||||||
|
|
||||||
},{
|
|
||||||
text: 'Before Derivation - Triggers(0)',
|
|
||||||
leaf: true,
|
|
||||||
|
|
||||||
},{
|
|
||||||
text: 'After Derivation - Triggers(0)',
|
|
||||||
leaf: true,
|
|
||||||
|
|
||||||
}]
|
|
||||||
}]";*/
|
|
||||||
//echo $nodes;
|
|
||||||
echo json_encode($steps);
|
|
||||||
@@ -2,243 +2,347 @@
|
|||||||
G::LoadClass('processMap');
|
G::LoadClass('processMap');
|
||||||
$oProcessMap = new processMap(new DBConnection);
|
$oProcessMap = new processMap(new DBConnection);
|
||||||
//$_GET['sid'] gets STEP_UID and sTYPE(i.e BEFORE and AFTER) in format STEP_UID-sTYPE
|
//$_GET['sid'] gets STEP_UID and sTYPE(i.e BEFORE and AFTER) in format STEP_UID-sTYPE
|
||||||
if(isset($_GET['stepid']))
|
if(isset($_GET['stepid'])){
|
||||||
{
|
$aStepTypeId = explode('|',$_GET['stepid']);
|
||||||
$aStepTypeId = explode('|',$_GET['stepid']);
|
$_SESSION['stepUID'] = $_GET['stepid'];
|
||||||
$_SESSION['stepUID'] = $_GET['stepid'];
|
//$aStepTypeId = explode('-','2517180104cd42c25cc39e4071099227-BEFORE');
|
||||||
//$aStepTypeId = explode('-','2517180104cd42c25cc39e4071099227-BEFORE');
|
$sStep = $aStepTypeId[0];
|
||||||
$sStep = $aStepTypeId[0];
|
$sType = $aStepTypeId[1];
|
||||||
$sType = $aStepTypeId[1];
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//$_GET['sid'] gets STEP_UID and sTYPE(i.e BEFORE and AFTER) in format STEP_UID-sTYPE
|
//$_GET['sid'] gets STEP_UID and sTYPE(i.e BEFORE and AFTER) in format STEP_UID-sTYPE
|
||||||
if(isset($_GET['stepid']))
|
if(isset($_GET['stepid'])){
|
||||||
{
|
$aStepTypeId = explode('|',$_GET['stepid']);
|
||||||
$aStepTypeId = explode('|',$_GET['stepid']);
|
$_SESSION['stepUID'] = $_GET['stepid'];
|
||||||
$_SESSION['stepUID'] = $_GET['stepid'];
|
//$aStepTypeId = explode('-','2517180104cd42c25cc39e4071099227-BEFORE');
|
||||||
//$aStepTypeId = explode('-','2517180104cd42c25cc39e4071099227-BEFORE');
|
$sStep = $aStepTypeId[0];
|
||||||
$sStep = $aStepTypeId[0];
|
$sType = $aStepTypeId[1];
|
||||||
$sType = $aStepTypeId[1];
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$start = isset($_POST['start'])? $_POST['start']: 0;
|
$start = isset($_POST['start'])? $_POST['start']: 0;
|
||||||
$limit = isset($_POST['limit'])? $_POST['limit']: '';
|
$limit = isset($_POST['limit'])? $_POST['limit']: '';
|
||||||
|
|
||||||
switch($_GET['action'])
|
switch($_GET['action'])
|
||||||
{
|
{
|
||||||
case 'getDynaformList':
|
case 'getDynaformList':
|
||||||
$rows = $oProcessMap->getExtDynaformsList($start, $limit, $_GET['pid']);
|
$rows = $oProcessMap->getExtDynaformsList($start, $limit, $_GET['pid']);
|
||||||
$result['totalCount'] = $oProcessMap->getAllDynaformCount();
|
$result['totalCount'] = $oProcessMap->getAllDynaformCount();
|
||||||
array_shift($rows);
|
array_shift($rows);
|
||||||
break;
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getPMTableDynaform':
|
case 'getPMTableDynaform':
|
||||||
$oAdditionalTables = new AdditionalTables();
|
$oAdditionalTables = new AdditionalTables();
|
||||||
$aData = $oAdditionalTables->load($_GET['tabId'], true);
|
$aData = $oAdditionalTables->load($_GET['tabId'], true);
|
||||||
$addTabName = $aData['ADD_TAB_NAME'];
|
$addTabName = $aData['ADD_TAB_NAME'];
|
||||||
foreach ($aData['FIELDS'] as $iRow => $aRow)
|
foreach ($aData['FIELDS'] as $iRow => $aRow)
|
||||||
{
|
{
|
||||||
if ($aRow['FLD_KEY'] == 1)
|
if ($aRow['FLD_KEY'] == 1)
|
||||||
{
|
{
|
||||||
$rows[] = $aRow;
|
$rows[] = $aRow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getAdditionalTables':
|
case 'getAdditionalTables':
|
||||||
$rows = $oProcessMap->getExtAdditionalTablesList();
|
$rows = $oProcessMap->getExtAdditionalTablesList();
|
||||||
break;
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getInputDocumentList':
|
case 'getInputDocumentList':
|
||||||
$rows = $oProcessMap->getExtInputDocumentsCriteria($start, $limit,$_GET['pid']);
|
$rows = $oProcessMap->getExtInputDocumentsCriteria($start, $limit,$_GET['pid']);
|
||||||
$result['totalCount'] = $oProcessMap->getAllInputDocumentCount();
|
$result['totalCount'] = $oProcessMap->getAllInputDocumentCount();
|
||||||
array_shift($rows);
|
array_shift($rows);
|
||||||
break;
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'editInputDocument':
|
case 'editInputDocument':
|
||||||
require_once 'classes/model/InputDocument.php';
|
require_once 'classes/model/InputDocument.php';
|
||||||
$oInputDocument = new InputDocument();
|
$oInputDocument = new InputDocument();
|
||||||
$rows = $oInputDocument->load($_GET['INP_DOC_UID']);
|
$rows = $oInputDocument->load($_GET['INP_DOC_UID']);
|
||||||
break;
|
$tmpData = json_encode( $rows ) ;
|
||||||
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
case 'getOutputDocument':
|
$result = $tmpData;
|
||||||
$rows = $oProcessMap->getExtOutputDocumentsCriteria($start, $limit,$_GET['pid']);
|
echo $result;
|
||||||
$result['totalCount'] = $oProcessMap->getAllOutputDocumentCount();
|
break;
|
||||||
array_shift($rows);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'editObjectPermission':
|
case 'getOutputDocument':
|
||||||
$rows = $oProcessMap->editExtObjectPermission($_GET['op_uid'],$_GET['pid']);
|
$rows = $oProcessMap->getExtOutputDocumentsCriteria($start, $limit,$_GET['pid']);
|
||||||
array_shift($rows);
|
$result['totalCount'] = $oProcessMap->getAllOutputDocumentCount();
|
||||||
break;
|
array_shift($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'editOutputDocument':
|
case 'editObjectPermission':
|
||||||
require_once 'classes/model/OutputDocument.php';
|
$rows = $oProcessMap->editExtObjectPermission($_GET['pid'],$_GET['op_uid']);
|
||||||
$oOutputDocument = new OutputDocument();
|
//array_shift($rows);
|
||||||
$rows = $oOutputDocument->load($_GET['tid']);
|
$tmpData = json_encode( $rows ) ;
|
||||||
break;
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
case 'getReportTables':
|
$result = $tmpData;
|
||||||
$rows = $oProcessMap->getExtReportTables($start, $limit,$_GET['pid']);
|
echo $result;
|
||||||
$result['totalCount'] = $oProcessMap->getAllReportTableCount();
|
break;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'editReportTables':
|
case 'editOutputDocument':
|
||||||
require_once 'classes/model/ReportTable.php';
|
require_once 'classes/model/OutputDocument.php';
|
||||||
$oReportTable = new ReportTable();
|
$oOutputDocument = new OutputDocument();
|
||||||
$rows = $oReportTable->load($_GET['REP_TAB_UID']);
|
$rows = $oOutputDocument->load($_GET['tid']);
|
||||||
break;
|
$tmpData = json_encode( $rows ) ;
|
||||||
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
case 'getReportTableType':
|
$result = $tmpData;
|
||||||
if(isset($_GET['pid']) && $_GET['type'] == 'NORMAL')
|
echo $result;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'getReportTables':
|
||||||
|
$rows = $oProcessMap->getExtReportTables($start, $limit,$_GET['pid']);
|
||||||
|
$result['totalCount'] = $oProcessMap->getAllReportTableCount();
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'editReportTables':
|
||||||
|
require_once 'classes/model/ReportTable.php';
|
||||||
|
$oReportTable = new ReportTable();
|
||||||
|
$rows = $oReportTable->load($_GET['REP_TAB_UID']);
|
||||||
|
$tmpData = json_encode( $rows ) ;
|
||||||
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
|
$result = $tmpData;
|
||||||
|
echo $result;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'getReportTableType':
|
||||||
|
if(isset($_GET['pid']) && $_GET['type'] == 'NORMAL')
|
||||||
|
{
|
||||||
|
$aTheFields = array();
|
||||||
|
$aTheFields = getDynaformsVars($_GET['pid'], false);
|
||||||
|
foreach ($aTheFields as $aField)
|
||||||
|
{
|
||||||
|
$rows[] = array('FIELD_UID' => $aField['sName'] . '-' . $aField['sType'],
|
||||||
|
'FIELD_NAME' => $aField['sName']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (isset($_GET['pid']) && $_GET['type'] == 'GRID')
|
||||||
|
{
|
||||||
|
$aTheFields = array();
|
||||||
|
$aTheFields = getGridsVars($_GET['pid']);
|
||||||
|
foreach ($aTheFields as $aField)
|
||||||
{
|
{
|
||||||
$aTheFields = array();
|
$rows[] = array('FIELD_UID' => $aField['sName'] . '-' . $aField['sXmlForm'],
|
||||||
$aTheFields = getDynaformsVars($_GET['pid'], false);
|
'FIELD_NAME' => $aField['sName']);
|
||||||
foreach ($aTheFields as $aField)
|
|
||||||
{
|
|
||||||
$rows[] = array('FIELD_UID' => $aField['sName'] . '-' . $aField['sType'],
|
|
||||||
'FIELD_NAME' => $aField['sName']);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
else if (isset($_GET['pid']) && $_GET['type'] == 'GRID')
|
case 'getDatabaseConnectionList':
|
||||||
{
|
$rows = $oProcessMap->getExtCriteriaDBSList($start, $limit,$_GET['pid']);
|
||||||
$aTheFields = array();
|
$result['totalCount'] = $oProcessMap->getAllDbSourceCount();
|
||||||
$aTheFields = getGridsVars($_GET['pid']);
|
$result['data'] = $rows;
|
||||||
foreach ($aTheFields as $aField)
|
print json_encode( $result ) ;
|
||||||
{
|
break;
|
||||||
$rows[] = array('FIELD_UID' => $aField['sName'] . '-' . $aField['sXmlForm'],
|
|
||||||
'FIELD_NAME' => $aField['sName']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'getDatabaseConnectionList':
|
case 'editDatabaseConnection':
|
||||||
$rows = $oProcessMap->getExtCriteriaDBSList($start, $limit,$_GET['pid']);
|
require_once 'classes/model/DbSource.php';
|
||||||
$result['totalCount'] = $oProcessMap->getAllDbSourceCount();
|
$o = new DbSource();
|
||||||
break;
|
$rows = $o->load($_GET['dbs_uid'],$_GET['pid']);
|
||||||
|
$tmpData = json_encode( $rows ) ;
|
||||||
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
case 'editDatabaseConnection':
|
$result = $tmpData;
|
||||||
require_once 'classes/model/DbSource.php';
|
echo $result;
|
||||||
$o = new DbSource();
|
break;
|
||||||
$rows = $o->load($_GET['dbs_uid'],$_GET['pid']);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'process_User':
|
case 'process_Supervisors':
|
||||||
$rows = $oProcessMap->listExtProcessesUser($_GET['pid']);
|
$rows = $oProcessMap->listExtProcessesSupervisors($start, $limit, $_GET['pid']);
|
||||||
break;
|
$result['totalCount'] = $oProcessMap->getAllProcessSupervisorsCount();
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'availableProcessesUser':
|
case 'availableProcessesSupervisors':
|
||||||
$rows = $oProcessMap->listExtNoProcessesUser($_GET['pid']);
|
$rows = $oProcessMap->listExtNoProcessesUser($_GET['pid']);
|
||||||
break;
|
$result['totalCount'] = count($rows);
|
||||||
case 'supervisorDynaforms':
|
$result['data'] = $rows;
|
||||||
$rows = $oProcessMap->getExtSupervisorDynaformsList($_GET['pid']);
|
print json_encode( $result ) ;
|
||||||
break;
|
break;
|
||||||
case 'availableSupervisorDynaforms':
|
|
||||||
$rows = $oProcessMap->getExtAvailableSupervisorDynaformsList($_GET['pid']);
|
|
||||||
break;
|
|
||||||
case 'supervisorInputDoc':
|
|
||||||
$rows = $oProcessMap->getExtSupervisorInputsList($_GET['pid']);
|
|
||||||
break;
|
|
||||||
case 'availableSupervisorInputDoc':
|
|
||||||
$rows = $oProcessMap->getExtAvailableSupervisorInputsList($_GET['pid']);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'getAssignedCaseTrackerObjects':
|
case 'supervisorDynaforms':
|
||||||
$rows = $oProcessMap->getExtCaseTrackerObjectsCriteria($_GET['pid']);
|
$rows = $oProcessMap->getExtSupervisorDynaformsList($start, $limit,$_GET['pid']);
|
||||||
array_shift($rows);
|
$result['totalCount'] = $oProcessMap->getAllSupervisorDynaformsCount();
|
||||||
break;
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
case 'availableSupervisorDynaforms':
|
||||||
|
$rows = $oProcessMap->getExtAvailableSupervisorDynaformsList($_GET['pid']);
|
||||||
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
case 'supervisorInputDoc':
|
||||||
|
$rows = $oProcessMap->getExtSupervisorInputsList($start, $limit,$_GET['pid']);
|
||||||
|
$result['totalCount'] = $oProcessMap->getAllSupervisorInputsCount();
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
case 'availableSupervisorInputDoc':
|
||||||
|
$rows = $oProcessMap->getExtAvailableSupervisorInputsList($_GET['pid']);
|
||||||
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getAvailableCaseTrackerObjects':
|
case 'getAssignedCaseTrackerObjects':
|
||||||
$rows = $oProcessMap->getAvailableExtCaseTrackerObjects($_GET['pid']);
|
$rows = $oProcessMap->getExtCaseTrackerObjectsCriteria($start, $limit, $_GET['pid']);
|
||||||
array_shift($rows);
|
$result['totalCount'] = $oProcessMap->getAllCaseTrackerObjectCount();
|
||||||
break;
|
array_shift($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getAvailableSteps':
|
case 'getAvailableCaseTrackerObjects':
|
||||||
$rows = $oProcessMap->getExtAvailableBBCriteria($_GET['pid'], $_GET['tid']);
|
$rows = $oProcessMap->getAvailableExtCaseTrackerObjects($_GET['pid']);
|
||||||
array_shift($rows);
|
array_shift($rows);
|
||||||
break;
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getAssignedSteps':
|
case 'getAvailableSteps':
|
||||||
$rows = $oProcessMap->getExtStepsCriteria($start, $limit,$_GET['tid']);
|
$rows = $oProcessMap->getExtAvailableBBCriteria($_GET['pid'], $_GET['tid']);
|
||||||
$result['totalCount'] = $oProcessMap->getAllStepCount();
|
array_shift($rows);
|
||||||
array_shift($rows);
|
$result['totalCount'] = count($rows);
|
||||||
break;
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getAssignedUsersList':
|
case 'getAssignedSteps':
|
||||||
$rows = $oProcessMap->usersExtList($start, $limit, $_GET['pid'], $_GET['tid']);
|
$rows = $oProcessMap->getExtStepsCriteria($start, $limit,$_GET['tid']);
|
||||||
$result['totalCount'] = $oProcessMap->getAllTaskUserCount();
|
$result['totalCount'] = $oProcessMap->getAllStepCount();
|
||||||
array_shift($rows);
|
array_shift($rows);
|
||||||
break;
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getAvailableUsersList':
|
case 'getAssignedUsersList':
|
||||||
$rows = $oProcessMap->getAvailableExtUsersCriteria($_GET['tid']);
|
$rows = $oProcessMap->usersExtList($start, $limit, $_GET['pid'], $_GET['tid']);
|
||||||
break;
|
$result['totalCount'] = $oProcessMap->getAllTaskUserCount();
|
||||||
|
array_shift($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getAvailableStepTriggers':
|
case 'getAvailableUsersList':
|
||||||
$aStepTypeId = explode('|',$_SESSION['stepUID']);
|
$rows = $oProcessMap->getAvailableExtUsersCriteria($_GET['tid']);
|
||||||
$sStep = $aStepTypeId[0];
|
$result['totalCount'] = count($rows);
|
||||||
$sType = $aStepTypeId[1];
|
$result['data'] = $rows;
|
||||||
//Getting available Steps Criteria that have been not selected for a particular task
|
print json_encode( $result ) ;
|
||||||
$rows = $oProcessMap->getExtAvailableStepTriggersCriteria($_GET['pid'], $sStep, $_GET['tid'], $sType);
|
break;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'getAssignedStepTriggers':
|
case 'getAvailableStepTriggers':
|
||||||
$rows = $oProcessMap->getExtStepTriggersCriteria($start, $limit,$sStep, $_GET['tid'], $sType);
|
$aStepTypeId = explode('|',$_SESSION['stepUID']);
|
||||||
$result['totalCount'] = $oProcessMap->getAllStepTriggerCount();
|
$sStep = $aStepTypeId[0];
|
||||||
break;
|
$sType = $aStepTypeId[1];
|
||||||
|
//Getting available Steps Criteria that have been not selected for a particular task
|
||||||
|
$rows = $oProcessMap->getExtAvailableStepTriggersCriteria($_GET['pid'], $sStep, $_GET['tid'], $sType);
|
||||||
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'availableUsers':
|
case 'getAssignedStepTriggers':
|
||||||
$rows = $oProcessMap->getExtAvailableUsersList($_GET['tid']);
|
$rows = $oProcessMap->getExtStepTriggersCriteria($start, $limit, $sStep, $_GET['tid'], $sType);
|
||||||
array_shift($rows);
|
$result['totalCount'] = $oProcessMap->getAllStepTriggerCount();
|
||||||
break;
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'assignedUsers':
|
case 'availableUsers':
|
||||||
$rows = $oProcessMap->getExtusersadhoc($start, $limit,$_GET['pid'], $_GET['tid']);
|
$rows = $oProcessMap->getExtAvailableUsersList($_GET['tid']);
|
||||||
$result['totalCount'] = $oProcessMap->getAllTaskUserCount();
|
array_shift($rows);
|
||||||
array_shift($rows);
|
$result['totalCount'] = count($rows);
|
||||||
break;
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'getTaskPropertiesList':
|
case 'assignedUsers':
|
||||||
require_once 'classes/model/Task.php';
|
$rows = $oProcessMap->getExtusersadhoc($start, $limit,$_GET['pid'], $_GET['tid']);
|
||||||
$oTask = new Task();
|
$result['totalCount'] = $oProcessMap->getAllTaskUserCount();
|
||||||
$rows = $oTask->load($_GET['tid']);
|
array_shift($rows);
|
||||||
while (list($key, $value) = each($rows)) {
|
$result['data'] = $rows;
|
||||||
if ($value == 'TRUE')
|
print json_encode( $result ) ;
|
||||||
$rows[$key] = true;
|
break;
|
||||||
else if($value == 'FALSE')
|
|
||||||
$rows[$key] = false;
|
|
||||||
|
|
||||||
if($key == 'TAS_TYPE_DAY' && $value == '1')
|
case 'getTaskPropertiesList':
|
||||||
$rows[$key] = 'Work Days';
|
require_once 'classes/model/Task.php';
|
||||||
else if($key == 'TAS_TYPE_DAY' && $value == '2')
|
$oTask = new Task();
|
||||||
$rows[$key] = 'Calendar Days';
|
$rows = $oTask->load($_GET['tid']);
|
||||||
|
while (list($key, $value) = each($rows)) {
|
||||||
|
if ($value == 'TRUE')
|
||||||
|
$rows[$key] = true;
|
||||||
|
else if($value == 'FALSE')
|
||||||
|
$rows[$key] = false;
|
||||||
|
|
||||||
if($key == 'TAS_TYPE' && $value == 'NORMAL')
|
if($key == 'TAS_TYPE_DAY' && $value == '1')
|
||||||
$rows[$key] = false;
|
$rows[$key] = 'Work Days';
|
||||||
else if($key == 'TAS_TYPE' && $value == 'ADHOC')
|
else if($key == 'TAS_TYPE_DAY' && $value == '2')
|
||||||
$rows[$key] = true;
|
$rows[$key] = 'Calendar Days';
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'getObjectPermission':
|
if($key == 'TAS_TYPE' && $value == 'NORMAL')
|
||||||
$rows = $oProcessMap->getExtObjectsPermissions($_GET['pid']);
|
$rows[$key] = false;
|
||||||
break;
|
else if($key == 'TAS_TYPE' && $value == 'ADHOC')
|
||||||
|
$rows[$key] = true;
|
||||||
|
}
|
||||||
|
$tmpData = json_encode( $rows ) ;
|
||||||
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
case 'getObjectPermissionType':
|
$result = $tmpData;
|
||||||
$rows = $oProcessMap->newExtObjectPermission($_GET['pid'],$_GET['objectType']);
|
echo $result;
|
||||||
array_shift($rows);
|
break;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'process_Edit':
|
case 'getObjectPermission':
|
||||||
$rows = $oProcessMap->editProcessNew($_GET['pid']);
|
$rows = $oProcessMap->getExtObjectsPermissions($start, $limit,$_GET['pid']);
|
||||||
}
|
$result['totalCount'] = $oProcessMap->getAllObjectPermissionCount();
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'getObjectPermissionType':
|
||||||
|
$rows = $oProcessMap->newExtObjectPermission($_GET['pid'],$_GET['objectType']);
|
||||||
|
array_shift($rows);
|
||||||
|
$result['totalCount'] = count($rows);
|
||||||
|
$result['data'] = $rows;
|
||||||
|
print json_encode( $result ) ;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'process_Edit':
|
||||||
|
$rows = $oProcessMap->editProcessNew($_GET['pid']);
|
||||||
|
$tmpData = json_encode( $rows ) ;
|
||||||
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
|
$result = $tmpData;
|
||||||
|
echo $result;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$result['data'] = $rows;
|
//$result['data'] = $rows;
|
||||||
print json_encode( $result ) ;
|
//print json_encode( $result ) ;
|
||||||
/*$tmpData = json_encode( $rows ) ;
|
/*$tmpData = json_encode( $rows ) ;
|
||||||
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||||
|
|
||||||
$result = $tmpData;
|
$result = $tmpData;
|
||||||
echo $result;*/
|
echo $result;*/
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ ProcessMapContext.prototype.processPermission= function()
|
|||||||
url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermission'
|
url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermission'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
PermissionStore.load();
|
PermissionStore.load({params:{start:0, limit:10}});
|
||||||
|
|
||||||
var PermissionGridColumn = new Ext.grid.ColumnModel({
|
var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||||
columns: [
|
columns: [
|
||||||
@@ -551,7 +551,6 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
|||||||
id : 'mygrid',
|
id : 'mygrid',
|
||||||
loadMask: true,
|
loadMask: true,
|
||||||
loadingText: 'Loading...',
|
loadingText: 'Loading...',
|
||||||
//renderTo: 'cases-grid',
|
|
||||||
frame: false,
|
frame: false,
|
||||||
autoHeight:false,
|
autoHeight:false,
|
||||||
clicksToEdit: 1,
|
clicksToEdit: 1,
|
||||||
@@ -562,6 +561,14 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
|||||||
cm: PermissionGridColumn,
|
cm: PermissionGridColumn,
|
||||||
stripeRows: true,
|
stripeRows: true,
|
||||||
tbar: tb,
|
tbar: tb,
|
||||||
|
bbar: new Ext.PagingToolbar({
|
||||||
|
pageSize: 10,
|
||||||
|
store: PermissionStore,
|
||||||
|
displayInfo: true,
|
||||||
|
displayMsg: 'Displaying Process Permission {0} - {1} of {2}',
|
||||||
|
emptyMsg: "No Process Permission to display",
|
||||||
|
items:[]
|
||||||
|
}),
|
||||||
viewConfig: {forceFit: true}
|
viewConfig: {forceFit: true}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1105,15 +1112,15 @@ ProcessMapContext.prototype.processSupervisors= function()
|
|||||||
remoteSort : true,
|
remoteSort : true,
|
||||||
fields : processUserFields,
|
fields : processUserFields,
|
||||||
proxy: new Ext.data.HttpProxy({
|
proxy: new Ext.data.HttpProxy({
|
||||||
url: 'proxyProcessSupervisors?pid='+pro_uid+'&action=process_User'
|
url: 'proxyExtjs?pid='+pro_uid+'&action=process_Supervisors'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
processUser.load();
|
processUser.load({params:{start:0, limit:10}});
|
||||||
|
|
||||||
// create the Data Store of users that are not assigned to a process supervisor
|
// create the Data Store of users that are not assigned to a process supervisor
|
||||||
var availableProcessesUser = new Ext.data.JsonStore({
|
var availableProcessesUser = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
url : 'proxyProcessSupervisors?pid='+pro_uid+'&action=availableProcessesUser',
|
url : 'proxyExtjs?pid='+pro_uid+'&action=availableProcessesSupervisors',
|
||||||
totalProperty : 'totalCount',
|
totalProperty : 'totalCount',
|
||||||
idProperty : 'gridIndex',
|
idProperty : 'gridIndex',
|
||||||
remoteSort : false, //true,
|
remoteSort : false, //true,
|
||||||
@@ -1184,6 +1191,14 @@ ProcessMapContext.prototype.processSupervisors= function()
|
|||||||
],
|
],
|
||||||
stripeRows: true,
|
stripeRows: true,
|
||||||
viewConfig: {forceFit: true},
|
viewConfig: {forceFit: true},
|
||||||
|
bbar: new Ext.PagingToolbar({
|
||||||
|
pageSize: 10,
|
||||||
|
store: processUser,
|
||||||
|
displayInfo: true,
|
||||||
|
displayMsg: 'Displaying Process Supervisor {0} - {1} of {2}',
|
||||||
|
emptyMsg: "No Process Supervisor to display",
|
||||||
|
items:[]
|
||||||
|
}),
|
||||||
tbar: tb
|
tbar: tb
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1257,6 +1272,17 @@ ProcessMapContext.prototype.processDynaform= function()
|
|||||||
STEP_TYPE_OBJ: '',
|
STEP_TYPE_OBJ: '',
|
||||||
STEP_POSITION: ''
|
STEP_POSITION: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(availableSupervisorDynaforms.data.items.length == 0)
|
||||||
|
Ext.MessageBox.alert ('Status','No Dynaforms are available. All Dynaforms have been already assigned.');
|
||||||
|
else
|
||||||
|
{
|
||||||
|
editor.stopEditing();
|
||||||
|
supervisorDynaforms.insert(0, e);
|
||||||
|
grid.getView().refresh();
|
||||||
|
//grid.getSelectionModel().selectRow(0);
|
||||||
|
editor.startEditing(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1316,22 +1342,22 @@ ProcessMapContext.prototype.processDynaform= function()
|
|||||||
remoteSort : true,
|
remoteSort : true,
|
||||||
fields : supervisorDynaformsFields,
|
fields : supervisorDynaformsFields,
|
||||||
proxy: new Ext.data.HttpProxy({
|
proxy: new Ext.data.HttpProxy({
|
||||||
url: 'proxyProcessSupervisors?pid='+pro_uid+'&action=supervisorDynaforms'
|
url: 'proxyExtjs?pid='+pro_uid+'&action=supervisorDynaforms'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
supervisorDynaforms.load();
|
supervisorDynaforms.load({params:{start : 0 , limit : 10 }});
|
||||||
|
|
||||||
// create the Data Store of users that are not assigned to a process supervisor
|
// create the Data Store of users that are not assigned to a process supervisor
|
||||||
var availableSupervisorDynaforms = new Ext.data.JsonStore({
|
var availableSupervisorDynaforms = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
url : 'proxyProcessSupervisors?pid='+pro_uid+'&action=availableSupervisorDynaforms',
|
url : 'proxyExtjs?pid='+pro_uid+'&action=availableSupervisorDynaforms',
|
||||||
totalProperty : 'totalCount',
|
totalProperty : 'totalCount',
|
||||||
idProperty : 'gridIndex',
|
idProperty : 'gridIndex',
|
||||||
remoteSort : false, //true,
|
remoteSort : false, //true,
|
||||||
autoLoad : true,
|
autoLoad : true,
|
||||||
fields : supervisorDynaformsFields
|
fields : supervisorDynaformsFields
|
||||||
});
|
});
|
||||||
|
availableSupervisorDynaforms.load();
|
||||||
|
|
||||||
var grid = new Ext.grid.GridPanel({
|
var grid = new Ext.grid.GridPanel({
|
||||||
store: supervisorDynaforms,
|
store: supervisorDynaforms,
|
||||||
@@ -1345,6 +1371,7 @@ ProcessMapContext.prototype.processDynaform= function()
|
|||||||
clicksToEdit: 1,
|
clicksToEdit: 1,
|
||||||
minHeight:400,
|
minHeight:400,
|
||||||
height :400,
|
height :400,
|
||||||
|
width :435,
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
plugins: [editor],
|
plugins: [editor],
|
||||||
columns: [
|
columns: [
|
||||||
@@ -1384,7 +1411,15 @@ ProcessMapContext.prototype.processDynaform= function()
|
|||||||
],
|
],
|
||||||
stripeRows: true,
|
stripeRows: true,
|
||||||
viewConfig: {forceFit: true},
|
viewConfig: {forceFit: true},
|
||||||
tbar: tb
|
tbar: tb,
|
||||||
|
bbar: new Ext.PagingToolbar({
|
||||||
|
pageSize: 10,
|
||||||
|
store: supervisorDynaforms,
|
||||||
|
displayInfo: true,
|
||||||
|
displayMsg: 'Displaying Supervisor Dynaform {0} - {1} of {2}',
|
||||||
|
emptyMsg: "No Supervisor Dynaform to display",
|
||||||
|
items:[]
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
//availableSupervisorDynaforms.load();
|
//availableSupervisorDynaforms.load();
|
||||||
@@ -1420,7 +1455,7 @@ ProcessMapContext.prototype.processDynaform= function()
|
|||||||
title: 'Dynaform',
|
title: 'Dynaform',
|
||||||
collapsible: false,
|
collapsible: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
width: 400,
|
width: 440,
|
||||||
height: 350,
|
height: 350,
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
minHeight: 150,
|
minHeight: 150,
|
||||||
@@ -1536,7 +1571,7 @@ ProcessMapContext.prototype.processIODoc = function()
|
|||||||
url: 'proxyProcessSupervisors?pid='+pro_uid+'&action=supervisorInputDoc'
|
url: 'proxyProcessSupervisors?pid='+pro_uid+'&action=supervisorInputDoc'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
supervisorInputDoc.load();
|
supervisorInputDoc.load({params:{start : 0 , limit : 10 }});
|
||||||
|
|
||||||
// create the Data Store of users that are not assigned to a process supervisor
|
// create the Data Store of users that are not assigned to a process supervisor
|
||||||
var availableSupervisorInputDoc = new Ext.data.JsonStore({
|
var availableSupervisorInputDoc = new Ext.data.JsonStore({
|
||||||
@@ -1548,7 +1583,7 @@ ProcessMapContext.prototype.processIODoc = function()
|
|||||||
autoLoad : true,
|
autoLoad : true,
|
||||||
fields : supervisorInputDocFields
|
fields : supervisorInputDocFields
|
||||||
});
|
});
|
||||||
|
availableSupervisorInputDoc.load();
|
||||||
|
|
||||||
var grid = new Ext.grid.GridPanel({
|
var grid = new Ext.grid.GridPanel({
|
||||||
store: supervisorInputDoc,
|
store: supervisorInputDoc,
|
||||||
@@ -1562,6 +1597,7 @@ ProcessMapContext.prototype.processIODoc = function()
|
|||||||
clicksToEdit: 1,
|
clicksToEdit: 1,
|
||||||
minHeight:400,
|
minHeight:400,
|
||||||
height :400,
|
height :400,
|
||||||
|
width :420,
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
plugins: [editor],
|
plugins: [editor],
|
||||||
columns: [
|
columns: [
|
||||||
@@ -1601,7 +1637,15 @@ ProcessMapContext.prototype.processIODoc = function()
|
|||||||
],
|
],
|
||||||
stripeRows: true,
|
stripeRows: true,
|
||||||
viewConfig: {forceFit: true},
|
viewConfig: {forceFit: true},
|
||||||
tbar: tb
|
tbar: tb,
|
||||||
|
bbar: new Ext.PagingToolbar({
|
||||||
|
pageSize: 10,
|
||||||
|
store: supervisorInputDoc,
|
||||||
|
displayInfo: true,
|
||||||
|
displayMsg: 'Displaying Supervisor Input Doc {0} - {1} of {2}',
|
||||||
|
emptyMsg: "No Supervisor Input Doc to display",
|
||||||
|
items:[]
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
//availableSupervisorInputDoc.load();
|
//availableSupervisorInputDoc.load();
|
||||||
@@ -1637,7 +1681,7 @@ ProcessMapContext.prototype.processIODoc = function()
|
|||||||
title: 'Input Documents',
|
title: 'Input Documents',
|
||||||
collapsible: false,
|
collapsible: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
width: 400,
|
width: 430,
|
||||||
height: 350,
|
height: 350,
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
minHeight: 150,
|
minHeight: 150,
|
||||||
@@ -1867,9 +1911,6 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
},{
|
},{
|
||||||
name: 'CTO_TYPE_OBJ',
|
name: 'CTO_TYPE_OBJ',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},{
|
|
||||||
name:'CTO_UID_OBJ',
|
|
||||||
type:'string'
|
|
||||||
},{
|
},{
|
||||||
name:'CTO_CONDITION',
|
name:'CTO_CONDITION',
|
||||||
type:'string'
|
type:'string'
|
||||||
@@ -1885,6 +1926,9 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
},{
|
},{
|
||||||
name:'OBJECT_TYPE',
|
name:'OBJECT_TYPE',
|
||||||
type:'string'
|
type:'string'
|
||||||
|
},{
|
||||||
|
name:'CTO_UID_OBJ',
|
||||||
|
type:'string'
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
var editor = new Ext.ux.grid.RowEditor({
|
var editor = new Ext.ux.grid.RowEditor({
|
||||||
@@ -1906,7 +1950,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(availableStore.data.items.length == 0)
|
if(availableStore.data.items.length == 0)
|
||||||
Ext.MessageBox.alert ('Status','No users are available. All users have been already assigned.');
|
Ext.MessageBox.alert ('Status','No Objects are available. All Objects have been already assigned.');
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
editor.stopEditing();
|
editor.stopEditing();
|
||||||
@@ -1915,9 +1959,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
//grid.getSelectionModel().selectRow(0);
|
//grid.getSelectionModel().selectRow(0);
|
||||||
editor.startEditing(0, 0);
|
editor.startEditing(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var btnRemove = new Ext.Button({
|
var btnRemove = new Ext.Button({
|
||||||
@@ -1977,13 +2019,12 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
workflow.gridObjectRowSelected = rowSelected;
|
workflow.gridObjectRowSelected = rowSelected;
|
||||||
var rowData = ProcMapObj.ExtVariables();
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
var tb = new Ext.Toolbar({
|
var tb = new Ext.Toolbar({
|
||||||
items: [btnAdd, btnRemove,btnObjectsCondition]
|
items: [btnAdd, btnRemove,btnObjectsCondition]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var assignedStore = new Ext.data.JsonStore({
|
var assignedStore = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
totalProperty : 'totalCount',
|
totalProperty : 'totalCount',
|
||||||
@@ -1994,7 +2035,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
url : 'proxyExtjs?pid='+pro_uid+'&action=getAssignedCaseTrackerObjects'
|
url : 'proxyExtjs?pid='+pro_uid+'&action=getAssignedCaseTrackerObjects'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
assignedStore.load();
|
assignedStore.load({params:{start : 0 , limit : 10 }});
|
||||||
|
|
||||||
var availableStore = new Ext.data.JsonStore({
|
var availableStore = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
@@ -2018,7 +2059,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
autoHeight:false,
|
autoHeight:false,
|
||||||
clicksToEdit: 1,
|
clicksToEdit: 1,
|
||||||
minHeight:400,
|
minHeight:400,
|
||||||
height :400,
|
height :350,
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
plugins: [editor],
|
plugins: [editor],
|
||||||
cm: new Ext.grid.ColumnModel({
|
cm: new Ext.grid.ColumnModel({
|
||||||
@@ -2063,16 +2104,17 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
header : 'Condition',
|
header : 'Condition',
|
||||||
dataindex: 'CTO_CONDITION',
|
dataindex: 'CTO_CONDITION',
|
||||||
name : 'CTO_CONDITION',
|
name : 'CTO_CONDITION',
|
||||||
//xtype: 'textfield',
|
editor: new Ext.form.TextField({
|
||||||
editable : true
|
editable : true
|
||||||
},{
|
})
|
||||||
|
}/*,{
|
||||||
sortable: false,
|
sortable: false,
|
||||||
renderer: function(val, meta, record)
|
renderer: function(val, meta, record)
|
||||||
{
|
{
|
||||||
var recordData = Ext.util.JSON.encode(record);
|
//var recordData = Ext.util.JSON.encode(record);
|
||||||
return String.format("<input type='button' value='@@' onclick=workflow.ExtVariables('CTO_CONDITION','{0}');>",recordData);
|
return String.format("<input type='button' value='@@' onclick=workflow.ExtVariables('{0}');>",record.data.CTO_UID);
|
||||||
}
|
}
|
||||||
}]
|
}*/]
|
||||||
}),
|
}),
|
||||||
sm: new Ext.grid.RowSelectionModel({
|
sm: new Ext.grid.RowSelectionModel({
|
||||||
singleSelect: true,
|
singleSelect: true,
|
||||||
@@ -2084,7 +2126,15 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
}),
|
}),
|
||||||
stripeRows: true,
|
stripeRows: true,
|
||||||
viewConfig: {forceFit: true},
|
viewConfig: {forceFit: true},
|
||||||
tbar: tb
|
tbar: tb,
|
||||||
|
bbar: new Ext.PagingToolbar({
|
||||||
|
pageSize: 10,
|
||||||
|
store: assignedStore,
|
||||||
|
displayInfo: true,
|
||||||
|
displayMsg: 'Displaying Case Tracker Object {0} - {1} of {2}',
|
||||||
|
emptyMsg: "No Case Tracker Object to display",
|
||||||
|
items:[]
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
editor.on({
|
editor.on({
|
||||||
@@ -2096,7 +2146,6 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
var cto_uid = record.data.CTO_UID;
|
var cto_uid = record.data.CTO_UID;
|
||||||
var condition = record.data.CTO_CONDITION;
|
var condition = record.data.CTO_CONDITION;
|
||||||
|
|
||||||
|
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
url : '../tracker/tracker_Ajax.php',
|
url : '../tracker/tracker_Ajax.php',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -2156,7 +2205,6 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
availableStore.reload();
|
availableStore.reload();
|
||||||
assignedStore.reload();
|
assignedStore.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var gridObjectWindow = new Ext.Window({
|
var gridObjectWindow = new Ext.Window({
|
||||||
@@ -2165,15 +2213,14 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
maximizable : false,
|
maximizable : false,
|
||||||
width : 550,
|
width : 550,
|
||||||
defaults :{ autoScroll:true },
|
defaults :{ autoScroll:true },
|
||||||
height : 400,
|
height : 380,
|
||||||
minWidth : 200,
|
minWidth : 200,
|
||||||
minHeight : 150,
|
minHeight : 150,
|
||||||
//layout : 'fit',
|
|
||||||
plain : true,
|
plain : true,
|
||||||
items : Objectsgrid,
|
items : Objectsgrid,
|
||||||
buttonAlign : 'center'
|
buttonAlign : 'center'
|
||||||
});
|
});
|
||||||
gridObjectWindow.show()
|
gridObjectWindow.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessMapContext.prototype.ExtVariables = function()
|
ProcessMapContext.prototype.ExtVariables = function()
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
|
|||||||
bodyStyle : 'padding:10px 0 0 10px;',
|
bodyStyle : 'padding:10px 0 0 10px;',
|
||||||
//monitorValid : true,
|
//monitorValid : true,
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
autoScroll: true,
|
defaults :{autoScroll:true},
|
||||||
items:
|
items:
|
||||||
[{
|
[{
|
||||||
xtype: 'fieldset',
|
xtype: 'fieldset',
|
||||||
@@ -334,7 +334,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
|
|||||||
items:[{
|
items:[{
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
fieldLabel: _('ID_TITLE'),
|
fieldLabel: _('ID_TITLE'),
|
||||||
name : 'DYN_TITLE',
|
name : 'DYN_TITLE1',
|
||||||
width : 350,
|
width : 350,
|
||||||
allowBlank: false
|
allowBlank: false
|
||||||
},{
|
},{
|
||||||
@@ -360,7 +360,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
|
|||||||
},{
|
},{
|
||||||
xtype : 'textarea',
|
xtype : 'textarea',
|
||||||
fieldLabel: _('ID_DESCRIPTION'),
|
fieldLabel: _('ID_DESCRIPTION'),
|
||||||
name : 'DYN_DESCRIPTION',
|
name : 'DYN_DESCRIPTION1',
|
||||||
height : 120,
|
height : 120,
|
||||||
width : 350
|
width : 350
|
||||||
}
|
}
|
||||||
@@ -404,13 +404,13 @@ var dynaformColumns = new Ext.grid.ColumnModel({
|
|||||||
{
|
{
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
fieldLabel: _('ID_TITLE'),
|
fieldLabel: _('ID_TITLE'),
|
||||||
name : 'DYN_TITLE',
|
name : 'DYN_TITLE2',
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
width : 350
|
width : 350
|
||||||
},{
|
},{
|
||||||
xtype : 'textarea',
|
xtype : 'textarea',
|
||||||
fieldLabel: _('ID_DESCRIPTION'),
|
fieldLabel: _('ID_DESCRIPTION'),
|
||||||
name : 'DYN_DESCRIPTION',
|
name : 'DYN_DESCRIPTION2',
|
||||||
height : 120,
|
height : 120,
|
||||||
width : 350
|
width : 350
|
||||||
},
|
},
|
||||||
@@ -441,8 +441,8 @@ var dynaformColumns = new Ext.grid.ColumnModel({
|
|||||||
if(getForm.DYN_SOURCE == 'blankDyna')
|
if(getForm.DYN_SOURCE == 'blankDyna')
|
||||||
{
|
{
|
||||||
var sAction = getForm.ACTION;
|
var sAction = getForm.ACTION;
|
||||||
var sTitle = getForm.DYN_TITLE[0];
|
var sTitle = getForm.DYN_TITLE1;
|
||||||
var sDesc = getForm.DYN_DESCRIPTION[0];
|
var sDesc = getForm.DYN_DESCRIPTION1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -457,8 +457,8 @@ var dynaformColumns = new Ext.grid.ColumnModel({
|
|||||||
}
|
}
|
||||||
var fieldname = Ext.util.JSON.encode(fName);
|
var fieldname = Ext.util.JSON.encode(fName);
|
||||||
var variable = Ext.util.JSON.encode(pVar);
|
var variable = Ext.util.JSON.encode(pVar);
|
||||||
sTitle = getForm.DYN_TITLE[1];
|
sTitle = getForm.DYN_TITLE2;
|
||||||
sDesc = getForm.DYN_DESCRIPTION[1];
|
sDesc = getForm.DYN_DESCRIPTION2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sTitle == '' || sAction == '')
|
if(sTitle == '' || sAction == '')
|
||||||
@@ -517,6 +517,8 @@ var dynaformColumns = new Ext.grid.ColumnModel({
|
|||||||
collapsible: false,
|
collapsible: false,
|
||||||
maximizable: true,
|
maximizable: true,
|
||||||
width: 550,
|
width: 550,
|
||||||
|
height: 300,
|
||||||
|
defaults :{autoScroll:true},
|
||||||
//autoHeight: true,
|
//autoHeight: true,
|
||||||
//height: 500,
|
//height: 500,
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
@@ -666,7 +668,7 @@ ProcessOptions.prototype.dbConnection = function()
|
|||||||
id: 'DBS_DATABASE_NAME',
|
id: 'DBS_DATABASE_NAME',
|
||||||
header: 'Database Name',
|
header: 'Database Name',
|
||||||
dataIndex: 'DBS_DATABASE_NAME',
|
dataIndex: 'DBS_DATABASE_NAME',
|
||||||
//width: 100,
|
width: 150,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
editor: new Ext.form.TextField({
|
editor: new Ext.form.TextField({
|
||||||
// allowBlank: false
|
// allowBlank: false
|
||||||
@@ -1901,7 +1903,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
workflow.variablesAction = 'form';
|
workflow.variablesAction = 'form';
|
||||||
workflow.fieldName = 'OUT_DOC_FILENAME' ;
|
workflow.fieldName = 'OUT_DOC_FILENAME' ;
|
||||||
workflow.variable = '@@',
|
workflow.variable = '@#',
|
||||||
workflow.formSelected = outputDocForm;
|
workflow.formSelected = outputDocForm;
|
||||||
var rowData = ProcMapObj.ExtVariables();
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
console.log(rowData);
|
console.log(rowData);
|
||||||
@@ -2521,7 +2523,7 @@ var reportForm =new Ext.FormPanel({
|
|||||||
align:'left',
|
align:'left',
|
||||||
items:[{
|
items:[{
|
||||||
xtype: 'combo',
|
xtype: 'combo',
|
||||||
width: 250,
|
width: 200,
|
||||||
mode: 'local',
|
mode: 'local',
|
||||||
editable:false,
|
editable:false,
|
||||||
fieldLabel: 'Grid Fields',
|
fieldLabel: 'Grid Fields',
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
title: _('ID_STEPS_OF'),
|
title: _('ID_STEPS_OF'),
|
||||||
collapsible: false,
|
collapsible: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
width: 750,
|
width: 770,
|
||||||
height: 365,
|
height: 365,
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
minHeight: 150,
|
minHeight: 150,
|
||||||
@@ -1426,7 +1426,7 @@ TaskContext.prototype.stepTriggers = function()
|
|||||||
border : false,
|
border : false,
|
||||||
rootVisible : false,
|
rootVisible : false,
|
||||||
height : 320,
|
height : 320,
|
||||||
width : 200,
|
width : 230,
|
||||||
useArrows : false,
|
useArrows : false,
|
||||||
autoScroll : true,
|
autoScroll : true,
|
||||||
animate : true
|
animate : true
|
||||||
@@ -1572,7 +1572,7 @@ TaskContext.prototype.stepTriggers = function()
|
|||||||
fields : triggersFields
|
fields : triggersFields
|
||||||
});
|
});
|
||||||
//taskUsers.setDefaultSort('LABEL', 'asc');
|
//taskUsers.setDefaultSort('LABEL', 'asc');
|
||||||
stepsTriggers.load({params:{start : 0 , limit : 10 }});
|
stepsTriggers.load({params:{start : 0 , limit : 5 }});
|
||||||
|
|
||||||
var availableTriggers = new Ext.data.JsonStore({
|
var availableTriggers = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
@@ -1599,7 +1599,7 @@ TaskContext.prototype.stepTriggers = function()
|
|||||||
clicksToEdit: 1,
|
clicksToEdit: 1,
|
||||||
width : 450,
|
width : 450,
|
||||||
minHeight:400,
|
minHeight:400,
|
||||||
height :400,
|
height :320,
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
plugins: [triggerEditor],
|
plugins: [triggerEditor],
|
||||||
columns: [
|
columns: [
|
||||||
@@ -1676,7 +1676,7 @@ TaskContext.prototype.stepTriggers = function()
|
|||||||
stripeRows: true,
|
stripeRows: true,
|
||||||
viewConfig: {forceFit: true},
|
viewConfig: {forceFit: true},
|
||||||
bbar: new Ext.PagingToolbar({
|
bbar: new Ext.PagingToolbar({
|
||||||
pageSize: 10,
|
pageSize: 5,
|
||||||
store: stepsTriggers,
|
store: stepsTriggers,
|
||||||
displayInfo: true,
|
displayInfo: true,
|
||||||
displayMsg: 'Displaying Step Tiggers {0} - {1} of {2}',
|
displayMsg: 'Displaying Step Tiggers {0} - {1} of {2}',
|
||||||
|
|||||||
Reference in New Issue
Block a user