BUG 7598 "New Feature about the process information"
- Added an option to hide the process information on start case panel -- the option is in ADMIN->Environments->Hide Process Information checkbox
This commit is contained in:
@@ -289,14 +289,29 @@ class Configurations // extends Configuration
|
||||
*/
|
||||
|
||||
function getFormats(){
|
||||
if (!isset($this->UserConfig)) $this->UserConfig = $this->getConfiguration('ENVIRONMENT_SETTINGS', '');
|
||||
$formats = Array();
|
||||
$formats['FullNameFormat'] = isset($this->UserConfig['format']) ? $this->UserConfig['format'] : '@lastName, @firstName (@userName)';
|
||||
$formats['DateFormat'] = isset($this->UserConfig['dateFormat']) ? $this->UserConfig['dateFormat'] : 'm/d/Y';
|
||||
$formats['CasesListDateFormat'] = isset($this->UserConfig['casesListDateFormat']) ? $this->UserConfig['casesListDateFormat'] : 'm/d/Y';
|
||||
$formats['CasesListRowNumber'] = isset($this->UserConfig['casesListRowNumber']) ? $this->UserConfig['casesListRowNumber'] : '10';
|
||||
$formats['TimeZone'] = date('T');
|
||||
return $formats;
|
||||
if (!isset($this->UserConfig)) {
|
||||
$this->UserConfig = $this->getConfiguration('ENVIRONMENT_SETTINGS', '');
|
||||
}
|
||||
|
||||
// setting defaults
|
||||
if (!isset($this->UserConfig['format'])) {
|
||||
$this->UserConfig['format'] = '@lastName, @firstName (@userName)';
|
||||
}
|
||||
if (!isset($this->UserConfig['dateFormat'])) {
|
||||
$this->UserConfig['dateFormat'] = 'Y-m-d H:i:s';
|
||||
}
|
||||
if (!isset($this->UserConfig['casesListDateFormat'])) {
|
||||
$this->UserConfig['casesListDateFormat'] = 'Y-m-d H:i:s';
|
||||
}
|
||||
if (!isset($this->UserConfig['casesListRowNumber'])) {
|
||||
$this->UserConfig['CasesListRowNumber'] = '25';
|
||||
}
|
||||
if (!isset($this->UserConfig['startCaseHideProcessInf'])) {
|
||||
$this->UserConfig['startCaseHideProcessInf'] = false;
|
||||
}
|
||||
$this->UserConfig['TimeZone'] = date('T');
|
||||
|
||||
return $this->UserConfig;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -9,50 +9,6 @@ if(isset($_GET['action'])){
|
||||
}
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
//$oHeadPublisher->setExtSkin( 'xtheme-gray');
|
||||
//$oHeadPublisher->usingExtJs('ux/TabCloseMenu');
|
||||
|
||||
|
||||
|
||||
//$oHeadPublisher->usingExtJs('ux/ColumnHeaderGroup');
|
||||
|
||||
//G::pr($TRANSLATIONS_STARTCASE);
|
||||
//print "<br /><br /><br /><br /><center><img src='/images/gears.gif' valign='absmiddle' width='35'><br />".G::LoadTranslation('ID_LOADING')."</center>";
|
||||
|
||||
$loadingHTML ='
|
||||
<style>
|
||||
#loading{
|
||||
left:40%;
|
||||
top:37%;
|
||||
padding:2px;
|
||||
height:auto;
|
||||
}
|
||||
|
||||
#loading .loading-indicator{
|
||||
background:white;
|
||||
color:#444;
|
||||
font:bold 13px tahoma,arial,helvetica;
|
||||
padding:10px;
|
||||
margin:0;
|
||||
height:auto;
|
||||
}
|
||||
#loading-msg {
|
||||
font: bold 11px arial,tahoma,sans-serif;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div id="loading">
|
||||
<div class="loading-indicator">
|
||||
<center>
|
||||
<img src="/images/gears.gif" valign="absmiddle" width="35"><br />
|
||||
<span id="loading-msg">'.G::LoadTranslation('ID_LOADING').'</span><br />
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
//print_r($loadingHTML);
|
||||
|
||||
switch($page){
|
||||
case "startCase":
|
||||
@@ -61,6 +17,9 @@ switch($page){
|
||||
$oHeadPublisher->addExtJsScript('cases/casesStartCase', true); //adding a javascript file .js
|
||||
|
||||
$oHeadPublisher->addContent( 'cases/casesStartCase'); //adding a html file .html.
|
||||
G::LoadClass('configuration');
|
||||
$c = new Configurations();
|
||||
$oHeadPublisher->assign('FORMATS',$c->getFormats());
|
||||
break;
|
||||
case "documents":
|
||||
|
||||
@@ -69,8 +28,6 @@ switch($page){
|
||||
$configPage = $c->getConfiguration('documentsModule', 'pageSize','',$_SESSION['USER_LOGGED']);
|
||||
$configEnv = $c->getConfiguration('ENVIRONMENT_SETTINGS', '');
|
||||
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
|
||||
//$Config['fullNameFormat'] = isset($configEnv['format']) ? $configEnv['format'] : '@userName';
|
||||
//$Config['dateFormat'] = isset($configEnv['dateFormat']) ? $configEnv['dateFormat'] : 'Y-m-d';
|
||||
$oHeadPublisher->assign('CONFIG', $Config);
|
||||
$oHeadPublisher->assign('FORMATS',$c->getFormats());
|
||||
|
||||
@@ -82,11 +39,6 @@ switch($page){
|
||||
$oHeadPublisher->addContent( 'cases/casesDocuments'); //adding a html file .html.
|
||||
break;
|
||||
default:
|
||||
|
||||
// $oHeadPublisher->usingExtJs('ux.treefilterx/Ext.ux.tree.TreeFilterX');
|
||||
//
|
||||
// $oHeadPublisher->usingExtJs('ux.locationbar/Ext.ux.LocationBar');
|
||||
// $oHeadPublisher->usingExtJs('ux.statusbar/ext-statusbar');
|
||||
$oHeadPublisher->addExtJsScript('cases/casesStartPage', false); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'cases/casesStartPage'); //adding a html file .html.
|
||||
break;
|
||||
|
||||
@@ -1,31 +1,8 @@
|
||||
<?php
|
||||
G::loadClass('configuration');
|
||||
$c = new Configurations;
|
||||
//$oConf->loadConfig($obj, 'ENVIRONMENT_SETTINGS','');
|
||||
|
||||
//translations array
|
||||
// $translations = G::getTranslations(Array(
|
||||
// 'ID_PM_ENV_SETTINGS_TITLE', 'ID_PM_ENV_SETTINGS_USERFIELDSET_TITLE', 'IS_USER_NAME_DISPLAY_FORMAT', 'ID_SAVE_SETTINGS',
|
||||
// 'ID_LAN_UPDATE_DATE', 'ID_SAVING_ENVIRONMENT_SETTINGS', 'ID_ENVIRONMENT_SETTINGS_MSG_1',
|
||||
// 'ID_PM_ENV_SETTINGS_REGIONFIELDSET_TITLE', 'ID_GLOBAL_DATE_FORMAT', 'ID_PM_ENV_SETTINGS_CASESLIST_TITLE', 'ID_CASES_ROW_NUMBER', 'ID_CASES_DATE_MASK'
|
||||
// ));
|
||||
// $defaultOption = isset($oConf->aConfig['format'])? $oConf->aConfig['format']: '';
|
||||
// $defaultDateOption = isset($oConf->aConfig['dateFormat'])? $oConf->aConfig['dateFormat']: '';
|
||||
// $defaultCasesListDateOption = isset($oConf->aConfig['casesListDateFormat'])? $oConf->aConfig['casesListDateFormat']: '';
|
||||
// $defaultCasesListRowOption = isset($oConf->aConfig['casesListRowNumber']) ? $oConf->aConfig['casesListRowNumber'] : '';
|
||||
//
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript('setup/environmentSettings', false );
|
||||
|
||||
// $oHeadPublisher->assign('default_format', $defaultOption);
|
||||
// $oHeadPublisher->assign('default_date_format', $defaultDateOption);
|
||||
// $oHeadPublisher->assign('default_caseslist_date_format', $defaultCasesListDateOption);
|
||||
// $oHeadPublisher->assign('default_caseslist_row_number', $defaultCasesListRowOption);
|
||||
//
|
||||
//
|
||||
//
|
||||
// $oHeadPublisher->assign('dateFormatsList', Configurations::getDateFormats());
|
||||
//
|
||||
// $oHeadPublisher->assign('TRANSLATIONS', $translations);
|
||||
$oHeadPublisher->addExtJsScript('setup/environmentSettings', true);
|
||||
//$conf->aConfig['startCaseHideProcessInf']
|
||||
$oHeadPublisher->assign('FORMATS',$c->getFormats());
|
||||
G::RenderPage('publish', 'extJs');
|
||||
@@ -43,6 +43,8 @@
|
||||
'casesListDateFormat' =>$_POST['casesListDateFormat'],
|
||||
'casesListRowNumber' =>$_POST['casesListRowNumber']
|
||||
);
|
||||
$conf->aConfig['startCaseHideProcessInf'] = isset($_POST['hideProcessInf']) ? true : false;
|
||||
|
||||
$conf->saveConfig('ENVIRONMENT_SETTINGS', '');
|
||||
|
||||
$response = new StdClass();
|
||||
|
||||
@@ -283,8 +283,6 @@ Ext.onReady(function() {
|
||||
layout : 'border',
|
||||
items : [newCaseTree, details]
|
||||
});
|
||||
//PMExt.info('x', 'ddd');
|
||||
//viewport.doLayout();
|
||||
|
||||
//routine to hide the debug panel if it is open
|
||||
if( typeof parent != 'undefined' ){
|
||||
@@ -295,6 +293,10 @@ Ext.onReady(function() {
|
||||
}
|
||||
}
|
||||
|
||||
if (FORMATS.startCaseHideProcessInf) {
|
||||
Ext.getCmp('process-detail-panel').hide();
|
||||
Ext.getCmp('startCaseTreePanel').ownerCt.doLayout();
|
||||
}
|
||||
});
|
||||
|
||||
function openCaseA(n){
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -47,7 +47,7 @@ Ext.onReady(function(){
|
||||
check:function(){ChangeSettings('2');}
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
],
|
||||
buttons : [saveButton]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user