This commit is contained in:
Dennis Eichhorn 2019-10-12 15:29:54 +02:00
parent 55f89cb385
commit 5840080ee3
8 changed files with 93 additions and 20 deletions

View File

@ -26,7 +26,7 @@
},
"hr_timerecording_session_busy": {
"name": "hr_timerecording_session_busy",
"type": "DATETIME",
"type": "INT",
"null": false
},
"hr_timerecording_session_employee": {

View File

@ -0,0 +1,53 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\HumanResourceTimeRecording
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\HumanResourceTimeRecording\Controller;
use phpOMS\Contract\RenderableInterface;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Views\View;
/**
* TimeRecording controller class.
*
* @package Modules\HumanResourceTimeRecording
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class TimerecordingController extends Controller
{
/**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param mixed $data Generic data
*
* @return RenderableInterface
*
* @since 1.0.0
* @codeCoverageIgnore
*/
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{
$view = new View($this->app, $request, $response);
$view->setTemplate('/Modules/HumanResourceTimeRecording/Theme/Timeterminal/overview');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1006301001, $request, $response));
return $view;
}
}

View File

@ -14,6 +14,8 @@ declare(strict_types=1);
namespace Modules\HumanResourceTimeRecording\Models;
use phpOMS\Contract\ArrayableInterface;
/**
* Session model
*

View File

@ -14,6 +14,8 @@ declare(strict_types=1);
namespace Modules\HumanResourceTimeRecording\Models;
use phpOMS\Contract\ArrayableInterface;
/**
* Session element model
*

View File

@ -13,18 +13,22 @@
declare(strict_types=1);
return ['HumanResourceTimeRecording' => [
'CS0' => 'Start',
'CS1' => 'Pause',
'CS2' => 'Continue',
'CS3' => 'End',
'CT0' => 'Office',
'CT1' => 'Remote',
'CT2' => 'Home',
'CT3' => 'Vacation',
'CT4' => 'Sick',
'CT5' => 'On the move',
'End' => 'End',
'Start' => 'Start',
'Status' => 'Status',
'Type' => 'Type',
'Break' => 'Break',
'CS0' => 'Start',
'CS1' => 'Pause',
'CS2' => 'Continue',
'CS3' => 'End',
'CT0' => 'Office',
'CT1' => 'Remote',
'CT2' => 'Home',
'CT3' => 'Vacation',
'CT4' => 'Sick',
'CT5' => 'On the move',
'Date' => 'Date',
'End' => 'End',
'Recordings' => 'Recordings',
'Start' => 'Start',
'Status' => 'Status',
'Total' => 'Total',
'Type' => 'Type',
]];

View File

@ -64,10 +64,21 @@ echo $this->getData('nav')->render(); ?>
</div>
<div class="col-md-4 col-xs-12">
<section class="box wf-100">
<div class="inner">
</div>
</section>
<div class="box wf-100">
<table id="accountList" class="default">
<caption><?= $this->getHtml('Recordings') ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td><?= $this->getHtml('Date'); ?>
<td><?= $this->getHtml('Start') ?>
<td><?= $this->getHtml('Break') ?>
<td><?= $this->getHtml('End') ?>
<td><?= $this->getHtml('Total') ?>
<tfoot>
<tr><td colspan="5">
<tbody>
</table>
</div>
</div>
</div>

View File

View File

@ -17,7 +17,8 @@
"description": "The administration module.",
"directory": "HumanResourceTimeRecording",
"dependencies": {
"Admin": "1.0.0"
"Admin": "1.0.0",
"HumanResourceManagement": "1.0.0"
},
"providing": {
"Navigation": "*",