mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
71 lines
1.8 KiB
PHP
Executable File
71 lines
1.8 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Controllers\Produccion;
|
|
use App\Controllers\BaseController;
|
|
use CodeIgniter\HTTP\RequestInterface;
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
|
use Psr\Log\LoggerInterface;
|
|
|
|
class Ordentrabajo extends BaseController
|
|
{
|
|
protected $format = 'json';
|
|
protected array $viewData = [];
|
|
|
|
|
|
protected static $viewPath = 'themes/vuexy/form/produccion/';
|
|
protected static $controllerSlug = "orden-trabajo";
|
|
protected $indexRoute = 'viewOrdenTrabajoList';
|
|
protected $editRoute = 'viewOrdenTrabajoEdit';
|
|
|
|
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
|
|
{
|
|
parent::initController($request, $response, $logger);
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
// Breadcrumbs
|
|
$this->viewData['breadcrumb'] = [
|
|
['title' => lang("App.orden_trabajo"), 'route' => "javascript:void(0);", 'active' => false],
|
|
['title' => "Table", 'route' => site_url('produccion/ordentrabajo'), 'active' => true]
|
|
];
|
|
return view(static::$viewPath . $this->indexRoute, $this->viewData);
|
|
}
|
|
|
|
public function delete()
|
|
{
|
|
|
|
}
|
|
|
|
public function add()
|
|
{
|
|
|
|
}
|
|
|
|
public function edit($orden_trabajo_id)
|
|
{
|
|
// Breadcrumbs
|
|
$this->viewData['breadcrumb'] = [
|
|
['title' => lang("App.orden_trabajo"), 'route' => "javascript:void(0);", 'active' => false],
|
|
['title' => "Table", 'route' => site_url('produccion/ordentrabajo'), 'active' => true]
|
|
];
|
|
return view(static::$viewPath . $this->editRoute, $this->viewData);
|
|
}
|
|
|
|
public function cien()
|
|
{
|
|
echo 'Orden trabajo 100%';
|
|
}
|
|
|
|
public function finalizado()
|
|
{
|
|
echo 'Orden trabajo finalizado';
|
|
}
|
|
|
|
public function pendiente()
|
|
{
|
|
echo 'Orden trabajo pendiente';
|
|
}
|
|
|
|
}
|
|
|