BUG 9388 Case nr. and Title configurables para que pueda o no aparecer...SOLVED
- Adjustment by standarized code.
This commit is contained in:
@@ -37,8 +37,7 @@ try {
|
|||||||
if (isset($_SESSION['APPLICATION'])) {
|
if (isset($_SESSION['APPLICATION'])) {
|
||||||
$Fields = $oCase->loadCase($_SESSION['APPLICATION']);
|
$Fields = $oCase->loadCase($_SESSION['APPLICATION']);
|
||||||
$Fields['APP_DATA'] = array_merge($Fields['APP_DATA'], G::getSystemConstants());
|
$Fields['APP_DATA'] = array_merge($Fields['APP_DATA'], G::getSystemConstants());
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$Fields['APP_DATA'] = Array();
|
$Fields['APP_DATA'] = Array();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,20 +69,27 @@ try {
|
|||||||
|
|
||||||
if (isset($Fields['TITLE']) && strlen($Fields['TITLE']) > 0) {
|
if (isset($Fields['TITLE']) && strlen($Fields['TITLE']) > 0) {
|
||||||
$array['TITLE'] = G::LoadTranslation('ID_TITLE');
|
$array['TITLE'] = G::LoadTranslation('ID_TITLE');
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$array['TITLE'] = '';
|
$array['TITLE'] = '';
|
||||||
}
|
}
|
||||||
$array['PROCESS'] = G::LoadTranslation('ID_PROCESS');
|
$array['PROCESS'] = G::LoadTranslation('ID_PROCESS');
|
||||||
$array['DATELABEL'] = G::LoadTranslation('DATE_LABEL');
|
$array['DATELABEL'] = G::LoadTranslation('DATE_LABEL');
|
||||||
|
|
||||||
$aDyn['DYN_UID'] = (isset($_SESSION['DYN_UID_PRINT']) && $_SESSION['DYN_UID_PRINT']!='')?$_SESSION['DYN_UID_PRINT']:$aDyn['DYN_UID'];
|
$aDyn['DYN_UID'] = (isset($_SESSION['DYN_UID_PRINT']) && $_SESSION['DYN_UID_PRINT'] != '')
|
||||||
|
? $_SESSION['DYN_UID_PRINT']
|
||||||
|
: $aDyn['DYN_UID'];
|
||||||
if ($noShowTitle == 0) {
|
if ($noShowTitle == 0) {
|
||||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_PrintViewTitle', '', '', $array);
|
$G_PUBLISH->AddContent('smarty', 'cases/cases_PrintViewTitle', '', '', $array);
|
||||||
}
|
}
|
||||||
$G_PUBLISH->AddContent('dynaform', 'xmlform', $aDyn['PRO_UID']. '/' . $aDyn['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view');
|
$G_PUBLISH->AddContent('dynaform',
|
||||||
|
'xmlform',
|
||||||
|
$aDyn['PRO_UID'] . '/' . $aDyn['DYN_UID'],
|
||||||
|
'',
|
||||||
|
$Fields['APP_DATA'],
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'view');
|
||||||
G::RenderPage('publish', 'blank');
|
G::RenderPage('publish', 'blank');
|
||||||
|
|
||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
die($oException->getMessage());
|
die($oException->getMessage());
|
||||||
}
|
}
|
||||||
@@ -118,3 +124,4 @@ try {
|
|||||||
window.print();
|
window.print();
|
||||||
} catch(e){}
|
} catch(e){}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tracker_ViewMap.php
|
* tracker_ViewMap.php
|
||||||
*
|
*
|
||||||
@@ -22,15 +23,13 @@
|
|||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dynaforms & documents for Case Tracker
|
* dynaforms & documents for Case Tracker
|
||||||
*
|
*
|
||||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!isset($_SESSION['PROCESS']))
|
if (!isset($_SESSION['PROCESS'])) {
|
||||||
{
|
|
||||||
G::header('location: login');
|
G::header('location: login');
|
||||||
}
|
}
|
||||||
$G_MAIN_MENU = 'caseTracker';
|
$G_MAIN_MENU = 'caseTracker';
|
||||||
@@ -64,9 +63,11 @@
|
|||||||
if ($noShowTitle == 0) {
|
if ($noShowTitle == 0) {
|
||||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
||||||
}
|
}
|
||||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'tracker/tracker_DynaDocs', $oProcessMap->getCaseTrackerObjectsCriteria($_SESSION['PROCESS']), array('VIEW'=>G::LoadTranslation('ID_VIEW')));
|
$G_PUBLISH->AddContent( 'propeltable',
|
||||||
|
'paged-table',
|
||||||
|
'tracker/tracker_DynaDocs',
|
||||||
|
$oProcessMap->getCaseTrackerObjectsCriteria($_SESSION['PROCESS']),
|
||||||
|
array('VIEW' => G::LoadTranslation('ID_VIEW')));
|
||||||
|
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish');
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tracker_ViewMap.php
|
* tracker_ViewMap.php
|
||||||
*
|
*
|
||||||
@@ -22,15 +23,13 @@
|
|||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hystory case for Case Tracker
|
* Hystory case for Case Tracker
|
||||||
*
|
*
|
||||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!isset($_SESSION['PROCESS']))
|
if (!isset($_SESSION['PROCESS'])) {
|
||||||
{
|
|
||||||
G::header('location: login');
|
G::header('location: login');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,5 +61,10 @@
|
|||||||
if ($noShowTitle == 0) {
|
if ($noShowTitle == 0) {
|
||||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
||||||
}
|
}
|
||||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'tracker/tracker_TransferHistory', Cases::getTransferHistoryCriteria($_SESSION['APPLICATION']), array());
|
$G_PUBLISH->AddContent( 'propeltable',
|
||||||
|
'paged-table',
|
||||||
|
'tracker/tracker_TransferHistory',
|
||||||
|
Cases::getTransferHistoryCriteria($_SESSION['APPLICATION']),
|
||||||
|
array());
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish');
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tracker_Messages.php
|
* tracker_Messages.php
|
||||||
*
|
*
|
||||||
@@ -22,15 +23,13 @@
|
|||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* History messages for Case Tracker
|
* History messages for Case Tracker
|
||||||
*
|
*
|
||||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!isset($_SESSION['PROCESS']))
|
if (!isset($_SESSION['PROCESS'])) {
|
||||||
{
|
|
||||||
G::header('location: login');
|
G::header('location: login');
|
||||||
}
|
}
|
||||||
$G_MAIN_MENU = 'caseTracker';
|
$G_MAIN_MENU = 'caseTracker';
|
||||||
@@ -63,5 +62,9 @@
|
|||||||
if ($noShowTitle == 0) {
|
if ($noShowTitle == 0) {
|
||||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
||||||
}
|
}
|
||||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'tracker/tracker_Messages', Cases::getHistoryMessagesTracker($_SESSION['APPLICATION']), array('VIEW'=>G::LoadTranslation('ID_VIEW')));
|
$G_PUBLISH->AddContent( 'propeltable',
|
||||||
|
'paged-table',
|
||||||
|
'tracker/tracker_Messages',
|
||||||
|
Cases::getHistoryMessagesTracker($_SESSION['APPLICATION']),
|
||||||
|
array('VIEW' => G::LoadTranslation('ID_VIEW')));
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish');
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tracker_ViewMap.php
|
* tracker_ViewMap.php
|
||||||
*
|
*
|
||||||
@@ -22,7 +23,6 @@
|
|||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Map for Case Tracker
|
* Map for Case Tracker
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user