HOR-1471

HOR-1471
This commit is contained in:
Paula V. Quispe
2016-07-27 16:37:21 -04:00
parent 4e14ccc976
commit c3fb995759
79 changed files with 399 additions and 170 deletions

View File

@@ -459,6 +459,9 @@ try {
break;
}
} catch (Exception $oException) {
die( $oException->getMessage() );
$token = strtotime("now");
PMException::registerErrorLog($oException, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
die;
}

View File

@@ -46,6 +46,9 @@ try {
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'tracker/tracker_ConditionsEdit', '', $aFields, '../tracker/tracker_ConditionsSave' );
G::RenderPage( 'publish-raw', 'raw' );
} catch (Exception $oException) {
die( $oException->getMessage() );
$token = strtotime("now");
PMException::registerErrorLog($oException, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
die;
}

View File

@@ -53,6 +53,9 @@ try {
$resultProcess = $infoProcess->load($value['PRO_UID']);
G::auditLog('CaseTrackers','Save Condition Case Tracker Object ('.$value['CTO_UID'].', condition: '.$value['CTO_CONDITION'].') in Process "'.$resultProcess['PRO_TITLE'].'"');
} catch (Exception $oException) {
die( $oException->getMessage() );
$token = strtotime("now");
PMException::registerErrorLog($oException, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
die;
}

View File

@@ -56,7 +56,7 @@ try {
$array['TITLE'] = G::LoadTranslation( 'ID_TITLE' );
else
$array['TITLE'] = '';
// $array['PROCESS'] = G::LoadTranslation('ID_PROCESS');
// $array['PROCESS'] = G::LoadTranslation('ID_PROCESS');
$array['DATELABEL'] = G::LoadTranslation( 'DATE_LABEL' );
$G_PUBLISH = new Publisher();
@@ -65,37 +65,40 @@ try {
G::RenderPage( 'publish', 'blank' );
} catch (Exception $oException) {
die( $oException->getMessage() );
$token = strtotime("now");
PMException::registerErrorLog($oException, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
die;
}
?>
<script>
try{
oFields = document.getElementsByTagName('input');
for(i=0; i<oFields.length; i++){
if(oFields[i].type == 'button' || oFields[i].type == 'submit')
oFields[i].style.display="none";
else
oFields[i].disabled="true";
}
oFields = document.getElementsByTagName('textarea');
for(i=0; i<oFields.length; i++){
oFields[i].disabled="true";
}
oFields = document.getElementsByTagName('select');
for(i=0; i<oFields.length; i++){
oFields[i].disabled="true";
}
oFields = document.getElementsByTagName('td');
for(i=0; i<oFields.length; i++){
if(oFields[i].className == 'withoutLabel' ){
oFields[i].style.display="none";
break;
}
}
window.print();
} catch(e){}
?>
<script>
try{
oFields = document.getElementsByTagName('input');
for(i=0; i<oFields.length; i++){
if(oFields[i].type == 'button' || oFields[i].type == 'submit')
oFields[i].style.display="none";
else
oFields[i].disabled="true";
}
oFields = document.getElementsByTagName('textarea');
for(i=0; i<oFields.length; i++){
oFields[i].disabled="true";
}
oFields = document.getElementsByTagName('select');
for(i=0; i<oFields.length; i++){
oFields[i].disabled="true";
}
oFields = document.getElementsByTagName('td');
for(i=0; i<oFields.length; i++){
if(oFields[i].className == 'withoutLabel' ){
oFields[i].style.display="none";
break;
}
}
window.print();
} catch(e){}
</script>