This commit is contained in:
amazuecos
2024-11-10 19:35:05 +01:00
parent b9a4c7cd8b
commit 294bee54ab
13 changed files with 592 additions and 11684 deletions

View File

@ -2,18 +2,34 @@
namespace App\Controllers\Produccion;
use App\Controllers\BaseController;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
class Ordentrabajo extends BaseController
{
function __construct()
{
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()
{
echo 'Orden trabajo';
// 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()
@ -26,9 +42,14 @@ class Ordentrabajo extends BaseController
}
public function edit()
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()