# brovarone/all-i architecture

> Architecture diagram of the GitHub repository brovarone/all-i, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/brovarone/all-i
- Repository: https://github.com/brovarone/all-i

## Overview

##### Main Components Identification

The system should be represented with these key components:

a) Core Application Layer
- Main VB.NET application (ALL-I)
- User Interface components (Forms, Dialogs)
- Business Logic modules

b) Data Access Layer (EFMago)
- Entity Framework context
- Model classes
- Database connectivity

c) Integration Modules
- Fusione (Fusion/Integration)
- S400_to_Mago (Migration/Integration)
- Contabilita (Accounting)

d) Supporting Systems
- Logging system
- Authentication system
- Configuration management

**┌─────────────────────────────────────────────────────┐**
- User Interface                      │
- ┌─────────────┐  ┌──────────────┐  ┌──────────┐   │
- Login/Security│  │Main Forms    │  │Dialogs   │   │
- ┘  └──────────────┘  └──────────┘   │
- ┤
- Business Logic                       │
- ┌─────────────┐  ┌──────────────┐  ┌──────────┐   │
- Ordini       │  │Contabilita   │  │Fusione   │   │
- ┘  └──────────────┘  └──────────┘   │
- ┤
- Data Access                        │
- ┌─────────────┐  ┌──────────────┐  ┌──────────┐   │
- EF Contexts  │  │Model Classes │  │SQL Access │   │
- ┘  └──────────────┘  └──────────┘   │
- ┘

##### Connection Types

- Double lines: Data flow

##### Supporting Systems

- Logging system
- Configuration management
- Deployment components

##### Notes and Documentation

- Component relationships
- Key business processes

##### Security boundaries

This structure reflects the application's nature as a business management tool with significant database interaction and integration capabilities.

Remember to maintain a balance between detail and clarity, focusing on the major architectural components while avoiding excessive granularity that might obscure the overall system design.

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles
    classDef ui fill:#3498db,stroke:#2980b9,color:white
    classDef business fill:#2ecc71,stroke:#27ae60,color:white
    classDef data fill:#e67e22,stroke:#d35400,color:white
    classDef support fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef integration fill:#9b59b6,stroke:#8e44ad,color:white

    %% User Interface Layer
    subgraph UI["User Interface Layer"]
        Login["Login/Security"]:::ui
        Dialog["Dialog Components"]:::ui
        About["About Dialog"]:::ui
    end

    %% Business Logic Layer
    subgraph BL["Business Logic Layer"]
        Orders["Orders Processing"]:::business
        Invoice["Invoice Processing"]:::business
        Asset["Asset Management"]:::business
        Global["Global Functions"]:::business
        Settings["Settings Management"]:::business
    end

    %% Data Access Layer
    subgraph DAL["Data Access Layer"]
        MagoCtx["Main Context"]:::data
        MovCtx["Movement Context"]:::data
        OrdCtx["Orders Context"]:::data
        Models["Data Models"]:::data
    end

    %% Integration Layer
    subgraph INT["Integration Layer"]
        Fusion["Fusion Module"]:::integration
        S400["S400 Migration"]:::integration
        Accounting["Accounting Module"]:::integration
    end

    %% Supporting Systems
    subgraph SUP["Supporting Systems"]
        Logging["Logging Framework"]:::support
        Config["Configuration"]:::support
        Deploy["Deployment"]:::support
    end

    %% Relationships
    Login --> Global
    Dialog --> Global
    About --> Global
    
    Orders --> MagoCtx
    Orders --> MovCtx
    Orders --> OrdCtx
    
    Invoice --> MagoCtx
    Asset --> MagoCtx
    
    Fusion --> MagoCtx
    S400 --> MagoCtx
    Accounting --> MagoCtx
    
    Global --> Config
    Global --> Logging
    
    MagoCtx --> Models
    MovCtx --> Models
    OrdCtx --> Models

    %% Click Events
    click Login "https://github.com/Brovarone/ALL-I/blob/master//FLogin.vb"
    click Dialog "https://github.com/Brovarone/ALL-I/blob/master//MessageBoxWithDetails.vb"
    click About "https://github.com/Brovarone/ALL-I/blob/master//AboutBox1.vb"
    click Orders "https://github.com/Brovarone/ALL-I/tree/master//Ordini/"
    click Invoice "https://github.com/Brovarone/ALL-I/blob/master//Fatture.vb"
    click Asset "https://github.com/Brovarone/ALL-I/blob/master//Cespiti.vb"
    click Global "https://github.com/Brovarone/ALL-I/blob/master//Global.vb"
    click Settings "https://github.com/Brovarone/ALL-I/blob/master//Settings.vb"
    click MagoCtx "https://github.com/Brovarone/ALL-I/blob/master//EFMago/MagoContext.cs"
    click MovCtx "https://github.com/Brovarone/ALL-I/blob/master//EFMago/MovMagContext.cs"
    click OrdCtx "https://github.com/Brovarone/ALL-I/blob/master//EFMago/OrdiniContext.cs"
    click Models "https://github.com/Brovarone/ALL-I/tree/master//EFMago/Models/"
    click Fusion "https://github.com/Brovarone/ALL-I/tree/master//Fusione/"
    click S400 "https://github.com/Brovarone/ALL-I/tree/master//S400_to_Mago/"
    click Accounting "https://github.com/Brovarone/ALL-I/tree/master//Contabilita/"
    click Logging "https://github.com/Brovarone/ALL-I/tree/master//Logs/"
    click Config "https://github.com/Brovarone/ALL-I/blob/master//App.config"
    click Deploy "https://github.com/Brovarone/ALL-I/tree/master//Installer/"

    %% Legend
    subgraph Legend
        UI_L["UI Component"]:::ui
        BL_L["Business Logic"]:::business
        DAL_L["Data Access"]:::data
        INT_L["Integration"]:::integration
        SUP_L["Support"]:::support
    end
```
