# volamarosoa/gestion-transport-back-office architecture

> Architecture diagram of the GitHub repository volamarosoa/gestion-transport-back-office, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/volamarosoa/gestion-transport-back-office
- Repository: https://github.com/volamarosoa/gestion-transport-back-office

## Overview

This is an ASP.NET back-office application for managing employee transport. Administrators review and validate or reject transport requests, inspect validated transport history, and can automatically assign vehicles to eligible requests. The sampled code shows these page handlers using Entity Framework through AppDbContext, with transport requests represented by Affectation and related employee, address, site, schedule, vehicle, and assignment-type models. The README does not describe other capabilities; some page and persistence wiring is only partially sampled.

Main entry points: [`GestionTransport.BackOffice/Models/Affectation/Affectation.cs`](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Affectation/Affectation.cs) (Transport assignment), [`GestionTransport.BackOffice/Data/AppDbContext.cs`](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Data/AppDbContext.cs) (Entity Framework context), [`GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs`](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs) (Transport history), [`GestionTransport.BackOffice/Models/Employes/Employe.cs`](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Employes/Employe.cs) (Employee)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_transport_ops["Transport operations"]
  node_request_review["Request review"]
  node_transport_history["Transport history"]
end

subgraph group_fleet["Fleet management"]
  node_vehicle_management["Vehicle management"]
  node_vehicle["Vehicle<br/>[Vehicule.cs]"]
end

subgraph group_domain["Transport domain"]
  node_assignment["Transport assignment<br/>[Affectation.cs]"]
  node_assignment_history["Assignment history"]
  node_assignment_type["Assignment type<br/>[TypeAffectation.cs]"]
  node_employee["Employee<br/>[Employe.cs]"]
  node_employee_address["Employee address<br/>[AdresseEmploye.cs]"]
  node_department["Department<br/>[Departement.cs]"]
  node_site["Transport site<br/>[Site.cs]"]
  node_transport_type["Transport type<br/>[TypeTransport.cs]"]
  node_transport_date["Transport date<br/>[DateTransport.cs]"]
  node_transport_time["Transport time<br/>[HeureTransport.cs]"]
end

subgraph group_persistence["Persistence"]
  node_db_context["Entity Framework context<br/>[AppDbContext.cs]"]
  node_database[("Database")]
end

node_admin(("Administrator"))

node_admin -.->|"reviews requests"| node_request_review
node_admin -.->|"manages history"| node_transport_history
node_admin -.->|"manages fleet"| node_vehicle_management
node_request_review -->|"queries and updates"| node_db_context
node_request_review -->|"validates or rejects"| node_assignment
node_transport_history -->|"queries and saves"| node_db_context
node_transport_history -->|"assigns vehicles"| node_vehicle
node_transport_history -->|"updates status"| node_assignment
node_vehicle_management -->|"manages vehicles"| node_db_context
node_db_context -->|"persists entities"| node_database
node_db_context -->|"maps entity"| node_assignment
node_db_context -->|"maps relation"| node_employee
node_db_context -->|"maps relation"| node_employee_address
node_assignment -->|"references employee"| node_employee
node_assignment -->|"references address"| node_employee_address
node_assignment -->|"references site"| node_site
node_assignment -->|"references vehicle"| node_vehicle
node_assignment -->|"references type"| node_transport_type
node_assignment -->|"stores date"| node_transport_date
node_assignment -->|"references time"| node_transport_time
node_assignment -->|"references type"| node_assignment_type
node_assignment -->|"creates history entry"| node_assignment_history
node_employee -->|"references department"| node_department
node_employee -->|"has addresses"| node_employee_address

click node_request_review "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Pages/Transport/DemandeTransport.cshtml.cs"
click node_transport_history "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs"
click node_vehicle_management "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Pages/Vehicules/GestionVehicule.cshtml.cs"
click node_assignment "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Affectation/Affectation.cs"
click node_assignment_history "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Affectation/HistoriqueAffectation.cs"
click node_assignment_type "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Affectation/TypeAffectation.cs"
click node_employee "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Employes/Employe.cs"
click node_employee_address "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Employes/AdresseEmploye.cs"
click node_department "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Departement.cs"
click node_site "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Site.cs"
click node_vehicle "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Vehicule.cs"
click node_transport_type "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Transport/TypeTransport.cs"
click node_transport_date "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Transport/DateTransport.cs"
click node_transport_time "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Transport/HeureTransport.cs"
click node_db_context "https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Data/AppDbContext.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_request_review,node_transport_history toneBlue
class node_vehicle_management,node_vehicle toneAmber
class node_assignment,node_assignment_history,node_assignment_type,node_employee,node_employee_address,node_department,node_site,node_transport_type,node_transport_date,node_transport_time toneMint
class node_db_context,node_database toneRose
class node_admin toneIndigo
```

## Components

### Transport operations

- [Request review](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Pages/Transport/DemandeTransport.cshtml.cs): `GestionTransport.BackOffice/Pages/Transport/DemandeTransport.cshtml.cs`
- [Transport history](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs): `GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs`

### Fleet management

- [Vehicle management](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Pages/Vehicules/GestionVehicule.cshtml.cs): `GestionTransport.BackOffice/Pages/Vehicules/GestionVehicule.cshtml.cs`
- [Vehicle](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Vehicule.cs): `GestionTransport.BackOffice/Models/Vehicule.cs`

### Transport domain

- [Transport assignment](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Affectation/Affectation.cs): `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`
- [Assignment history](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Affectation/HistoriqueAffectation.cs): `GestionTransport.BackOffice/Models/Affectation/HistoriqueAffectation.cs`
- [Assignment type](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Affectation/TypeAffectation.cs): `GestionTransport.BackOffice/Models/Affectation/TypeAffectation.cs`
- [Employee](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Employes/Employe.cs): `GestionTransport.BackOffice/Models/Employes/Employe.cs`
- [Employee address](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Employes/AdresseEmploye.cs): `GestionTransport.BackOffice/Models/Employes/AdresseEmploye.cs`
- [Department](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Departement.cs): `GestionTransport.BackOffice/Models/Departement.cs`
- [Transport site](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Site.cs): `GestionTransport.BackOffice/Models/Site.cs`
- [Transport type](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Transport/TypeTransport.cs): `GestionTransport.BackOffice/Models/Transport/TypeTransport.cs`
- [Transport date](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Transport/DateTransport.cs): `GestionTransport.BackOffice/Models/Transport/DateTransport.cs`
- [Transport time](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Models/Transport/HeureTransport.cs): `GestionTransport.BackOffice/Models/Transport/HeureTransport.cs`

### Persistence

- [Entity Framework context](https://github.com/volamarosoa/gestion-transport-back-office/blob/main/GestionTransport.BackOffice/Data/AppDbContext.cs): `GestionTransport.BackOffice/Data/AppDbContext.cs`
- **Database**

### Other components

- **Administrator**

## Connections

- Administrator → Request review: reviews requests
- Administrator → Transport history: manages history
- Administrator → Vehicle management: manages fleet
- Request review → Entity Framework context: queries and updates (evidence: `GestionTransport.BackOffice/Pages/Transport/DemandeTransport.cshtml.cs`)
- Request review → Transport assignment: validates or rejects (evidence: `GestionTransport.BackOffice/Pages/Transport/DemandeTransport.cshtml.cs`)
- Transport history → Entity Framework context: queries and saves (evidence: `GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs`)
- Transport history → Vehicle: assigns vehicles (evidence: `GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs`)
- Transport history → Transport assignment: updates status (evidence: `GestionTransport.BackOffice/Pages/Transport/HistoriqueTransport.cshtml.cs`)
- Vehicle management → Entity Framework context: manages vehicles (evidence: `GestionTransport.BackOffice/Pages/Vehicules/GestionVehicule.cshtml.cs`)
- Entity Framework context → Database: persists entities (evidence: `GestionTransport.BackOffice/Data/AppDbContext.cs`)
- Entity Framework context → Transport assignment: maps entity (evidence: `GestionTransport.BackOffice/Data/AppDbContext.cs`)
- Entity Framework context → Employee: maps relation (evidence: `GestionTransport.BackOffice/Data/AppDbContext.cs`)
- Entity Framework context → Employee address: maps relation (evidence: `GestionTransport.BackOffice/Data/AppDbContext.cs`)
- Transport assignment → Employee: references employee (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Employee address: references address (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Transport site: references site (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Vehicle: references vehicle (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Transport type: references type (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Transport date: stores date (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Transport time: references time (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Assignment type: references type (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Transport assignment → Assignment history: creates history entry (evidence: `GestionTransport.BackOffice/Models/Affectation/Affectation.cs`)
- Employee → Department: references department (evidence: `GestionTransport.BackOffice/Models/Employes/Employe.cs`)
- Employee → Employee address: has addresses (evidence: `GestionTransport.BackOffice/Models/Employes/Employe.cs`)
