Neues Feature: Interaktive Netzwerk-Visualisierung mit Cytoscape.js - Raeume als Compound-Container, Geraete als Nodes - Kabelverbindungen als Edges (auch raumuebergreifend) - Zwei Layout-Modi: Raeumlich (cose-bilkent) / Technisch (dagre) - Zoom/Pan/Fit, Mausrad-Zoom, Node-Positionen speicherbar - Kabeltyp-Legende, Viewport-Persistenz - Admin-Setting KUNDENKARTE_DEFAULT_VIEW (tree/graph) Verbindungsformular verbessert: - Select-Dropdowns zeigen nur Geraete (keine Gebaeude) - Icons via select2, Gebaeude-Pfad als Kontext - Systemuebergreifende Auswahl, Dolibarr-Action-Konvention Bugfixes: - Kontakt-Redirect nach Verbindung-Bearbeitung - contactid in allen Edit-URLs von contact_anlagen.php Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
47 lines
1.5 KiB
SQL
Executable file
47 lines
1.5 KiB
SQL
Executable file
-- ============================================================================
|
|
-- Copyright (C) 2026 Alles Watt lauft
|
|
--
|
|
-- Table for customer-specific installation elements (tree structure)
|
|
-- Uses adjacency list pattern with fk_parent for hierarchy
|
|
-- ============================================================================
|
|
|
|
CREATE TABLE llx_kundenkarte_anlage
|
|
(
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
entity integer DEFAULT 1 NOT NULL,
|
|
|
|
ref varchar(64),
|
|
label varchar(255) NOT NULL,
|
|
|
|
fk_soc integer NOT NULL,
|
|
fk_anlage_type integer NOT NULL,
|
|
fk_parent integer DEFAULT 0 NOT NULL,
|
|
|
|
fk_system integer NOT NULL,
|
|
fk_building_node integer DEFAULT 0,
|
|
|
|
manufacturer varchar(128),
|
|
model varchar(128),
|
|
serial_number varchar(64),
|
|
power_rating varchar(32),
|
|
|
|
field_values text,
|
|
|
|
location varchar(255),
|
|
installation_date date,
|
|
warranty_until date,
|
|
|
|
rang integer DEFAULT 0,
|
|
level integer DEFAULT 0,
|
|
|
|
note_private text,
|
|
note_public text,
|
|
|
|
status tinyint DEFAULT 1 NOT NULL,
|
|
|
|
date_creation datetime,
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
fk_user_creat integer,
|
|
fk_user_modif integer,
|
|
import_key varchar(14)
|
|
) ENGINE=innodb;
|