started with template fixes

This commit is contained in:
Dennis Eichhorn 2024-03-29 15:26:00 +00:00
parent f864f4b41f
commit c1b9c04579
48 changed files with 93 additions and 977 deletions

View File

@ -58,6 +58,52 @@
"children": []
}
]
},
{
"id": 1004304001,
"pid": "/",
"type": 2,
"subtype": 1,
"name": "Machines",
"uri": "{/base}/production/machine/list?{?}",
"target": "self",
"icon": null,
"order": 5,
"from": "Production",
"permission": { "permission": 2, "type": null, "element": null },
"parent": 1004301001,
"children": [
{
"id": 1004304101,
"pid": "/production",
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/base}/production/machine/list?{?}",
"target": "self",
"icon": null,
"order": 5,
"from": "Production",
"permission": { "permission": 2, "type": null, "element": null },
"parent": 1004304001,
"children": []
},
{
"id": 1004304201,
"pid": "/production",
"type": 3,
"subtype": 1,
"name": "Create",
"uri": "{/base}/production/machine/create?{?}",
"target": "self",
"icon": null,
"order": 10,
"from": "Production",
"permission": { "permission": 4, "type": null, "element": null },
"parent": 1004304001,
"children": []
}
]
}
]
}

View File

@ -50,4 +50,37 @@ return [
],
],
],
'^.*/production/machine/list(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionMachineList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::MACHINE,
],
],
],
'^.*/production/machine/create(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionMachineCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::MACHINE,
],
],
],
'^.*/production/machine/view(\?.*$|$)' => [
[
'dest' => '\Modules\Production\Controller\BackendController:viewProductionMachineCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::MACHINE,
],
],
],
];

View File

@ -29,4 +29,6 @@ abstract class PermissionState extends Enum
public const PRODUCTION = 1;
public const PROCESS = 2;
public const MACHINE = 3;
}

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -16,4 +16,7 @@ return ['Navigation' => [
'Articles' => 'Artikel',
'Process' => 'Prozess',
'Production' => 'Produktion',
'Machines' => 'Maschinen',
'List' => 'Liste',
'Create' => 'Erstellen',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -16,4 +16,7 @@ return ['Navigation' => [
'Articles' => 'Articles',
'Process' => 'Process',
'Production' => 'Production',
'Machines' => 'Machines',
'List' => 'List',
'Create' => 'Create',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,19 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Navigation' => [
'Articles' => '',
'Process' => '',
'Production' => '',
]];

View File

@ -1,15 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Production
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => []];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -1,29 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Localization
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
return ['Production' => [
'Article' => '',
'Done' => '',
'Due' => '',
'For' => '',
'Name' => '',
'Ordered' => '',
'Orderer' => '',
'Process' => '',
'Product' => '',
'Productions' => '',
'Quantity' => '',
'Start' => '',
'Status' => '',
]];

View File

@ -45,7 +45,7 @@ echo $this->data['nav']->render(); ?>
<?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}business/department/view?{?}&id=' . $value->id); ?>
<tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->id); ?></a>
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getParent()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getUnit()); ?></a>

View File

@ -17,7 +17,11 @@
"description": "Production module.",
"directory": "Production",
"dependencies": {
"Admin": "1.0.0"
"Admin": "1.0.0",
"ItemManagement": "1.0.0",
"SupplierManagement": "1.0.0",
"ClientManagement": "1.0.0",
"EquipmentManagement": "1.0.0"
},
"providing": {
"Navigation": "*"