CODE STYLE Formating workflow/engine/methods/cases
Change format files in workflow/engine/methods/cases
This commit is contained in:
@@ -1,170 +1,178 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* casesDemo.php
|
* casesDemo.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* 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.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* 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.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*/
|
||||||
*/
|
|
||||||
|
try {
|
||||||
try {
|
|
||||||
|
$rows[] = array ('uid' => 'char','name' => 'char','age' => 'integer','balance' => 'float'
|
||||||
$rows[] = array ( 'uid' => 'char', 'name' => 'char', 'age' => 'integer', 'balance' => 'float' );
|
);
|
||||||
$rows[] = array ( 'uid' => 11, 'name' => 'john', 'age' => 44, 'balance' => 123423 );
|
$rows[] = array ('uid' => 11,'name' => 'john','age' => 44,'balance' => 123423
|
||||||
$rows[] = array ( 'uid' => 22, 'name' => 'bobby', 'age' => 33, 'balance' => 23456 );
|
);
|
||||||
$rows[] = array ( 'uid' => 33, 'name' => 'Dan', 'age' => 22, 'balance' => 34567 );
|
$rows[] = array ('uid' => 22,'name' => 'bobby','age' => 33,'balance' => 23456
|
||||||
$rows[] = array ( 'uid' => 33, 'name' => 'Mike', 'age' => 21, 'balance' => 4567 );
|
);
|
||||||
$rows[] = array ( 'uid' => 44, 'name' => 'Paul', 'age' => 22, 'balance' => 567 );
|
$rows[] = array ('uid' => 33,'name' => 'Dan','age' => 22,'balance' => 34567
|
||||||
$rows[] = array ( 'uid' => 55, 'name' => 'Will', 'age' => 23, 'balance' => 67 );
|
);
|
||||||
$rows[] = array ( 'uid' => 66, 'name' => 'Ernest', 'age' => 24, 'balance' => 7 );
|
$rows[] = array ('uid' => 33,'name' => 'Mike','age' => 21,'balance' => 4567
|
||||||
$rows[] = array ( 'uid' => 77, 'name' => 'Albert', 'age' => 25, 'balance' => 84567 );
|
);
|
||||||
$rows[] = array ( 'uid' => 88, 'name' => 'Sue', 'age' => 26, 'balance' => 94567 );
|
$rows[] = array ('uid' => 44,'name' => 'Paul','age' => 22,'balance' => 567
|
||||||
$rows[] = array ( 'uid' => 99, 'name' => 'Freddy', 'age' => 22, 'balance' => 04567 );
|
);
|
||||||
|
$rows[] = array ('uid' => 55,'name' => 'Will','age' => 23,'balance' => 67
|
||||||
$_DBArray['user'] = $rows;
|
);
|
||||||
$_SESSION['_DBArray'] = $_DBArray;
|
$rows[] = array ('uid' => 66,'name' => 'Ernest','age' => 24,'balance' => 7
|
||||||
//krumo ( $_DBArray );
|
);
|
||||||
|
$rows[] = array ('uid' => 77,'name' => 'Albert','age' => 25,'balance' => 84567
|
||||||
G::LoadClass( 'ArrayPeer');
|
);
|
||||||
$c = new Criteria ('dbarray');
|
$rows[] = array ('uid' => 88,'name' => 'Sue','age' => 26,'balance' => 94567
|
||||||
$c->setDBArrayTable('user');
|
);
|
||||||
// $c->add ( 'user.age', 22 , Criteria::GREATER_EQUAL );
|
$rows[] = array ('uid' => 99,'name' => 'Freddy','age' => 22,'balance' => 04567
|
||||||
// $c->add ( 'user.age', 22 , Criteria::EQUAL );
|
);
|
||||||
$c->add ( 'user.name', '%au%' , Criteria::LIKE );
|
|
||||||
// $c->add ( 'user.balance', 3456 , Criteria::GREATER_EQUAL );
|
$_DBArray['user'] = $rows;
|
||||||
$c->addAscendingOrderByColumn ('name');
|
$_SESSION['_DBArray'] = $_DBArray;
|
||||||
|
//krumo ( $_DBArray );
|
||||||
$G_MAIN_MENU = 'processmaker';
|
G::LoadClass( 'ArrayPeer' );
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$c = new Criteria( 'dbarray' );
|
||||||
$G_PUBLISH = new Publisher;
|
$c->setDBArrayTable( 'user' );
|
||||||
// $G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/casesDemo', $c );
|
// $c->add ( 'user.age', 22 , Criteria::GREATER_EQUAL );
|
||||||
//$G_PUBLISH->AddContent('smarty', 'cases/casesDemo', '', '', $Fields);
|
// $c->add ( 'user.age', 22 , Criteria::EQUAL );
|
||||||
// G::RenderPage( "publish" );
|
$c->add( 'user.name', '%au%', Criteria::LIKE );
|
||||||
//die;
|
// $c->add ( 'user.balance', 3456 , Criteria::GREATER_EQUAL );
|
||||||
|
$c->addAscendingOrderByColumn( 'name' );
|
||||||
/* Includes */
|
|
||||||
G::LoadClass('pmScript');
|
$G_MAIN_MENU = 'processmaker';
|
||||||
G::LoadClass('case');
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
G::LoadClass('derivation');
|
$G_PUBLISH = new Publisher();
|
||||||
$oCase = new Cases ();
|
// $G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/casesDemo', $c );
|
||||||
$appUid = isset ($_SESSION['APPLICATION']) ? $_SESSION['APPLICATION'] : '';
|
//$G_PUBLISH->AddContent('smarty', 'cases/casesDemo', '', '', $Fields);
|
||||||
$appFields = $oCase->loadCase( $appUid );
|
// G::RenderPage( "publish" );
|
||||||
|
//die;
|
||||||
$Fields['APP_UID'] = $appFields['APP_UID'];
|
|
||||||
$Fields['APP_NUMBER'] = $appFields['APP_NUMBER'];
|
|
||||||
$Fields['APP_STATUS'] = $appFields['APP_STATUS'];
|
/* Includes */
|
||||||
$Fields['STATUS'] = $appFields['STATUS'];
|
G::LoadClass( 'pmScript' );
|
||||||
$Fields['APP_TITLE'] = $appFields['TITLE'];
|
G::LoadClass( 'case' );
|
||||||
$Fields['PRO_UID'] = $appFields['PRO_UID'];
|
G::LoadClass( 'derivation' );
|
||||||
$Fields['APP_PARALLEL'] = $appFields['APP_PARALLEL'];
|
$oCase = new Cases();
|
||||||
$Fields['APP_INIT_USER'] = $appFields['APP_INIT_USER'];
|
$appUid = isset( $_SESSION['APPLICATION'] ) ? $_SESSION['APPLICATION'] : '';
|
||||||
$Fields['APP_CUR_USER'] = $appFields['APP_CUR_USER'];
|
$appFields = $oCase->loadCase( $appUid );
|
||||||
$Fields['APP_DATA'] = $appFields['APP_DATA'];
|
|
||||||
$Fields['CREATOR'] = $appFields['CREATOR'];
|
$Fields['APP_UID'] = $appFields['APP_UID'];
|
||||||
$Fields['APP_PIN'] = $appFields['APP_PIN'];
|
$Fields['APP_NUMBER'] = $appFields['APP_NUMBER'];
|
||||||
$Fields['APP_PROC_CODE'] = $appFields['APP_PROC_CODE'];
|
$Fields['APP_STATUS'] = $appFields['APP_STATUS'];
|
||||||
|
$Fields['STATUS'] = $appFields['STATUS'];
|
||||||
$Fields['PRO_TITLE'] = Content::load ( 'PRO_TITLE', '', $appFields['PRO_UID'], SYS_LANG );
|
$Fields['APP_TITLE'] = $appFields['TITLE'];
|
||||||
$oUser = new Users();
|
$Fields['PRO_UID'] = $appFields['PRO_UID'];
|
||||||
$oUser->load( $appFields['APP_CUR_USER'] );
|
$Fields['APP_PARALLEL'] = $appFields['APP_PARALLEL'];
|
||||||
$Fields['CUR_USER'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
$Fields['APP_INIT_USER'] = $appFields['APP_INIT_USER'];
|
||||||
|
$Fields['APP_CUR_USER'] = $appFields['APP_CUR_USER'];
|
||||||
$threads = $oCase->GetAllThreads ($appFields['APP_UID']);
|
$Fields['APP_DATA'] = $appFields['APP_DATA'];
|
||||||
$Fields['THREADS'] = $threads;
|
$Fields['CREATOR'] = $appFields['CREATOR'];
|
||||||
$Fields['CANT_THREADS'] = count($threads);
|
$Fields['APP_PIN'] = $appFields['APP_PIN'];
|
||||||
|
$Fields['APP_PROC_CODE'] = $appFields['APP_PROC_CODE'];
|
||||||
$Fields['CANT_APP_DATA'] = count($Fields['APP_DATA']);
|
|
||||||
$delegations = $oCase->GetAllDelegations ($appFields['APP_UID']);
|
$Fields['PRO_TITLE'] = Content::load( 'PRO_TITLE', '', $appFields['PRO_UID'], SYS_LANG );
|
||||||
foreach ( $delegations as $key => $val ) {
|
$oUser = new Users();
|
||||||
$delegations[$key]['TAS_TITLE'] = Content::load ( 'TAS_TITLE', '', $val['TAS_UID'], SYS_LANG );
|
$oUser->load( $appFields['APP_CUR_USER'] );
|
||||||
if ($val['USR_UID'] != -1) {
|
$Fields['CUR_USER'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
||||||
$oUser->load( $val['USR_UID'] );
|
|
||||||
$delegations[$key]['USR_NAME'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
$threads = $oCase->GetAllThreads( $appFields['APP_UID'] );
|
||||||
}
|
$Fields['THREADS'] = $threads;
|
||||||
else {
|
$Fields['CANT_THREADS'] = count( $threads );
|
||||||
$delegations[$key]['USR_NAME'] = 'Unknow user (Sub-Process User)';
|
|
||||||
}
|
$Fields['CANT_APP_DATA'] = count( $Fields['APP_DATA'] );
|
||||||
}
|
$delegations = $oCase->GetAllDelegations( $appFields['APP_UID'] );
|
||||||
$Fields['CANT_DELEGATIONS'] = count($delegations);
|
foreach ($delegations as $key => $val) {
|
||||||
$Fields['DELEGATIONS'] = $delegations;
|
$delegations[$key]['TAS_TITLE'] = Content::load( 'TAS_TITLE', '', $val['TAS_UID'], SYS_LANG );
|
||||||
|
if ($val['USR_UID'] != - 1) {
|
||||||
require_once 'classes/model/AppDelay.php';
|
$oUser->load( $val['USR_UID'] );
|
||||||
$oCriteria = new Criteria('workflow');
|
$delegations[$key]['USR_NAME'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_THREAD_INDEX);
|
} else {
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_DEL_INDEX);
|
$delegations[$key]['USR_NAME'] = 'Unknow user (Sub-Process User)';
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_TYPE);
|
}
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_STATUS);
|
}
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_ENABLE_ACTION_USER);
|
$Fields['CANT_DELEGATIONS'] = count( $delegations );
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_ENABLE_ACTION_DATE);
|
$Fields['DELEGATIONS'] = $delegations;
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_DISABLE_ACTION_USER);
|
|
||||||
$oCriteria->addSelectColumn(AppDelayPeer::APP_DISABLE_ACTION_DATE);
|
require_once 'classes/model/AppDelay.php';
|
||||||
$oCriteria->add(AppDelayPeer::APP_UID, $appUid);
|
$oCriteria = new Criteria( 'workflow' );
|
||||||
$oCriteria->addAscendingOrderByColumn(AppDelayPeer::APP_TYPE);
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_THREAD_INDEX );
|
||||||
$oCriteria->addAscendingOrderByColumn(AppDelayPeer::APP_ENABLE_ACTION_DATE);
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_DEL_INDEX );
|
||||||
$oDataset = AppDelayPeer::doSelectRS($oCriteria);
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_TYPE );
|
||||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_STATUS );
|
||||||
$oDataset->next();
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_ENABLE_ACTION_USER );
|
||||||
$aDelays = array();
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_ENABLE_ACTION_DATE );
|
||||||
while ($aRow = $oDataset->getRow()) {
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_DISABLE_ACTION_USER );
|
||||||
$aDelays[] = $aRow;
|
$oCriteria->addSelectColumn( AppDelayPeer::APP_DISABLE_ACTION_DATE );
|
||||||
$oDataset->next();
|
$oCriteria->add( AppDelayPeer::APP_UID, $appUid );
|
||||||
}
|
$oCriteria->addAscendingOrderByColumn( AppDelayPeer::APP_TYPE );
|
||||||
$Fields['DELAYS'] = $aDelays;
|
$oCriteria->addAscendingOrderByColumn( AppDelayPeer::APP_ENABLE_ACTION_DATE );
|
||||||
$Fields['CANT_DELAYS'] = count($aDelays);
|
$oDataset = AppDelayPeer::doSelectRS( $oCriteria );
|
||||||
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
require_once 'classes/model/SubApplication.php';
|
$oDataset->next();
|
||||||
$oCriteria = new Criteria('workflow');
|
$aDelays = array ();
|
||||||
$oCriteria->addSelectColumn(SubApplicationPeer::APP_UID );
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$oCriteria->addSelectColumn(SubApplicationPeer::APP_PARENT );
|
$aDelays[] = $aRow;
|
||||||
$oCriteria->addSelectColumn(SubApplicationPeer::DEL_INDEX_PARENT );
|
$oDataset->next();
|
||||||
$oCriteria->addSelectColumn(SubApplicationPeer::DEL_THREAD_PARENT);
|
}
|
||||||
$oCriteria->addSelectColumn(SubApplicationPeer::SA_STATUS );
|
$Fields['DELAYS'] = $aDelays;
|
||||||
$oCriteria->addSelectColumn(SubApplicationPeer::SA_INIT_DATE );
|
$Fields['CANT_DELAYS'] = count( $aDelays );
|
||||||
$oCriteria->addSelectColumn(SubApplicationPeer::SA_FINISH_DATE);
|
|
||||||
$oCriteria->addSelectColumn(ApplicationPeer::APP_NUMBER);
|
require_once 'classes/model/SubApplication.php';
|
||||||
$oCriteria->add(SubApplicationPeer::APP_UID, $appUid);
|
$oCriteria = new Criteria( 'workflow' );
|
||||||
$oCriteria->addJoin(ApplicationPeer::APP_UID, SubApplicationPeer::APP_PARENT, Criteria::LEFT_JOIN);
|
$oCriteria->addSelectColumn( SubApplicationPeer::APP_UID );
|
||||||
$oCriteria->addAscendingOrderByColumn(SubApplicationPeer::APP_UID);
|
$oCriteria->addSelectColumn( SubApplicationPeer::APP_PARENT );
|
||||||
$oDataset = SubApplicationPeer::doSelectRS($oCriteria);
|
$oCriteria->addSelectColumn( SubApplicationPeer::DEL_INDEX_PARENT );
|
||||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$oCriteria->addSelectColumn( SubApplicationPeer::DEL_THREAD_PARENT );
|
||||||
$oDataset->next();
|
$oCriteria->addSelectColumn( SubApplicationPeer::SA_STATUS );
|
||||||
$aSubprocess = array();
|
$oCriteria->addSelectColumn( SubApplicationPeer::SA_INIT_DATE );
|
||||||
while ($aRow = $oDataset->getRow()) {
|
$oCriteria->addSelectColumn( SubApplicationPeer::SA_FINISH_DATE );
|
||||||
$aSubprocess[] = $aRow;
|
$oCriteria->addSelectColumn( ApplicationPeer::APP_NUMBER );
|
||||||
$oDataset->next();
|
$oCriteria->add( SubApplicationPeer::APP_UID, $appUid );
|
||||||
}
|
$oCriteria->addJoin( ApplicationPeer::APP_UID, SubApplicationPeer::APP_PARENT, Criteria::LEFT_JOIN );
|
||||||
$Fields['SUBAPPLICATIONS'] = $aSubprocess;
|
$oCriteria->addAscendingOrderByColumn( SubApplicationPeer::APP_UID );
|
||||||
$Fields['CANT_SUBAPPLICATIONS'] = count($aSubprocess);
|
$oDataset = SubApplicationPeer::doSelectRS( $oCriteria );
|
||||||
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
/* Render page */
|
$oDataset->next();
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$aSubprocess = array ();
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$G_PUBLISH = new Publisher;
|
$aSubprocess[] = $aRow;
|
||||||
//$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/casesDemo', $c );
|
$oDataset->next();
|
||||||
$G_PUBLISH->AddContent('smarty', 'cases/casesDemo', '', '', $Fields);
|
}
|
||||||
G::RenderPage( "publish" );
|
$Fields['SUBAPPLICATIONS'] = $aSubprocess;
|
||||||
|
$Fields['CANT_SUBAPPLICATIONS'] = count( $aSubprocess );
|
||||||
}
|
|
||||||
catch ( Exception $e ){
|
/* Render page */
|
||||||
$G_PUBLISH = new Publisher;
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH = new Publisher();
|
||||||
G::RenderPage('publish');
|
//$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/casesDemo', $c );
|
||||||
|
$G_PUBLISH->AddContent( 'smarty', 'cases/casesDemo', '', '', $Fields );
|
||||||
|
G::RenderPage( "publish" );
|
||||||
|
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$G_PUBLISH = new Publisher();
|
||||||
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
|
G::RenderPage( 'publish' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ function casesShowOuputDocumentExist ($url)
|
|||||||
|
|
||||||
if ($actionAjax == 'casesGenerateDocumentPage') {
|
if ($actionAjax == 'casesGenerateDocumentPage') {
|
||||||
global $G_PUBLISH;
|
global $G_PUBLISH;
|
||||||
|
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
G::loadClass( 'configuration' );
|
G::loadClass( 'configuration' );
|
||||||
$conf = new Configurations();
|
$conf = new Configurations();
|
||||||
@@ -128,7 +127,6 @@ if ($actionAjax == 'generateDocumentGrid_Ajax') {
|
|||||||
if (isset( $generalConfCasesList['casesListDateFormat'] ) && ! empty( $generalConfCasesList['casesListDateFormat'] )) {
|
if (isset( $generalConfCasesList['casesListDateFormat'] ) && ! empty( $generalConfCasesList['casesListDateFormat'] )) {
|
||||||
$dateFormat = $generalConfCasesList['casesListDateFormat'];
|
$dateFormat = $generalConfCasesList['casesListDateFormat'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$newDir = '/tmp/test/directory';
|
$newDir = '/tmp/test/directory';
|
||||||
$r = G::verifyPath( $newDir );
|
$r = G::verifyPath( $newDir );
|
||||||
$r->data = $aProcesses;
|
$r->data = $aProcesses;
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($actionAjax == 'showDynaformListHistory') {
|
if ($actionAjax == 'showDynaformListHistory') {
|
||||||
|
|
||||||
//!dataIndex
|
//!dataIndex
|
||||||
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
||||||
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
||||||
@@ -141,7 +140,6 @@ body {
|
|||||||
</style>
|
</style>
|
||||||
<script language="Javascript">
|
<script language="Javascript">
|
||||||
globalMd5Return=function(s,raw,hexcase,chrsz){raw=raw||false;hexcase=hexcase||false;chrsz=chrsz||8;function safe_add(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)}function bit_rol(num,cnt){return(num<<cnt)|(num>>>(32-cnt))}function md5_cmn(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b)}function md5_ff(a,b,c,d,x,s,t){return md5_cmn((b&c)|((~b)&d),a,b,x,s,t)}function md5_gg(a,b,c,d,x,s,t){return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t)}function md5_hh(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t)}function md5_ii(a,b,c,d,x,s,t){return md5_cmn(c^(b|(~d)),a,b,x,s,t)}function core_md5(x,len){x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd)}return[a,b,c,d]}function str2binl(str){var bin=[];var mask=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz){bin[i>>5]|=(str.charCodeAt(i/chrsz)&mask)<<(i%32)}return bin}function binl2str(bin){var str="";var mask=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz){str+=String.fromCharCode((bin[i>>5]>>>(i%32))&mask)}return str}function binl2hex(binarray){var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF)}return str}return(raw?binl2str(core_md5(str2binl(s),s.length*chrsz)):binl2hex(core_md5(str2binl(s),s.length*chrsz)))};
|
globalMd5Return=function(s,raw,hexcase,chrsz){raw=raw||false;hexcase=hexcase||false;chrsz=chrsz||8;function safe_add(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)}function bit_rol(num,cnt){return(num<<cnt)|(num>>>(32-cnt))}function md5_cmn(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b)}function md5_ff(a,b,c,d,x,s,t){return md5_cmn((b&c)|((~b)&d),a,b,x,s,t)}function md5_gg(a,b,c,d,x,s,t){return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t)}function md5_hh(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t)}function md5_ii(a,b,c,d,x,s,t){return md5_cmn(c^(b|(~d)),a,b,x,s,t)}function core_md5(x,len){x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd)}return[a,b,c,d]}function str2binl(str){var bin=[];var mask=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz){bin[i>>5]|=(str.charCodeAt(i/chrsz)&mask)<<(i%32)}return bin}function binl2str(bin){var str="";var mask=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz){str+=String.fromCharCode((bin[i>>5]>>>(i%32))&mask)}return str}function binl2hex(binarray){var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF)}return str}return(raw?binl2str(core_md5(str2binl(s),s.length*chrsz)):binl2hex(core_md5(str2binl(s),s.length*chrsz)))};
|
||||||
|
|
||||||
//!Code that simulated reload library javascript maborak
|
//!Code that simulated reload library javascript maborak
|
||||||
var leimnud = {};
|
var leimnud = {};
|
||||||
leimnud.exec = "";
|
leimnud.exec = "";
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ if ($action == 'selfservice')
|
|||||||
$action = 'unassigned';
|
$action = 'unassigned';
|
||||||
//if ( $action == 'sent' ) $action = 'participated';
|
//if ( $action == 'sent' ) $action = 'participated';
|
||||||
|
|
||||||
|
|
||||||
G::LoadClass( "BasePeer" );
|
G::LoadClass( "BasePeer" );
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
require_once ("classes/model/Fields.php");
|
require_once ("classes/model/Fields.php");
|
||||||
@@ -16,8 +15,6 @@ require_once ("classes/model/Users.php");
|
|||||||
|
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
// oHeadPublisher->setExtSkin( 'xtheme-blue');
|
// oHeadPublisher->setExtSkin( 'xtheme-blue');
|
||||||
|
|
||||||
|
|
||||||
//get the configuration for this action
|
//get the configuration for this action
|
||||||
$conf = new Configurations();
|
$conf = new Configurations();
|
||||||
try {
|
try {
|
||||||
@@ -57,8 +54,7 @@ if ($action == 'draft' /* && $action == 'cancelled' */) {
|
|||||||
//array_unshift ( $columns, array( 'header'=> '', 'width'=> 50, 'sortable'=> false, 'id'=> 'deleteLink' ) );
|
//array_unshift ( $columns, array( 'header'=> '', 'width'=> 50, 'sortable'=> false, 'id'=> 'deleteLink' ) );
|
||||||
}
|
}
|
||||||
if ($action == 'selfservice') {
|
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') {
|
if ($action == 'paused') {
|
||||||
@@ -79,8 +75,7 @@ $oAppCache = new AppCacheView();
|
|||||||
$oAppCache->confCasesList = $confCasesList;
|
$oAppCache->confCasesList = $confCasesList;
|
||||||
|
|
||||||
//get values for the comboBoxes
|
//get values for the comboBoxes
|
||||||
$processes[] = array ('',G::LoadTranslation( 'ID_ALL_PROCESS' )
|
$processes[] = array ('',G::LoadTranslation( 'ID_ALL_PROCESS' ));
|
||||||
);
|
|
||||||
$status = getStatusArray( $action, $userUid );
|
$status = getStatusArray( $action, $userUid );
|
||||||
$category = getCategoryArray();
|
$category = getCategoryArray();
|
||||||
$users = getUserArray( $action, $userUid );
|
$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( 'allUsersValues', $allUsers ); //Sending the listing of all users
|
||||||
$oHeadPublisher->assign( "solrEnabled", (($aux = System::solrEnv()) !== false) ? 1 : 0 ); //Sending the status of solar
|
$oHeadPublisher->assign( "solrEnabled", (($aux = System::solrEnv()) !== false) ? 1 : 0 ); //Sending the status of solar
|
||||||
|
|
||||||
|
|
||||||
//menu permissions
|
//menu permissions
|
||||||
/*$c = new Criteria('workflow');
|
/*$c = new Criteria('workflow');
|
||||||
$c->clearSelectColumns();
|
$c->clearSelectColumns();
|
||||||
@@ -112,11 +106,7 @@ $oHeadPublisher->assign( "solrEnabled", (($aux = System::solrEnv()) !== false) ?
|
|||||||
$cnt = '';
|
$cnt = '';
|
||||||
$menuPerms = '';
|
$menuPerms = '';
|
||||||
$menuPerms = $menuPerms . ($RBAC->userCanAccess( 'PM_REASSIGNCASE' ) == 1) ? 'R' : ''; //can reassign case
|
$menuPerms = $menuPerms . ($RBAC->userCanAccess( 'PM_REASSIGNCASE' ) == 1) ? 'R' : ''; //can reassign case
|
||||||
|
|
||||||
|
|
||||||
$oHeadPublisher->assign( '___p34315105', $menuPerms ); // user menu permissions
|
$oHeadPublisher->assign( '___p34315105', $menuPerms ); // user menu permissions
|
||||||
|
|
||||||
|
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
$c = new Configurations();
|
$c = new Configurations();
|
||||||
|
|
||||||
@@ -131,10 +121,8 @@ function getUserArray ($action, $userUid)
|
|||||||
{
|
{
|
||||||
global $oAppCache;
|
global $oAppCache;
|
||||||
$status = array ();
|
$status = array ();
|
||||||
$users[] = array ("CURRENT_USER",G::LoadTranslation( "ID_CURRENT_USER" )
|
$users[] = array ("CURRENT_USER",G::LoadTranslation( "ID_CURRENT_USER" ));
|
||||||
);
|
$users[] = array ("",G::LoadTranslation( "ID_ALL_USERS" ));
|
||||||
$users[] = array ("",G::LoadTranslation( "ID_ALL_USERS" )
|
|
||||||
);
|
|
||||||
|
|
||||||
//now get users, just for the Search action
|
//now get users, just for the Search action
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
@@ -149,8 +137,7 @@ function getUserArray ($action, $userUid)
|
|||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
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();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -176,8 +163,7 @@ function getCategoryArray ()
|
|||||||
$dataset->next();
|
$dataset->next();
|
||||||
|
|
||||||
while ($row = $dataset->getRow()) {
|
while ($row = $dataset->getRow()) {
|
||||||
$category[] = array ($row['CATEGORY_UID'],$row['CATEGORY_NAME']
|
$category[] = array ($row['CATEGORY_UID'],$row['CATEGORY_NAME']);
|
||||||
);
|
|
||||||
$dataset->next();
|
$dataset->next();
|
||||||
}
|
}
|
||||||
return $category;
|
return $category;
|
||||||
@@ -205,8 +191,7 @@ function getAllUsersArray ($action)
|
|||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$users[] = array ($aRow['USR_UID'],$aRow['APP_CURRENT_USER']
|
$users[] = array ($aRow['USR_UID'],$aRow['APP_CURRENT_USER']);
|
||||||
);
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -217,8 +202,7 @@ function getStatusArray ($action, $userUid)
|
|||||||
{
|
{
|
||||||
global $oAppCache;
|
global $oAppCache;
|
||||||
$status = array ();
|
$status = array ();
|
||||||
$status[] = array ('',G::LoadTranslation( 'ID_ALL_STATUS' )
|
$status[] = array ('',G::LoadTranslation( 'ID_ALL_STATUS' ));
|
||||||
);
|
|
||||||
//get the list based in the action provided
|
//get the list based in the action provided
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'sent':
|
case 'sent':
|
||||||
@@ -274,8 +258,8 @@ function getStatusArray ($action, $userUid)
|
|||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$status[] = array ($aRow['APP_STATUS'],G::LoadTranslation( 'ID_CASES_STATUS_' . $aRow['APP_STATUS'] )
|
$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)
|
//here we can have a translation for the status ( the second param)
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -286,8 +270,7 @@ function getStatusArray ($action, $userUid)
|
|||||||
function getToDo ()
|
function getToDo ()
|
||||||
{
|
{
|
||||||
$caseColumns = array ();
|
$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_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
|
$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 {
|
} else {
|
||||||
$url = 'casesListExtJs';
|
$url = 'casesListExtJs';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset( $_GET['ux'] )) {
|
if (isset( $_GET['ux'] )) {
|
||||||
echo 'if (typeof window.parent.ux_env != \'undefined\') {';
|
echo 'if (typeof window.parent.ux_env != \'undefined\') {';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo " window.parent.location.href = '$url';";
|
echo " window.parent.location.href = '$url';";
|
||||||
|
|
||||||
if (isset( $_GET['ux'] )) {
|
if (isset( $_GET['ux'] )) {
|
||||||
echo '} else { window.parent.location.href = \'casesListExtJs\'; }';
|
echo '} else { window.parent.location.href = \'casesListExtJs\'; }';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ require_once 'classes/model/AppThread.php';
|
|||||||
require_once 'classes/model/AppDelay.php';
|
require_once 'classes/model/AppDelay.php';
|
||||||
require_once 'classes/model/Process.php';
|
require_once 'classes/model/Process.php';
|
||||||
require_once 'classes/model/Task.php';
|
require_once 'classes/model/Task.php';
|
||||||
|
|
||||||
require_once ("classes/model/AppCacheView.php");
|
require_once ("classes/model/AppCacheView.php");
|
||||||
require_once ("classes/model/AppDelegation.php");
|
require_once ("classes/model/AppDelegation.php");
|
||||||
require_once ("classes/model/AdditionalTables.php");
|
require_once ("classes/model/AdditionalTables.php");
|
||||||
@@ -74,12 +73,9 @@ if ($actionAjax == "processListExtJs") {
|
|||||||
}
|
}
|
||||||
$del = DBAdapter::getStringDelimiter();
|
$del = DBAdapter::getStringDelimiter();
|
||||||
$conds = array ();
|
$conds = array ();
|
||||||
$conds[] = array (ProcessPeer::PRO_UID,ContentPeer::CON_ID
|
$conds[] = array (ProcessPeer::PRO_UID,ContentPeer::CON_ID);
|
||||||
);
|
$conds[] = array (ContentPeer::CON_CATEGORY,$del . 'PRO_TITLE' . $del);
|
||||||
$conds[] = array (ContentPeer::CON_CATEGORY,$del . 'PRO_TITLE' . $del
|
$conds[] = array (ContentPeer::CON_LANG,$del . $lang . $del);
|
||||||
);
|
|
||||||
$conds[] = array (ContentPeer::CON_LANG,$del . $lang . $del
|
|
||||||
);
|
|
||||||
$cProcess->addJoinMC( $conds, Criteria::LEFT_JOIN );
|
$cProcess->addJoinMC( $conds, Criteria::LEFT_JOIN );
|
||||||
$cProcess->add( ProcessPeer::PRO_STATUS, 'ACTIVE' );
|
$cProcess->add( ProcessPeer::PRO_STATUS, 'ACTIVE' );
|
||||||
$oDataset = ProcessPeer::doSelectRS( $cProcess );
|
$oDataset = ProcessPeer::doSelectRS( $cProcess );
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$action = isset( $_GET['action'] ) ? $_GET['action'] : 'default';
|
$action = isset( $_GET['action'] ) ? $_GET['action'] : 'default';
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
|
|
||||||
$userId = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : '00000000000000000000000000000000';
|
$userId = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : '00000000000000000000000000000000';
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'getAllCounters':
|
case 'getAllCounters':
|
||||||
@@ -183,7 +181,6 @@ function getAllCounters ()
|
|||||||
//$aTypes['to_revise'] = 'CASES_TO_REVISE';
|
//$aTypes['to_revise'] = 'CASES_TO_REVISE';
|
||||||
//$aTypes['to_reassign'] = 'CASES_TO_REASSIGN';
|
//$aTypes['to_reassign'] = 'CASES_TO_REASSIGN';
|
||||||
|
|
||||||
|
|
||||||
if ((($solrConf = System::solrEnv()) !== false)) {
|
if ((($solrConf = System::solrEnv()) !== false)) {
|
||||||
G::LoadClass( 'AppSolr' );
|
G::LoadClass( 'AppSolr' );
|
||||||
$ApplicationSolrIndex = new AppSolr( $solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance'] );
|
$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 = new Form ( $_SESSION ['PROCESS'] . '/' . $_GET ['UID'], PATH_DYNAFORM );
|
||||||
//$oForm->validatePost ();
|
//$oForm->validatePost ();
|
||||||
|
|
||||||
|
|
||||||
/* @author Alvaro Campos Sanchez */
|
/* @author Alvaro Campos Sanchez */
|
||||||
/* Includes */
|
/* Includes */
|
||||||
G::LoadClass( 'case' );
|
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
|
#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_session = $_SESSION['TRIGGER_DEBUG']['ISSET']; #here we must verify if is a debugg session
|
||||||
|
|
||||||
|
|
||||||
#trigger debug routines...
|
#trigger debug routines...
|
||||||
|
|
||||||
|
|
||||||
//cleaning debug variables
|
//cleaning debug variables
|
||||||
$_SESSION['TRIGGER_DEBUG']['ERRORS'] = Array ();
|
$_SESSION['TRIGGER_DEBUG']['ERRORS'] = Array ();
|
||||||
$_SESSION['TRIGGER_DEBUG']['DATA'] = Array ();
|
$_SESSION['TRIGGER_DEBUG']['DATA'] = Array ();
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* 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
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ global $RBAC;
|
|||||||
switch ($page) {
|
switch ($page) {
|
||||||
case "startCase":
|
case "startCase":
|
||||||
$oHeadPublisher->addExtJsScript( 'cases/casesStartCase', true ); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript( 'cases/casesStartCase', true ); //adding a javascript file .js
|
||||||
|
|
||||||
|
|
||||||
$oHeadPublisher->addContent( 'cases/casesStartCase' ); //adding a html file .html.
|
$oHeadPublisher->addContent( 'cases/casesStartCase' ); //adding a html file .html.
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
$c = new Configurations();
|
$c = new Configurations();
|
||||||
@@ -43,6 +41,5 @@ switch ($page) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
G::RenderPage( 'publish', 'extJs' );
|
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'] = 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['otherAttributes']['PRO_TAS_TITLE'] = str_replace( ")", "", str_replace( "(", "", trim( str_replace( $tempTreeChild['otherAttributes']['PRO_TITLE'], "", $tempTreeChild['otherAttributes']["value"] ) ) ) );
|
||||||
$tempTreeChild['qtip'] = $tempTreeChild['otherAttributes']['PRO_DESCRIPTION'];
|
$tempTreeChild['qtip'] = $tempTreeChild['otherAttributes']['PRO_DESCRIPTION'];
|
||||||
|
|
||||||
//$tempTree['cls']='file';
|
//$tempTree['cls']='file';
|
||||||
|
|
||||||
|
|
||||||
$tempTreeChildren[] = $tempTreeChild;
|
$tempTreeChildren[] = $tempTreeChild;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -289,16 +286,10 @@ function getSimpleDashboardData ()
|
|||||||
$Criteria->addSelectColumn( AppCacheViewPeer::USR_UID );
|
$Criteria->addSelectColumn( AppCacheViewPeer::USR_UID );
|
||||||
$Criteria->addSelectColumn( AppCacheViewPeer::APP_THREAD_STATUS );
|
$Criteria->addSelectColumn( AppCacheViewPeer::APP_THREAD_STATUS );
|
||||||
|
|
||||||
$Criteria->add( AppCacheViewPeer::APP_STATUS, array ("TO_DO","DRAFT"
|
$Criteria->add( AppCacheViewPeer::APP_STATUS, array ("TO_DO","DRAFT"), CRITERIA::IN );
|
||||||
), CRITERIA::IN );
|
$Criteria->add( AppCacheViewPeer::USR_UID, array ($sUIDUserLogged,""), CRITERIA::IN );
|
||||||
$Criteria->add( AppCacheViewPeer::USR_UID, array ($sUIDUserLogged,""
|
|
||||||
), CRITERIA::IN );
|
|
||||||
|
|
||||||
$Criteria->add( AppCacheViewPeer::DEL_FINISH_DATE, null, Criteria::ISNULL );
|
$Criteria->add( AppCacheViewPeer::DEL_FINISH_DATE, null, Criteria::ISNULL );
|
||||||
|
|
||||||
//$Criteria->add ( AppCacheViewPeer::APP_THREAD_STATUS, 'OPEN' );
|
//$Criteria->add ( AppCacheViewPeer::APP_THREAD_STATUS, 'OPEN' );
|
||||||
|
|
||||||
|
|
||||||
$Criteria->add( AppCacheViewPeer::DEL_THREAD_STATUS, 'OPEN' );
|
$Criteria->add( AppCacheViewPeer::DEL_THREAD_STATUS, 'OPEN' );
|
||||||
|
|
||||||
//execute the query
|
//execute the query
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
// $oHeadPublisher =& headPublisher::getSingleton();
|
// $oHeadPublisher =& headPublisher::getSingleton();
|
||||||
// $TRANSLATIONS = array_merge($TRANSLATIONS, $TRANSLATIONS2);
|
// $TRANSLATIONS = array_merge($TRANSLATIONS, $TRANSLATIONS2);
|
||||||
|
|
||||||
$delIndex = $_GET['DEL_INDEX'];
|
$delIndex = $_GET['DEL_INDEX'];
|
||||||
$appUid = $_GET['APP_UID'];
|
$appUid = $_GET['APP_UID'];
|
||||||
// $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
|
// $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class TreeNode
|
class TreeNode
|
||||||
{
|
{
|
||||||
public $text = "";
|
public $text = "";
|
||||||
@@ -43,9 +42,7 @@ class ExtJsTreeNode extends TreeNode
|
|||||||
}
|
}
|
||||||
|
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
|
|
||||||
$o = new Cases();
|
$o = new Cases();
|
||||||
|
|
||||||
$PRO_UID = $_SESSION['PROCESS'];
|
$PRO_UID = $_SESSION['PROCESS'];
|
||||||
|
|
||||||
$treeArray = array ();
|
$treeArray = array ();
|
||||||
|
|||||||
@@ -69,18 +69,13 @@ $oCriteria->addDescendingOrderByColumn( LogCasesSchedulerPeer::EXEC_HOUR );
|
|||||||
|
|
||||||
$oDataset = LogCasesSchedulerPeer::doSelectRS( $oCriteria );
|
$oDataset = LogCasesSchedulerPeer::doSelectRS( $oCriteria );
|
||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
|
|
||||||
//$oDataset = LogCasesSchedulerPeer::doSelectRS ( $oCriteria );
|
//$oDataset = LogCasesSchedulerPeer::doSelectRS ( $oCriteria );
|
||||||
//$oDataset->setFetchmode ( ResultSet::FETCHMODE_ASSOC );
|
//$oDataset->setFetchmode ( ResultSet::FETCHMODE_ASSOC );
|
||||||
|
|
||||||
|
|
||||||
$addTables = Array ();
|
$addTables = Array ();
|
||||||
while ($oDataset->next()) {
|
while ($oDataset->next()) {
|
||||||
$addTables[] = $oDataset->getRow();
|
$addTables[] = $oDataset->getRow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//$oLogCasesScheduler = new LogCasesScheduler();
|
//$oLogCasesScheduler = new LogCasesScheduler();
|
||||||
//$arrData = $oLogCasesScheduler->getAll();
|
//$arrData = $oLogCasesScheduler->getAll();
|
||||||
|
|
||||||
echo '{results: ' . $results . ', rows: ' . G::json_encode( $addTables ) . '}';
|
echo '{results: ' . $results . ', rows: ' . G::json_encode( $addTables ) . '}';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ if (isset( $_SESSION['TRIGGER_DEBUG']['info'] )) {
|
|||||||
} else {
|
} else {
|
||||||
$aTriggers[0] = $_SESSION['TRIGGER_DEBUG'];
|
$aTriggers[0] = $_SESSION['TRIGGER_DEBUG'];
|
||||||
}
|
}
|
||||||
|
|
||||||
//print_r($aTriggers);die;
|
//print_r($aTriggers);die;
|
||||||
$triggersList = Array ();
|
$triggersList = Array ();
|
||||||
|
|
||||||
@@ -21,8 +20,6 @@ foreach ($aTriggers as $aTrigger) {
|
|||||||
//$t_code = str_replace('"', '\'',$t_code);
|
//$t_code = str_replace('"', '\'',$t_code);
|
||||||
//$t_code = addslashes($t_code);
|
//$t_code = addslashes($t_code);
|
||||||
//$t_code = Only1br($t_code);
|
//$t_code = Only1br($t_code);
|
||||||
|
|
||||||
|
|
||||||
//highlighting the trigger code using the geshi third party library
|
//highlighting the trigger code using the geshi third party library
|
||||||
G::LoadThirdParty( 'geshi', 'geshi' );
|
G::LoadThirdParty( 'geshi', 'geshi' );
|
||||||
$geshi = new GeSHi( $aTrigger['TRIGGERS_VALUES'][$index]['TRI_WEBBOT'], 'php' );
|
$geshi = new GeSHi( $aTrigger['TRIGGERS_VALUES'][$index]['TRI_WEBBOT'], 'php' );
|
||||||
@@ -65,9 +62,7 @@ foreach ($DEBUG_ERRORS as $error) {
|
|||||||
]}';
|
]}';
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$triggersRet->total = count( $triggersList );
|
$triggersRet->total = count( $triggersList );
|
||||||
$triggersRet->data = $triggersList;
|
$triggersRet->data = $triggersList;
|
||||||
|
|
||||||
echo G::json_encode( $triggersRet );
|
echo G::json_encode( $triggersRet );
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$request = isset( $_POST['request'] ) ? $_POST['request'] : '';
|
$request = isset( $_POST['request'] ) ? $_POST['request'] : '';
|
||||||
switch ($request) {
|
switch ($request) {
|
||||||
case 'getRows':
|
case 'getRows':
|
||||||
|
|
||||||
$fieldname = $_POST['fieldname'];
|
$fieldname = $_POST['fieldname'];
|
||||||
|
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
$oApp = new Cases();
|
$oApp = new Cases();
|
||||||
$aFields = $oApp->loadCase( $_SESSION['APPLICATION'] );
|
$aFields = $oApp->loadCase( $_SESSION['APPLICATION'] );
|
||||||
|
|
||||||
$aVars = Array ();
|
$aVars = Array ();
|
||||||
for ($i = 0; $i < count( $_SESSION['TRIGGER_DEBUG']['DATA'] ); $i ++) {
|
for ($i = 0; $i < count( $_SESSION['TRIGGER_DEBUG']['DATA'] ); $i ++) {
|
||||||
$aVars[$_SESSION['TRIGGER_DEBUG']['DATA'][$i]['key']] = $_SESSION['TRIGGER_DEBUG']['DATA'][$i]['value'];
|
$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') {
|
if (isset( $_POST['filter'] ) && $_POST['filter'] == 'sys') {
|
||||||
$aVars = G::getSystemConstants();
|
$aVars = G::getSystemConstants();
|
||||||
}
|
}
|
||||||
|
|
||||||
ksort( $aVars );
|
ksort( $aVars );
|
||||||
$return_object->totalCount = 1;
|
$return_object->totalCount = 1;
|
||||||
|
|
||||||
foreach ($aVars as $i => $var) {
|
foreach ($aVars as $i => $var) {
|
||||||
if (is_array( $var ) || is_object( $var )) {
|
if (is_array( $var ) || is_object( $var )) {
|
||||||
$aVars[$i] = print_r( $var, true );
|
$aVars[$i] = print_r( $var, true );
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
//$newFile = str_replace ( 'index.php', 'cases_List.php' , __FILE__ ) ;
|
//$newFile = str_replace ( 'index.php', 'cases_List.php' , __FILE__ ) ;
|
||||||
$newFile = str_replace( 'index.php', 'main.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', $conf->getSystemDate( date( 'Y-m-d' ) ) );
|
||||||
$oHeadPublisher->assign( '_ENV_CURRENT_DATE_NO_FORMAT', date( 'Y-m-d' ) );
|
$oHeadPublisher->assign( '_ENV_CURRENT_DATE_NO_FORMAT', date( 'Y-m-d' ) );
|
||||||
$oHeadPublisher->assign( 'idfirstform', is_null( $oStep ) ? '' : $oStep->getStepUidObj() );
|
$oHeadPublisher->assign( 'idfirstform', is_null( $oStep ) ? '' : $oStep->getStepUidObj() );
|
||||||
|
|
||||||
G::RenderPage( 'publish', 'extJs' );
|
G::RenderPage( 'publish', 'extJs' );
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ $dateTo = isset( $_POST["dateTo"] ) ? substr( $_POST["dateTo"], 0, 10 ) : "";
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$result = "";
|
$result = "";
|
||||||
|
|
||||||
$userUid = (isset( $_SESSION["USER_LOGGED"] ) && $_SESSION["USER_LOGGED"] != "") ? $_SESSION["USER_LOGGED"] : null;
|
$userUid = (isset( $_SESSION["USER_LOGGED"] ) && $_SESSION["USER_LOGGED"] != "") ? $_SESSION["USER_LOGGED"] : null;
|
||||||
$user = ($user == "CURRENT_USER") ? $userUid : $user;
|
$user = ($user == "CURRENT_USER") ? $userUid : $user;
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ $option = '';
|
|||||||
if (isset( $_GET['t'] ))
|
if (isset( $_GET['t'] ))
|
||||||
$option = $_GET['t'];
|
$option = $_GET['t'];
|
||||||
try {
|
try {
|
||||||
|
|
||||||
G::LoadClass( "BasePeer" );
|
G::LoadClass( "BasePeer" );
|
||||||
require_once ("classes/model/Process.php");
|
require_once ("classes/model/Process.php");
|
||||||
require_once ("classes/model/AppCacheView.php");
|
require_once ("classes/model/AppCacheView.php");
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ $allTasUids = array ();
|
|||||||
// getting all App Uids and task Uids
|
// getting all App Uids and task Uids
|
||||||
foreach ($sentUids as $sentUid) {
|
foreach ($sentUids as $sentUid) {
|
||||||
$aItem = explode( '|', $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'] : '';
|
$sReassignFromUser = isset( $_POST['user'] ) ? $_POST['user'] : '';
|
||||||
@@ -55,8 +54,8 @@ foreach ($allUidsRecords as $aRecord) {
|
|||||||
foreach ($aCaseUsers as $aCaseUser) {
|
foreach ($aCaseUsers as $aCaseUser) {
|
||||||
if ($aCaseUser['USR_UID'] != $sReassignFromUser) {
|
if ($aCaseUser['USR_UID'] != $sReassignFromUser) {
|
||||||
$aCaseUserRecord = $oUser->load( $aCaseUser['USR_UID'] );
|
$aCaseUserRecord = $oUser->load( $aCaseUser['USR_UID'] );
|
||||||
$aUsersInvolved[] = array ('userUid' => $aCaseUser['USR_UID'],'userFullname' => $aCaseUserRecord['USR_FIRSTNAME'] . ' ' . $aCaseUserRecord['USR_LASTNAME']
|
$aUsersInvolved[] = array ('userUid' => $aCaseUser['USR_UID'],'userFullname' => $aCaseUserRecord['USR_FIRSTNAME'] . ' ' . $aCaseUserRecord['USR_LASTNAME']);
|
||||||
); // . ' (' . $aCaseUserRecord['USR_USERNAME']
|
// . ' (' . $aCaseUserRecord['USR_USERNAME']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
|
|
||||||
$callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001';
|
$callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001';
|
||||||
$query = isset( $_POST['query'] ) ? $_POST['query'] : '';
|
$query = isset( $_POST['query'] ) ? $_POST['query'] : '';
|
||||||
$dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'DESC';
|
$dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'DESC';
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ foreach ($items as $item) {
|
|||||||
$dataUids = explode( "|", $item );
|
$dataUids = explode( "|", $item );
|
||||||
$appSelectedUids[] = $dataUids[0];
|
$appSelectedUids[] = $dataUids[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
// var_dump($aData);
|
// var_dump($aData);
|
||||||
//var_dump($appSelectedUids);
|
//var_dump($appSelectedUids);
|
||||||
$casesReassignedCount = 0;
|
$casesReassignedCount = 0;
|
||||||
@@ -86,10 +85,8 @@ if (is_array( $aData )) {
|
|||||||
$rs->next();
|
$rs->next();
|
||||||
$row = $rs->getRow();
|
$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;
|
$serverResponse['TOTAL'] = $casesReassignedCount;
|
||||||
echo G::json_encode( $serverResponse );
|
echo G::json_encode( $serverResponse );
|
||||||
|
|
||||||
|
|||||||
@@ -69,8 +69,7 @@ try {
|
|||||||
} catch (Exception $error) {
|
} catch (Exception $error) {
|
||||||
global $G_PUBLISH;
|
global $G_PUBLISH;
|
||||||
$G_PUBLISH = new Publisher();
|
$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' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,22 +12,22 @@
|
|||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* 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.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* 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.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$RBAC->requirePermissions('PM_DASHBOARD');
|
$RBAC->requirePermissions( 'PM_DASHBOARD' );
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_ID_MENU_SELECTED = 'DASHBOARD';
|
$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