data['nav']->render(); ?>
getHtml('TopRisks'); ?>download
data['toprisks'] as $key => $value) : ++$c; $url = \phpOMS\Uri\UriFactory::build('{/base}/controlling/riskmanagement/risk/view?{?}&id=' . $value->id); ?>
getHtml('Severity'); ?> getHtml('Name'); ?> getHtml('Department'); ?> getHtml('Category'); ?> getHtml('Process'); ?> getHtml('Project'); ?>
getCurrency($value->netExpectedCost, symbol: '', format: 'medium'); ?> printHtml($value->name); ?> printHtml($value->department->name); ?> printHtml($value->category?->getL11n()); ?> printHtml($value->process?->title); ?> printHtml($value->project?->name); ?>
getHtml('Empty', '0', '0'); ?>
getHtml('Statistics'); ?>
getHtml('Risks'); ?> where('unit', $this->data['unit']) ->where('status', RiskStatus::ACTIVE) ->executeCount(); ?>
getHtml('Causes'); ?> with('risk') ->where('risk/unit', $this->data['unit']) ->executeCount(); ?>
getHtml('Solutions'); ?> with('risk') ->where('risk/unit', $this->data['unit']) ->executeCount(); ?>
getHtml('Departments'); ?> where('unit', $this->data['unit']) ->executeCount(); ?>
getHtml('Categories'); ?> executeCount(); ?>
getHtml('Processes'); ?> where('unit', $this->data['unit']) ->executeCount(); ?>
getHtml('Projects'); ?> where('unit', $this->data['unit']) ->executeCount(); ?>
data['risks'])) : ?>
getHtml('Net'); ?>download
name; }, $this->data['risks'])) . '"'; ?> ], "datasets": [{ "data": [ data['risks'] as $risk) { $temp[] = '{"x": ' . ($risk->netCostLevel + \mt_rand(-100, 100) / 300) . ', "y": ' . ($risk->netLikelihoodLevel + \mt_rand(-100, 100) / 300) . '}'; } ?> ], "yAxisID": "axis1", "xAxisID": "axis2", "backgroundColor": "rgb(54, 162, 235)" }] }, "options": { "responsive": true, "aspectRatio": 1, "scales": { "axis1": { "id": "axis1", "display": true, "position": "left", "min": 1, "max": 5, "ticks": { "stepSize": 1 }, "title": { "display": true, "text": "getHtml('Likelihood'); ?>" }, "offset": true, "grid": { "offset": true } }, "axis2": { "id": "axis2", "display": true, "min": 1, "max": 5, "ticks": { "stepSize": 1 }, "title": { "display": true, "text": "getHtml('Severity'); ?>" }, "offset": true, "grid": { "offset": true } } }, "plugins": { "legend": { "display": false } } } }'>
getHtml('Gross'); ?>download
name; }, $this->data['risks'])) . '"'; ?> ], "datasets": [{ "data": [ data['risks'] as $risk) { $temp[] = '{"x": ' . ($risk->grossCostLevel + \mt_rand(-100, 100) / 300) . ', "y": ' . ($risk->grossLikelihoodLevel + \mt_rand(-100, 100) / 300) . '}'; } ?> ], "yAxisID": "axis1", "xAxisID": "axis2", "backgroundColor": "rgb(54, 162, 235)" }] }, "options": { "responsive": true, "aspectRatio": 1, "scales": { "axis1": { "id": "axis1", "display": true, "position": "left", "min": 1, "max": 5, "ticks": { "stepSize": 1 }, "title": { "display": true, "text": "getHtml('Likelihood'); ?>" }, "offset": true, "grid": { "offset": true } }, "axis2": { "id": "axis2", "display": true, "min": 1, "max": 5, "ticks": { "stepSize": 1 }, "title": { "display": true, "text": "getHtml('Severity'); ?>" }, "offset": true, "grid": { "offset": true } } }, "plugins": { "legend": { "display": false } } } }'>
data['history'])) : ?>
getHtml('History'); ?>download
], "datasets": [{ "label": "Costs", "type": "line", "data": [ data['history'] as $history) { $temp[] = $history['net_costs'] / FloatInt::DIVISOR; } ?> ], "yAxisID": "axis1", "backgroundColor": "rgb(54, 162, 235)" }] }, "options": { "responsive": true, "scales": { "axis1": { "id": "axis1", "display": true, "position": "left", "suggestedMin": 0, "ticks": { "precision": 0 } } }, "plugins": { "legend": { "display": false } } } }'>
data['stats-departments'])) : ?>
getHtml('Departments'); ?>download
data['stats-departments'])) . '"'; ?> ], "datasets": [{ "label": "Costs", "type": "bar", "data": [ data['stats-departments'] as $department) { $costs = 0; foreach ($department as $risk) { $costs += $risk->netExpectedCost->value; } $temp[] = $costs / FloatInt::DIVISOR; } ?> ], "yAxisID": "axis1", "backgroundColor": "rgb(54, 162, 235)" }] }, "options": { "responsive": true, "scales": { "axis1": { "id": "axis1", "display": true, "position": "left", "suggestedMin": 0, "ticks": { "precision": 0 } } }, "plugins": { "legend": { "display": false } } } }'>
data['stats-categories'])) : ?>
getHtml('Categories'); ?>download
data['stats-categories'])) . '"'; ?> ], "datasets": [{ "label": "Costs", "type": "bar", "data": [ data['stats-categories'] as $category) { $costs = 0; foreach ($category as $risk) { $costs += $risk->netExpectedCost->value; } $temp[] = $costs / FloatInt::DIVISOR; } ?> ], "yAxisID": "axis1", "backgroundColor": "rgb(54, 162, 235)" }] }, "options": { "responsive": true, "scales": { "axis1": { "id": "axis1", "display": true, "position": "left", "suggestedMin": 0, "ticks": { "precision": 0 } } }, "plugins": { "legend": { "display": false } } } }'>
data['stats-departments'])) : ?>
getHtml('Departments'); ?>download
data['stats-departments'])) . '"'; ?> ], "datasets": [{ "data": [ data['stats-departments'] as $department) { $temp[] = \count($department); } ?> ], "backgroundColor": [ "#3498db", "#2ecc71", "#9b59b6", "#f1c40f", "#1abc9c", "#34495e", "#e74c3c", "#e67e22", "#ecf0f1", "#95a5a6", "#16a085", "#2980b9", "#8e44ad", "#2c3e50", "#27ae60", "#f39c12" ] }] }, "options": { "responsive": true, "plugins": { "legend": { "display": true } } } }'>
data['stats-categories'])) : ?>
getHtml('Categories'); ?>download
data['stats-categories'])) . '"'; ?> ], "datasets": [{ "data": [ data['stats-categories'] as $category) { $temp[] = \count($category); } ?> ], "backgroundColor": [ "#3498db", "#2ecc71", "#9b59b6", "#f1c40f", "#1abc9c", "#34495e", "#e74c3c", "#e67e22", "#ecf0f1", "#95a5a6", "#16a085", "#2980b9", "#8e44ad", "#2c3e50", "#27ae60", "#f39c12" ] }] }, "options": { "responsive": true, "plugins": { "legend": { "display": true } } } }'>