mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-02-15 03:08:41 +00:00
template fixes + bug fixes + style fixes
This commit is contained in:
parent
5f42f821fa
commit
fb54903257
|
|
@ -141,7 +141,7 @@ final class BackendController extends Controller
|
|||
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/risk-list');
|
||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
|
||||
|
||||
$risks = RiskMapper::getAll()->execute();
|
||||
$risks = RiskMapper::getAll()->executeGetArray();
|
||||
$view->data['risks'] = $risks;
|
||||
|
||||
return $view;
|
||||
|
|
@ -210,7 +210,7 @@ final class BackendController extends Controller
|
|||
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/cause-list');
|
||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
|
||||
|
||||
$causes = CauseMapper::getAll()->with('risk')->execute();
|
||||
$causes = CauseMapper::getAll()->with('risk')->executeGetArray();
|
||||
$view->data['causes'] = $causes;
|
||||
|
||||
return $view;
|
||||
|
|
@ -258,7 +258,7 @@ final class BackendController extends Controller
|
|||
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/solution-list');
|
||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
|
||||
|
||||
$solutions = SolutionMapper::getAll()->with('risk')->with('cause')->execute();
|
||||
$solutions = SolutionMapper::getAll()->with('risk')->with('cause')->executeGetArray();
|
||||
$view->data['solutions'] = $solutions;
|
||||
|
||||
return $view;
|
||||
|
|
@ -367,7 +367,7 @@ final class BackendController extends Controller
|
|||
$view->data['categories'] = CategoryMapper::getAll()
|
||||
->with('title')
|
||||
->where('title/language', $response->header->l11n->language)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
@ -462,7 +462,7 @@ final class BackendController extends Controller
|
|||
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/process-list');
|
||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
|
||||
|
||||
$processes = ProcessMapper::getAll()->execute();
|
||||
$processes = ProcessMapper::getAll()->executeGetArray();
|
||||
$view->data['processes'] = $processes;
|
||||
|
||||
return $view;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ declare(strict_types=1);
|
|||
namespace Modules\RiskManagement\Models;
|
||||
|
||||
use Modules\Organization\Models\Department;
|
||||
use Modules\Organization\Models\Unit;
|
||||
|
||||
/**
|
||||
* Risk Management class.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ declare(strict_types=1);
|
|||
namespace Modules\RiskManagement\Models;
|
||||
|
||||
use Modules\Organization\Models\DepartmentMapper;
|
||||
use Modules\Organization\Models\UnitMapper;
|
||||
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -88,15 +88,23 @@ class Risk
|
|||
public \DateTimeImmutable $createdAt;
|
||||
|
||||
public float $grossLikelihoodR = 0.0;
|
||||
|
||||
public int $grossLikelihoodLevel = 0;
|
||||
|
||||
public int $grossCostLevel = 0;
|
||||
|
||||
public FloatInt $grossCost;
|
||||
|
||||
public FloatInt $grossExpectedCost;
|
||||
|
||||
public float $netLikelihoodR = 0.0;
|
||||
|
||||
public int $netLikelihoodLevel = 0;
|
||||
|
||||
public int $netCostLevel = 0;
|
||||
|
||||
public FloatInt $netCost;
|
||||
|
||||
public FloatInt $netExpectedCost;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -51,15 +51,23 @@ class RiskHistory
|
|||
public \DateTimeImmutable $createdAt;
|
||||
|
||||
public float $grossLikelihoodR = 0.0;
|
||||
|
||||
public int $grossLikelihoodLevel = 0;
|
||||
|
||||
public int $grossCostLevel = 0;
|
||||
|
||||
public FloatInt $grossCost;
|
||||
|
||||
public FloatInt $grossExpectedCost;
|
||||
|
||||
public float $netLikelihoodR = 0.0;
|
||||
|
||||
public int $netLikelihoodLevel = 0;
|
||||
|
||||
public int $netCostLevel = 0;
|
||||
|
||||
public FloatInt $netCost;
|
||||
|
||||
public FloatInt $netExpectedCost;
|
||||
|
||||
/**
|
||||
|
|
@ -75,7 +83,6 @@ class RiskHistory
|
|||
$this->grossExpectedCost = new FloatInt();
|
||||
$this->netCost = new FloatInt();
|
||||
$this->netExpectedCost = new FloatInt();
|
||||
|
||||
}
|
||||
|
||||
use \Modules\Media\Models\MediaListTrait;
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ final class RiskHistoryMapper extends DataMapperFactory
|
|||
'risk' => [
|
||||
'mapper' => RiskMapper::class,
|
||||
'external' => 'riskmngmt_history_risk',
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ final class RiskMapper extends DataMapperFactory
|
|||
'department' => [
|
||||
'mapper' => DepartmentMapper::class,
|
||||
'external' => 'riskmngmt_risk_department',
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user