# Mapa Arquitectónico Integral de la Aplicación AGRIGEST (Delphi XE3 & ZeosLib)

## 1. Resumen Ejecutivo de Arquitectura

**AGRIGEST** es una solución integral de Planificación de Recursos Empresariales (ERP) de ámbito agro-industrial de alto rendimiento, diseñada para la gestión técnica agronómica de fincas (cuadernos de campo CUE/SIEX y tratamientos fitosanitarios), recepción y pesaje en báscula industrial, trazabilidad completa de producto hortofrutícola, confección y empaquetado en almacén, control de calidad bajo estándares internacionales (IFS Food / BRC / GlobalGAP), gestión de recursos humanos con captura de firma digital en tableta Wacom STU, compras a proveedores y extracción inteligente de facturas PDF mediante IA, facturación comercial y cumplimiento riguroso de la normativa fiscal **VERI*FACTU** de la AEAT con encadenamiento SHA-256.

### Parámetros Tecnológicos del Sistema

| Parámetro | Especificación | Detalle Técnico |
| :--- | :--- | :--- |
| **Entorno de Desarrollo** | **Delphi XE3 (Win32 VCL)** | Compilador nativo Win32, sintaxis Pascal clásica (variables en sección `var`). |
| **Motor de Base de Datos** | **MariaDB / MySQL 10.4+ (InnoDB)** | Transaccional, integridad referencial, collation `latin1_spanish_ci` / `utf8mb4`. |
| **Nombre de Base de Datos** | `agrigest` | Instancia de producción y desarrollo. |
| **Esquema SQL Maestro** | [`agrigest_struc-2.sql`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/agrigest_struc-2.sql) | **189 tablas y vistas** (143 tablas InnoDB + 46 vistas). |
| **Diccionario de Datos** | [`.agents/assets/db.dictionary.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/assets/db.dictionary.md) | Diccionario de tablas, claves primarias/foráneas y tipos. |
| **Capa de Persistencia** | **ZeosLib 7.x** | `TZConnection`, `TZQuery`, `TZReadOnlyQuery`, `TZTable`, `TZUpdateSQL`. |
| **Restricción Crítica** | **Delphi XE3 NO soporta FireDAC** | Prohibido el uso de unidades `FireDAC.*` o componentes `TFD*`. |
| **Generador de Informes** | **FastReport 4 / 5** | `frxClass`, `frxDBSet`, `frxExportPDF`, `frxBarcode`, plantillas `.fr3`. |
| **Comunicaciones de Red** | **Indy 10 + WhatsApp** | `TIdSMTP`, `TIdSSLIOHandlerSocketOpenSSL`, `TIdFTP` y despacho WhatsApp. |
| **Criptografía / VERI*FACTU**| **Windows CryptoAPI Win32** | [`Wincrypt.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/Wincrypt.pas), [`uVerifactuCrypto.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uVerifactuCrypto.pas), [`fuverifactuhasher.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fuverifactuhasher.pas), [`CertificateManager.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/CertificateManager.pas). |
| **Hardware Integrado** | **Wacom SDK + Básculas RS232** | Tableta Wacom STU ([`wgssSTU_TLB.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/wgssSTU_TLB.pas), [`SignatureForm.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/SignatureForm.pas)), Básculas de pesaje digital ([`fbasculas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fbasculas.pas)). |
| **Inteligencia Artificial** | **Extracción de Facturas IA** | [`uIAInvoiceExtractor.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uIAInvoiceExtractor.pas) para parsing automático de facturas de proveedores. |
| **Framework de Interfaz** | **VCL Responsive Líquido** | [`TfrmBase`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uBaseForm.pas) con auto-escalado responsive [`uUIAutoScaler.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uUIAutoScaler.pas). |
| **Métricas de Código** | **100% Cobertura de Inventario** | **124 Unidades Pascal (`.pas`)**, **115 Formularios VCL (`.dfm`)**, **125 Workflows (`.md`)**. |
| **Grounding / Cuaderno IA** | **NotebookLM** | Cuaderno de referencia técnica: **`documentacion delphi xe3`**. |

---

## 2. Diagrama Arquitectónico Global del Sistema

```mermaid
graph TD
    subgraph Capa_UI["Capa de Presentación VCL (Delphi XE3)"]
        BaseForm["TfrmBase (uBaseForm.pas)"]
        AutoScaler["uUIAutoScaler (Escalado Responsive Dinámico)"]
        Principal["TBASE - Dashboard Principal MDI (principal.pas)"]
        
        FormsD01["01. Fitosanitarios & Cuaderno (12 Módulos)"]
        FormsD02["02. Recolección & Trazabilidad (18 Módulos)"]
        FormsD03["03. Ventas & Facturación VERI*FACTU (21 Módulos)"]
        FormsD04["04. Compras & Entradas Proveedores (12 Módulos)"]
        FormsD05["05. RRHH, Presencia & Nóminas (20 Módulos)"]
        FormsD06["06. Calidad IFS & Seguridad Alimentaria (12 Módulos)"]
        FormsD07["07. Maestros, Almacén & Seguridad (28 Módulos)"]
        
        AutoScaler --> BaseForm
        BaseForm --> FormsD01
        BaseForm --> FormsD02
        BaseForm --> FormsD03
        BaseForm --> FormsD04
        BaseForm --> FormsD05
        BaseForm --> FormsD06
        BaseForm --> FormsD07
        Principal --> FormsD01 & FormsD02 & FormsD03 & FormsD04 & FormsD05 & FormsD06 & FormsD07
    end

    subgraph Capa_Logica["Capa de Negocio, Integraciones y Servicios"]
        Crypto["CryptoAPI SHA-256 Encadenado (Wincrypt / uVerifactuCrypto / fuverifactuhasher)"]
        CertMgr["Gestión Certificados X.509 AEAT (CertificateManager)"]
        Comms["Envío Documentos Email Indy & WhatsApp (uEmailWhatsApp / uEnviarDocumento / uConfigEmail)"]
        FastRep["Motor de Informes FastReport (.fr3 / frxClass / frxExportPDF)"]
        Wacom["SDK Wacom STU (wgssSTU_TLB / SignatureForm / DemoButtonsForm)"]
        AI["Extracción Facturas Proveedores IA (uIAInvoiceExtractor)"]
        WebHelpers["Utilidades HTTP y Criptográficas (webutils / funciones / ffunciones)"]
    end

    subgraph Capa_Datos["Capa de Persistencia y Acceso a Datos (ZeosLib 7.x)"]
        DM["TDM (datos.pas - Conexión Central DBagrigest)"]
        DMNominas["TDMNominas (datosnominas.pas)"]
        DMProduccion["Tdmproduccion (datosproduccion.pas)"]
        DMClientes["Tdmclientes (datosclientes.pas / datosclientesUnit1.pas)"]
        DMTraza["Tdmtr (datostrazabilidad2.pas / datostrazabilidad.pas)"]
        DMEstadisticas["TDMEstadisticas (datosestadisticas.pas)"]
        DM3["dm3 (dm3.pas - DataModule Auxiliar)"]
    end

    subgraph Capa_BD["Servidor MySQL / MariaDB (InnoDB)"]
        DB[("Base de Datos: agrigest (189 Tablas / Vistas)")]
    end

    Capa_UI --> Capa_Logica
    Capa_UI --> Capa_Datos
    Capa_Logica --> Capa_Datos
    Capa_Datos --> DB
```

---

## 3. Matriz Exhaustiva de DataModules y Conexión de Datos

Todos los DataModules residen en la capa de persistencia y utilizan exclusivamente componentes ZeosLib 7.x enlazados a la conexión global `DM.DBagrigest` (`TZConnection`).

| DataModule | Archivo Fuente | Clase Delphi | Responsabilidad y Procesos Principales | Tablas y Vistas BD Clave |
| :--- | :--- | :--- | :--- | :--- |
| **`TDM`** | [`datos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datos.pas) | `TDM` | **Conexión Central `DBagrigest` (`TZConnection`)**, configuración de empresa activa, notas del sistema, calendario laboral y festivos, cuentas bancarias de la sociedad, gestión de sesiones, logins y validaciones de seguridad. | `empresa`, `notas`, `calendario_laboral`, `cuentas_bancarias`, `usuarios`, `logins`, `contadores`, `formatosimpresion` |
| **`Tdmproduccion`** | [`datosproduccion.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosproduccion.pas) | `Tdmproduccion` | Control de producción diaria en central hortofrutícola, rendimiento de mesas de confección, líneas de envasado, partes de trabajo diarios y cálculo de productividad por hora y operario. | `produccion`, `v_produccion`, `v_produccionmesas`, `v_produccionmesahora`, `movimiento_mesas`, `sectores_mesas` |
| **`TDMNominas`** | [`datosnominas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosnominas.pas) | `TDMNominas` | Liquidación de jornales agrícolas, gestión de anticipos, nóminas, bases de cotización a la Seguridad Social (Régimen Agrario y General) y retenciones IRPF. | `nominas`, `nominasdetalle`, `prenominas`, `anticipos`, `trabajadores`, `regimenes_cotizacion` |
| **`Tdmclientes`** | [`datosclientes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosclientes.pas) | `Tdmclientes` | Maestro de clientes comerciales, condiciones de venta, tarifas personalizadas por artículo/formato, destinos y plataformas logísticas de entrega, y gestión de pedidos de venta. | `clientes`, `clientes_destinos`, `clientes_pedidos`, `clientes_articulos`, `clientes_formatos`, `formas_pago` |
| **`Tdmtr`** | [`datostrazabilidad2.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datostrazabilidad2.pas) | `Tdmtr` | Motor de trazabilidad integral: árbol genealógico que relaciona las pesadas de entrada de fruta cosechada en campo con los lotes confeccionados y las líneas de albaranes expedidos. | `lotes`, `lotes_pesadas`, `ea_pesadas`, `ea_materiales`, `lotes_tmp`, `ea_pesadas_local` |
| **`TDMEstadisticas`** | [`datosestadisticas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosestadisticas.pas) | `TDMEstadisticas` | Cuadros de mando, balances de ventas, estadísticas de producción por variedad, análisis de kilos por parcela/productor y gráficos de evolución comercial. | `albaranes`, `facturas`, `ea_pesadas`, `produccion`, `vista_balanceventas`, `v_cosechadia` |
| **`dm3`** | [`dm3.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/dm3.pas) | `Tdm3` | DataModule auxiliar para reporting especializado, consultas de soporte y generación de documentos consolidados. | `empresa`, `albaranes`, `articulos`, `materias_primas` |
| **`TDMTr2` (Legacy)**| [`datostrazabilidad.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datostrazabilidad.pas) | `TDMTr2` | DataModule auxiliar de compatibilidad con estructuras previas de trazabilidad y gestión documental de lotes. | `campanyas`, `lotes`, `documentos_tmp` |
| **`Tdmclientes` (Aux)**| [`datosclientesUnit1.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosclientesUnit1.pas) | `Tdmclientes` | Unidad auxiliar de interfaz de datos de clientes para desacoplamiento modular. | `clientes`, `clientes_pedidos` |

---

## 4. Dominios Funcionales de AGRIGEST

El sistema ERP se encuentra organizado modularmente en **7 grandes dominios funcionales**, interconectados para asegurar la coherencia técnica y operativa desde la finca agrícola hasta la entrega comercial y la contabilidad.

```mermaid
graph TD
    D01["01. Fitosanitarios, Tratamientos & Cuadernos"] --> D02["02. Recolección, Pesadas & Trazabilidad"]
    D02 --> D06["06. Calidad IFS & Seguridad Alimentaria"]
    D02 --> D03["03. Ventas, Facturación & VERI*FACTU"]
    D04["04. Compras, Proveedores & Entradas"] --> D02
    D05["05. RRHH, Jornadas & Nóminas"] --> D02
    D07["07. Maestros, Almacenes & Comunicaciones"] --> D01
    D07 --> D02
    D07 --> D03
    D07 --> D04
    D07 --> D05
    D07 --> D06
```

### Resumen de Dominios Funcionales

| ID | Dominio Funcional | Módulos | Documento Detallado | Módulos y Unidades Principales | Tablas BD Clave |
| :---: | :--- | :---: | :--- | :--- | :--- |
| **01** | **Fitosanitarios, Tratamientos y Cuadernos** | **12** | [Dominio 01](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/domains/01_fitosanitarios_tratamientos_cuadernos.md) | `ftratamientosbase`, `ftratamientos`, `fcargastratamientos`, `fgenerartratamientos`, `fcuadernos`, `fproductosfitosanitarios`, `fconsumosfito`, `fconsumosfitoparcelas`, `fselecparcelas`, `fboquillas`, `fvehiculos`, `fmeteorologia` | `tratamientos`, `tratamientos_detalle`, `tratamientos_cargas`, `tratamientos_base`, `tratamientoscuaderno`, `productos_fitosanitarios`, `parcelas`, `boquillas`, `condiciones_meteorologicas` |
| **02** | **Recolección, Pesadas y Trazabilidad** | **18** | [Dominio 02](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/domains/02_recoleccion_pesadas_trazabilidad.md) | `pesadas`, `fenvasadoscampo`, `fDirectasCampo`, `fmaterialespesada`, `fmateriales_pendientes`, `fenvases_almacen`, `fcontrolstock`, `fstockalmacen`, `frecalculostock`, `fcontrolproduccion`, `fcostesrestos`, `ftraza_materiales`, `ftraza_materiales2`, `datostrazabilidad2`, `datostrazabilidad`, `datosproduccion`, `fcontrolminimos`, `fechacierre` | `ea_pesadas`, `pesadas`, `lotes`, `lotes_pesadas`, `ea_materiales`, `control_stock`, `control_produccion`, `produccion`, `movimiento_mesas`, `materias_primas`, `restos_dia` |
| **03** | **Ventas, Facturación y VERI*FACTU** | **21** | [Dominio 03](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/domains/03_ventas_facturacion_verifactu.md) | `fpedidos`, `fselectpedidos`, `fdlglineaspedido`, `falbaranes`, `fcrearalbaran`, `fselectalbaranes`, `ffacturas`, `fclientes`, `formaspago`, `fformaspago`, `tipos_impuestos`, `fbalanceventas`, `fimpresionmovimientos`, `CertificateManager`, `fuverifactuhasher`, `uVerifactuCrypto`, `Wincrypt`, `datosclientes`, `datosclientesUnit1`, `fidasociado`, `dlgduplicar` | `pedidos`, `pedidosdetalle`, `albaranes`, `albaranes_detalles`, `facturas`, `facturas_detalles`, `clientes`, `clientes_destinos`, `formas_pago`, `tipos_iva`, `series_numericas` |
| **04** | **Compras, Proveedores y Entradas** | **12** | [Dominio 04](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/domains/04_compras_proveedores_entradas.md) | `fproveedores`, `fproductores`, `fentradas`, `fimpresionentradas`, `fbuscararticulosprov`, `uProvAlbaranes`, `uProvFacturas`, `fgastos`, `fconsumos`, `gastosconsumos`, `uIAInvoiceExtractor`, `fimpresionconsumos` | `proveedores`, `proveedores_articulos`, `propietarios`, `entradas`, `entradas_detalle`, `prov_albaranes`, `prov_facturas`, `consumos_gastos`, `materias_primas` |
| **05** | **Recursos Humanos, Nóminas y Presencia** | **20** | [Dominio 05](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/domains/05_recursos_humanos_nominas_jornadas.md) | `empleados`, `fbuscarempleado`, `femphistorico`, `fgrupos_trabajadores`, `puestos_trabajo`, `regimen_cotizacion`, `fticados`, `fdlgticados`, `fImportarPresenciaPin`, `fdlgllamamientos`, `fepis`, `ftaquillas`, `fseleccionartaquilla`, `SignatureForm`, `DemoButtonsForm`, `wgssSTU_TLB`, `datosnominas`, `firma`, `fdlgfecha`, `fdlgfechas` | `trabajadores`, `emp_historico`, `emp_asistencia`, `emp_taquillas`, `grupos_trabajadores`, `puestos_trabajo`, `regimenes_cotizacion`, `ticados`, `epis`, `firmas`, `nominas`, `anticipos` |
| **06** | **Calidad, IFS y Seguridad Alimentaria** | **12** | [Dominio 06](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/domains/06_calidad_ifs_seguridad_alimentaria.md) | `fcontrolcalidad`, `fcc_materiasprimas`, `fcc_expediciones`, `fcc_camaras`, `fcc_vidacomercial`, `fcc_utensilios`, `fcc_basculas`, `fcc_controlproducto`, `calibrescalidad`, `flistado_ifg`, `futensilios`, `fbasculas` | `control_calidad`, `cc_materiasprimas`, `cc_expediciones`, `cc_camaras`, `cc_vidacomercial`, `cc_utensilios`, `cc_basculas`, `cc_productoacabado`, `calibrescalidad`, `utensilios`, `basculas` |
| **07** | **Maestros, Almacenes y Comunicaciones** | **28** | [Dominio 07](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/domains/07_maestros_almacenes_comunicaciones.md) | `farticulos`, `farticulo`, `fbuscararticulos`, `gruposfamilias`, `gruposfamilias.Unit2`, `Unit2`, `fpresentaciones`, `fgenericas`, `fconfiguracionalmacen`, `cuentasbancarias`, `fusuarios`, `fformularios`, `flogin`, `uConfigEmail`, `uEmailWhatsApp`, `uEnviarDocumento`, `uCursosDocumentos`, `uUIAutoScaler`, `uBaseForm`, `principal`, `datos`, `datosestadisticas`, `dm3`, `fimpresionarticuloscomponentes`, `fconfirmar`, `funciones`, `ffunciones`, `webutils` | `articulos`, `familias`, `grupos`, `genericos`, `configuraciones_envases`, `configuraciones`, `cuentas_bancarias`, `usuarios`, `logins`, `empresa`, `documentos`, `config_envio`, `log_envios` |

---

## 5. Inventario Maestro Exhaustivo de Unidades Pascal (123 Unidades)

A continuación se detalla la totalidad de los 123 archivos de código fuente Pascal (`.pas`) del proyecto, con su clase/formulario VCL, rol funcional, dominio asignado y enlace bidireccional a su workflow de mantenimiento.

| # | Archivo Pascal | Unidad Declarada | Clase / Formulario VCL | Tipo de Módulo | Dom. | Workflow Operativo |
| :---: | :--- | :--- | :--- | :--- | :---: | :--- |
| 1 | [`calibrescalidad.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/calibrescalidad.pas) | `calibrescalidad` | `Tfcalibrescalidad` | Formulario VCL (`TForm`) | 06 | [calibrescalidad.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/calibrescalidad.md) |
| 2 | [`CertificateManager.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/CertificateManager.pas) | `CertificateManager` | `TCertificateManager` | Unidad de Lógica / Crypto | 03 | [CertificateManager.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/CertificateManager.md) |
| 3 | [`cuentasbancarias.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/cuentasbancarias.pas) | `cuentasbancarias` | `Tfcuentas_bancarias` | Formulario VCL (`TForm`) | 07 | [cuentasbancarias.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/cuentasbancarias.md) |
| 4 | [`datos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datos.pas) | `datos` | `TDM` | DataModule Central (`TDataModule`) | 07 | [datos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datos.md) |
| 5 | [`datosclientes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosclientes.pas) | `datosclientes` | `Tdmclientes` | DataModule de Clientes (`TDataModule`) | 03 | [datosclientes.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datosclientes.md) |
| 6 | [`datosclientesUnit1.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosclientesUnit1.pas) | `datosclientesUnit1` | `Tdmclientes` | DataModule Auxiliar (`TDataModule`) | 03 | [datosclientesUnit1.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datosclientesUnit1.md) |
| 7 | [`datosestadisticas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosestadisticas.pas) | `datosestadisticas` | `TDMEstadisticas` | DataModule Estadístico (`TDataModule`) | 07 | [datosestadisticas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datosestadisticas.md) |
| 8 | [`datosnominas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosnominas.pas) | `datosnominas` | `TDMNominas` | DataModule de Nóminas (`TDataModule`) | 05 | [datosnominas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datosnominas.md) |
| 9 | [`datosproduccion.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datosproduccion.pas) | `datosproduccion` | `Tdmproduccion` | DataModule Producción (`TDataModule`) | 02 | [datosproduccion.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datosproduccion.md) |
| 10 | [`datostrazabilidad.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datostrazabilidad.pas) | `datostrazabilidad` | `TDMTr2` | DataModule Trazabilidad Legacy (`TDataModule`) | 02 | [datostrazabilidad.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datostrazabilidad.md) |
| 11 | [`datostrazabilidad2.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/datostrazabilidad2.pas) | `datostrazabilidad2` | `Tdmtr` | DataModule Trazabilidad Central (`TDataModule`) | 02 | [datostrazabilidad2.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/datostrazabilidad2.md) |
| 12 | [`DemoButtonsForm.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/DemoButtonsForm.pas) | `DemoButtonsForm` | `TForm1` | Formulario Test Wacom (`TForm`) | 05 | [DemoButtonsForm.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/DemoButtonsForm.md) |
| 13 | [`dlgduplicar.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/dlgduplicar.pas) | `dlgduplicar` | `Tfdlgduplicar` | Formulario Modal (`TForm`) | 03 | [dlgduplicar.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/dlgduplicar.md) |
| 14 | [`dm3.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/dm3.pas) | `dm3` | `Tdm3` | DataModule Auxiliar (`TDataModule`) | 07 | [dm3.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/dm3.md) |
| 15 | [`empleados.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/empleados.pas) | `empleados` | `Tfempleados` | Formulario VCL (`TForm`) | 05 | [empleados.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/empleados.md) |
| 16 | [`falbaranes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/falbaranes.pas) | `falbaranes` | `Talbaranes` | Formulario VCL (`TForm`) | 03 | [falbaranes.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/falbaranes.md) |
| 17 | [`farticulo.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/farticulo.pas) | `farticulo` | `Tarticulo` | Formulario Modal Auxiliar (`TForm`) | 07 | [farticulo.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/farticulo.md) |
| 18 | [`farticulos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/farticulos.pas) | `farticulos` | `Tarticulos` | Formulario VCL (`TForm`) | 07 | [farticulos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/farticulos.md) |
| 19 | [`fbalanceventas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fbalanceventas.pas) | `fbalanceventas` | `Tbalanceventas` | Formulario VCL (`TForm`) | 03 | [fbalanceventas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fbalanceventas.md) |
| 20 | [`fbasculas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fbasculas.pas) | `fbasculas` | `Tbasculas` | Formulario VCL (`TForm`) | 06 | [fbasculas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fbasculas.md) |
| 21 | [`fboquillas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fboquillas.pas) | `fboquillas` | `Tboquillas` | Formulario VCL (`TForm`) | 01 | [fboquillas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fboquillas.md) |
| 22 | [`fbuscararticulos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fbuscararticulos.pas) | `fbuscararticulos` | `Tbuscararticulos` | Formulario Modal Selector (`TForm`) | 07 | [fbuscararticulos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fbuscararticulos.md) |
| 23 | [`fbuscararticulosprov.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fbuscararticulosprov.pas) | `fbuscararticulosprov` | `Tbuscararticulosprov` | Formulario Modal Selector (`TForm`) | 04 | [fbuscararticulosprov.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fbuscararticulosprov.md) |
| 24 | [`fbuscarempleado.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fbuscarempleado.pas) | `fbuscarempleado` | `Tbuscarempleado` | Formulario Modal Selector (`TForm`) | 05 | [fbuscarempleado.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fbuscarempleado.md) |
| 25 | [`fcargastratamientos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcargastratamientos.pas) | `fcargastratamientos` | `Tcargastratamientos` | Formulario Modal (`TForm`) | 01 | [fcargastratamientos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcargastratamientos.md) |
| 26 | [`fcc_basculas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcc_basculas.pas) | `fcc_basculas` | `Tcc_basculas` | Formulario VCL (`TForm`) | 06 | [fcc_basculas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcc_basculas.md) |
| 27 | [`fcc_camaras.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcc_camaras.pas) | `fcc_camaras` | `Tcc_camaras` | Formulario VCL (`TForm`) | 06 | [fcc_camaras.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcc_camaras.md) |
| 28 | [`fcc_controlproducto.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcc_controlproducto.pas) | `fcc_controlproducto` | `Tcc_controlproducto` | Formulario VCL (`TForm`) | 06 | [fcc_controlproducto.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcc_controlproducto.md) |
| 29 | [`fcc_expediciones.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcc_expediciones.pas) | `fcc_expediciones` | `Tcc_expediciones` | Formulario VCL (`TForm`) | 06 | [fcc_expediciones.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcc_expediciones.md) |
| 30 | [`fcc_materiasprimas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcc_materiasprimas.pas) | `fcc_materiasprimas` | `Tcc_materiasprimas` | Formulario VCL (`TForm`) | 06 | [fcc_materiasprimas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcc_materiasprimas.md) |
| 31 | [`fcc_utensilios.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcc_utensilios.pas) | `fcc_utensilios` | `Tcc_utensilios` | Formulario VCL (`TForm`) | 06 | [fcc_utensilios.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcc_utensilios.md) |
| 32 | [`fcc_vidacomercial.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcc_vidacomercial.pas) | `fcc_vidacomercial` | `Tcc_vidacomercial` | Formulario VCL (`TForm`) | 06 | [fcc_vidacomercial.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcc_vidacomercial.md) |
| 33 | [`fclientes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fclientes.pas) | `fclientes` | `Tclientes` | Formulario VCL (`TForm`) | 03 | [fclientes.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fclientes.md) |
| 34 | [`fconfiguracionalmacen.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fconfiguracionalmacen.pas) | `fconfiguracionalmacen` | `Tconfiguracionalmacen` | Formulario VCL (`TForm`) | 07 | [fconfiguracionalmacen.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fconfiguracionalmacen.md) |
| 35 | [`fconfirmar.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fconfirmar.pas) | `fconfirmar` | `TConfirmar` | Diálogo Modal VCL (`TForm`) | 07 | [fconfirmar.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fconfirmar.md) |
| 36 | [`fconsumos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fconsumos.pas) | `fconsumos` | `Tconsumos_gastos` | Formulario VCL (`TForm`) | 04 | [fconsumos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fconsumos.md) |
| 37 | [`fconsumosfito.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fconsumosfito.pas) | `fconsumosfito` | `Tconsumosfito` | Formulario VCL (`TForm`) | 01 | [fconsumosfito.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fconsumosfito.md) |
| 38 | [`fconsumosfitoparcelas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fconsumosfitoparcelas.pas) | `fconsumosfitoparcelas` | `Tconsumosfitoparcelas` | Formulario VCL (`TForm`) | 01 | [fconsumosfitoparcelas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fconsumosfitoparcelas.md) |
| 39 | [`fcontrolcalidad.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcontrolcalidad.pas) | `fcontrolcalidad` | `TForm3` | Formulario VCL (`TForm`) | 06 | [fcontrolcalidad.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcontrolcalidad.md) |
| 40 | [`fcontrolminimos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcontrolminimos.pas) | `fcontrolminimos` | `Tcontrolminimos` | Formulario VCL (`TForm`) | 02 | [fcontrolminimos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcontrolminimos.md) |
| 41 | [`fcontrolproduccion.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcontrolproduccion.pas) | `fcontrolproduccion` | `Tcontrolproduccion` | Formulario VCL (`TForm`) | 02 | [fcontrolproduccion.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcontrolproduccion.md) |
| 42 | [`fcontrolstock.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcontrolstock.pas) | `fcontrolstock` | `Tcontrolstock` | Formulario VCL (`TForm`) | 02 | [fcontrolstock.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcontrolstock.md) |
| 43 | [`fcostesrestos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcostesrestos.pas) | `fcostesrestos` | `Trestosdia` | Formulario VCL (`TForm`) | 02 | [fcostesrestos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcostesrestos.md) |
| 44 | [`fcrearalbaran.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcrearalbaran.pas) | `fcrearalbaran` | `Tcrearalbaran` | Formulario Asistente (`TForm`) | 03 | [fcrearalbaran.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcrearalbaran.md) |
| 45 | [`fcuadernos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fcuadernos.pas) | `fcuadernos` | `Tcuadernos` | Formulario VCL (`TForm`) | 01 | [fcuadernos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fcuadernos.md) |
| 46 | [`fDirectasCampo.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fDirectasCampo.pas) | `fDirectasCampo` | `TfrmDirectasCampo` | Formulario Heredado (`TfrmBase`) | 02 | [fdirectascampo.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fdirectascampo.md) |
| 47 | [`fdlgfecha.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fdlgfecha.pas) | `fdlgfecha` | `Tdlgfecha` | Formulario Modal Selector (`TForm`) | 05 | [fdlgfecha.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fdlgfecha.md) |
| 48 | [`fdlgfechas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fdlgfechas.pas) | `fdlgfechas` | `Tdlgfechas` | Formulario Modal Selector (`TForm`) | 05 | [fdlgfechas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fdlgfechas.md) |
| 49 | [`fdlglineaspedido.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fdlglineaspedido.pas) | `fdlglineaspedido` | `Tdlglineaspedido` | Formulario Modal Edición (`TForm`) | 03 | [fdlglineaspedido.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fdlglineaspedido.md) |
| 50 | [`fdlgllamamientos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fdlgllamamientos.pas) | `fdlgllamamientos` | `Tdlgllamamientos` | Formulario Modal (`TForm`) | 05 | [fdlgllamamientos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fdlgllamamientos.md) |
| 51 | [`fdlgticados.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fdlgticados.pas) | `fdlgticados` | `Tdlgticados` | Formulario Modal Edición (`TForm`) | 05 | [fdlgticados.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fdlgticados.md) |
| 52 | [`fechacierre.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fechacierre.pas) | `fechacierre` | `Tpreguntarfecha` | Formulario Modal Proceso (`TForm`) | 02 | [fechacierre.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fechacierre.md) |
| 53 | [`femphistorico.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/femphistorico.pas) | `femphistorico` | `Temp_historico` | Formulario VCL (`TForm`) | 05 | [femphistorico.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/femphistorico.md) |
| 54 | [`fentradas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fentradas.pas) | `fentradas` | `Tentradas` | Formulario VCL (`TForm`) | 04 | [fentradas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fentradas.md) |
| 55 | [`fenvasadoscampo.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fenvasadoscampo.pas) | `fenvasadoscampo` | `TForm1` | Formulario VCL (`TForm`) | 02 | [fenvasadoscampo.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fenvasadoscampo.md) |
| 56 | [`fenvases_almacen.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fenvases_almacen.pas) | `fenvases_almacen` | `Tenvases_almacen` | Formulario VCL (`TForm`) | 02 | [fenvases_almacen.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fenvases_almacen.md) |
| 57 | [`fepis.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fepis.pas) | `fepis` | `Tepis` | Formulario VCL (`TForm`) | 05 | [fepis.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fepis.md) |
| 58 | [`ffacturas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/ffacturas.pas) | `ffacturas` | `Tfacturas` | Formulario VCL (`TForm`) | 03 | [ffacturas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/ffacturas.md) |
| 59 | [`fformaspago.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fformaspago.pas) | `formaspago` | `TForm2` | Formulario Auxiliar VCL (`TForm`) | 03 | [fformaspago.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fformaspago.md) |
| 60 | [`fformularios.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fformularios.pas) | `fformularios` | `Tformularios` | Formulario VCL (`TForm`) | 07 | [fformularios.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fformularios.md) |
| 61 | [`ffunciones.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/ffunciones.pas) | `funciones` | — | Unidad de Funciones Auxiliares | 07 | [ffunciones.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/ffunciones.md) |
| 62 | [`fgastos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fgastos.pas) | `fgastos` | `TForm1` | Formulario VCL (`TForm`) | 04 | [fgastos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fgastos.md) |
| 63 | [`fgenerartratamientos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fgenerartratamientos.pas) | `fgenerartratamientos` | `Tgenerartratamientos` | Formulario Asistente (`TForm`) | 01 | [fgenerartratamientos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fgenerartratamientos.md) |
| 64 | [`fgenericas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fgenericas.pas) | `fgenericas` | `Tgenericas` | Formulario VCL (`TForm`) | 07 | [fgenericas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fgenericas.md) |
| 65 | [`fgrupos_trabajadores.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fgrupos_trabajadores.pas) | `fgrupos_trabajadores` | `Tgrupostrabajadores` | Formulario VCL (`TForm`) | 05 | [fgrupos_trabajadores.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fgrupos_trabajadores.md) |
| 66 | [`fidasociado.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fidasociado.pas) | `fidasociado` | `Tidasociado` | Formulario Modal Selector (`TForm`) | 03 | [fidasociado.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fidasociado.md) |
| 67 | [`fImportarPresenciaPin.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fImportarPresenciaPin.pas) | `fImportarPresenciaPin` | `TImportardesdePresenciaPin` | Formulario Integración (`TForm`) | 05 | [fImportarPresenciaPin.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fImportarPresenciaPin.md) |
| 68 | [`fimpresionarticuloscomponentes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fimpresionarticuloscomponentes.pas) | `fimpresionarticuloscomponentes` | `Tinfarticulos` | Formulario Informe (`TForm`) | 07 | [fimpresionarticuloscomponentes.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fimpresionarticuloscomponentes.md) |
| 69 | [`fimpresionconsumos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fimpresionconsumos.pas) | `fimpresionconsumos` | `Tinsumos` | Formulario Informe (`TForm`) | 04 | [fimpresionconsumos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fimpresionconsumos.md) |
| 70 | [`fimpresionentradas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fimpresionentradas.pas) | `fimpresionentradas` | `Timpentradas` | Formulario Informe (`TForm`) | 04 | [fimpresionentradas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fimpresionentradas.md) |
| 71 | [`fimpresionmovimientos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fimpresionmovimientos.pas) | `fimpresionmovimientos` | `Tinfmovimientos` | Formulario Informe (`TForm`) | 03 | [fimpresionmovimientos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fimpresionmovimientos.md) |
| 72 | [`firma.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/firma.pas) | `firma` | `TVFIRMA` | Formulario Visor Firma (`TForm`) | 05 | [firma.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/firma.md) |
| 73 | [`flistado_ifg.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/flistado_ifg.pas) | `flistado_ifg` | `Tlistado_ifg` | Formulario Informe Calidad (`TForm`) | 06 | [flistado_ifg.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/flistado_ifg.md) |
| 74 | [`flogin.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/flogin.pas) | `flogin` | `TLogin` | Formulario Modal Login (`TForm`) | 07 | [flogin.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/flogin.md) |
| 75 | [`fmateriales_pendientes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fmateriales_pendientes.pas) | `fmateriales_pendientes` | `Tmateriales_pendientes` | Formulario VCL (`TForm`) | 02 | [fmateriales_pendientes.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fmateriales_pendientes.md) |
| 76 | [`fmaterialespesada.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fmaterialespesada.pas) | `fmaterialespesada` | `Tmaterialespesadas` | Formulario VCL (`TForm`) | 02 | [fmaterialespesada.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fmaterialespesada.md) |
| 77 | [`fmeteorologia.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fmeteorologia.pas) | `fmeteorologia` | `Tmeteorologia` | Formulario VCL (`TForm`) | 01 | [fmeteorologia.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fmeteorologia.md) |
| 78 | [`formaspago.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/formaspago.pas) | `formaspago` | `Tfformaspago` | Formulario VCL (`TForm`) | 03 | [formaspago.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/formaspago.md) |
| 79 | [`fpedidos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fpedidos.pas) | `fpedidos` | `Tpedidos` | Formulario VCL (`TForm`) | 03 | [fpedidos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fpedidos.md) |
| 80 | [`fpresentaciones.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fpresentaciones.pas) | `fpresentaciones` | `Tpresentaciones` | Formulario VCL (`TForm`) | 07 | [fpresentaciones.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fpresentaciones.md) |
| 81 | [`fproductores.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fproductores.pas) | `fproductores` | `TSociosProductores` | Formulario VCL (`TForm`) | 04 | [fproductores.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fproductores.md) |
| 82 | [`fproductosfitosanitarios.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fproductosfitosanitarios.pas) | `fproductosfitosanitarios` | `Tproductosfitosanitarios` | Formulario VCL (`TForm`) | 01 | [fproductosfitosanitarios.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fproductosfitosanitarios.md) |
| 83 | [`fproveedores.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fproveedores.pas) | `fproveedores` | `Tproveedores` | Formulario VCL (`TForm`) | 04 | [fproveedores.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fproveedores.md) |
| 84 | [`frecalculostock.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/frecalculostock.pas) | `frecalculostock` | `Trecalculostock` | Formulario Proceso (`TForm`) | 02 | [frecalculostock.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/frecalculostock.md) |
| 85 | [`fseleccionartaquilla.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fseleccionartaquilla.pas) | `fseleccionartaquilla` | `Tseleccionartaquilla` | Formulario Modal Selector (`TForm`) | 05 | [fseleccionartaquilla.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fseleccionartaquilla.md) |
| 86 | [`fselecparcelas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fselecparcelas.pas) | `fselecparcelas` | `Tselecparcelas` | Formulario Modal Selector (`TForm`) | 01 | [fselecparcelas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fselecparcelas.md) |
| 87 | [`fselectalbaranes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fselectalbaranes.pas) | `fselectalbaranes` | `Tseleccionaralbaranes` | Formulario Modal Selector (`TForm`) | 03 | [fselectalbaranes.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fselectalbaranes.md) |
| 88 | [`fselectpedidos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fselectpedidos.pas) | `fselectpedidos` | `Tseleccionarpedidos` | Formulario Modal Selector (`TForm`) | 03 | [fselectpedidos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fselectpedidos.md) |
| 89 | [`fstockalmacen.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fstockalmacen.pas) | `fstockalmacen` | `Tstocksalmacen` | Formulario VCL (`TForm`) | 02 | [fstockalmacen.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fstockalmacen.md) |
| 90 | [`ftaquillas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/ftaquillas.pas) | `ftaquillas` | `Ttaquillas` | Formulario VCL (`TForm`) | 05 | [ftaquillas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/ftaquillas.md) |
| 91 | [`fticados.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fticados.pas) | `fticados` | `Tticados` | Formulario VCL (`TForm`) | 05 | [fticados.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fticados.md) |
| 92 | [`ftratamientos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/ftratamientos.pas) | `ftratamientos` | `Ttratamientos` | Formulario VCL (`TForm`) | 01 | [ftratamientos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/ftratamientos.md) |
| 93 | [`ftratamientosbase.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/ftratamientosbase.pas) | `ftratamientosbase` | `Ttratamientosbase` | Formulario VCL (`TForm`) | 01 | [ftratamientosbase.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/ftratamientosbase.md) |
| 94 | [`ftraza_materiales.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/ftraza_materiales.pas) | `ftraza_materiales` | `Ttraza_materiales` | Formulario VCL (`TForm`) | 02 | [ftraza_materiales.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/ftraza_materiales.md) |
| 95 | [`ftraza_materiales2.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/ftraza_materiales2.pas) | `ftraza_materiales2` | `Ttraza_materiales2` | Formulario VCL (`TForm`) | 02 | [ftraza_materiales2.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/ftraza_materiales2.md) |
| 96 | [`funciones.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/funciones.pas) | `funciones` | — | Unidad de Lógica y Helpers | 07 | [funciones.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/funciones.md) |
| 97 | [`fusuarios.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fusuarios.pas) | `fusuarios` | `Tusuarios` | Formulario VCL (`TForm`) | 07 | [fusuarios.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fusuarios.md) |
| 98 | [`futensilios.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/futensilios.pas) | `futensilios` | `Tutensilios` | Formulario VCL (`TForm`) | 06 | [futensilios.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/futensilios.md) |
| 99 | [`fuverifactuhasher.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fuverifactuhasher.pas) | `fuverifactuhasher` | `TVerifactuHasher` | Unidad de Lógica / Crypto | 03 | [fuverifactuhasher.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fuverifactuhasher.md) |
| 100 | [`fvehiculos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/fvehiculos.pas) | `fvehiculos` | `Tvehiculos` | Formulario VCL (`TForm`) | 01 | [fvehiculos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/fvehiculos.md) |
| 101 | [`gastosconsumos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/gastosconsumos.pas) | `gastosconsumos` | `Tfconsumosgastos` | Formulario VCL (`TForm`) | 04 | [gastosconsumos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/gastosconsumos.md) |
| 102 | [`gruposfamilias.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/gruposfamilias.pas) | `gruposfamilias` | `Tfgruposfamilias` | Formulario VCL (`TForm`) | 07 | [gruposfamilias.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/gruposfamilias.md) |
| 103 | [`gruposfamilias.Unit2.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/gruposfamilias.Unit2.pas) | `gruposfamilias.Unit2` | `Tfgruposfamilias` | Formulario Auxiliar (`TForm`) | 07 | [gruposfamilias.Unit2.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/gruposfamilias.Unit2.md) |
| 104 | [`pesadas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/pesadas.pas) | `pesadas` | `Tfpesadas` | Formulario VCL Báscula (`TForm`) | 02 | [pesadas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/pesadas.md) |
| 105 | [`principal.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/principal.pas) | `principal` | `TBASE` | Formulario Principal MDI (`TForm`) | 07 | [principal.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/principal.md) |
| 106 | [`puestos_trabajo.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/puestos_trabajo.pas) | `puestos_trabajo` | `Tfpuestos_trabajo` | Formulario VCL (`TForm`) | 05 | [puestos_trabajo.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/puestos_trabajo.md) |
| 107 | [`regimen_cotizacion.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/regimen_cotizacion.pas) | `regimen_cotizacion` | `Tfregimen_cotizacion` | Formulario VCL (`TForm`) | 05 | [regimen_cotizacion.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/regimen_cotizacion.md) |
| 108 | [`SignatureForm.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/SignatureForm.pas) | `SignatureForm` | `TVFirmas` | Formulario VCL Wacom STU (`TForm`) | 05 | [SignatureForm.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/SignatureForm.md) |
| 109 | [`tipos_impuestos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/tipos_impuestos.pas) | `tipos_impuestos` | `Tftipos_impuestos` | Formulario VCL (`TForm`) | 03 | [tipos_impuestos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/tipos_impuestos.md) |
| 110 | [`uBaseForm.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uBaseForm.pas) | `uBaseForm` | `TfrmBase` | Formulario Base Ancestor (`TForm`) | 07 | [uBaseForm.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uBaseForm.md) |
| 111 | [`uConfigEmail.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uConfigEmail.pas) | `uConfigEmail` | `TfConfigEmail` | Formulario Configuración (`TForm`) | 07 | [uConfigEmail.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uConfigEmail.md) |
| 112 | [`uCursosDocumentos.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uCursosDocumentos.pas) | `uCursosDocumentos` | `TfCursosDocumentos` | Formulario VCL (`TForm`) | 07 | [uCursosDocumentos.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uCursosDocumentos.md) |
| 113 | [`uEmailWhatsApp.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uEmailWhatsApp.pas) | `uEmailWhatsApp` | `TuEmailWhatsApp` | Clase de Servicio / Despacho | 07 | [uEmailWhatsApp.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uEmailWhatsApp.md) |
| 114 | [`uEnviarDocumento.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uEnviarDocumento.pas) | `uEnviarDocumento` | `TfEnviarDocumento` | Formulario Asistente Envío (`TForm`) | 07 | [uEnviarDocumento.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uEnviarDocumento.md) |
| 115 | [`uIAInvoiceExtractor.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uIAInvoiceExtractor.pas) | `uIAInvoiceExtractor` | `TuIAInvoiceExtractor` | Clase de Servicio / IA Parsing | 04 | [uIAInvoiceExtractor.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uIAInvoiceExtractor.md) |
| 116 | [`Unit2.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/Unit2.pas) | `Unit2` | `TForm2` | Formulario Auxiliar (`TForm`) | 07 | [Unit2.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/Unit2.md) |
| 117 | [`uProvAlbaranes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uProvAlbaranes.pas) | `uProvAlbaranes` | `TfrmProvAlbaranes` | Formulario Heredado (`TfrmBase`) | 04 | [uprovalbaranes.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uprovalbaranes.md) |
| 118 | [`uProvFacturas.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uProvFacturas.pas) | `uProvFacturas` | `TfrmProvFacturas` | Formulario Heredado (`TfrmBase`) | 04 | [uprovfacturas.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uprovfacturas.md) |
| 119 | [`uUIAutoScaler.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uUIAutoScaler.pas) | `uUIAutoScaler` | `TUIAutoScaler` | Clase Helper Escalado UI | 07 | [uUIAutoScaler.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uUIAutoScaler.md) |
| 120 | [`uVerifactuCrypto.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uVerifactuCrypto.pas) | `uVerifactuCrypto` | `TVerifactuCrypto` | Clase de Servicio Criptográfico | 03 | [uVerifactuCrypto.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/uVerifactuCrypto.md) |
| 121 | [`webutils.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/webutils.pas) | `webutils` | — | Unidad de Utilidades Web/HTTP | 07 | [webutils.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/webutils.md) |
| 122 | [`wgssSTU_TLB.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/wgssSTU_TLB.pas) | `wgssSTU_TLB` | SDK Type Library | Librería COM / Wacom STU SDK | 05 | [wgssSTU_TLB.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/wgssSTU_TLB.md) |
| 123 | [`Wincrypt.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/Wincrypt.pas) | `Wincrypt` | Win32 API Headers | Unidad Cabecera WinAPI Crypto | 03 | [Wincrypt.md](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/Wincrypt.md) |
| 124 | [`uDecaEmisionAlbaranes.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uDecaEmisionAlbaranes.pas) | `uDecaEmisionAlbaranes` | `TfDecaEmisionAlbaranes` | Formulario Modal Emisión DeCA (`TForm`) | 03 | [TfDecaEmisionAlbaranes.txt](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/help/TfDecaEmisionAlbaranes.txt) |

---

## 6. Directivas de Interfaz de Usuario y Responsive VCL

Para garantizar una experiencia visual moderna, fluida y consistente en cualquier resolución o monitor industrial, se aplican los siguientes patrones obligatorios:

1. **Auto-Escalado Dinámico Líquido ([`uUIAutoScaler.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uUIAutoScaler.pas))**:
   - Cada formulario calcula y redistribuye de forma matemática los tamaños de controles, fuentes tipográficas y anchos de columnas de `TDBGrid` según la resolución real del monitor.
2. **Arquitectura Base de Formularios ([`uBaseForm.pas`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/uBaseForm.pas))**:
   - Los nuevos módulos visuales heredan de `TfrmBase`, que centraliza el ciclo de vida, la confirmación de cambios pendientes y la invocación al auto-escalador.
3. **Exclusión de Detección de Cambios (`Tag = 999`)**:
   - Todo control visual auxiliar (filtros de fecha, barras de búsqueda rápida, combos de selección de campaña o paginación) DEBE tener asignado `Tag = 999` para evitar falsos positivos en la detección de modificaciones no guardadas.
4. **Renderizado de Checkboxes en DBGrids (`OnDrawColumnCell`)**:
   - Las columnas de tipo booleano (`activo`, `facturado`, `en_cuaderno`, `cerrado`, etc.) se dibujan como casillas gráficas centradas con `DrawFrameControl`, evitando mostrar valores textuales `0/1` o `True/False`.
5. **Ordenación Dinámica por Clic en Cabecera**:
   - Los títulos de las columnas de los `TDBGrid` permiten ordenar dinámicamente los registros al hacer clic sobre ellos, recalculando la cláusula `ORDER BY` del `TZQuery` o `TZReadOnlyQuery` sin reiniciar la posición del cursor.
6. **Mapeo Dinámico de Campos en ZeosLib**:
   - Acceso exclusivo mediante `.FieldByName('nombre_campo').As[Tipo]` en tiempo de ejecución. **Prohibido el uso de campos persistentes estáticos en el archivo `.dfm`** para asegurar total tolerancia a modificaciones de esquema en MySQL.
7. **Gestión Estricta de Memoria (`try..finally`)**:
   - Todo objeto, query auxiliar, lista o stream instanciado manualmente con `Create` DEBE liberarse inequívocamente en la cláusula `finally` con `Free` o `FreeAndNil`.

---

## 7. Inventario de Reglas Técnicas y Skills de IA en `.agents`

### Skills Especializadas (`.agents/skills/`):
- [`skills/experto-delphi-xe3/SKILL.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/skills/experto-delphi-xe3/SKILL.md): Especialista Full Stack en Delphi XE3, ZeosLib 7.x, VCL y anclaje al cuaderno NotebookLM `documentacion delphi xe3`.
- [`skills/architect_senior.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/skills/architect_senior.md): Arquitectura de software, principios SOLID, diseño desacoplado y modularidad en entornos Pascal.
- [`skills/mysql_specialist.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/skills/mysql_specialist.md): Administración de BD MySQL / MariaDB 10.4+, optimización transaccional InnoDB e índices.
- [`skills/ui_responsive_specialist.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/skills/ui_responsive_specialist.md): Interfaces VCL responsivas, layouts líquidos y escalado de grids.
- [`skills/verifactu_expert.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/skills/verifactu_expert.md): Normativa técnica AEAT de facturación electrónica y hashes SHA-256 encadenados.

### Reglas de Desarrollo (`.agents/rules/`):
- [`00_consideraciones_globales.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/00_consideraciones_globales.md): Estándares de compilación, gestión de memoria, ZeosLib, codificación ANSI y convención de nombres.
- [`01_mysql.innodb.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/01_mysql.innodb.md): Estándares de tipos de datos MySQL, índices y transaccionalidad InnoDB.
- [`02_ui_ux_standars.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/02_ui_ux_standars.md): Guía de diseño visual VCL, layout, botones estándar y experiencia de usuario.
- [`03_legacy_xe3_zeos.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/03_legacy_xe3_zeos.md): Pautas de mantenimiento para componentes ZeosLib 7.x bajo Delphi XE3.
- [`04_delphi_xe3_language_constraints.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/04_delphi_xe3_language_constraints.md): Restricciones sintácticas del compilador Delphi XE3 (Win32).
- [`05_ui_scaling_rules.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/05_ui_scaling_rules.md): Reglas de escalado dinámico de fuentes y contenedores.
- [`06_crud_confirmacion.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/06_crud_confirmacion.md): Diálogos de confirmación estándar y validaciones en altas, modificaciones y bajas.
- [`07_naming_multipliers.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/07_naming_multipliers.md): Nomenclatura uniforme en variables, componentes y campos calculados.
- [`08_delphi_xe3_notebooklm.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/08_delphi_xe3_notebooklm.md): Integración con el cuaderno NotebookLM de referencia técnica.
- [`09_delphi_boolean_fields.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/09_delphi_boolean_fields.md): Tratamiento de campos `tinyint(1)` / `boolean` en ZeosLib y DBGrids.
- [`10_registro_errores_recurrentes.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/10_registro_errores_recurrentes.md): Histórico y soluciones a problemas frecuentes en el proyecto.
- [`11_delphi_utf8_multibyte_rules.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/11_delphi_utf8_multibyte_rules.md): Manejo de codificación de caracteres, strings UTF8/ANSI y tildes/eñes.
- [`reglas de la aplicacion.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/reglas%20de%20la%20aplicacion.md): Compendio de normas operativas de desarrollo en AGRIGEST.
- [`workflow_maintenance.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/rules/workflow_maintenance.md): Procedimiento para mantener sincronizada la documentación técnica y flujos de trabajo.

### Workflows Operativos (`.agents/workflows/`):
- Cobertura completa de los **123 módulos individuales del ERP** más las 2 guías de ciclo de vida (total **125 workflows**):
  - [`new_module_creation.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/new_module_creation.md): Flujo estándar para creación de nuevos módulos y su integración en el ERP.
  - [`new_inherited_form.md`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/new_inherited_form.md): Guía para creación de formularios visuales heredados de `TfrmBase`.
  - Directorio completo: [`.agents/workflows/`](file:///C:/fuentes/proyectos%20delphi/AGRIGEST/GESTION/.agents/workflows/).

---

## 8. Protocolo de Mantenimiento y Sincronización

Cada vez que se añada, refactorice o elimine un archivo `.pas` / `.dfm` en el proyecto AGRIGEST, es imperativo ejecutar el siguiente protocolo de mantenimiento síncrono:
1. Actualizar el archivo de workflow individual en `.agents/workflows/<nombre_unidad>.md`.
2. Actualizar el documento de dominio correspondiente en `.agents/domains/`.
3. Actualizar la matriz del presente mapa arquitectónico en `.agents/APPLICATION_MAP.md`.
4. Si se incorporan o modifican tablas o columnas en MySQL, actualizar `.agents/assets/db.dictionary.md`.
5. Si el módulo dispone de pantalla de usuario, mantener actualizado su archivo de ayuda en `help/T<NombreFormulario>.txt`.

