The "Batch Routing" label (case menu) is not included in the PO file that ProcessMaker generates
This commit is contained in:
william barra
2016-02-29 17:12:25 -04:00
committed by dheeyi
parent 78d0a3a03a
commit fe3ad734e0
3 changed files with 22 additions and 19 deletions

View File

@@ -32,7 +32,8 @@ G::LoadTranslation('ID_NEW_CASE'), '');
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
$licensedFeatures = & PMLicensedFeatures::getSingleton(); $licensedFeatures = & PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) { if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
$G_TMP_MENU->AddIdRawOption('CONSOLIDATED_CASES', 'casesConsolidatedListExtJs?action=consolidated', 'Batch Routing', ''); $G_TMP_MENU->AddIdRawOption('CONSOLIDATED_CASES', 'casesConsolidatedListExtJs?action=consolidated',
G::LoadTranslation('ID_BATCH_ROUTING'), '');
} }
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/

View File

@@ -121,7 +121,9 @@ class Consolidated
$response["casesNumRec"] = \Library::getCasesNumRec($usr_uid); $response["casesNumRec"] = \Library::getCasesNumRec($usr_uid);
if (is_array($res)) { if (is_array($res)) {
$response ["message"] = "<b>" . G::LoadTranslation("ID_CASE") . " " . $app_number . "</b> Summary of Derivations: <br> " . $messageDerivateCase; $response ["message"] = "<b>" . G::LoadTranslation("ID_CASE") . " " . $app_number . "</b> " .
G::LoadTranslation("ID_SUMMARY_DERIVATION_BATCH_ROUTING") . ' :' . " <br> " .
$messageDerivateCase;
} else { } else {
$response ["message"] = G::LoadTranslation("ID_CASE") . " " . $app_number . " " . $res->message; $response ["message"] = G::LoadTranslation("ID_CASE") . " " . $app_number . " " . $res->message;
} }

View File

@@ -421,27 +421,27 @@ Ext.onReady(function () {
}); });
var buttonProcess = new Ext.Action({ var buttonProcess = new Ext.Action({
text: "Derivate", text: _("ID_DERIVATED"),
//iconCls: 'ICON_CASES_PAUSED', //iconCls: 'ICON_CASES_PAUSED',
handler : function (){ handler : function (){
Ext.Msg.confirm('Confirm Routing', 'Route cases per batch?', Ext.Msg.confirm(_("ID_CONFIRM_ROUTING"), _("ID_ROUTE_BATCH_ROUTING"),
function(btn, text){ function(btn, text){
if (btn=='yes'){ if (btn == 'yes') {
htmlMessage = ""; htmlMessage = "";
var selectedRow = Ext.getCmp(gridId).getSelectionModel().getSelections(); var selectedRow = Ext.getCmp(gridId).getSelectionModel().getSelections();
var maxLenght = selectedRow.length; var maxLenght = selectedRow.length;
for (var i in selectedRow) { for (var i in selectedRow) {
rowGrid = selectedRow[i].data rowGrid = selectedRow[i].data
for (fieldGrid in rowGrid){ for (fieldGrid in rowGrid) {
if(fieldGrid != 'APP_UID' && fieldGrid != 'APP_NUMBER' && fieldGrid != 'APP_TITLE' && fieldGrid != 'DEL_INDEX' ){ if (fieldGrid != 'APP_UID' && fieldGrid != 'APP_NUMBER' && fieldGrid != 'APP_TITLE' && fieldGrid != 'DEL_INDEX') {
fieldGridGral = fieldGrid; fieldGridGral = fieldGrid;
fieldGridGralVal = rowGrid[fieldGrid]; fieldGridGralVal = rowGrid[fieldGrid];
}
}
if (selectedRow[i].data) {
ajaxDerivationRequest(selectedRow[i].data["APP_UID"], selectedRow[i].data["DEL_INDEX"], maxLenght, selectedRow[i].data["APP_NUMBER"],fieldGridGral, fieldGridGralVal);
} }
} }
if (selectedRow[i].data) {
ajaxDerivationRequest(selectedRow[i].data["APP_UID"], selectedRow[i].data["DEL_INDEX"], maxLenght, selectedRow[i].data["APP_NUMBER"], fieldGridGral, fieldGridGralVal);
}
}
} }
} }
); );
@@ -1321,7 +1321,7 @@ function ajaxDerivationRequest(appUid, delIndex, maxLenght, appNumber, fieldGrid
if (index == maxLenght) { if (index == maxLenght) {
Ext.MessageBox.show({ Ext.MessageBox.show({
title: "Derivation Result", title: _("ID_DERIVATION_RESULT"),
msg: htmlMessage, msg: htmlMessage,
fn: function (btn, text, opt) { fn: function (btn, text, opt) {