PM-936
Agregar columna en lista de procesos Se agrego la columna que indica la fecha de la ultima modificacion, de cualquier evento o cambio en el proceso Add a column in the list of processes with the last updated date
This commit is contained in:
@@ -182,7 +182,7 @@ class Process extends BaseProcess
|
|||||||
$this->setProCategory( $aData['PRO_CATEGORY'] );
|
$this->setProCategory( $aData['PRO_CATEGORY'] );
|
||||||
$this->setProSubCategory( '' );
|
$this->setProSubCategory( '' );
|
||||||
$this->setProIndustry( '' );
|
$this->setProIndustry( '' );
|
||||||
$this->setProCreateDate( 'now' );
|
$this->setProCreateDate( date('Y-m-d H:i:s') );
|
||||||
$this->setProCreateUser( $aData['USR_UID'] );
|
$this->setProCreateUser( $aData['USR_UID'] );
|
||||||
$this->setProHeight( 5000 );
|
$this->setProHeight( 5000 );
|
||||||
$this->setProWidth( 10000 );
|
$this->setProWidth( 10000 );
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ try {
|
|||||||
|
|
||||||
if($proUid != "") {
|
if($proUid != "") {
|
||||||
$valuesProcess['PRO_UID'] = $proUid;
|
$valuesProcess['PRO_UID'] = $proUid;
|
||||||
$valuesProcess['PRO_UPDATE_DATE'] = date("Y-m-d H:m:i");
|
$valuesProcess['PRO_UPDATE_DATE'] = date("Y-m-d H:i:s");
|
||||||
G::LoadClass('processes');
|
G::LoadClass('processes');
|
||||||
$infoProcess = new Processes();
|
$infoProcess = new Processes();
|
||||||
$resultProcess = $infoProcess->updateProcessRow($valuesProcess);
|
$resultProcess = $infoProcess->updateProcessRow($valuesProcess);
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ switch ($function) {
|
|||||||
$resultProcessNew = $infoProcess->load($_POST['form']['PRO_UID']);
|
$resultProcessNew = $infoProcess->load($_POST['form']['PRO_UID']);
|
||||||
$oldFields = array_diff_assoc($resultProcessOld,$resultProcessNew);
|
$oldFields = array_diff_assoc($resultProcessOld,$resultProcessNew);
|
||||||
$newFields = array_diff_assoc($resultProcessNew,$resultProcessOld);
|
$newFields = array_diff_assoc($resultProcessNew,$resultProcessOld);
|
||||||
|
$fields = array();
|
||||||
|
|
||||||
if(array_key_exists('PRO_TITLE', $newFields)) {
|
if(array_key_exists('PRO_TITLE', $newFields)) {
|
||||||
$fields[] = G::LoadTranslation('ID_TITLE');
|
$fields[] = G::LoadTranslation('ID_TITLE');
|
||||||
@@ -142,4 +143,13 @@ if(array_key_exists('PRO_TRI_UNPAUSED', $newFields)) {
|
|||||||
if(array_key_exists('PRO_TYPE_PROCESS', $newFields)) {
|
if(array_key_exists('PRO_TYPE_PROCESS', $newFields)) {
|
||||||
$fields[] = "Type of process (only owners can edit private processes)";
|
$fields[] = "Type of process (only owners can edit private processes)";
|
||||||
}
|
}
|
||||||
G::auditLog('EditProcess','Edit fields ('.implode(', ',$fields).') in process "'.$_POST['form']['PRO_TITLE'].'"');
|
G::auditLog('EditProcess','Edit fields ('.implode(', ',$fields).') in process "'.$_POST['form']['PRO_TITLE'].'"');
|
||||||
|
|
||||||
|
if(isset($_POST['form']['PRO_UID']) && !empty($_POST['form']['PRO_UID'])) {
|
||||||
|
$valuesProcess['PRO_UID'] = $_POST['form']['PRO_UID'];
|
||||||
|
$valuesProcess['PRO_UPDATE_DATE'] = date("Y-m-d H:i:s");
|
||||||
|
G::LoadClass('processes');
|
||||||
|
$infoProcess = new Processes();
|
||||||
|
$resultProcess = $infoProcess->updateProcessRow($valuesProcess);
|
||||||
|
$resultProcess = $infoProcess->getProcessRow($_POST['form']['PRO_UID']);
|
||||||
|
}
|
||||||
@@ -231,7 +231,7 @@ Ext.onReady(function(){
|
|||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
store: store,
|
store: store,
|
||||||
tbar:[
|
tbar:[
|
||||||
{
|
{
|
||||||
xtype: 'tbsplit',
|
xtype: 'tbsplit',
|
||||||
text: _('ID_NEW'),
|
text: _('ID_NEW'),
|
||||||
|
|||||||
Reference in New Issue
Block a user