mirror of
https://github.com/Karaka-Management/oms-Production.git
synced 2026-02-03 15:58:40 +00:00
phpcs autofixes
This commit is contained in:
parent
e253e2e8d7
commit
139db356e6
|
|
@ -8,45 +8,45 @@ use phpOMS\Router\RouteVerb;
|
|||
return [
|
||||
'^.*/production/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::MODULE_NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::PRODUCTION,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::PRODUCTION,
|
||||
],
|
||||
],
|
||||
],
|
||||
'^.*/production/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::MODULE_NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
'state' => PermissionState::PRODUCTION,
|
||||
'type' => PermissionType::CREATE,
|
||||
'state' => PermissionState::PRODUCTION,
|
||||
],
|
||||
],
|
||||
],
|
||||
'^.*/production/process/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::MODULE_NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::PROCESS,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::PROCESS,
|
||||
],
|
||||
],
|
||||
],
|
||||
'^.*/production/process/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::MODULE_NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
'state' => PermissionState::PROCESS,
|
||||
'type' => PermissionType::CREATE,
|
||||
'state' => PermissionState::PROCESS,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
abstract class PermissionState extends Enum
|
||||
{
|
||||
public const PRODUCTION = 1;
|
||||
|
||||
public const PROCESS = 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,22 +29,22 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="default">
|
||||
<caption><?= $this->getHtml('Productions') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<caption><?= $this->getHtml('Productions'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getHtml('Status') ?>
|
||||
<td><?= $this->getHtml('Status'); ?>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Article') ?>
|
||||
<td><?= $this->getHtml('Quantity') ?>
|
||||
<td><?= $this->getHtml('Start') ?>
|
||||
<td><?= $this->getHtml('Due') ?>
|
||||
<td><?= $this->getHtml('Done') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Article'); ?>
|
||||
<td><?= $this->getHtml('Quantity'); ?>
|
||||
<td><?= $this->getHtml('Start'); ?>
|
||||
<td><?= $this->getHtml('Due'); ?>
|
||||
<td><?= $this->getHtml('Done'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="8">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ([] as $key => $value) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}business/department/profile?{?}&id=' . $value->getId()); ?>
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}business/department/profile?{?}&id=' . $value->getId()); ?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user