Configurando logica de captacion del Excel

This commit is contained in:
unknown
2025-04-27 09:16:15 +02:00
parent ae456c8890
commit ff115f4f20
4 changed files with 129 additions and 40 deletions

View File

@ -45,7 +45,7 @@ class ImportadorCatalogo extends BaseResourceController
$viewData = [
'currentModule' => static::$controllerSlug,
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Catalogo.catalogo')]),
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Importador.importadorCatalogoTitle')]),
'catalogoLibrosEntity' => new CatalogoLibroEntity(),
'usingServerSideDataTable' => true,

View File

@ -1,18 +1,21 @@
<?php
return [
'moduleTitle' => 'Importador desde catálogo',
'listingPage' => 'Listado de libros',
'catalogo' => 'catálogo',
'libro' => 'libro',
'moduleTitle' => 'Importadores',
'importadorCatalogoTitle' => 'Importador desde catálogo',
'catalogo' => 'catálogo',
'input' => 'ISBN',
'descripcion' => 'Título',
'idlinea' => 'Ref. cliente',
'cnt_pedida' => 'Unidades',
'precio_compra' => 'Precio Compra',
'libro' => 'libro',
'id' => 'ID',
'clienteId' => 'Cliente',
'cliente' => 'Cliente',
'proveedorId' => 'Proveedor',
'userCreatedId' => 'Usuario Creador',
'userUpdateId' => 'Usuario Actualizador',
'cubiertaArchivo' => 'Archivo de Cubierta',
'cubiertaUrl' => 'URL de Cubierta',
'portada' => 'Portada',
'ancho' => 'Ancho',
'alto' => 'Alto',
@ -63,7 +66,7 @@ return [
'createdAt' => 'Fecha de Creación',
'updatedAt' => 'Fecha de Actualización',
'deletedAt' => 'Fecha de Eliminación',
'catalogoLibro' => 'Libro',
'catalogoLibroList' => 'Lista de Libros',
'datosGenerales' => 'Datos generales del libro',
@ -71,5 +74,5 @@ return [
'configuracionLibro' => 'Configuración del libro',
'ficherosLibro' => 'Ficheros',
'created_by_at' => 'Creado:',
'updated_by_at' => 'Actualizado:',
'updated_by_at' => 'Actualizado:',
];

View File

@ -8,7 +8,7 @@
<div class="card card-info">
<div class="card-header">
<h3 class="card-title"><?= lang('Importador.listingPage') ?></h3>
<h3 class="card-title"><?= lang('Importador.importadorCatalogoTitle') ?></h3>
</div><!--//.card-header -->
<div class="card-body">
<?= view('themes/_commonPartialsBs/_alertBoxes'); ?>
@ -19,18 +19,27 @@
<br>
<button id="importBtn">Importar</button>
<table id="excelTable" class="display">
<table id="excelTable" class="table table-striped table-hover" style="width: 100%;">
<thead>
<tr>
<th>cnt_pedida</th>
<th>precio_compra</th>
<th>idlinea</th>
<th>input</th>
<th>descripcion</th>
<th>Acción</th>
<th><?= lang('Importador.input') ?></th>
<th><?= lang('Importador.idlinea') ?></th>
<th><?= lang('Importador.descripcion') ?></th>
<th><?= lang('Importador.cnt_pedida') ?></th>
<th><?= lang('Importador.precio_compra') ?></th>
<th class="text-nowrap" style="min-width: 85px;"><?= lang('Basic.global.Action') ?></th>
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>