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