Merge pull request #814 from norahmollo/master
CODE STYLE Formating workflow/engine/methods/cases
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -74,7 +74,6 @@ function casesShowOuputDocumentExist ($url)
|
||||
|
||||
if ($actionAjax == 'casesGenerateDocumentPage') {
|
||||
global $G_PUBLISH;
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
G::loadClass( 'configuration' );
|
||||
$conf = new Configurations();
|
||||
@@ -128,7 +127,6 @@ if ($actionAjax == 'generateDocumentGrid_Ajax') {
|
||||
if (isset( $generalConfCasesList['casesListDateFormat'] ) && ! empty( $generalConfCasesList['casesListDateFormat'] )) {
|
||||
$dateFormat = $generalConfCasesList['casesListDateFormat'];
|
||||
}
|
||||
|
||||
$newDir = '/tmp/test/directory';
|
||||
$r = G::verifyPath( $newDir );
|
||||
$r->data = $aProcesses;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,6 @@ if ($action == 'selfservice')
|
||||
$action = 'unassigned';
|
||||
//if ( $action == 'sent' ) $action = 'participated';
|
||||
|
||||
|
||||
G::LoadClass( "BasePeer" );
|
||||
G::LoadClass( 'configuration' );
|
||||
require_once ("classes/model/Fields.php");
|
||||
@@ -16,8 +15,6 @@ require_once ("classes/model/Users.php");
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
// oHeadPublisher->setExtSkin( 'xtheme-blue');
|
||||
|
||||
|
||||
//get the configuration for this action
|
||||
$conf = new Configurations();
|
||||
try {
|
||||
@@ -57,8 +54,7 @@ if ($action == 'draft' /* && $action == 'cancelled' */) {
|
||||
//array_unshift ( $columns, array( 'header'=> '', 'width'=> 50, 'sortable'=> false, 'id'=> 'deleteLink' ) );
|
||||
}
|
||||
if ($action == 'selfservice') {
|
||||
array_unshift( $columns, array ('header' => '','width' => 50,'sortable' => false,'id' => 'viewLink'
|
||||
) );
|
||||
array_unshift( $columns, array ('header' => '','width' => 50,'sortable' => false,'id' => 'viewLink') );
|
||||
}
|
||||
|
||||
if ($action == 'paused') {
|
||||
@@ -79,8 +75,7 @@ $oAppCache = new AppCacheView();
|
||||
$oAppCache->confCasesList = $confCasesList;
|
||||
|
||||
//get values for the comboBoxes
|
||||
$processes[] = array ('',G::LoadTranslation( 'ID_ALL_PROCESS' )
|
||||
);
|
||||
$processes[] = array ('',G::LoadTranslation( 'ID_ALL_PROCESS' ));
|
||||
$status = getStatusArray( $action, $userUid );
|
||||
$category = getCategoryArray();
|
||||
$users = getUserArray( $action, $userUid );
|
||||
@@ -101,7 +96,6 @@ $oHeadPublisher->assign( 'userValues', $users ); //Sending the listing of users
|
||||
$oHeadPublisher->assign( 'allUsersValues', $allUsers ); //Sending the listing of all users
|
||||
$oHeadPublisher->assign( "solrEnabled", (($aux = System::solrEnv()) !== false) ? 1 : 0 ); //Sending the status of solar
|
||||
|
||||
|
||||
//menu permissions
|
||||
/*$c = new Criteria('workflow');
|
||||
$c->clearSelectColumns();
|
||||
@@ -112,11 +106,7 @@ $oHeadPublisher->assign( "solrEnabled", (($aux = System::solrEnv()) !== false) ?
|
||||
$cnt = '';
|
||||
$menuPerms = '';
|
||||
$menuPerms = $menuPerms . ($RBAC->userCanAccess( 'PM_REASSIGNCASE' ) == 1) ? 'R' : ''; //can reassign case
|
||||
|
||||
|
||||
$oHeadPublisher->assign( '___p34315105', $menuPerms ); // user menu permissions
|
||||
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
|
||||
@@ -131,10 +121,8 @@ function getUserArray ($action, $userUid)
|
||||
{
|
||||
global $oAppCache;
|
||||
$status = array ();
|
||||
$users[] = array ("CURRENT_USER",G::LoadTranslation( "ID_CURRENT_USER" )
|
||||
);
|
||||
$users[] = array ("",G::LoadTranslation( "ID_ALL_USERS" )
|
||||
);
|
||||
$users[] = array ("CURRENT_USER",G::LoadTranslation( "ID_CURRENT_USER" ));
|
||||
$users[] = array ("",G::LoadTranslation( "ID_ALL_USERS" ));
|
||||
|
||||
//now get users, just for the Search action
|
||||
switch ($action) {
|
||||
@@ -149,8 +137,7 @@ function getUserArray ($action, $userUid)
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$users[] = array ($aRow['USR_UID'],$aRow['USR_LASTNAME'] . ' ' . $aRow['USR_FIRSTNAME']
|
||||
);
|
||||
$users[] = array ($aRow['USR_UID'],$aRow['USR_LASTNAME'] . ' ' . $aRow['USR_FIRSTNAME']);
|
||||
$oDataset->next();
|
||||
}
|
||||
break;
|
||||
@@ -176,8 +163,7 @@ function getCategoryArray ()
|
||||
$dataset->next();
|
||||
|
||||
while ($row = $dataset->getRow()) {
|
||||
$category[] = array ($row['CATEGORY_UID'],$row['CATEGORY_NAME']
|
||||
);
|
||||
$category[] = array ($row['CATEGORY_UID'],$row['CATEGORY_NAME']);
|
||||
$dataset->next();
|
||||
}
|
||||
return $category;
|
||||
@@ -205,8 +191,7 @@ function getAllUsersArray ($action)
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$users[] = array ($aRow['USR_UID'],$aRow['APP_CURRENT_USER']
|
||||
);
|
||||
$users[] = array ($aRow['USR_UID'],$aRow['APP_CURRENT_USER']);
|
||||
$oDataset->next();
|
||||
}
|
||||
}
|
||||
@@ -217,8 +202,7 @@ function getStatusArray ($action, $userUid)
|
||||
{
|
||||
global $oAppCache;
|
||||
$status = array ();
|
||||
$status[] = array ('',G::LoadTranslation( 'ID_ALL_STATUS' )
|
||||
);
|
||||
$status[] = array ('',G::LoadTranslation( 'ID_ALL_STATUS' ));
|
||||
//get the list based in the action provided
|
||||
switch ($action) {
|
||||
case 'sent':
|
||||
@@ -274,8 +258,8 @@ function getStatusArray ($action, $userUid)
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$status[] = array ($aRow['APP_STATUS'],G::LoadTranslation( 'ID_CASES_STATUS_' . $aRow['APP_STATUS'] )
|
||||
); //here we can have a translation for the status ( the second param)
|
||||
$status[] = array ($aRow['APP_STATUS'],G::LoadTranslation( 'ID_CASES_STATUS_' . $aRow['APP_STATUS'] ));
|
||||
//here we can have a translation for the status ( the second param)
|
||||
$oDataset->next();
|
||||
}
|
||||
}
|
||||
@@ -286,8 +270,7 @@ function getStatusArray ($action, $userUid)
|
||||
function getToDo ()
|
||||
{
|
||||
$caseColumns = array ();
|
||||
$caseColumns[] = array ('header' => '#','dataIndex' => 'APP_NUMBER','width' => 45,'align' => 'center'
|
||||
);
|
||||
$caseColumns[] = array ('header' => '#','dataIndex' => 'APP_NUMBER','width' => 45,'align' => 'center');
|
||||
$caseColumns[] = array ('header' => G::LoadTranslation( 'ID_SUMMARY' ),'dataIndex' => 'CASE_SUMMARY','width' => 45,'align' => 'center','sortable' => false
|
||||
);
|
||||
$caseColumns[] = array ('header' => G::LoadTranslation( 'ID_CASES_NOTES' ),'dataIndex' => 'CASE_NOTES_COUNT','width' => 45,'align' => 'center','sortable' => false
|
||||
|
||||
@@ -14,17 +14,13 @@ if (isset( $_GET['ux'] )) {
|
||||
} else {
|
||||
$url = 'casesListExtJs';
|
||||
}
|
||||
|
||||
if (isset( $_GET['ux'] )) {
|
||||
echo 'if (typeof window.parent.ux_env != \'undefined\') {';
|
||||
}
|
||||
|
||||
echo " window.parent.location.href = '$url';";
|
||||
|
||||
if (isset( $_GET['ux'] )) {
|
||||
echo '} else { window.parent.location.href = \'casesListExtJs\'; }';
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -27,7 +27,6 @@ require_once 'classes/model/AppThread.php';
|
||||
require_once 'classes/model/AppDelay.php';
|
||||
require_once 'classes/model/Process.php';
|
||||
require_once 'classes/model/Task.php';
|
||||
|
||||
require_once ("classes/model/AppCacheView.php");
|
||||
require_once ("classes/model/AppDelegation.php");
|
||||
require_once ("classes/model/AdditionalTables.php");
|
||||
@@ -74,12 +73,9 @@ if ($actionAjax == "processListExtJs") {
|
||||
}
|
||||
$del = DBAdapter::getStringDelimiter();
|
||||
$conds = array ();
|
||||
$conds[] = array (ProcessPeer::PRO_UID,ContentPeer::CON_ID
|
||||
);
|
||||
$conds[] = array (ContentPeer::CON_CATEGORY,$del . 'PRO_TITLE' . $del
|
||||
);
|
||||
$conds[] = array (ContentPeer::CON_LANG,$del . $lang . $del
|
||||
);
|
||||
$conds[] = array (ProcessPeer::PRO_UID,ContentPeer::CON_ID);
|
||||
$conds[] = array (ContentPeer::CON_CATEGORY,$del . 'PRO_TITLE' . $del);
|
||||
$conds[] = array (ContentPeer::CON_LANG,$del . $lang . $del);
|
||||
$cProcess->addJoinMC( $conds, Criteria::LEFT_JOIN );
|
||||
$cProcess->add( ProcessPeer::PRO_STATUS, 'ACTIVE' );
|
||||
$oDataset = ProcessPeer::doSelectRS( $cProcess );
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
|
||||
$action = isset( $_GET['action'] ) ? $_GET['action'] : 'default';
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$userId = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : '00000000000000000000000000000000';
|
||||
switch ($action) {
|
||||
case 'getAllCounters':
|
||||
@@ -183,7 +181,6 @@ function getAllCounters ()
|
||||
//$aTypes['to_revise'] = 'CASES_TO_REVISE';
|
||||
//$aTypes['to_reassign'] = 'CASES_TO_REASSIGN';
|
||||
|
||||
|
||||
if ((($solrConf = System::solrEnv()) !== false)) {
|
||||
G::LoadClass( 'AppSolr' );
|
||||
$ApplicationSolrIndex = new AppSolr( $solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance'] );
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
//$oForm = new Form ( $_SESSION ['PROCESS'] . '/' . $_GET ['UID'], PATH_DYNAFORM );
|
||||
//$oForm->validatePost ();
|
||||
|
||||
|
||||
/* @author Alvaro Campos Sanchez */
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
@@ -39,11 +38,7 @@ $Fields['APP_DATA'] = array_merge( $Fields['APP_DATA'], (array) $_POST['form'] )
|
||||
|
||||
#here we must verify if is a debug session
|
||||
$trigger_debug_session = $_SESSION['TRIGGER_DEBUG']['ISSET']; #here we must verify if is a debugg session
|
||||
|
||||
|
||||
#trigger debug routines...
|
||||
|
||||
|
||||
//cleaning debug variables
|
||||
$_SESSION['TRIGGER_DEBUG']['ERRORS'] = Array ();
|
||||
$_SESSION['TRIGGER_DEBUG']['DATA'] = Array ();
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
|
||||
@@ -13,8 +13,6 @@ global $RBAC;
|
||||
switch ($page) {
|
||||
case "startCase":
|
||||
$oHeadPublisher->addExtJsScript( 'cases/casesStartCase', true ); //adding a javascript file .js
|
||||
|
||||
|
||||
$oHeadPublisher->addContent( 'cases/casesStartCase' ); //adding a html file .html.
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
@@ -43,6 +41,5 @@ switch ($page) {
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -92,10 +92,7 @@ function getProcessList ()
|
||||
$tempTreeChild['otherAttributes'] = array_merge( $processInfoChild, $proData[$processInfoChild['pro_uid']], $calendar->getCalendarFor( $processInfoChild['uid'], $processInfoChild['uid'], $processInfoChild['uid'] ) );
|
||||
$tempTreeChild['otherAttributes']['PRO_TAS_TITLE'] = str_replace( ")", "", str_replace( "(", "", trim( str_replace( $tempTreeChild['otherAttributes']['PRO_TITLE'], "", $tempTreeChild['otherAttributes']["value"] ) ) ) );
|
||||
$tempTreeChild['qtip'] = $tempTreeChild['otherAttributes']['PRO_DESCRIPTION'];
|
||||
|
||||
//$tempTree['cls']='file';
|
||||
|
||||
|
||||
$tempTreeChildren[] = $tempTreeChild;
|
||||
}
|
||||
}
|
||||
@@ -289,16 +286,10 @@ function getSimpleDashboardData ()
|
||||
$Criteria->addSelectColumn( AppCacheViewPeer::USR_UID );
|
||||
$Criteria->addSelectColumn( AppCacheViewPeer::APP_THREAD_STATUS );
|
||||
|
||||
$Criteria->add( AppCacheViewPeer::APP_STATUS, array ("TO_DO","DRAFT"
|
||||
), CRITERIA::IN );
|
||||
$Criteria->add( AppCacheViewPeer::USR_UID, array ($sUIDUserLogged,""
|
||||
), CRITERIA::IN );
|
||||
|
||||
$Criteria->add( AppCacheViewPeer::APP_STATUS, array ("TO_DO","DRAFT"), CRITERIA::IN );
|
||||
$Criteria->add( AppCacheViewPeer::USR_UID, array ($sUIDUserLogged,""), CRITERIA::IN );
|
||||
$Criteria->add( AppCacheViewPeer::DEL_FINISH_DATE, null, Criteria::ISNULL );
|
||||
|
||||
//$Criteria->add ( AppCacheViewPeer::APP_THREAD_STATUS, 'OPEN' );
|
||||
|
||||
|
||||
$Criteria->add( AppCacheViewPeer::DEL_THREAD_STATUS, 'OPEN' );
|
||||
|
||||
//execute the query
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
// $oHeadPublisher =& headPublisher::getSingleton();
|
||||
// $TRANSLATIONS = array_merge($TRANSLATIONS, $TRANSLATIONS2);
|
||||
// $TRANSLATIONS = array_merge($TRANSLATIONS, $TRANSLATIONS2);
|
||||
|
||||
$delIndex = $_GET['DEL_INDEX'];
|
||||
$appUid = $_GET['APP_UID'];
|
||||
// $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
class TreeNode
|
||||
{
|
||||
public $text = "";
|
||||
@@ -43,9 +42,7 @@ class ExtJsTreeNode extends TreeNode
|
||||
}
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$o = new Cases();
|
||||
|
||||
$PRO_UID = $_SESSION['PROCESS'];
|
||||
|
||||
$treeArray = array ();
|
||||
|
||||
@@ -69,18 +69,13 @@ $oCriteria->addDescendingOrderByColumn( LogCasesSchedulerPeer::EXEC_HOUR );
|
||||
|
||||
$oDataset = LogCasesSchedulerPeer::doSelectRS( $oCriteria );
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
|
||||
//$oDataset = LogCasesSchedulerPeer::doSelectRS ( $oCriteria );
|
||||
//$oDataset->setFetchmode ( ResultSet::FETCHMODE_ASSOC );
|
||||
|
||||
|
||||
$addTables = Array ();
|
||||
while ($oDataset->next()) {
|
||||
$addTables[] = $oDataset->getRow();
|
||||
}
|
||||
|
||||
//$oLogCasesScheduler = new LogCasesScheduler();
|
||||
//$arrData = $oLogCasesScheduler->getAll();
|
||||
|
||||
echo '{results: ' . $results . ', rows: ' . G::json_encode( $addTables ) . '}';
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ if (isset( $_SESSION['TRIGGER_DEBUG']['info'] )) {
|
||||
} else {
|
||||
$aTriggers[0] = $_SESSION['TRIGGER_DEBUG'];
|
||||
}
|
||||
|
||||
//print_r($aTriggers);die;
|
||||
$triggersList = Array ();
|
||||
|
||||
@@ -21,8 +20,6 @@ foreach ($aTriggers as $aTrigger) {
|
||||
//$t_code = str_replace('"', '\'',$t_code);
|
||||
//$t_code = addslashes($t_code);
|
||||
//$t_code = Only1br($t_code);
|
||||
|
||||
|
||||
//highlighting the trigger code using the geshi third party library
|
||||
G::LoadThirdParty( 'geshi', 'geshi' );
|
||||
$geshi = new GeSHi( $aTrigger['TRIGGERS_VALUES'][$index]['TRI_WEBBOT'], 'php' );
|
||||
@@ -65,9 +62,7 @@ foreach ($DEBUG_ERRORS as $error) {
|
||||
]}';
|
||||
|
||||
*/
|
||||
|
||||
$triggersRet->total = count( $triggersList );
|
||||
$triggersRet->data = $triggersList;
|
||||
|
||||
echo G::json_encode( $triggersRet );
|
||||
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
<?php
|
||||
|
||||
$request = isset( $_POST['request'] ) ? $_POST['request'] : '';
|
||||
switch ($request) {
|
||||
case 'getRows':
|
||||
|
||||
$fieldname = $_POST['fieldname'];
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oApp = new Cases();
|
||||
$aFields = $oApp->loadCase( $_SESSION['APPLICATION'] );
|
||||
|
||||
$aVars = Array ();
|
||||
for ($i = 0; $i < count( $_SESSION['TRIGGER_DEBUG']['DATA'] ); $i ++) {
|
||||
$aVars[$_SESSION['TRIGGER_DEBUG']['DATA'][$i]['key']] = $_SESSION['TRIGGER_DEBUG']['DATA'][$i]['value'];
|
||||
@@ -86,10 +83,8 @@ switch ($request) {
|
||||
if (isset( $_POST['filter'] ) && $_POST['filter'] == 'sys') {
|
||||
$aVars = G::getSystemConstants();
|
||||
}
|
||||
|
||||
ksort( $aVars );
|
||||
$return_object->totalCount = 1;
|
||||
|
||||
foreach ($aVars as $i => $var) {
|
||||
if (is_array( $var ) || is_object( $var )) {
|
||||
$aVars[$i] = print_r( $var, true );
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
//$newFile = str_replace ( 'index.php', 'cases_List.php' , __FILE__ ) ;
|
||||
$newFile = str_replace( 'index.php', 'main.php', __FILE__ );
|
||||
|
||||
@@ -83,6 +83,5 @@ $oHeadPublisher->assign( '_APP_NUM', '#: ' . $case['APP_NUMBER'] );
|
||||
$oHeadPublisher->assign( '_ENV_CURRENT_DATE', $conf->getSystemDate( date( 'Y-m-d' ) ) );
|
||||
$oHeadPublisher->assign( '_ENV_CURRENT_DATE_NO_FORMAT', date( 'Y-m-d' ) );
|
||||
$oHeadPublisher->assign( 'idfirstform', is_null( $oStep ) ? '' : $oStep->getStepUidObj() );
|
||||
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ $dateTo = isset( $_POST["dateTo"] ) ? substr( $_POST["dateTo"], 0, 10 ) : "";
|
||||
|
||||
try {
|
||||
$result = "";
|
||||
|
||||
$userUid = (isset( $_SESSION["USER_LOGGED"] ) && $_SESSION["USER_LOGGED"] != "") ? $_SESSION["USER_LOGGED"] : null;
|
||||
$user = ($user == "CURRENT_USER") ? $userUid : $user;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ $option = '';
|
||||
if (isset( $_GET['t'] ))
|
||||
$option = $_GET['t'];
|
||||
try {
|
||||
|
||||
G::LoadClass( "BasePeer" );
|
||||
require_once ("classes/model/Process.php");
|
||||
require_once ("classes/model/AppCacheView.php");
|
||||
|
||||
@@ -21,8 +21,7 @@ $allTasUids = array ();
|
||||
// getting all App Uids and task Uids
|
||||
foreach ($sentUids as $sentUid) {
|
||||
$aItem = explode( '|', $sentUid );
|
||||
$allUidsRecords[] = array ('APP_UID' => $aItem[0],'TAS_UID' => $aItem[1],'DEL_INDEX' => $aItem[2]
|
||||
);
|
||||
$allUidsRecords[] = array ('APP_UID' => $aItem[0],'TAS_UID' => $aItem[1],'DEL_INDEX' => $aItem[2]);
|
||||
}
|
||||
|
||||
$sReassignFromUser = isset( $_POST['user'] ) ? $_POST['user'] : '';
|
||||
@@ -55,8 +54,8 @@ foreach ($allUidsRecords as $aRecord) {
|
||||
foreach ($aCaseUsers as $aCaseUser) {
|
||||
if ($aCaseUser['USR_UID'] != $sReassignFromUser) {
|
||||
$aCaseUserRecord = $oUser->load( $aCaseUser['USR_UID'] );
|
||||
$aUsersInvolved[] = array ('userUid' => $aCaseUser['USR_UID'],'userFullname' => $aCaseUserRecord['USR_FIRSTNAME'] . ' ' . $aCaseUserRecord['USR_LASTNAME']
|
||||
); // . ' (' . $aCaseUserRecord['USR_USERNAME']
|
||||
$aUsersInvolved[] = array ('userUid' => $aCaseUser['USR_UID'],'userFullname' => $aCaseUserRecord['USR_FIRSTNAME'] . ' ' . $aCaseUserRecord['USR_LASTNAME']);
|
||||
// . ' (' . $aCaseUserRecord['USR_USERNAME']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001';
|
||||
$query = isset( $_POST['query'] ) ? $_POST['query'] : '';
|
||||
$dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'DESC';
|
||||
|
||||
@@ -28,7 +28,6 @@ foreach ($items as $item) {
|
||||
$dataUids = explode( "|", $item );
|
||||
$appSelectedUids[] = $dataUids[0];
|
||||
}
|
||||
|
||||
// var_dump($aData);
|
||||
//var_dump($appSelectedUids);
|
||||
$casesReassignedCount = 0;
|
||||
@@ -86,10 +85,8 @@ if (is_array( $aData )) {
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
}
|
||||
$serverResponse[] = array ('TAS_TITLE' => $aData->APP_TAS_TITLE,'REASSIGNED_CASES' => $currentCasesReassigned
|
||||
);
|
||||
$serverResponse[] = array ('TAS_TITLE' => $aData->APP_TAS_TITLE,'REASSIGNED_CASES' => $currentCasesReassigned);
|
||||
}
|
||||
|
||||
$serverResponse['TOTAL'] = $casesReassignedCount;
|
||||
echo G::json_encode( $serverResponse );
|
||||
|
||||
|
||||
@@ -69,8 +69,7 @@ try {
|
||||
} catch (Exception $error) {
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => $error->getMessage()
|
||||
) );
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => $error->getMessage()) );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
die();
|
||||
}
|
||||
|
||||
@@ -12,22 +12,22 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
$RBAC->requirePermissions('PM_DASHBOARD');
|
||||
$RBAC->requirePermissions( 'PM_DASHBOARD' );
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_ID_MENU_SELECTED = 'DASHBOARD';
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_ID_MENU_SELECTED = 'DASHBOARD';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'view', 'dashboard/load' );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('view', 'dashboard/load');
|
||||
G::RenderPage('publish');
|
||||
|
||||
Reference in New Issue
Block a user