BUG-12339 Al crear un report table el sistema direcciona a una lista... SOLVED

- No se diferenciaba desde que listado se llamaba a la creacion de un report table.

- Se agrego un flag PROCESSMAP que indica que se esta utilizando desde el processmap.
This commit is contained in:
Marco Antonio Nina
2013-07-11 11:56:41 -04:00
parent c8fc67ca73
commit b4b47d0bb6
5 changed files with 14 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@@ -36,6 +36,7 @@ class pmTables extends Controller
$this->setView( 'pmTables/list' );
//assigning js variables
$this->setJSVar( 'PROCESSMAP', (isset($_REQUEST['PROCESSMAP'])) ? $_REQUEST['PROCESSMAP'] : 0);
$this->setJSVar( 'FORMATS', $c->getFormats() );
$this->setJSVar( 'CONFIG', $Config );
$this->setJSVar( 'PRO_UID', isset( $_GET['PRO_UID'] ) ? $_GET['PRO_UID'] : false );
@@ -102,6 +103,7 @@ class pmTables extends Controller
$this->includeExtJS( 'pmTables/' . $jsFile );
$this->setJSVar( 'PROCESSMAP', (isset($_REQUEST['PROCESSMAP'])) ? $_REQUEST['PROCESSMAP'] : 0);
$this->setJSVar( 'ADD_TAB_UID', $addTabUid );
$this->setJSVar( 'PRO_UID', isset( $_GET['PRO_UID'] ) ? $_GET['PRO_UID'] : false );
$this->setJSVar( 'TABLE', $table );

View File

@@ -157,7 +157,7 @@ var processmap=function(){
r.make();
}.extend(this),
reportTables:function(){
var url = "../pmTables?PRO_UID=" + this.options.uid;
var url = "../pmTables?PRO_UID=" + this.options.uid+"&PROCESSMAP=1";
var isIE = (navigator.userAgent.toLowerCase().indexOf("msie") != -1)? 1 : 0;
if (isIE == 1) {

View File

@@ -936,8 +936,8 @@ Ext.onReady(function(){
}, {
text:_("ID_CANCEL"),
handler: function() {
proParam = PRO_UID !== false ? '?PRO_UID='+PRO_UID : '';
location.href = '../pmTables' + proParam; //history.back();
proParam = (typeof('PROCESSMAP') != 'undefined' && PROCESSMAP == 1) ? (PRO_UID !== false ? '?PROCESSMAP=1&PRO_UID='+PRO_UID : '') : '';
location.href = '../pmTables' + proParam; //history.back();
}
}]
});
@@ -1087,7 +1087,7 @@ function createReportTable()
Ext.MessageBox.hide();
if (result.success) {
proParam = PRO_UID !== false ? '?PRO_UID='+PRO_UID : '';
proParam = (typeof('PROCESSMAP') != 'undefined' && PROCESSMAP == 1) ? (PRO_UID !== false ? '?PROCESSMAP=1&PRO_UID='+PRO_UID : '') : '';
location.href = '../pmTables' + proParam; //history.back();
} else {
PMExt.error(_('ID_ERROR'), result.type +': '+result.msg);

View File

@@ -413,11 +413,13 @@ capitalize = function(s){
DoNothing = function(){};
//Load New PM Table Forms
NewReportTable = function(){
if(PRO_UID !== false)
location.href = 'pmTables/edit?PRO_UID='+PRO_UID+'&tableType=report';
else
location.href = 'pmTables/edit?tableType=report';
NewReportTable = function() {
var processmap = (typeof('PROCESSMAP') != 'undefined') ? PROCESSMAP : 0;
if(PRO_UID !== false) {
location.href = 'pmTables/edit?PRO_UID='+PRO_UID+'&tableType=report&PROCESSMAP='+processmap;
} else {
location.href = 'pmTables/edit?tableType=report&PROCESSMAP='+processmap;
}
};
NewReportTableOld = function(){