funcionando la vista papel generico. investiganto ruta del boton añadir. falta poder quitar botones primera col

This commit is contained in:
Jaime Jimenez
2023-05-22 20:47:18 +02:00
parent 0ddd37b0c5
commit 3774573829
8 changed files with 720 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<?php
namespace App\Entities\Configuracion;
use CodeIgniter\Entity;
class Imposicion extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"ancho" => null,
"alto" => null,
"unidades" => null,
"orientacion" => null,
"maquina" => null,
"etiqueta" => null,
];
protected $casts = [
"ancho" => "int",
"alto" => "int",
"unidades" => "?int",
];
}

View File

@ -0,0 +1,22 @@
<?php
namespace App\Entities\Configuracion;
use CodeIgniter\Entity;
class PapelGenerico extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"nombre" => null,
"code" => null,
"code_ot" => null,
"show_in_client" => true,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"show_in_client" => "boolean",
"is_deleted" => "int",
];
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\Entities;
/**
* Base Entity Class for providing common methods to all child entities
*
* @author Gökhan Ozar
*/
abstract class GoBaseEntity extends \CodeIgniter\Entity\Entity
{
/**
* Merges the current object's property values with the passed in arguments in array format
*
* @param array $args - an associative array of properties to be set
* @return $this - returns the current object instance
*/
public function mergeAttributes(array $args = []) {
foreach ($args as $key => $value) {
if (isset($this->attributes[$key])) {
$this->attributes[$key] = $value;
}
}
return $this;
}
}