# haranblazer/vista_ez architecture

> Architecture diagram of the GitHub repository haranblazer/vista_ez, 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/haranblazer/vista_ez
- Repository: https://github.com/haranblazer/vista_ez

## Overview

This is an ASP.NET Web Forms commerce and direct-selling platform with public product pages, member and franchise portals, sales and inventory workflows, billing, payouts, and account/KYC management. A typical customer journey is product discovery, cart/order handling, payment, and invoice; members and franchisees also use separate operational and reporting areas. The source tree documents these capabilities, but the README is empty and many handlers are unsampled, so only relationships supported by excerpts or the source index are connected.

Main entry points: [`App_Code/DataUtility.cs`](https://github.com/haranblazer/vista_ez/blob/master/App_Code/DataUtility.cs) (Database access), [`App_Code/WhatsApp.cs`](https://github.com/haranblazer/vista_ez/blob/master/App_Code/WhatsApp.cs) (WhatsApp messaging), [`user/Changeprofile.aspx.cs`](https://github.com/haranblazer/vista_ez/blob/master/user/Changeprofile.aspx.cs) (Member profile and KYC), [`franchise/edit.aspx.cs`](https://github.com/haranblazer/vista_ez/blob/master/franchise/edit.aspx.cs) (Franchise profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commerce["Commerce"]
  node_catalog["Product catalog"]
  node_cart["Cart and sales<br/>[Service.aspx.cs]"]
  node_payment["Payment callbacks"]
  node_public_content["Public pages<br/>[Default.aspx.cs]"]
end

subgraph group_portals["Member and franchise portals"]
  node_member_portal["Member portal"]
  node_member_profile["Member profile and KYC"]
  node_member_reports["Member reports and payouts"]
  node_franchise_portal["Franchise portal"]
  node_franchise_profile["Franchise profile<br/>[edit.aspx.cs]"]
  node_member_onboarding["Member onboarding<br/>[newjoin.aspx.cs]"]
end

subgraph group_operations["Sales operations"]
  node_billing["Billing and invoices<br/>[Invoice.aspx.cs]"]
  node_stock_transfer["Stock transfer bills"]
  node_purchase_bills["Purchase bills<br/>[UserPOBill.aspx.cs]"]
  node_barcode_billing["Barcode billing"]
  node_franchise_sales["Franchise sales services<br/>[Services.aspx.cs]"]
end

subgraph group_shared["Shared services"]
  node_data["Database access<br/>[DataUtility.cs]"]
  node_insert["Account data operations<br/>[InsertFunction.cs]"]
  node_validation["Input validation<br/>[Validation.cs]"]
  node_whatsapp["WhatsApp messaging<br/>[WhatsApp.cs]"]
end

node_visitor(("Visitor or buyer"))
node_sql[("SQL Server")]
node_payment_provider["Payment provider"]
node_whatsapp_service["WhatsApp service"]

node_visitor -.->|"browses"| node_catalog
node_visitor -.->|"shops through"| node_cart
node_cart -->|"queries"| node_data
node_catalog -->|"queries"| node_data
node_catalog -->|"uses models"| node_data
node_payment_provider -.->|"returns status"| node_payment
node_member_profile -->|"queries"| node_data
node_member_profile -->|"delegates writes"| node_insert
node_member_profile -->|"validates with"| node_validation
node_franchise_profile -->|"queries"| node_data
node_franchise_profile -->|"delegates writes"| node_insert
node_franchise_profile -->|"validates with"| node_validation
node_member_onboarding -->|"queries"| node_data
node_member_onboarding -->|"validates with"| node_validation
node_member_onboarding -->|"sends messages"| node_whatsapp
node_billing -->|"queries"| node_data
node_stock_transfer -->|"queries"| node_data
node_purchase_bills -->|"queries"| node_data
node_barcode_billing -->|"queries"| node_data
node_barcode_billing -->|"sends messages"| node_whatsapp
node_franchise_sales -->|"queries"| node_data
node_franchise_sales -->|"sends messages"| node_whatsapp
node_whatsapp -->|"loads settings and logs"| node_data
node_whatsapp -->|"sends messages"| node_whatsapp_service
node_data -->|"executes queries"| node_sql

click node_catalog "https://github.com/haranblazer/vista_ez/blob/master/ProductDesc.aspx.cs"
click node_cart "https://github.com/haranblazer/vista_ez/blob/master/Service.aspx.cs"
click node_payment "https://github.com/haranblazer/vista_ez/blob/master/phonepe_resp.aspx.cs"
click node_public_content "https://github.com/haranblazer/vista_ez/blob/master/Default.aspx.cs"
click node_member_portal "https://github.com/haranblazer/vista_ez/tree/master/user"
click node_member_profile "https://github.com/haranblazer/vista_ez/blob/master/user/Changeprofile.aspx.cs"
click node_member_reports "https://github.com/haranblazer/vista_ez/blob/master/user/LevelReport.aspx.cs"
click node_franchise_portal "https://github.com/haranblazer/vista_ez/tree/master/franchise"
click node_franchise_profile "https://github.com/haranblazer/vista_ez/blob/master/franchise/edit.aspx.cs"
click node_member_onboarding "https://github.com/haranblazer/vista_ez/blob/master/newjoin.aspx.cs"
click node_billing "https://github.com/haranblazer/vista_ez/blob/master/Common/Invoice.aspx.cs"
click node_stock_transfer "https://github.com/haranblazer/vista_ez/blob/master/Common/StockTranBill.aspx.cs"
click node_purchase_bills "https://github.com/haranblazer/vista_ez/blob/master/Common/UserPOBill.aspx.cs"
click node_barcode_billing "https://github.com/haranblazer/vista_ez/blob/master/user/BarcodeBilling.aspx.cs"
click node_franchise_sales "https://github.com/haranblazer/vista_ez/blob/master/franchise/Services.aspx.cs"
click node_data "https://github.com/haranblazer/vista_ez/blob/master/App_Code/DataUtility.cs"
click node_insert "https://github.com/haranblazer/vista_ez/blob/master/App_Code/InsertFunction.cs"
click node_validation "https://github.com/haranblazer/vista_ez/blob/master/App_Code/Validation.cs"
click node_whatsapp "https://github.com/haranblazer/vista_ez/blob/master/App_Code/WhatsApp.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_catalog,node_cart,node_payment,node_public_content toneBlue
class node_member_portal,node_member_profile,node_member_reports,node_franchise_portal,node_franchise_profile,node_member_onboarding,node_sql toneAmber
class node_billing,node_stock_transfer,node_purchase_bills,node_barcode_billing,node_franchise_sales toneMint
class node_data,node_insert,node_validation,node_whatsapp toneRose
class node_visitor,node_payment_provider,node_whatsapp_service toneIndigo
```

## Components

### Commerce

- [Product catalog](https://github.com/haranblazer/vista_ez/blob/master/ProductDesc.aspx.cs): `ProductDesc.aspx.cs`
- [Cart and sales](https://github.com/haranblazer/vista_ez/blob/master/Service.aspx.cs): `Service.aspx.cs`
- [Payment callbacks](https://github.com/haranblazer/vista_ez/blob/master/phonepe_resp.aspx.cs): `phonepe_resp.aspx.cs`
- [Public pages](https://github.com/haranblazer/vista_ez/blob/master/Default.aspx.cs): `Default.aspx.cs`

### Member and franchise portals

- [Member portal](https://github.com/haranblazer/vista_ez/tree/master/user): `user`
- [Member profile and KYC](https://github.com/haranblazer/vista_ez/blob/master/user/Changeprofile.aspx.cs): `user/Changeprofile.aspx.cs`
- [Member reports and payouts](https://github.com/haranblazer/vista_ez/blob/master/user/LevelReport.aspx.cs): `user/LevelReport.aspx.cs`
- [Franchise portal](https://github.com/haranblazer/vista_ez/tree/master/franchise): `franchise`
- [Franchise profile](https://github.com/haranblazer/vista_ez/blob/master/franchise/edit.aspx.cs): `franchise/edit.aspx.cs`
- [Member onboarding](https://github.com/haranblazer/vista_ez/blob/master/newjoin.aspx.cs): `newjoin.aspx.cs`

### Sales operations

- [Billing and invoices](https://github.com/haranblazer/vista_ez/blob/master/Common/Invoice.aspx.cs): `Common/Invoice.aspx.cs`
- [Stock transfer bills](https://github.com/haranblazer/vista_ez/blob/master/Common/StockTranBill.aspx.cs): `Common/StockTranBill.aspx.cs`
- [Purchase bills](https://github.com/haranblazer/vista_ez/blob/master/Common/UserPOBill.aspx.cs): `Common/UserPOBill.aspx.cs`
- [Barcode billing](https://github.com/haranblazer/vista_ez/blob/master/user/BarcodeBilling.aspx.cs): `user/BarcodeBilling.aspx.cs`
- [Franchise sales services](https://github.com/haranblazer/vista_ez/blob/master/franchise/Services.aspx.cs): `franchise/Services.aspx.cs`

### Shared services

- [Database access](https://github.com/haranblazer/vista_ez/blob/master/App_Code/DataUtility.cs): `App_Code/DataUtility.cs`
- [Account data operations](https://github.com/haranblazer/vista_ez/blob/master/App_Code/InsertFunction.cs): `App_Code/InsertFunction.cs`
- [Input validation](https://github.com/haranblazer/vista_ez/blob/master/App_Code/Validation.cs): `App_Code/Validation.cs`
- [WhatsApp messaging](https://github.com/haranblazer/vista_ez/blob/master/App_Code/WhatsApp.cs): `App_Code/WhatsApp.cs`

### Other components

- **Visitor or buyer**
- **SQL Server**
- **Payment provider**
- **WhatsApp service**

## Connections

- Visitor or buyer → Product catalog: browses
- Visitor or buyer → Cart and sales: shops through
- Cart and sales → Database access: queries (evidence: `Service.aspx.cs`)
- Product catalog → Database access: queries (evidence: `ProductDesc.aspx.cs`)
- Product catalog → Database access: uses models (evidence: `ProductDesc.aspx.cs`)
- Payment provider → Payment callbacks: returns status
- Member profile and KYC → Database access: queries (evidence: `user/Changeprofile.aspx.cs`)
- Member profile and KYC → Account data operations: delegates writes (evidence: `user/Changeprofile.aspx.cs`)
- Member profile and KYC → Input validation: validates with (evidence: `user/Changeprofile.aspx.cs`)
- Franchise profile → Database access: queries (evidence: `franchise/edit.aspx.cs`)
- Franchise profile → Account data operations: delegates writes (evidence: `franchise/edit.aspx.cs`)
- Franchise profile → Input validation: validates with (evidence: `franchise/edit.aspx.cs`)
- Member onboarding → Database access: queries (evidence: `newjoin.aspx.cs`)
- Member onboarding → Input validation: validates with (evidence: `newjoin.aspx.cs`)
- Member onboarding → WhatsApp messaging: sends messages (evidence: `newjoin.aspx.cs`)
- Billing and invoices → Database access: queries (evidence: `Common/Invoice.aspx.cs`)
- Stock transfer bills → Database access: queries (evidence: `Common/StockTranBill.aspx.cs`)
- Purchase bills → Database access: queries (evidence: `Common/UserPOBill.aspx.cs`)
- Barcode billing → Database access: queries (evidence: `user/BarcodeBilling.aspx.cs`)
- Barcode billing → WhatsApp messaging: sends messages (evidence: `user/BarcodeBilling.aspx.cs`)
- Franchise sales services → Database access: queries (evidence: `franchise/Services.aspx.cs`)
- Franchise sales services → WhatsApp messaging: sends messages (evidence: `franchise/Services.aspx.cs`)
- WhatsApp messaging → Database access: loads settings and logs (evidence: `App_Code/WhatsApp.cs`)
- WhatsApp messaging → WhatsApp service: sends messages (evidence: `App_Code/WhatsApp.cs`)
- Database access → SQL Server: executes queries (evidence: `App_Code/DataUtility.cs`)
