How blinkkishi-del/salesinventoryapp works
This is a Windows Forms sales-and-inventory application: staff sign in, then administrators manage inventory and view reports while cashiers build a cart, take payment, record sales, and print receipts. The sampled code shows sales recording and stock deduction through controllers and repositories; the cart is persisted separately. Product persistence uses SQL Server tables and stored procedures. Several UI and repository connections are supported only by the SOURCE INDEX, so edges are limited to those references; unsampled report, stock, and database behavior is not inferred.
Main entry points: PointofSales.cs Point of Sale · ProductController.cs Product Controller · Login.cs Login · AdminDashboard.cs Admin Dashboard
Components 24
Desktop UI
- Login
UI/Login.cs - Admin Dashboard
UI/AdminDashboard.cs - Cashier Dashboard
UI/CashierDashboard.cs - Inventory Management
UI/InventoryManagement.cs - Stock Report
UI/StockReport.cs - Sales Report
UI/SalesReport.cs - Point of Sale
UI/PointofSales.cs
Business Logic
- User Controller
BusinessLogic/Controller/UserController.cs - Product Controller
BusinessLogic/Controller/ProductController.cs - Order Controller
BusinessLogic/Controller/OrderProductController.cs - Sales Controller
BusinessLogic/Controller/SalesController.cs - Stock Controller
BusinessLogic/Controller/StockController.cs
Persistence
- User Repository
BusinessLogic/Repository/UserRepository.cs - Product Repository
BusinessLogic/Repository/ProductRepository.cs - Order Repository
BusinessLogic/Repository/ProductOrderRepository.cs - Sales Repository
BusinessLogic/Repository/SalesRepository.cs - Stock Repository
BusinessLogic/Repository/StockRepository.cs - Product SQL
DB/Table/tblProduct.sql - Order SQL
DB/Table/tblOrderProduct.sql - Sales SQL
DB/Table/tblSales.sql
Domain Models
- Product Details
Model/ProductDetailsModel.cs - Order Item
Model/OrderProductModel.cs - User
Model/UserModel.cs
Other components
- Staff
Connections 26
- Staff → Login: signs in
UI/Login.cs - Login → User Controller: validates login
UI/Login.cs - User Controller → User Repository: checks credentials
BusinessLogic/Controller/UserController.cs - Login → Admin Dashboard: opens admin
UI/Login.cs - Login → Cashier Dashboard: opens cashier
UI/Login.cs - Admin Dashboard → Inventory Management: opens inventory
UI/AdminDashboard.cs - Admin Dashboard → Stock Report: opens report
UI/AdminDashboard.cs - Admin Dashboard → Sales Report: opens report
UI/AdminDashboard.cs - Cashier Dashboard → Point of Sale: opens sales
UI/CashierDashboard.cs - Inventory Management → Product Controller: uses products
UI/InventoryManagement.cs - Stock Report → Stock Controller: requests stock
UI/StockReport.cs - Sales Report → Sales Controller: requests sales
UI/SalesReport.cs - Point of Sale → Product Controller: loads products
UI/PointofSales.cs - Point of Sale → Order Controller: manages cart
UI/PointofSales.cs - Point of Sale → Sales Controller: records checkout
UI/PointofSales.cs - Product Controller → Product Repository: delegates product work
BusinessLogic/Controller/ProductController.cs - Order Controller → Order Repository: delegates cart work
BusinessLogic/Controller/OrderProductController.cs - Sales Controller → Sales Repository: records and queries
BusinessLogic/Controller/SalesController.cs - Sales Controller → Product Controller: deducts stock
BusinessLogic/Controller/SalesController.cs - Stock Controller → Stock Repository: delegates stock work
BusinessLogic/Controller/StockController.cs - Product Repository → Product SQL: queries and updates
BusinessLogic/Repository/ProductRepository.cs - Order Repository → Order SQL: reads and writes cart
BusinessLogic/Repository/ProductOrderRepository.cs - Point of Sale → Order Item: builds cart items
UI/PointofSales.cs - Product Controller → Product Details: accepts product data
BusinessLogic/Controller/ProductController.cs - User Controller → User: returns user
BusinessLogic/Controller/UserController.cs - Sales Repository → Sales SQL