Merged in bugfix/PMCORE-2392 (pull request #7864)
PMCORE-2392 Approved-by: Paula Quispe
This commit is contained in:
@@ -63,7 +63,9 @@ class AppMessageMapBuilder
|
||||
$tMap = $this->dbMap->addTable('APP_MESSAGE');
|
||||
$tMap->setPhpName('AppMessage');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
$tMap->setUseIdGenerator(true);
|
||||
|
||||
$tMap->addColumn('APP_MSG_ID', 'AppMsgId', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addPrimaryKey('APP_MSG_UID', 'AppMsgUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -25,12 +25,15 @@ abstract class BaseAppMessagePeer
|
||||
const CLASS_DEFAULT = 'classes.model.AppMessage';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 23;
|
||||
const NUM_COLUMNS = 24;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
|
||||
|
||||
/** the column name for the APP_MSG_ID field */
|
||||
const APP_MSG_ID = 'APP_MESSAGE.APP_MSG_ID';
|
||||
|
||||
/** the column name for the APP_MSG_UID field */
|
||||
const APP_MSG_UID = 'APP_MESSAGE.APP_MSG_UID';
|
||||
|
||||
@@ -111,10 +114,10 @@ abstract class BaseAppMessagePeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppMsgUid', 'MsgUid', 'AppUid', 'DelIndex', 'AppMsgType', 'AppMsgTypeId', 'AppMsgSubject', 'AppMsgFrom', 'AppMsgTo', 'AppMsgBody', 'AppMsgDate', 'AppMsgCc', 'AppMsgBcc', 'AppMsgTemplate', 'AppMsgStatus', 'AppMsgStatusId', 'AppMsgAttach', 'AppMsgSendDate', 'AppMsgShowMessage', 'AppMsgError', 'ProId', 'TasId', 'AppNumber', ),
|
||||
BasePeer::TYPE_COLNAME => array (AppMessagePeer::APP_MSG_UID, AppMessagePeer::MSG_UID, AppMessagePeer::APP_UID, AppMessagePeer::DEL_INDEX, AppMessagePeer::APP_MSG_TYPE, AppMessagePeer::APP_MSG_TYPE_ID, AppMessagePeer::APP_MSG_SUBJECT, AppMessagePeer::APP_MSG_FROM, AppMessagePeer::APP_MSG_TO, AppMessagePeer::APP_MSG_BODY, AppMessagePeer::APP_MSG_DATE, AppMessagePeer::APP_MSG_CC, AppMessagePeer::APP_MSG_BCC, AppMessagePeer::APP_MSG_TEMPLATE, AppMessagePeer::APP_MSG_STATUS, AppMessagePeer::APP_MSG_STATUS_ID, AppMessagePeer::APP_MSG_ATTACH, AppMessagePeer::APP_MSG_SEND_DATE, AppMessagePeer::APP_MSG_SHOW_MESSAGE, AppMessagePeer::APP_MSG_ERROR, AppMessagePeer::PRO_ID, AppMessagePeer::TAS_ID, AppMessagePeer::APP_NUMBER, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_MSG_UID', 'MSG_UID', 'APP_UID', 'DEL_INDEX', 'APP_MSG_TYPE', 'APP_MSG_TYPE_ID', 'APP_MSG_SUBJECT', 'APP_MSG_FROM', 'APP_MSG_TO', 'APP_MSG_BODY', 'APP_MSG_DATE', 'APP_MSG_CC', 'APP_MSG_BCC', 'APP_MSG_TEMPLATE', 'APP_MSG_STATUS', 'APP_MSG_STATUS_ID', 'APP_MSG_ATTACH', 'APP_MSG_SEND_DATE', 'APP_MSG_SHOW_MESSAGE', 'APP_MSG_ERROR', 'PRO_ID', 'TAS_ID', 'APP_NUMBER', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AppMsgId', 'AppMsgUid', 'MsgUid', 'AppUid', 'DelIndex', 'AppMsgType', 'AppMsgTypeId', 'AppMsgSubject', 'AppMsgFrom', 'AppMsgTo', 'AppMsgBody', 'AppMsgDate', 'AppMsgCc', 'AppMsgBcc', 'AppMsgTemplate', 'AppMsgStatus', 'AppMsgStatusId', 'AppMsgAttach', 'AppMsgSendDate', 'AppMsgShowMessage', 'AppMsgError', 'ProId', 'TasId', 'AppNumber', ),
|
||||
BasePeer::TYPE_COLNAME => array (AppMessagePeer::APP_MSG_ID, AppMessagePeer::APP_MSG_UID, AppMessagePeer::MSG_UID, AppMessagePeer::APP_UID, AppMessagePeer::DEL_INDEX, AppMessagePeer::APP_MSG_TYPE, AppMessagePeer::APP_MSG_TYPE_ID, AppMessagePeer::APP_MSG_SUBJECT, AppMessagePeer::APP_MSG_FROM, AppMessagePeer::APP_MSG_TO, AppMessagePeer::APP_MSG_BODY, AppMessagePeer::APP_MSG_DATE, AppMessagePeer::APP_MSG_CC, AppMessagePeer::APP_MSG_BCC, AppMessagePeer::APP_MSG_TEMPLATE, AppMessagePeer::APP_MSG_STATUS, AppMessagePeer::APP_MSG_STATUS_ID, AppMessagePeer::APP_MSG_ATTACH, AppMessagePeer::APP_MSG_SEND_DATE, AppMessagePeer::APP_MSG_SHOW_MESSAGE, AppMessagePeer::APP_MSG_ERROR, AppMessagePeer::PRO_ID, AppMessagePeer::TAS_ID, AppMessagePeer::APP_NUMBER, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_MSG_ID', 'APP_MSG_UID', 'MSG_UID', 'APP_UID', 'DEL_INDEX', 'APP_MSG_TYPE', 'APP_MSG_TYPE_ID', 'APP_MSG_SUBJECT', 'APP_MSG_FROM', 'APP_MSG_TO', 'APP_MSG_BODY', 'APP_MSG_DATE', 'APP_MSG_CC', 'APP_MSG_BCC', 'APP_MSG_TEMPLATE', 'APP_MSG_STATUS', 'APP_MSG_STATUS_ID', 'APP_MSG_ATTACH', 'APP_MSG_SEND_DATE', 'APP_MSG_SHOW_MESSAGE', 'APP_MSG_ERROR', 'PRO_ID', 'TAS_ID', 'APP_NUMBER', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -124,10 +127,10 @@ abstract class BaseAppMessagePeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppMsgUid' => 0, 'MsgUid' => 1, 'AppUid' => 2, 'DelIndex' => 3, 'AppMsgType' => 4, 'AppMsgTypeId' => 5, 'AppMsgSubject' => 6, 'AppMsgFrom' => 7, 'AppMsgTo' => 8, 'AppMsgBody' => 9, 'AppMsgDate' => 10, 'AppMsgCc' => 11, 'AppMsgBcc' => 12, 'AppMsgTemplate' => 13, 'AppMsgStatus' => 14, 'AppMsgStatusId' => 15, 'AppMsgAttach' => 16, 'AppMsgSendDate' => 17, 'AppMsgShowMessage' => 18, 'AppMsgError' => 19, 'ProId' => 20, 'TasId' => 21, 'AppNumber' => 22, ),
|
||||
BasePeer::TYPE_COLNAME => array (AppMessagePeer::APP_MSG_UID => 0, AppMessagePeer::MSG_UID => 1, AppMessagePeer::APP_UID => 2, AppMessagePeer::DEL_INDEX => 3, AppMessagePeer::APP_MSG_TYPE => 4, AppMessagePeer::APP_MSG_TYPE_ID => 5, AppMessagePeer::APP_MSG_SUBJECT => 6, AppMessagePeer::APP_MSG_FROM => 7, AppMessagePeer::APP_MSG_TO => 8, AppMessagePeer::APP_MSG_BODY => 9, AppMessagePeer::APP_MSG_DATE => 10, AppMessagePeer::APP_MSG_CC => 11, AppMessagePeer::APP_MSG_BCC => 12, AppMessagePeer::APP_MSG_TEMPLATE => 13, AppMessagePeer::APP_MSG_STATUS => 14, AppMessagePeer::APP_MSG_STATUS_ID => 15, AppMessagePeer::APP_MSG_ATTACH => 16, AppMessagePeer::APP_MSG_SEND_DATE => 17, AppMessagePeer::APP_MSG_SHOW_MESSAGE => 18, AppMessagePeer::APP_MSG_ERROR => 19, AppMessagePeer::PRO_ID => 20, AppMessagePeer::TAS_ID => 21, AppMessagePeer::APP_NUMBER => 22, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_MSG_UID' => 0, 'MSG_UID' => 1, 'APP_UID' => 2, 'DEL_INDEX' => 3, 'APP_MSG_TYPE' => 4, 'APP_MSG_TYPE_ID' => 5, 'APP_MSG_SUBJECT' => 6, 'APP_MSG_FROM' => 7, 'APP_MSG_TO' => 8, 'APP_MSG_BODY' => 9, 'APP_MSG_DATE' => 10, 'APP_MSG_CC' => 11, 'APP_MSG_BCC' => 12, 'APP_MSG_TEMPLATE' => 13, 'APP_MSG_STATUS' => 14, 'APP_MSG_STATUS_ID' => 15, 'APP_MSG_ATTACH' => 16, 'APP_MSG_SEND_DATE' => 17, 'APP_MSG_SHOW_MESSAGE' => 18, 'APP_MSG_ERROR' => 19, 'PRO_ID' => 20, 'TAS_ID' => 21, 'APP_NUMBER' => 22, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AppMsgId' => 0, 'AppMsgUid' => 1, 'MsgUid' => 2, 'AppUid' => 3, 'DelIndex' => 4, 'AppMsgType' => 5, 'AppMsgTypeId' => 6, 'AppMsgSubject' => 7, 'AppMsgFrom' => 8, 'AppMsgTo' => 9, 'AppMsgBody' => 10, 'AppMsgDate' => 11, 'AppMsgCc' => 12, 'AppMsgBcc' => 13, 'AppMsgTemplate' => 14, 'AppMsgStatus' => 15, 'AppMsgStatusId' => 16, 'AppMsgAttach' => 17, 'AppMsgSendDate' => 18, 'AppMsgShowMessage' => 19, 'AppMsgError' => 20, 'ProId' => 21, 'TasId' => 22, 'AppNumber' => 23, ),
|
||||
BasePeer::TYPE_COLNAME => array (AppMessagePeer::APP_MSG_ID => 0, AppMessagePeer::APP_MSG_UID => 1, AppMessagePeer::MSG_UID => 2, AppMessagePeer::APP_UID => 3, AppMessagePeer::DEL_INDEX => 4, AppMessagePeer::APP_MSG_TYPE => 5, AppMessagePeer::APP_MSG_TYPE_ID => 6, AppMessagePeer::APP_MSG_SUBJECT => 7, AppMessagePeer::APP_MSG_FROM => 8, AppMessagePeer::APP_MSG_TO => 9, AppMessagePeer::APP_MSG_BODY => 10, AppMessagePeer::APP_MSG_DATE => 11, AppMessagePeer::APP_MSG_CC => 12, AppMessagePeer::APP_MSG_BCC => 13, AppMessagePeer::APP_MSG_TEMPLATE => 14, AppMessagePeer::APP_MSG_STATUS => 15, AppMessagePeer::APP_MSG_STATUS_ID => 16, AppMessagePeer::APP_MSG_ATTACH => 17, AppMessagePeer::APP_MSG_SEND_DATE => 18, AppMessagePeer::APP_MSG_SHOW_MESSAGE => 19, AppMessagePeer::APP_MSG_ERROR => 20, AppMessagePeer::PRO_ID => 21, AppMessagePeer::TAS_ID => 22, AppMessagePeer::APP_NUMBER => 23, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_MSG_ID' => 0, 'APP_MSG_UID' => 1, 'MSG_UID' => 2, 'APP_UID' => 3, 'DEL_INDEX' => 4, 'APP_MSG_TYPE' => 5, 'APP_MSG_TYPE_ID' => 6, 'APP_MSG_SUBJECT' => 7, 'APP_MSG_FROM' => 8, 'APP_MSG_TO' => 9, 'APP_MSG_BODY' => 10, 'APP_MSG_DATE' => 11, 'APP_MSG_CC' => 12, 'APP_MSG_BCC' => 13, 'APP_MSG_TEMPLATE' => 14, 'APP_MSG_STATUS' => 15, 'APP_MSG_STATUS_ID' => 16, 'APP_MSG_ATTACH' => 17, 'APP_MSG_SEND_DATE' => 18, 'APP_MSG_SHOW_MESSAGE' => 19, 'APP_MSG_ERROR' => 20, 'PRO_ID' => 21, 'TAS_ID' => 22, 'APP_NUMBER' => 23, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -228,6 +231,8 @@ abstract class BaseAppMessagePeer
|
||||
public static function addSelectColumns(Criteria $criteria)
|
||||
{
|
||||
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_ID);
|
||||
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_UID);
|
||||
|
||||
$criteria->addSelectColumn(AppMessagePeer::MSG_UID);
|
||||
|
||||
@@ -366,6 +366,7 @@
|
||||
<parameter name="Create_options" value=""/>
|
||||
<parameter name="Comment" value="Messages in an Application"/>
|
||||
</vendor>
|
||||
<column name="APP_MSG_ID" type="INTEGER" required="true" autoIncrement="true" unique="true"/>
|
||||
<column name="APP_MSG_UID" type="VARCHAR" size="32" required="true" primaryKey="true"/>
|
||||
<column name="MSG_UID" type="VARCHAR" size="32"/>
|
||||
<column name="APP_UID" type="VARCHAR" size="32" required="true" default=""/>
|
||||
@@ -389,6 +390,9 @@
|
||||
<column name="PRO_ID" type="INTEGER" required="false" default="0"/>
|
||||
<column name="TAS_ID" type="INTEGER" required="false" default="0"/>
|
||||
<column name="APP_NUMBER" type="INTEGER" required="false" default="0"/>
|
||||
<index name="indexAppMsgId">
|
||||
<index-column name="APP_MSG_ID"/>
|
||||
</index>
|
||||
<index name="indexForAppUid">
|
||||
<index-column name="APP_UID"/>
|
||||
</index>
|
||||
@@ -405,7 +409,7 @@
|
||||
<index-column name="APP_NUMBER"/>
|
||||
</index>
|
||||
<index name="INDEX_APP_MSG_TYPE_ID">
|
||||
<index-column name="APP_MSG_STATUS_ID"/>
|
||||
<index-column name="APP_MSG_TYPE_ID"/>
|
||||
</index>
|
||||
<index name="INDEX_APP_MSG_STATUS_ID">
|
||||
<index-column name="APP_MSG_STATUS_ID"/>
|
||||
@@ -414,6 +418,9 @@
|
||||
<index-column name="APP_UID"/>
|
||||
<index-column name="APP_MSG_SEND_DATE"/>
|
||||
</index>
|
||||
<index name="indexAppMsgDate">
|
||||
<index-column name="APP_MSG_DATE"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="APP_OWNER">
|
||||
<vendor type="mysql">
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Model\Application;
|
||||
use ProcessMaker\Model\Process;
|
||||
use ProcessMaker\Model\Task;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use ProcessMaker\Exception\RBACException;
|
||||
use ProcessMaker\Util\DateTime;
|
||||
@@ -32,7 +35,7 @@ switch ($req) {
|
||||
$filterBy = (isset($_REQUEST['filterBy'])) ? $_REQUEST['filterBy'] : 'ALL';
|
||||
|
||||
$criteria = new Criteria();
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_UID);
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_ID);
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_UID);
|
||||
$criteria->addSelectColumn(AppMessagePeer::DEL_INDEX);
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_TYPE);
|
||||
@@ -45,14 +48,9 @@ switch ($req) {
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_SEND_DATE);
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_SHOW_MESSAGE);
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_MSG_ERROR);
|
||||
$criteria->addSelectColumn(ApplicationPeer::PRO_UID);
|
||||
$criteria->addSelectColumn(ApplicationPeer::APP_TITLE);
|
||||
$criteria->addSelectColumn(ApplicationPeer::APP_NUMBER);
|
||||
$criteria->addSelectColumn(ProcessPeer::PRO_TITLE);
|
||||
$criteria->addSelectColumn(TaskPeer::TAS_TITLE);
|
||||
$criteria->addJoin(AppMessagePeer::APP_UID, ApplicationPeer::APP_UID, Criteria::LEFT_JOIN);
|
||||
$criteria->addJoin(AppMessagePeer::TAS_ID, TaskPeer::TAS_ID, Criteria::LEFT_JOIN);
|
||||
$criteria->addJoin(AppMessagePeer::PRO_ID, ProcessPeer::PRO_ID, Criteria::LEFT_JOIN);
|
||||
$criteria->addSelectColumn(AppMessagePeer::APP_NUMBER);
|
||||
$criteria->addSelectColumn(AppMessagePeer::PRO_ID);
|
||||
$criteria->addSelectColumn(AppMessagePeer::TAS_ID);
|
||||
|
||||
//Status can be: All, Participated, Pending, Failed
|
||||
if (!empty($msgStatusId)) {
|
||||
@@ -115,7 +113,7 @@ switch ($req) {
|
||||
$criteria->addDescendingOrderByColumn($sort);
|
||||
}
|
||||
} else {
|
||||
$oCriteria->addDescendingOrderByColumn(AppMessagePeer::APP_MSG_SEND_DATE);
|
||||
$oCriteria->addDescendingOrderByColumn(AppMessagePeer::APP_MSG_DATE);
|
||||
}
|
||||
if (!empty($limit)) {
|
||||
$criteria->setLimit($limit);
|
||||
@@ -129,11 +127,43 @@ switch ($req) {
|
||||
$index = 1;
|
||||
$content = new Content();
|
||||
$tasTitleDefault = G::LoadTranslation('ID_TASK_NOT_RELATED');
|
||||
$cases = [];
|
||||
$processes = [];
|
||||
$tasks = [];
|
||||
while ($result->next()) {
|
||||
$row = $result->getRow();
|
||||
$row['APP_MSG_STATUS'] = ucfirst($row['APP_MSG_STATUS']);
|
||||
$row['APP_MSG_DATE'] = DateTime::convertUtcToTimeZone($row['APP_MSG_DATE']);
|
||||
|
||||
// Complete data with information from another tables
|
||||
if ($row['APP_NUMBER'] > 0) {
|
||||
if (!isset($cases[$row['APP_NUMBER']])) {
|
||||
$record = Application::query()->select(['APP_TITLE'])->where('APP_NUMBER', '=', $row['APP_NUMBER'])->get()->toArray();
|
||||
if (!empty($record[0]['APP_TITLE'])) {
|
||||
$cases[$row['APP_NUMBER']] = $record[0]['APP_TITLE'];
|
||||
}
|
||||
}
|
||||
$row['APP_TITLE'] = $cases[$row['APP_NUMBER']] ?? '';
|
||||
}
|
||||
if ($row['PRO_ID'] > 0) {
|
||||
if (!isset($processes[$row['PRO_ID']])) {
|
||||
$record = Process::query()->select(['PRO_TITLE'])->where('PRO_ID', '=', $row['PRO_ID'])->get()->toArray();
|
||||
if (!empty($record[0]['PRO_TITLE'])) {
|
||||
$processes[$row['PRO_ID']] = $record[0]['PRO_TITLE'];
|
||||
}
|
||||
}
|
||||
$row['PRO_TITLE'] = $processes[$row['PRO_ID']] ?? '';
|
||||
}
|
||||
if ($row['TAS_ID'] > 0) {
|
||||
if (!isset($tasks[$row['TAS_ID']])) {
|
||||
$record = Task::query()->select(['TAS_TITLE'])->where('TAS_ID', '=', $row['TAS_ID'])->get()->toArray();
|
||||
if (!empty($record[0]['TAS_TITLE'])) {
|
||||
$tasks[$row['TAS_ID']] = $record[0]['TAS_TITLE'];
|
||||
}
|
||||
}
|
||||
$row['TAS_TITLE'] = $tasks[$row['TAS_ID']] ?? '';
|
||||
}
|
||||
|
||||
switch ($filterBy) {
|
||||
case 'CASES':
|
||||
if ($row['DEL_INDEX'] != 0) {
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
/*
|
||||
* @author: Marco Antonio
|
||||
* Agos 17st, 2012
|
||||
*/
|
||||
new Ext.KeyMap(document, [{
|
||||
key: Ext.EventObject.F5,
|
||||
fn: function(keycode, e) {
|
||||
@@ -35,22 +31,22 @@ Ext.onReady(function(){
|
||||
);
|
||||
var columnRenderer = function(data, metadata, record, rowIndex,columnIndex, store) {
|
||||
if(metadata.id == PMExt.emailConst.taskColumn.name){
|
||||
if((PMExt.emailConst.appMsgTypeWithoutTask.includes(record.data.APP_MSG_TYPE)) || (PMExt.emailConst.appMsgTypeWithConditionalTask.includes(record.data.APP_MSG_TYPE) && record.data.DEL_INDEX == 0)){
|
||||
if (record.data.TAS_ID == '0') {
|
||||
data = PMExt.emailConst.taskColumn.defaultValue;
|
||||
}
|
||||
}
|
||||
if(metadata.id == PMExt.emailConst.caseColumn.name){
|
||||
if(PMExt.emailConst.appMsgTypeWithoutCase.includes(record.data.APP_MSG_TYPE)){
|
||||
if (record.data.APP_NUMBER == '0') {
|
||||
data = PMExt.emailConst.caseColumn.defaultValue;
|
||||
}
|
||||
}
|
||||
if(metadata.id == PMExt.emailConst.processColumn.name){
|
||||
if(PMExt.emailConst.appMsgTypeWithoutProcess.includes(record.data.APP_MSG_TYPE)){
|
||||
if(metadata.id == PMExt.emailConst.processColumn.name) {
|
||||
if (record.data.PRO_ID == '0') {
|
||||
data = PMExt.emailConst.processColumn.defaultValue;
|
||||
}
|
||||
}
|
||||
if(metadata.id == PMExt.emailConst.numberColumn.name){
|
||||
if(PMExt.emailConst.appMsgTypeWithoutNumber.includes(record.data.APP_MSG_TYPE)){
|
||||
if (record.data.APP_NUMBER == '0') {
|
||||
data = PMExt.emailConst.numberColumn.defaultValue;
|
||||
}
|
||||
}
|
||||
@@ -292,8 +288,8 @@ Ext.onReady(function(){
|
||||
{name : 'APP_MSG_UID'},
|
||||
{name : 'APP_UID'},
|
||||
{name : 'DEL_INDEX'},
|
||||
{name : 'PRO_UID'},
|
||||
{name : 'TAS_UID'},
|
||||
{name : 'PRO_ID'},
|
||||
{name : 'TAS_ID'},
|
||||
{name : 'APP_NUMBER'},
|
||||
{name : 'PRO_TITLE'},
|
||||
{name : 'TAS_TITLE'},
|
||||
@@ -350,10 +346,10 @@ Ext.onReady(function(){
|
||||
{id: "TAS_TITLE", header: _('ID_TASK'), dataIndex: 'TAS_TITLE', width: 100, hidden: false,renderer: columnRenderer, sortable: false},
|
||||
{id: "APP_MSG_TYPE", header: _('ID_TYPE'), dataIndex: 'APP_MSG_TYPE', width: 50, hidden: false,renderer: columnRenderer, sortable: true},
|
||||
{id: "APP_MSG_DATE", header: _('ID_DATE_LABEL'), dataIndex: 'APP_MSG_DATE', width: 80, hidden: false, renderer: columnRenderer, sortable: true},
|
||||
{id: "APP_MSG_SUBJECT", header: _('ID_SUBJECT'), dataIndex: 'APP_MSG_SUBJECT', width: 80, hidden: false, renderer: columnRenderer, sortable: true},
|
||||
{id: "APP_MSG_SUBJECT", header: _('ID_SUBJECT'), dataIndex: 'APP_MSG_SUBJECT', width: 80, hidden: false, renderer: columnRenderer, sortable: false},
|
||||
{id: "APP_MSG_FROM", header: _('ID_FROM'), dataIndex: 'APP_MSG_FROM', width: 80, hidden: false,renderer: columnRenderer, sortable: true},
|
||||
{id: "APP_MSG_TO", header: _('ID_TO'), dataIndex: 'APP_MSG_TO', width: 80, hidden: false,renderer: columnRenderer, sortable: true},
|
||||
{id: "APP_MSG_ERROR", header: _('ID_ERROR_EMAIL'), dataIndex: 'APP_MSG_ERROR', width: 80, hidden: false,renderer: columnRenderer, sortable: true},
|
||||
{id: "APP_MSG_ERROR", header: _('ID_ERROR_EMAIL'), dataIndex: 'APP_MSG_ERROR', width: 80, hidden: false,renderer: columnRenderer, sortable: false},
|
||||
|
||||
{
|
||||
header: _('ID_STATUS'),
|
||||
|
||||
Reference in New Issue
Block a user