PM-1695 Crear nuevo endpoint para el contador de casos

This commit is contained in:
Brayan Pereyra
2015-03-06 18:06:31 -04:00
parent 2563a69d4d
commit 5738fa0864
19 changed files with 784 additions and 216 deletions

View File

@@ -992,12 +992,11 @@ class Cases
if (isset($Fields["APP_STATUS"]) && $Fields["APP_STATUS"] == "COMPLETED") {
if (isset($Fields['CURRENT_USER_UID'])) {
$Fields['USR_UID'] = $Fields['CURRENT_USER_UID'];
/*This "list" code is discussed to operate with sub-processes. It should adjust the code for operation with sub-processes.
$listCompleted = new ListCompleted();
$listCompleted->create($Fields);
$listMyInbox = new ListMyInbox();
$listMyInbox->refresh($Fields);*/
}
/*----------------------------------********---------------------------------*/
$completed = new ListCompleted();
$completed->create($Fields);
/*----------------------------------********---------------------------------*/
}
$oApp->update($Fields);
@@ -2040,6 +2039,18 @@ class Cases
if ($this->appSolr != null) {
$this->appSolr->updateApplicationSearchIndex($sAppUid);
}
/*----------------------------------********---------------------------------*/
$Fields['TAS_UID'] = $sTasUid;
$Fields['USR_UID'] = $sUsrUid;
$Fields['DEL_INDEX'] = $iDelIndex;
$Fields['APP_STATUS'] = 'TO_DO';
if(!$isSubprocess){
$Fields['APP_STATUS'] = 'DRAFT';
}
$inbox = new ListInbox();
$inbox->newRow($Fields, $sUsrUid);
/*----------------------------------********---------------------------------*/
} catch (exception $e) {
throw ($e);
}