mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
funcionando la vista papel generico. investiganto ruta del boton añadir. falta poder quitar botones primera col
This commit is contained in:
22
ci4/app/Entities/Configuracion/Imposicion.php
Normal file
22
ci4/app/Entities/Configuracion/Imposicion.php
Normal 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",
|
||||
];
|
||||
}
|
||||
22
ci4/app/Entities/Configuracion/PapelGenerico.php
Normal file
22
ci4/app/Entities/Configuracion/PapelGenerico.php
Normal 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",
|
||||
];
|
||||
}
|
||||
26
ci4/app/Entities/GoBaseEntity.php
Normal file
26
ci4/app/Entities/GoBaseEntity.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user