BUG 10131 "Don't showing the summary and cases notes columns" SOLVED
- Don't showing the summary and cases notes columns when the Enterprise
plugin is enabled (Bug 10131)
- The column labels inbox, draft, etc do not change when you change the
language, this when the Enterprise plugin is enabled (Bug 10101)
- In ADMIN>Settings>CasesList when is load PMTable dropdown always goes
to the inbox tab
- The labels of the columns that are of the system, are now translated
with the set language
- In ADMIN>Settings>CasesList, options have been added to complete/upgrade
the fields of the Cases List
- Before you install/upgrade the Enterprise plugin, you should delete these files:
path_to_processmaker/workflow/engine/templates/cases/casesListSetup.html
path_to_processmaker/workflow/engine/templates/cases/casesListSetup.js
- The Enterprise plugin will work correctly if you have a version of
ProcessMaker 2.0.46 or higher
* Available from version 2.0.46
This commit is contained in:
@@ -47,7 +47,7 @@ class Applications
|
||||
|
||||
//get data configuration
|
||||
$conf = new Configurations();
|
||||
$confCasesList = $conf->getConfiguration( 'casesList', ($action == 'search' || $action == 'simple_search') ? 'sent' : $action );
|
||||
$confCasesList = $conf->getConfiguration("casesList", ($action == "search" || $action == "simple_search")? "search" : $action);
|
||||
$oAppCache->confCasesList = $confCasesList;
|
||||
|
||||
// get the action based list
|
||||
@@ -240,28 +240,49 @@ class Applications
|
||||
}
|
||||
}
|
||||
|
||||
//add the search filter
|
||||
//Add the search filter
|
||||
if ($search != '') {
|
||||
$defaultFields = $oAppCache->getDefaultFields();
|
||||
$oTmpCriteria = '';
|
||||
// if there is PMTABLE for this case list:
|
||||
if (! empty( $oAppCache->confCasesList ) && isset( $oAppCache->confCasesList['PMTable'] ) && trim( $oAppCache->confCasesList['PMTable'] ) != '') {
|
||||
// getting the table name
|
||||
$oAdditionalTables = AdditionalTablesPeer::retrieveByPK( $oAppCache->confCasesList['PMTable'] );
|
||||
$tableName = $oAdditionalTables->getAddTabName();
|
||||
$oNewCriteria = new Criteria( 'workflow' );
|
||||
$counter = 0;
|
||||
foreach ($oAppCache->confCasesList['second']['data'] as $fieldData) {
|
||||
if (! in_array( $fieldData['name'], $defaultFields )) {
|
||||
$fieldName = $tableName . '.' . $fieldData['name'];
|
||||
if ($counter == 0) {
|
||||
$oTmpCriteria = $oNewCriteria->getNewCriterion( $fieldName, '%' . $search . '%', Criteria::LIKE );
|
||||
} else {
|
||||
$oTmpCriteria = $oNewCriteria->getNewCriterion( $fieldName, '%' . $search . '%', Criteria::LIKE )->addOr( $oTmpCriteria );
|
||||
|
||||
//If there is PMTable for this case list
|
||||
if (is_array($oAppCache->confCasesList) && count($oAppCache->confCasesList) > 0 && isset($oAppCache->confCasesList["PMTable"]) && trim($oAppCache->confCasesList["PMTable"]) != "") {
|
||||
//Default configuration fields array
|
||||
$defaultFields = $oAppCache->getDefaultFields();
|
||||
|
||||
//Getting the table name
|
||||
$additionalTableUid = $oAppCache->confCasesList["PMTable"];
|
||||
|
||||
$additionalTable = AdditionalTablesPeer::retrieveByPK($additionalTableUid);
|
||||
$tableName = $additionalTable->getAddTabName();
|
||||
|
||||
$additionalTable = new AdditionalTables();
|
||||
$tableData = $additionalTable->load($additionalTableUid, true);
|
||||
|
||||
$tableField = array();
|
||||
|
||||
foreach ($tableData["FIELDS"] as $arrayField) {
|
||||
$tableField[] = $arrayField["FLD_NAME"];
|
||||
}
|
||||
|
||||
$oNewCriteria = new Criteria("workflow");
|
||||
$sw = 0;
|
||||
|
||||
foreach ($oAppCache->confCasesList["second"]["data"] as $fieldData) {
|
||||
if (!in_array($fieldData["name"], $defaultFields)) {
|
||||
if (in_array($fieldData["name"], $tableField)) {
|
||||
$fieldName = $tableName . "." . $fieldData["name"];
|
||||
|
||||
if ($sw == 0) {
|
||||
$oTmpCriteria = $oNewCriteria->getNewCriterion($fieldName, "%" . $search . "%", Criteria::LIKE);
|
||||
} else {
|
||||
$oTmpCriteria = $oNewCriteria->getNewCriterion($fieldName, "%" . $search . "%", Criteria::LIKE)->addOr($oTmpCriteria);
|
||||
}
|
||||
|
||||
$sw = 1;
|
||||
}
|
||||
$counter ++;
|
||||
}
|
||||
}
|
||||
|
||||
//add the default and hidden DEL_INIT_DATE
|
||||
}
|
||||
|
||||
|
||||
@@ -500,5 +500,334 @@ class Configurations // extends Configuration
|
||||
} else
|
||||
return $this->aConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the default fields and configuration for the cases list
|
||||
*
|
||||
* Return the fields and configuration
|
||||
*
|
||||
* @param string $action Action
|
||||
* @param string $translation Translation
|
||||
* @return array Return the fields and configuration
|
||||
*
|
||||
*/
|
||||
public function casesListDefaultFieldsAndConfig($action, $translation = 1)
|
||||
{
|
||||
$caseColumns = array();
|
||||
$caseReaderFields = array();
|
||||
|
||||
switch ($action) {
|
||||
case "draft":
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => "PreUsrUid", "dataIndex" => "PREVIOUS_USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_DUE_DATE") : "**ID_DUE_DATE**", "dataIndex" => "DEL_TASK_DUE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PRIORITY") : "**ID_PRIORITY**", "dataIndex" => "DEL_PRIORITY", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "paused":
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SENT_BY") : "**ID_SENT_BY**", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 90);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 80);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_THREAD_INDEX") : "**ID_THREAD_INDEX**", "dataIndex" => "APP_THREAD_INDEX", "width" => 80);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_DEL_INDEX") : "**ID_DEL_INDEX**", "dataIndex" => "DEL_INDEX", "width" => 80);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_FIRSTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_LASTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_USERNAME");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_THREAD_INDEX");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "unassigned":
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 40, "align" => "left");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SENT_BY") : "**ID_SENT_BY**", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 90);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_DUE_DATE") : "**ID_DUE_DATE**", "dataIndex" => "DEL_TASK_DUE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 80);
|
||||
//$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_COMPLETED_BY_USER") : "**ID_COMPLETED_BY_USER**", "dataIndex" => "APP_CURRENT_USER", "width" => 110);
|
||||
//$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_FINISH_DATE") : "**ID_FINISH_DATE**", "dataIndex" => "APP_FINISH_DATE", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_FIRSTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_LASTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_USERNAME");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "sent":
|
||||
case "participated":
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => "PreUsrUid", "dataIndex" => "PREVIOUS_USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 80);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_STATUS") : "**ID_STATUS**", "dataIndex" => "APP_STATUS", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_FIRSTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_LASTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_USERNAME");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "search":
|
||||
case "simple_search":
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 100);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => "PreUsrUid", "dataIndex" => "PREVIOUS_USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
//$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SENT_BY") : "**ID_SENT_BY**", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 120 );
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CURRENT_USER") : "**ID_CURRENT_USER**", "dataIndex" => "APP_CURRENT_USER", "width" => 120, "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 80);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_DELEGATION_DATE") : "**ID_DELEGATION_DATE**", "dataIndex" => "DEL_DELEGATE_DATE", "width" => 80);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_DUE_DATE") : "**ID_DUE_DATE**", "dataIndex" => "DEL_TASK_DUE_DATE", "width" => 80);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_STATUS") : "**ID_STATUS**", "dataIndex" => "APP_STATUS", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_DELEGATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "to_revise":
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50,"hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => "PreUsrUid", "dataIndex" => "PREVIOUS_USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SENT_BY") : "**ID_SENT_BY**", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 90);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CURRENT_USER") : "**ID_CURRENT_USER**", "dataIndex" => "APP_CURRENT_USER", "width" => 90, "sortable" => false);
|
||||
//$caseColumns[] = array("header" => "Sent By", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 90);
|
||||
//$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PRIORITY") : "**ID_PRIORITY**", "dataIndex" => "DEL_PRIORITY", "width" => 50);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_STATUS") : "**ID_STATUS**", "dataIndex" => "APP_STATUS", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_FIRSTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_LASTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_USERNAME");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
//$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "to_reassign":
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => "PreUsrUid", "dataIndex" => "PREVIOUS_USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CURRENT_USER") : "**ID_CURRENT_USER**", "dataIndex" => "APP_CURRENT_USER", "width" => 90, "sortable" => false);
|
||||
//$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SENT_BY") : "**ID_SENT_BY**", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 90);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_STATUS") : "**ID_STATUS**", "dataIndex" => "APP_STATUS", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "TAS_UID");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
//$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "gral":
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => "PreUsrUid", "dataIndex" => "PREVIOUS_USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CURRENT_USER") : "**ID_CURRENT_USER**", "dataIndex" => "APP_CURRENT_USER", "width" => 90, "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SENT_BY") : "**ID_SENT_BY**", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 90);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_STATUS") : "**ID_STATUS**", "dataIndex" => "APP_STATUS", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
case "todo":
|
||||
default:
|
||||
//todo
|
||||
$caseColumns[] = array("header" => "#", "dataIndex" => "APP_NUMBER", "width" => 45, "align" => "center");
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SUMMARY") : "**ID_SUMMARY**", "dataIndex" => "CASE_SUMMARY", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASES_NOTES") : "**ID_CASES_NOTES**", "dataIndex" => "CASE_NOTES_COUNT", "width" => 45, "align" => "center", "sortable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_CASE") : "**ID_CASE**", "dataIndex" => "APP_TITLE", "width" => 150);
|
||||
$caseColumns[] = array("header" => "UserUid", "dataIndex" => "USR_UID", "width" => 50, "hidden" => true, "hideable" => false);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PROCESS") : "**ID_PROCESS**", "dataIndex" => "APP_PRO_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_TASK") : "**ID_TASK**", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_SENT_BY") : "**ID_SENT_BY**", "dataIndex" => "APP_DEL_PREVIOUS_USER", "width" => 90);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_DUE_DATE") : "**ID_DUE_DATE**", "dataIndex" => "DEL_TASK_DUE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_LAST_MODIFY") : "**ID_LAST_MODIFY**", "dataIndex" => "APP_UPDATE_DATE", "width" => 110);
|
||||
$caseColumns[] = array("header" => ($translation == 1)? G::LoadTranslation("ID_PRIORITY") : "**ID_PRIORITY**", "dataIndex" => "DEL_PRIORITY", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_UID");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_FIRSTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_LASTNAME");
|
||||
$caseReaderFields[] = array("name" => "PREVIOUS_USR_USERNAME");
|
||||
$caseReaderFields[] = array("name" => "DEL_INDEX");
|
||||
$caseReaderFields[] = array("name" => "APP_NUMBER");
|
||||
$caseReaderFields[] = array("name" => "APP_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_PRO_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_TAS_TITLE");
|
||||
$caseReaderFields[] = array("name" => "APP_DEL_PREVIOUS_USER");
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_CURRENT_USER");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
break;
|
||||
}
|
||||
|
||||
return array("caseColumns" => $caseColumns, "caseReaderFields" => $caseReaderFields, "rowsperpage" => 20, "dateformat" => "M d, Y");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -825,37 +825,47 @@ class AppCacheView extends BaseAppCacheView
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->clearSelectColumns();
|
||||
|
||||
//default configuration fields array
|
||||
//Default configuration fields array
|
||||
$defaultFields = $this->getDefaultFields();
|
||||
|
||||
//if there is PMTABLE for this case list:
|
||||
if (!empty($this->confCasesList) &&
|
||||
isset($this->confCasesList['PMTable']) &&
|
||||
trim($this->confCasesList['PMTable']) != ''
|
||||
) {
|
||||
//getting the table name
|
||||
$oAdditionalTables = AdditionalTablesPeer::retrieveByPK($this->confCasesList['PMTable']);
|
||||
$tableName = $oAdditionalTables->getAddTabName();
|
||||
//If there is PMTable for this case list
|
||||
if (is_array($this->confCasesList) && count($this->confCasesList) > 0 && isset($this->confCasesList["PMTable"]) && trim($this->confCasesList["PMTable"]) != "") {
|
||||
//Getting the table name
|
||||
$additionalTableUid = $this->confCasesList["PMTable"];
|
||||
|
||||
foreach ($this->confCasesList['second']['data'] as $fieldData) {
|
||||
if (!in_array($fieldData['name'],$defaultFields)) {
|
||||
$fieldName = $tableName . '.' . $fieldData['name'];
|
||||
$oCriteria->addSelectColumn($fieldName);
|
||||
} else {
|
||||
switch ($fieldData['fieldType']) {
|
||||
case 'case field':
|
||||
$configTable = 'APP_CACHE_VIEW';
|
||||
$additionalTable = AdditionalTablesPeer::retrieveByPK($additionalTableUid);
|
||||
$tableName = $additionalTable->getAddTabName();
|
||||
|
||||
$additionalTable = new AdditionalTables();
|
||||
$tableData = $additionalTable->load($additionalTableUid, true);
|
||||
|
||||
$tableField = array();
|
||||
|
||||
foreach ($tableData["FIELDS"] as $arrayField) {
|
||||
$tableField[] = $arrayField["FLD_NAME"];
|
||||
}
|
||||
|
||||
foreach ($this->confCasesList["second"]["data"] as $fieldData) {
|
||||
if (in_array($fieldData["name"], $defaultFields)) {
|
||||
switch ($fieldData["fieldType"]) {
|
||||
case "case field":
|
||||
$configTable = "APP_CACHE_VIEW";
|
||||
break;
|
||||
case 'delay field':
|
||||
$configTable = 'APP_DELAY';
|
||||
case "delay field":
|
||||
$configTable = "APP_DELAY";
|
||||
break;
|
||||
default:
|
||||
$configTable = 'APP_CACHE_VIEW';
|
||||
$configTable = "APP_CACHE_VIEW";
|
||||
break;
|
||||
}
|
||||
|
||||
$fieldName = $configTable . '.' . $fieldData['name'];
|
||||
$fieldName = $configTable . "." . $fieldData["name"];
|
||||
$oCriteria->addSelectColumn($fieldName);
|
||||
} else {
|
||||
if (in_array($fieldData["name"], $tableField)) {
|
||||
$fieldName = $tableName . "." . $fieldData["name"];
|
||||
$oCriteria->addSelectColumn($fieldName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -868,23 +878,25 @@ class AppCacheView extends BaseAppCacheView
|
||||
|
||||
return $oCriteria;
|
||||
} else {
|
||||
//else this list do not have a PM Table
|
||||
if (is_array($this->confCasesList) && !empty($this->confCasesList['second']['data'])) {
|
||||
foreach ($this->confCasesList['second']['data'] as $fieldData) {
|
||||
switch ($fieldData['fieldType']) {
|
||||
case 'case field':
|
||||
$configTable = 'APP_CACHE_VIEW';
|
||||
break;
|
||||
case 'delay field':
|
||||
$configTable = 'APP_DELAY';
|
||||
break;
|
||||
default:
|
||||
$configTable = 'APP_CACHE_VIEW';
|
||||
break;
|
||||
}
|
||||
//This list do not have a PMTable
|
||||
if (is_array($this->confCasesList) && count($this->confCasesList["second"]["data"]) > 0) {
|
||||
foreach ($this->confCasesList["second"]["data"] as $fieldData) {
|
||||
if (in_array($fieldData["name"], $defaultFields)) {
|
||||
switch ($fieldData["fieldType"]) {
|
||||
case "case field":
|
||||
$configTable = "APP_CACHE_VIEW";
|
||||
break;
|
||||
case "delay field":
|
||||
$configTable = "APP_DELAY";
|
||||
break;
|
||||
default:
|
||||
$configTable = "APP_CACHE_VIEW";
|
||||
break;
|
||||
}
|
||||
|
||||
$fieldName = $configTable . '.' . $fieldData['name'];
|
||||
$oCriteria->addSelectColumn($fieldName);
|
||||
$fieldName = $configTable . "." . $fieldData["name"];
|
||||
$oCriteria->addSelectColumn($fieldName);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//foreach ($defaultFields as $field) {
|
||||
|
||||
Reference in New Issue
Block a user