Mejoras para la aplicacion

This commit is contained in:
2026-08-03 13:25:22 +02:00
parent 37b6cb1695
commit 18328607d0
26 changed files with 1359 additions and 171 deletions
+11 -7
View File
@@ -4,10 +4,12 @@ Android application developed in Kotlin using Jetpack Compose that scans barcode
## 🚀 Features
- **Instant Scan**: The camera opens when adding a new SAI.
- **Multi-Entity Management**: Dedicated sections for SAIs, Batteries, People, and SAI-Person Assignments.
- **CRUD Operations**: Add, View, and Delete records for all managed entities.
- **Connection Status**: Real-time indicator on the home screen.
- **Dashboard**: High-level overview of inventory stats (Total SAIs, available, etc.) on the home screen.
- **Instant Scan & Quick Info**: Scan any SAI to see its details and current assignee immediately.
- **Search & Filter**: Robust search bars across all lists with optional barcode scanning for SAIs.
- **Smart Status Management**: Automatic SAI status updates (Available/Assigned) based on assignment records.
- **Confirmation Safety**: Built-in confirmation dialogs for all delete operations.
- **Modern UI**: Clean, card-based Material 3 interface with intuitive icons and native date pickers.
- **Visual Overlay**: Centered scanning guide with a red line to help align barcodes.
- **ML Kit Integration**: High-performance barcode detection (HD 720p analysis).
- **Confirmation Flow**: Scanned results are shown in a popup dialog before saving.
@@ -40,7 +42,8 @@ Ensure your MariaDB database has the following tables:
CREATE TABLE SAIs (
id_sai INT AUTO_INCREMENT PRIMARY KEY,
ns VARCHAR(255) NOT NULL UNIQUE,
modelo VARCHAR(255)
modelo VARCHAR(255),
estado ENUM('Disponible', 'Asignado', 'En reparación', 'Baja') NOT NULL DEFAULT 'Disponible'
);
-- Table for Batteries
@@ -48,14 +51,15 @@ CREATE TABLE Bateria (
id_bateria INT AUTO_INCREMENT PRIMARY KEY,
id_sai INT,
marca VARCHAR(255),
fecha_instalacion DATETIME,
fecha_instalacion DATE,
FOREIGN KEY (id_sai) REFERENCES SAIs(id_sai)
);
-- Table for People
CREATE TABLE Persona (
id_persona INT AUTO_INCREMENT PRIMARY KEY,
nombre VARCHAR(255) NOT NULL
nombre VARCHAR(255) NOT NULL,
activo TINYINT(1) DEFAULT 1
);
-- Table for SAI - Person Assignments