mirror of
https://github.com/Karaka-Management/oms-HumanResourceTimeRecording.git
synced 2026-01-23 17:28:41 +00:00
fix bugs
This commit is contained in:
parent
55f89cb385
commit
5840080ee3
|
|
@ -26,7 +26,7 @@
|
|||
},
|
||||
"hr_timerecording_session_busy": {
|
||||
"name": "hr_timerecording_session_busy",
|
||||
"type": "DATETIME",
|
||||
"type": "INT",
|
||||
"null": false
|
||||
},
|
||||
"hr_timerecording_session_employee": {
|
||||
|
|
|
|||
53
Controller/TimerecordingController.php
Normal file
53
Controller/TimerecordingController.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
|
@ -14,6 +14,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\HumanResourceTimeRecording\Models;
|
||||
|
||||
use phpOMS\Contract\ArrayableInterface;
|
||||
|
||||
/**
|
||||
* Session model
|
||||
*
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\HumanResourceTimeRecording\Models;
|
||||
|
||||
use phpOMS\Contract\ArrayableInterface;
|
||||
|
||||
/**
|
||||
* Session element model
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
0
Theme/Timeterminal/overview.tpl.php
Normal file
0
Theme/Timeterminal/overview.tpl.php
Normal file
Loading…
Reference in New Issue
Block a user