# rilo1407/tia-business-webapplication architecture

> Architecture diagram of the GitHub repository rilo1407/tia-business-webapplication, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rilo1407/tia-business-webapplication
- Repository: https://github.com/rilo1407/tia-business-webapplication

## Overview

ISTN3SI is an ASP.NET Web Forms retail system combining customer shopping and checkout with staff-facing inventory, supplier purchasing, account, and reporting features. The customer path covers cart and order creation; supplier purchasing separately progresses from a supplier cart to order-status management. SQL Server is the principal operational store, while ASP.NET Identity and OWIN handle account sign-in. Several business pages are represented from the file tree and source index, but their internal calls were not sampled, so their relationships are omitted rather than inferred.

Main entry points: [`ISTN3SI/Models/IdentityModels.cs`](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Models/IdentityModels.cs) (Identity Models), [`ISTN3SI/ShoppingCart.aspx.cs`](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/ShoppingCart.aspx.cs) (Shopping Cart), [`ISTN3SI/Checkout.aspx.cs`](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Checkout.aspx.cs) (Checkout), [`ISTN3SI/Account/Login.aspx.cs`](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Account/Login.aspx.cs) (Sign In)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commerce["Customer Commerce"]
  node_shopping_cart["Shopping Cart"]
  node_checkout["Checkout<br/>[Checkout.aspx.cs]"]
  node_customer_orders["Customer Orders"]
  node_products["Product Catalog<br/>[Products.aspx.cs]"]
  node_product_detail["Product Detail"]
  node_invoice_pdf["Invoice PDF"]
end

subgraph group_identity["Accounts and Profiles"]
  node_login["Sign In<br/>[Login.aspx.cs]"]
  node_registration["Registration<br/>[Register.aspx.cs]"]
  node_identity_config["Identity Configuration<br/>[Startup.Auth.cs]"]
  node_identity_models["Identity Models<br/>[IdentityModels.cs]"]
  node_profile["Profile<br/>[Profile.aspx.cs]"]
end

subgraph group_operations["Retail Operations"]
  node_supplier_cart["Supplier Cart"]
  node_supplier_status["Supplier Orders"]
  node_stock_management["Stock Management"]
  node_supplier_management["Supplier Management"]
  node_dashboard["Staff Dashboard<br/>[Dashboard.aspx.cs]"]
  node_sales_reports["Sales Reports"]
  node_financial_reports["Financial Reports"]
  node_stock_reports["Stock Reports"]
end

subgraph group_persistence["Persistence"]
  node_customer_model["Customer Model<br/>[Customer.cs]"]
  node_database_helper["Connection Helper<br/>[Database.cs]"]
  node_sql_server[("SQL Server")]
end

node_customer(("Customer"))
node_staff(("Staff"))

node_customer -->|"signs in"| node_login
node_customer -->|"registers"| node_registration
node_customer -.->|"submits order"| node_checkout
node_staff -.->|"creates purchase"| node_supplier_cart
node_staff -.->|"manages orders"| node_supplier_status
node_login -->|"uses identity"| node_identity_models
node_registration -->|"creates account"| node_identity_models
node_identity_config -->|"configures context"| node_identity_models
node_checkout -->|"reads and writes"| node_sql_server
node_shopping_cart -->|"reads and writes"| node_sql_server
node_shopping_cart -->|"generates"| node_invoice_pdf
node_supplier_cart -->|"reads and writes"| node_sql_server
node_supplier_status -->|"updates orders"| node_sql_server
node_database_helper -->|"opens connection"| node_sql_server
node_profile -->|"opens connection"| node_database_helper

click node_shopping_cart "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/ShoppingCart.aspx.cs"
click node_checkout "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Checkout.aspx.cs"
click node_customer_orders "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/CustomerOrders.aspx.cs"
click node_products "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Products.aspx.cs"
click node_product_detail "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/ProductDetail.aspx.cs"
click node_login "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Account/Login.aspx.cs"
click node_registration "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Account/Register.aspx.cs"
click node_identity_config "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/App_Start/Startup.Auth.cs"
click node_identity_models "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Models/IdentityModels.cs"
click node_profile "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Profile.aspx.cs"
click node_supplier_cart "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SuppliersCart.aspx.cs"
click node_supplier_status "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SuppliersOrderStatus.aspx.cs"
click node_stock_management "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/StockManagement.aspx.cs"
click node_supplier_management "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SupplierManagement.aspx.cs"
click node_dashboard "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Dashboard.aspx.cs"
click node_sales_reports "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SalesReports.aspx.cs"
click node_financial_reports "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/FinancialReports.aspx.cs"
click node_stock_reports "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/StockReports.aspx.cs"
click node_customer_model "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Models/Customer.cs"
click node_database_helper "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Database.cs"
click node_invoice_pdf "https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/ShoppingCart.aspx.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_shopping_cart,node_checkout,node_customer_orders,node_products,node_product_detail,node_invoice_pdf toneBlue
class node_login,node_registration,node_identity_config,node_identity_models,node_profile toneAmber
class node_supplier_cart,node_supplier_status,node_stock_management,node_supplier_management,node_dashboard,node_sales_reports,node_financial_reports,node_stock_reports toneMint
class node_customer_model,node_database_helper,node_sql_server toneRose
class node_customer,node_staff toneIndigo
```

## Components

### Customer Commerce

- [Shopping Cart](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/ShoppingCart.aspx.cs): `ISTN3SI/ShoppingCart.aspx.cs`
- [Checkout](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Checkout.aspx.cs): `ISTN3SI/Checkout.aspx.cs`
- [Customer Orders](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/CustomerOrders.aspx.cs): `ISTN3SI/CustomerOrders.aspx.cs`
- [Product Catalog](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Products.aspx.cs): `ISTN3SI/Products.aspx.cs`
- [Product Detail](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/ProductDetail.aspx.cs): `ISTN3SI/ProductDetail.aspx.cs`
- [Invoice PDF](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/ShoppingCart.aspx.cs): `ISTN3SI/ShoppingCart.aspx.cs`

### Accounts and Profiles

- [Sign In](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Account/Login.aspx.cs): `ISTN3SI/Account/Login.aspx.cs`
- [Registration](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Account/Register.aspx.cs): `ISTN3SI/Account/Register.aspx.cs`
- [Identity Configuration](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/App_Start/Startup.Auth.cs): `ISTN3SI/App_Start/Startup.Auth.cs`
- [Identity Models](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Models/IdentityModels.cs): `ISTN3SI/Models/IdentityModels.cs`
- [Profile](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Profile.aspx.cs): `ISTN3SI/Profile.aspx.cs`

### Retail Operations

- [Supplier Cart](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SuppliersCart.aspx.cs): `ISTN3SI/SuppliersCart.aspx.cs`
- [Supplier Orders](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SuppliersOrderStatus.aspx.cs): `ISTN3SI/SuppliersOrderStatus.aspx.cs`
- [Stock Management](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/StockManagement.aspx.cs): `ISTN3SI/StockManagement.aspx.cs`
- [Supplier Management](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SupplierManagement.aspx.cs): `ISTN3SI/SupplierManagement.aspx.cs`
- [Staff Dashboard](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Dashboard.aspx.cs): `ISTN3SI/Dashboard.aspx.cs`
- [Sales Reports](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/SalesReports.aspx.cs): `ISTN3SI/SalesReports.aspx.cs`
- [Financial Reports](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/FinancialReports.aspx.cs): `ISTN3SI/FinancialReports.aspx.cs`
- [Stock Reports](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/StockReports.aspx.cs): `ISTN3SI/StockReports.aspx.cs`

### Persistence

- [Customer Model](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Models/Customer.cs): `ISTN3SI/Models/Customer.cs`
- [Connection Helper](https://github.com/rilo1407/tia-business-webapplication/blob/master/ISTN3SI/Database.cs): `ISTN3SI/Database.cs`
- **SQL Server**

### Other components

- **Customer**
- **Staff**

## Connections

- Customer → Sign In: signs in (evidence: `ISTN3SI/Account/Login.aspx.cs`)
- Customer → Registration: registers (evidence: `ISTN3SI/Account/Register.aspx.cs`)
- Customer → Checkout: submits order
- Staff → Supplier Cart: creates purchase
- Staff → Supplier Orders: manages orders
- Sign In → Identity Models: uses identity (evidence: `ISTN3SI/Account/Login.aspx.cs`)
- Registration → Identity Models: creates account (evidence: `ISTN3SI/Account/Register.aspx.cs`)
- Identity Configuration → Identity Models: configures context (evidence: `ISTN3SI/App_Start/Startup.Auth.cs`)
- Checkout → SQL Server: reads and writes (evidence: `ISTN3SI/Checkout.aspx.cs`)
- Shopping Cart → SQL Server: reads and writes (evidence: `ISTN3SI/ShoppingCart.aspx.cs`)
- Shopping Cart → Invoice PDF: generates (evidence: `ISTN3SI/ShoppingCart.aspx.cs`)
- Supplier Cart → SQL Server: reads and writes (evidence: `ISTN3SI/SuppliersCart.aspx.cs`)
- Supplier Orders → SQL Server: updates orders (evidence: `ISTN3SI/SuppliersOrderStatus.aspx.cs`)
- Connection Helper → SQL Server: opens connection (evidence: `ISTN3SI/Database.cs`)
- Profile → Connection Helper: opens connection (evidence: `ISTN3SI/Profile.aspx.cs`)
