# rabindranathchanda/student_management_system architecture

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

- Interactive diagram: https://gitdiagram.com/rabindranathchanda/student_management_system
- Repository: https://github.com/rabindranathchanda/student_management_system

## Overview

This Windows Forms school-management application supports staff registration/login and a dashboard that opens student and library modules. Student workflows cover admission, record search/export, correction, and termination; library workflows cover issue and return. The sampled forms access SQL Server directly through shared connection helpers, while database setup and unique library-card generation support those operations. The README also names search/filtering, notifications, and custom controls. Edges reflect shown calls or documented capabilities; unsampled login, schema, and dashboard behavior is represented conservatively.

Main entry points: [`SMS/Dashboard.cs`](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/Dashboard.cs) (Admin dashboard), [`Database/Schema`](https://github.com/rabindranathchanda/student_management_system/tree/main/Database/Schema) (School database), [`SMS/WControls.cs`](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/WControls.cs) (UI controls), [`SMS/BkIssue.cs`](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/BkIssue.cs) (Book issue)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Staff access"]
  node_login["Login<br/>[L or R.cs]"]
  node_registration["Staff registration<br/>[Register.cs]"]
  node_dashboard["Admin dashboard<br/>[Dashboard.cs]"]
end

subgraph group_students["Student records"]
  node_admission["Student admission<br/>[AdmissionUC.cs]"]
  node_student_form["Student record entry<br/>[Student.cs]"]
  node_rectification["Student rectification<br/>[StudentRectify.cs]"]
  node_termination["Student termination"]
end

subgraph group_library["Library circulation"]
  node_library_issue["Book issue<br/>[BkIssue.cs]"]
  node_library_return["Book return<br/>[BkReturn.cs]"]
end

subgraph group_shared["Shared services"]
  node_sqlserver[("School database")]
  node_connection["SQL connection<br/>[WControls.cs]"]
  node_setup["Issue table setup<br/>[DatabaseSetup.cs]"]
  node_card_id["Library-card generator"]
  node_notifications["Popup notifications<br/>[ToasterMsg.cs]"]
  node_custom_controls["UI controls<br/>[WControls.cs]"]
end

node_staff(("School staff"))

node_staff -.->|"signs in"| node_login
node_staff -.->|"registers"| node_registration
node_login -.->|"opens"| node_dashboard
node_dashboard -->|"opens"| node_admission
node_dashboard -->|"opens"| node_termination
node_dashboard -->|"opens"| node_library_return
node_dashboard -->|"opens"| node_library_issue
node_dashboard -->|"opens"| node_rectification
node_admission -->|"opens"| node_student_form
node_admission -->|"reads and exports"| node_sqlserver
node_student_form -->|"writes records"| node_sqlserver
node_rectification -->|"reads and updates"| node_sqlserver
node_termination -->|"reads and deletes"| node_sqlserver
node_library_issue -->|"reads and issues"| node_sqlserver
node_library_return -->|"reads and updates"| node_sqlserver
node_connection -->|"connects"| node_sqlserver
node_setup -->|"opens connection"| node_connection
node_library_issue -->|"ensures table"| node_setup
node_library_issue -->|"generates card"| node_card_id
node_card_id -->|"checks uniqueness"| node_connection
node_registration -->|"stores account"| node_connection
node_dashboard -->|"shows messages"| node_notifications
node_custom_controls -->|"creates popup"| node_notifications
node_admission -->|"uses controls"| node_custom_controls
node_library_issue -->|"uses controls"| node_custom_controls
node_library_return -->|"uses controls"| node_custom_controls
node_rectification -->|"uses controls"| node_custom_controls
node_termination -->|"uses controls"| node_custom_controls

click node_login "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/L%20or%20R.cs"
click node_registration "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/Register.cs"
click node_dashboard "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/Dashboard.cs"
click node_admission "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/AdmissionUC.cs"
click node_student_form "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/Student.cs"
click node_rectification "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/StudentRectify.cs"
click node_termination "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/StudentTerminate.cs"
click node_library_issue "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/BkIssue.cs"
click node_library_return "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/BkReturn.cs"
click node_sqlserver "https://github.com/rabindranathchanda/student_management_system/tree/main/Database/Schema"
click node_connection "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/WControls.cs"
click node_setup "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/DatabaseSetup.cs"
click node_card_id "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/UniqueLCGenerator.cs"
click node_notifications "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/ToasterMsg.cs"
click node_custom_controls "https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/WControls.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_login,node_registration,node_dashboard toneBlue
class node_admission,node_student_form,node_rectification,node_termination toneAmber
class node_library_issue,node_library_return toneMint
class node_sqlserver,node_connection,node_setup,node_card_id,node_notifications,node_custom_controls toneRose
class node_staff toneIndigo
```

## Components

### Staff access

- [Login](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/L%20or%20R.cs): `SMS/L or R.cs`
- [Staff registration](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/Register.cs): `SMS/Register.cs`
- [Admin dashboard](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/Dashboard.cs): `SMS/Dashboard.cs`

### Student records

- [Student admission](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/AdmissionUC.cs): `SMS/AdmissionUC.cs`
- [Student record entry](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/Student.cs): `SMS/Student.cs`
- [Student rectification](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/StudentRectify.cs): `SMS/StudentRectify.cs`
- [Student termination](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/StudentTerminate.cs): `SMS/StudentTerminate.cs`

### Library circulation

- [Book issue](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/BkIssue.cs): `SMS/BkIssue.cs`
- [Book return](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/BkReturn.cs): `SMS/BkReturn.cs`

### Shared services

- [School database](https://github.com/rabindranathchanda/student_management_system/tree/main/Database/Schema): `Database/Schema`
- [SQL connection](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/WControls.cs): `SMS/WControls.cs`
- [Issue table setup](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/DatabaseSetup.cs): `SMS/DatabaseSetup.cs`
- [Library-card generator](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/UniqueLCGenerator.cs): `SMS/UniqueLCGenerator.cs`
- [Popup notifications](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/ToasterMsg.cs): `SMS/ToasterMsg.cs`
- [UI controls](https://github.com/rabindranathchanda/student_management_system/blob/main/SMS/WControls.cs): `SMS/WControls.cs`

### Other components

- **School staff**

## Connections

- School staff → Login: signs in (evidence: `README.md`)
- School staff → Staff registration: registers (evidence: `README.md`)
- Login → Admin dashboard: opens (evidence: `README.md`)
- Admin dashboard → Student admission: opens (evidence: `SMS/Dashboard.cs`)
- Admin dashboard → Student termination: opens (evidence: `SMS/Dashboard.cs`)
- Admin dashboard → Book return: opens (evidence: `SMS/Dashboard.cs`)
- Admin dashboard → Book issue: opens (evidence: `SMS/Dashboard.cs`)
- Admin dashboard → Student rectification: opens (evidence: `SMS/Dashboard.cs`)
- Student admission → Student record entry: opens (evidence: `SMS/AdmissionUC.cs`)
- Student admission → School database: reads and exports (evidence: `SMS/AdmissionUC.cs`)
- Student record entry → School database: writes records (evidence: `SMS/Student.cs`)
- Student rectification → School database: reads and updates (evidence: `SMS/StudentRectify.cs`)
- Student termination → School database: reads and deletes (evidence: `SMS/StudentTerminate.cs`)
- Book issue → School database: reads and issues (evidence: `SMS/BkIssue.cs`)
- Book return → School database: reads and updates (evidence: `SMS/BkReturn.cs`)
- SQL connection → School database: connects (evidence: `SMS/WControls.cs`)
- Issue table setup → SQL connection: opens connection (evidence: `SMS/DatabaseSetup.cs`)
- Book issue → Issue table setup: ensures table (evidence: `SMS/BkIssue.cs`)
- Book issue → Library-card generator: generates card (evidence: `SMS/BkIssue.cs`)
- Library-card generator → SQL connection: checks uniqueness (evidence: `SMS/UniqueLCGenerator.cs`)
- Staff registration → SQL connection: stores account (evidence: `SMS/Register.cs`)
- Admin dashboard → Popup notifications: shows messages (evidence: `SMS/Dashboard.cs`)
- UI controls → Popup notifications: creates popup (evidence: `SMS/WControls.cs`)
- Student admission → UI controls: uses controls (evidence: `SMS/AdmissionUC.cs`)
- Book issue → UI controls: uses controls (evidence: `SMS/BkIssue.cs`)
- Book return → UI controls: uses controls (evidence: `SMS/BkReturn.cs`)
- Student rectification → UI controls: uses controls (evidence: `SMS/StudentRectify.cs`)
- Student termination → UI controls: uses controls (evidence: `SMS/StudentTerminate.cs`)
