PMCORE-3610

This commit is contained in:
Paula Quispe
2021-12-22 16:54:04 -04:00
parent d7a81e4d88
commit 6712fa8404
16 changed files with 373 additions and 17 deletions

View File

@@ -3,11 +3,15 @@
namespace ProcessMaker\BusinessModel\Cases;
use ProcessMaker\Model\Consolidated;
use ProcessMaker\Model\Delegation;
class BatchRouting extends AbstractCases
{
// Columns to see in the cases list
public $columnsView = [];
public $columnsView = [
// Columns view in the cases list
'APP_DELEGATION.APP_NUMBER', // Case #
];
/**
* Get the columns related to the cases list
@@ -37,6 +41,8 @@ class BatchRouting extends AbstractCases
*/
public function getData()
{
$query = Delegation::query()->select($this->getColumnsView());
$this->filters($query);
// todo, the list for consolidated cases was not defined for the new HOME
return [];
}

View File

@@ -7,7 +7,10 @@ use ProcessMaker\Model\Delegation;
class Canceled extends AbstractCases
{
// Columns to see in the cases list
public $columnsView = [];
public $columnsView = [
// Columns view in the cases list
'APP_DELEGATION.APP_NUMBER', // Case #
];
/**
* Get the columns related to the cases list
@@ -37,6 +40,8 @@ class Canceled extends AbstractCases
*/
public function getData()
{
$query = Delegation::query()->select($this->getColumnsView());
$this->filters($query);
// todo, the list for canceled cases was not defined
return [];
}

View File

@@ -7,7 +7,10 @@ use ProcessMaker\Model\Delegation;
class Completed extends AbstractCases
{
// Columns to see in the cases list
public $columnsView = [];
public $columnsView = [
// Columns view in the cases list
'APP_DELEGATION.APP_NUMBER', // Case #
];
/**
* Get the columns related to the cases list
@@ -37,6 +40,8 @@ class Completed extends AbstractCases
*/
public function getData()
{
$query = Delegation::query()->select($this->getColumnsView());
$this->filters($query);
// todo, the list for completed cases was defined in participated
return [];
}