Merge pull request #1472 from marcoAntonioNina/BUG-9872
BUG 9872 Reassign Multiple Case, submit and 'Processing...' IMPROVEMENT
This commit is contained in:
@@ -482,10 +482,12 @@ class Applications
|
|||||||
$aRow["APP_TAS_TITLE"] = $aRow["APPCVCR_APP_TAS_TITLE"];
|
$aRow["APP_TAS_TITLE"] = $aRow["APPCVCR_APP_TAS_TITLE"];
|
||||||
|
|
||||||
//Current user
|
//Current user
|
||||||
$aRow["USR_UID"] = $aRow["USRCR_USR_UID"];
|
if ($action != "to_reassign" ) {
|
||||||
$aRow["USR_FIRSTNAME"] = $aRow["USRCR_USR_FIRSTNAME"];
|
$aRow["USR_UID"] = $aRow["USRCR_USR_UID"];
|
||||||
$aRow["USR_LASTNAME"] = $aRow["USRCR_USR_LASTNAME"];
|
$aRow["USR_FIRSTNAME"] = $aRow["USRCR_USR_FIRSTNAME"];
|
||||||
$aRow["USR_USERNAME"] = $aRow["USRCR_USR_USERNAME"];
|
$aRow["USR_LASTNAME"] = $aRow["USRCR_USR_LASTNAME"];
|
||||||
|
$aRow["USR_USERNAME"] = $aRow["USRCR_USR_USERNAME"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Unassigned user
|
//Unassigned user
|
||||||
|
|||||||
@@ -59,8 +59,8 @@ if (is_array( $aData )) {
|
|||||||
$rs->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$rs->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$rs->next();
|
$rs->next();
|
||||||
$row = $rs->getRow();
|
$row = $rs->getRow();
|
||||||
$aCase = $oCases->loadCaseInCurrentDelegation( $data->APP_UID );
|
//$aCase = $oCases->loadCaseInCurrentDelegation( $data->APP_UID );
|
||||||
$oCases->reassignCase( $aCase['APP_UID'], $aCase['DEL_INDEX'], ($aCase['USR_UID'] != '' ? $aCase['USR_UID'] : $_SESSION['USER_LOGGED']), $data->APP_REASSIGN_USER_UID );
|
$oCases->reassignCase( $row['APP_UID'], $row['DEL_INDEX'], ($row['USR_UID'] != '' ? $row['USR_UID'] : $_SESSION['USER_LOGGED']), $data->APP_REASSIGN_USER_UID );
|
||||||
$currentCasesReassigned ++;
|
$currentCasesReassigned ++;
|
||||||
$casesReassignedCount ++;
|
$casesReassignedCount ++;
|
||||||
$serverResponse[] = array ('APP_REASSIGN_USER' => $data->APP_REASSIGN_USER,'APP_TITLE' => $data->APP_TITLE,'TAS_TITLE' => $data->APP_TAS_TITLE,'REASSIGNED_CASES' => $currentCasesReassigned
|
$serverResponse[] = array ('APP_REASSIGN_USER' => $data->APP_REASSIGN_USER,'APP_TITLE' => $data->APP_TITLE,'TAS_TITLE' => $data->APP_TAS_TITLE,'REASSIGNED_CASES' => $currentCasesReassigned
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ var storeCases;
|
|||||||
var storeReassignCases;
|
var storeReassignCases;
|
||||||
var grid;
|
var grid;
|
||||||
var textJump;
|
var textJump;
|
||||||
|
var ids = '';
|
||||||
|
|
||||||
function formatAMPM(date, initVal) {
|
function formatAMPM(date, initVal) {
|
||||||
var hours = date.getHours();
|
var hours = date.getHours();
|
||||||
@@ -2154,6 +2155,7 @@ function reassign(){
|
|||||||
ids += rows[i].get('APP_UID') + "|" + rows[i].get('TAS_UID')+ "|" + rows[i].get('DEL_INDEX');
|
ids += rows[i].get('APP_UID') + "|" + rows[i].get('TAS_UID')+ "|" + rows[i].get('DEL_INDEX');
|
||||||
}
|
}
|
||||||
storeReassignCases.setBaseParam( 'APP_UIDS', ids);
|
storeReassignCases.setBaseParam( 'APP_UIDS', ids);
|
||||||
|
//storeReassignCases.setBaseParam( 'action', 'to_reassign');
|
||||||
storeReassignCases.load();
|
storeReassignCases.load();
|
||||||
|
|
||||||
newPopUp.show();
|
newPopUp.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user