BUG 8879 "Need help with reference to the colors of the tasks..." SOLVED
- Feature, colors panel in processMap for the "tracker" - Added colors panel in processMap for the "tracker"
This commit is contained in:
@@ -420,6 +420,19 @@ try {
|
||||
$oCriteria2->add(TaskPeer::STG_UID, '');
|
||||
BasePeer::doUpdate($oCriteria1, $oCriteria2, Propel::getConnection('workflow'));
|
||||
break;
|
||||
|
||||
case "processMapLegend":
|
||||
$arrayField = array();
|
||||
$arrayField["sLabel1"] = G::LoadTranslation("ID_TASK_IN_PROGRESS");
|
||||
$arrayField["sLabel2"] = G::LoadTranslation("ID_COMPLETED_TASK");
|
||||
$arrayField["sLabel3"] = G::LoadTranslation("ID_PENDING_TASK");
|
||||
$arrayField["sLabel4"] = G::LoadTranslation("ID_PARALLEL_TASK");
|
||||
$arrayField["tracker"] = 1;
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent("smarty", "cases/cases_Leyends", "", "", $arrayField);
|
||||
G::RenderPage("publish", "raw");
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
|
||||
@@ -62,9 +62,9 @@
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptCode('
|
||||
leimnud.event.add(window,"load",function(){
|
||||
var pb=leimnud.dom.capture("tag.body 0");
|
||||
Pm=new processmap();
|
||||
Pm.options = {
|
||||
var pb = leimnud.dom.capture("tag.body 0");
|
||||
pm = new processmap();
|
||||
pm.options = {
|
||||
target : "pm_target",
|
||||
dataServer: "../processes/processes_Ajax",
|
||||
uid : "' . $_SESSION['PROCESS'] . '",
|
||||
@@ -77,7 +77,49 @@
|
||||
ct : true,
|
||||
hideMenu : false
|
||||
}
|
||||
Pm.make();
|
||||
|
||||
pm.make();
|
||||
|
||||
///////
|
||||
var pnlLegend = new leimnud.module.panel();
|
||||
|
||||
pnlLegend.options = {
|
||||
size: {w: 160, h: 140},
|
||||
position: {
|
||||
x: ((document.body.clientWidth * 95) / 100) - ((document.body.clientWidth * 95) / 100 - (((document.body.clientWidth * 95) / 100) - 160)),
|
||||
y: 175,
|
||||
center: false
|
||||
},
|
||||
title: G_STRINGS.ID_COLOR_LEYENDS,
|
||||
theme: "processmaker",
|
||||
statusBar: false,
|
||||
control: {resize: false, roll: false, drag: true, close: false},
|
||||
fx: {modal: false, opacity: false, blinkToFront: true, fadeIn: false, drag: false}
|
||||
};
|
||||
|
||||
pnlLegend.setStyle = {
|
||||
content: {overflow: "hidden"}
|
||||
};
|
||||
|
||||
pnlLegend.events = {
|
||||
remove: function () { delete(pnlLegend); }.extend(this)
|
||||
};
|
||||
|
||||
pnlLegend.make();
|
||||
pnlLegend.loader.show();
|
||||
|
||||
///////
|
||||
var rpcRequest = new leimnud.module.rpc.xmlhttp({
|
||||
url : "tracker_Ajax",
|
||||
args: "action=processMapLegend"
|
||||
});
|
||||
|
||||
rpcRequest.callback = function (rpc) {
|
||||
pnlLegend.loader.hide();
|
||||
pnlLegend.addContent(rpc.xmlhttp.responseText);
|
||||
}.extend(this);
|
||||
|
||||
rpcRequest.make();
|
||||
});');
|
||||
G::RenderPage('publish');
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user