# rahulan-mahendra/backery-order-manaegement-system architecture

> Architecture diagram of the GitHub repository rahulan-mahendra/backery-order-manaegement-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rahulan-mahendra/backery-order-manaegement-system
- Repository: https://github.com/rahulan-mahendra/backery-order-manaegement-system

## Overview

This is a Windows Forms inventory and order-management application. Users authenticate into an employee or administrator area; the employee dashboard opens product, order, manufacturing-report, and order-report screens. Product entry and order workflows query and update the local database, while administrators can manage employees and open a sales report. The graph preserves listed report and manufacturing modules, but their behavior is only partly sampled; links without direct evidence are omitted. The database is a bundled LocalDB file, and several forms embed its connection string.

Main entry points: [`WindowsFormsApp1/Dashboard.cs`](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/Dashboard.cs) (Employee dashboard), [`WindowsFormsApp1/Database1.mdf`](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/Database1.mdf) (LocalDB database), [`WindowsFormsApp1/adminDashboard.cs`](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/adminDashboard.cs) (Admin dashboard), [`WindowsFormsApp1/login.cs`](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/login.cs) (Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_login["Login<br/>[login.cs]"]
  node_admin["Admin dashboard<br/>[adminDashboard.cs]"]
  node_dashboard["Employee dashboard<br/>[Dashboard.cs]"]
  node_controlhelper["Control display helper"]
  node_employees["Employee management<br/>[employeeControl.cs]"]
  node_newitems["Dashboard welcome view<br/>[NewItems.cs]"]
end

subgraph group_operations["Inventory and orders"]
  node_products["Product management<br/>[productInsert.cs]"]
  node_orders["Order entry<br/>[orderItems.cs]"]
  node_salesentry["Sales entry<br/>[salestems.cs]"]
  node_manufacturing["Manufacturing screen"]
end

subgraph group_reporting["Reports"]
  node_manufacturereport["Manufacturing report"]
  node_orderreport["Order report<br/>[orderReport.cs]"]
  node_salesreport["Sales report viewer<br/>[SalesReport2.cs]"]
  node_salescrystal["Sales report definition"]
  node_legacyreport["Sales report module"]
end

subgraph group_persistence["Persistence"]
  node_database[("LocalDB database<br/>[Database1.mdf]")]
end

node_user(("User"))

node_user -->|"signs in"| node_login
node_login -->|"opens admin"| node_admin
node_login -->|"opens employee"| node_dashboard
node_admin -->|"opens"| node_employees
node_admin -->|"opens"| node_dashboard
node_admin -->|"opens"| node_salesreport
node_dashboard -->|"displays controls"| node_controlhelper
node_dashboard -->|"opens"| node_products
node_dashboard -->|"opens"| node_orders
node_dashboard -->|"opens"| node_manufacturereport
node_dashboard -->|"opens"| node_orderreport
node_dashboard -->|"opens"| node_newitems
node_products -->|"reads and writes"| node_database
node_orders -->|"reads and writes"| node_database
node_salesentry -->|"reads and writes"| node_database
node_manufacturereport -->|"queries"| node_database
node_orderreport -->|"queries and updates"| node_database
node_salesreport -->|"sets report source"| node_salescrystal

click node_login "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/login.cs"
click node_admin "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/adminDashboard.cs"
click node_dashboard "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/Dashboard.cs"
click node_controlhelper "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/MainControlClass.cs"
click node_employees "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/employeeControl.cs"
click node_newitems "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/NewItems.cs"
click node_products "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/productInsert.cs"
click node_orders "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/orderItems.cs"
click node_salesentry "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/salestems.cs"
click node_manufacturing "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/manufactureProduct.cs"
click node_manufacturereport "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/manufactureReport.cs"
click node_orderreport "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/orderReport.cs"
click node_salesreport "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/SalesReport2.cs"
click node_salescrystal "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/SalesCrystalReport2.cs"
click node_legacyreport "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/SalesCrystalReport.cs"
click node_database "https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/Database1.mdf"

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_admin,node_dashboard,node_controlhelper,node_employees,node_newitems,node_user toneBlue
class node_products,node_orders,node_salesentry,node_manufacturing toneAmber
class node_manufacturereport,node_orderreport,node_salesreport,node_salescrystal,node_legacyreport toneMint
class node_database toneRose
```

## Components

### Access and navigation

- [Login](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/login.cs): `WindowsFormsApp1/login.cs`
- [Admin dashboard](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/adminDashboard.cs): `WindowsFormsApp1/adminDashboard.cs`
- [Employee dashboard](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/Dashboard.cs): `WindowsFormsApp1/Dashboard.cs`
- [Control display helper](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/MainControlClass.cs): `WindowsFormsApp1/MainControlClass.cs`
- [Employee management](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/employeeControl.cs): `WindowsFormsApp1/employeeControl.cs`
- [Dashboard welcome view](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/NewItems.cs): `WindowsFormsApp1/NewItems.cs`

### Inventory and orders

- [Product management](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/productInsert.cs): `WindowsFormsApp1/productInsert.cs`
- [Order entry](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/orderItems.cs): `WindowsFormsApp1/orderItems.cs`
- [Sales entry](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/salestems.cs): `WindowsFormsApp1/salestems.cs`
- [Manufacturing screen](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/manufactureProduct.cs): `WindowsFormsApp1/manufactureProduct.cs`

### Reports

- [Manufacturing report](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/manufactureReport.cs): `WindowsFormsApp1/manufactureReport.cs`
- [Order report](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/orderReport.cs): `WindowsFormsApp1/orderReport.cs`
- [Sales report viewer](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/SalesReport2.cs): `WindowsFormsApp1/SalesReport2.cs`
- [Sales report definition](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/SalesCrystalReport2.cs): `WindowsFormsApp1/SalesCrystalReport2.cs`
- [Sales report module](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/SalesCrystalReport.cs): `WindowsFormsApp1/SalesCrystalReport.cs`

### Persistence

- [LocalDB database](https://github.com/rahulan-mahendra/backery-order-manaegement-system/blob/master/WindowsFormsApp1/Database1.mdf): `WindowsFormsApp1/Database1.mdf`

### Other components

- **User**

## Connections

- User → Login: signs in
- Login → Admin dashboard: opens admin (evidence: `WindowsFormsApp1/login.cs`)
- Login → Employee dashboard: opens employee (evidence: `WindowsFormsApp1/login.cs`)
- Admin dashboard → Employee management: opens (evidence: `WindowsFormsApp1/adminDashboard.cs`)
- Admin dashboard → Employee dashboard: opens (evidence: `WindowsFormsApp1/adminDashboard.cs`)
- Admin dashboard → Sales report viewer: opens (evidence: `WindowsFormsApp1/adminDashboard.cs`)
- Employee dashboard → Control display helper: displays controls (evidence: `WindowsFormsApp1/Dashboard.cs`)
- Employee dashboard → Product management: opens (evidence: `WindowsFormsApp1/Dashboard.cs`)
- Employee dashboard → Order entry: opens (evidence: `WindowsFormsApp1/Dashboard.cs`)
- Employee dashboard → Manufacturing report: opens (evidence: `WindowsFormsApp1/Dashboard.cs`)
- Employee dashboard → Order report: opens (evidence: `WindowsFormsApp1/Dashboard.cs`)
- Employee dashboard → Dashboard welcome view: opens (evidence: `WindowsFormsApp1/Dashboard.cs`)
- Product management → LocalDB database: reads and writes (evidence: `WindowsFormsApp1/productInsert.cs`)
- Order entry → LocalDB database: reads and writes (evidence: `WindowsFormsApp1/orderItems.cs`)
- Sales entry → LocalDB database: reads and writes (evidence: `WindowsFormsApp1/salestems.cs`)
- Manufacturing report → LocalDB database: queries (evidence: `WindowsFormsApp1/manufactureReport.cs`)
- Order report → LocalDB database: queries and updates (evidence: `WindowsFormsApp1/orderReport.cs`)
- Sales report viewer → Sales report definition: sets report source (evidence: `WindowsFormsApp1/SalesReport2.cs`)
