BUG 10158 I added the colors in case tracker to stages SOLVED

I added the colors in case tracker to stages
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-12-10 13:03:08 -04:00
parent f4186e6653
commit 8f71c54eab
4 changed files with 173 additions and 119 deletions

View File

@@ -22,11 +22,11 @@
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
/*
* Map for Case Tracker
*
* @author Everth S. Berrios Morales <everth@colosa.com>
*
/*
* Map for Case Tracker
*
* @author Everth S. Berrios Morales <everth@colosa.com>
*
*/
require_once 'classes/model/Process.php';
if (! isset( $_SESSION['PROCESS'] )) {
@@ -48,7 +48,7 @@ if (isset( $aProcessFieds['PRO_SHOW_MESSAGE'] )) {
}
switch (($aCaseTracker['CT_MAP_TYPE'])) {
case 'NONE':
//Nothing
//Nothing
break;
case 'PROCESSMAP':
G::LoadClass( 'case' );
@@ -71,67 +71,67 @@ switch (($aCaseTracker['CT_MAP_TYPE'])) {
}
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
$oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addScriptCode( '
var maximunX = ' . processMap::getMaximunTaskX( $_SESSION['PROCESS'] ) . ';
leimnud.event.add(window,"load",function(){
var pb = leimnud.dom.capture("tag.body 0");
pm = new processmap();
pm.options = {
target : "pm_target",
dataServer: "../processes/processes_Ajax",
uid : "' . $_SESSION['PROCESS'] . '",
lang : "' . SYS_LANG . '",
theme : "processmaker",
size : {w:pb.offsetWidth-10,h:pb.offsetHeight},
images_dir: "/jscore/processmap/core/images/",
rw : false,
mi : false,
ct : true,
hideMenu : false
}
pm.make();
///////
var pnlLegend = new leimnud.module.panel();
pnlLegend.options = {
size: {w: 260, h: 140},
position: {
x: ((document.body.clientWidth * 95) / 100) - ((document.body.clientWidth * 95) / 100 - (((document.body.clientWidth * 95) / 100) - 260)),
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();
$oHeadPublisher->addScriptCode( '
var maximunX = ' . processMap::getMaximunTaskX( $_SESSION['PROCESS'] ) . ';
leimnud.event.add(window,"load",function(){
var pb = leimnud.dom.capture("tag.body 0");
pm = new processmap();
pm.options = {
target : "pm_target",
dataServer: "../processes/processes_Ajax",
uid : "' . $_SESSION['PROCESS'] . '",
lang : "' . SYS_LANG . '",
theme : "processmaker",
size : {w:pb.offsetWidth-10,h:pb.offsetHeight},
images_dir: "/jscore/processmap/core/images/",
rw : false,
mi : false,
ct : true,
hideMenu : false
}
pm.make();
///////
var pnlLegend = new leimnud.module.panel();
pnlLegend.options = {
size: {w: 260, h: 140},
position: {
x: ((document.body.clientWidth * 95) / 100) - ((document.body.clientWidth * 95) / 100 - (((document.body.clientWidth * 95) / 100) - 260)),
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;
@@ -155,24 +155,66 @@ switch (($aCaseTracker['CT_MAP_TYPE'])) {
}
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
$oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addScriptCode( '
leimnud.Package.Load("stagesmap",{Type:"file",Absolute:true,Path:"/jscore/stagesmap/core/stagesmap.js"});
leimnud.event.add(window,"load",function(){
var pb=leimnud.dom.capture("tag.body 0");
Sm=new stagesmap();
Sm.options = {
target : "sm_target",
dataServer: "../tracker/tracker_Ajax",
uid : "' . $_SESSION['PROCESS'] . '",
lang : "' . SYS_LANG . '",
theme : "processmaker",
size : {w:"780",h:"540"},
//size : {w:pb.offsetWidth-10,h:pb.offsetHeight},
images_dir: "/jscore/processmap/core/images/",
rw : false,
hideMenu : false
};
Sm.make();
$oHeadPublisher->addScriptCode( '
leimnud.Package.Load("stagesmap",{Type:"file",Absolute:true,Path:"/jscore/stagesmap/core/stagesmap.js"});
leimnud.event.add(window,"load",function(){
var pb=leimnud.dom.capture("tag.body 0");
Sm=new stagesmap();
Sm.options = {
target : "sm_target",
dataServer: "../tracker/tracker_Ajax",
uid : "' . $_SESSION['PROCESS'] . '",
lang : "' . SYS_LANG . '",
theme : "processmaker",
size : {w:"780",h:"540"},
//size : {w:pb.offsetWidth-10,h:pb.offsetHeight},
images_dir: "/jscore/processmap/core/images/",
rw : false,
hideMenu : false
};
Sm.make();
///////
var pnlLegend = new leimnud.module.panel();
pnlLegend.options = {
size: {w: 260, h: 140},
position: {
x: ((document.body.clientWidth * 95) / 100) - ((document.body.clientWidth * 95) / 100 - (((document.body.clientWidth * 95) / 100) - 260)),
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;