How mateisandu24/salesmanagementsystem works
This is a Windows Forms sales and e-commerce application. The primary customer journey is login or registration, browse and inspect the catalog, manage an in-memory cart or buy directly, then review orders; administrators manage products, imports, and orders. The README documents transactional checkout and stock updates, SQL Server/Dapper persistence, and asynchronous remote product images. Some form and repository excerpts are partial, so edges are limited to relationships shown in excerpts, the source index, or README; unsampled subsystems are represented only where the tree or README supports them.
Main entry points: OrderRepository.cs Order repository · Form1.cs Catalog and filters · ProductRepository.cs Product repository · LoginForm.cs Login
Components 25
Identity
- Application startup
Program.cs - Login
Forms/InOut/LoginForm.cs - Registration
Forms/InOut/RegisterForm.cs - User model
Models/User.cs - Customer model
Models/Customer.cs
Shopping
- Catalog and filters
Forms/Client/Form1.cs - Product details
Forms/Client/ProductDetailsForm.cs - Product model
Models/Product.cs - Session cart
Models/ShoppingCart.cs - Cart and checkout
Forms/Client/CartForm.cs - Customer order history
Forms/Client/ClientOrdersForm.cs
Administration
- Product administration
Forms/Admin/AdminCommandsForm.cs - Edit product
Forms/Admin/EditProductForm.cs - Order administration
Forms/Admin/AdminOrdersForm.cs - Order details
Forms/Admin/AdminOrderDetailsForm.cs - CSV product import
Forms/InOut/InputForm.cs
Data and services
- Users
Repositories/UserRepository.cs - Product repository
Repositories/ProductRepository.cs - Order repository
Repositories/OrderRepository.cs - Image fetching
Services/ImageService.cs - Database configuration
Utils/ConfigHelper.cs - SQL Server
- Transaction model
Models/Transaction.cs
Other components
- Customer
- Wix image host
Connections 35
- Customer → Application startup: launches
Program.cs - Application startup → Login: shows
Program.cs - Customer → Login: authenticates
README.md - Login → Users: authenticates
Forms/InOut/LoginForm.cs - Login → Catalog and filters: opens
Forms/InOut/LoginForm.cs - Customer → Registration: creates account
README.md - Registration → Users: registers
Repositories/UserRepository.cs - Registration → Customer model: creates
Forms/InOut/RegisterForm.cs - Users → User model: maps
Repositories/UserRepository.cs - Catalog and filters → Product repository: loads products
Forms/Client/Form1.cs - Catalog and filters → Image fetching: fetches images
Forms/Client/Form1.cs - Image fetching → Wix image host: downloads
Services/ImageService.cs - Catalog and filters → Product details: opens
Forms/Client/Form1.cs - Product details → Session cart: updates
Forms/Client/ProductDetailsForm.cs - Customer → Cart and checkout: reviews cart
README.md - Cart and checkout → Session cart: reads cart
Forms/Client/CartForm.cs - Cart and checkout → Order repository: places order
Forms/Client/CartForm.cs - Product details → Order repository: buys directly
Forms/Client/ProductDetailsForm.cs - Order repository → SQL Server: queries and updates
Repositories/OrderRepository.cs - Product repository → SQL Server: queries and updates
Repositories/ProductRepository.cs - Users → SQL Server: queries and updates
Repositories/UserRepository.cs - Customer → Customer order history: views orders
README.md - Customer order history → Order repository: loads history
Forms/Client/ClientOrdersForm.cs - Customer order history → Order details: opens details
Forms/Client/ClientOrdersForm.cs - Customer → Product administration: administers catalog
README.md - Product administration → Product repository: manages products
Forms/Admin/AdminCommandsForm.cs - Edit product → Product repository: updates product
Forms/Admin/EditProductForm.cs - CSV product import → Product repository: imports CSV
README.md - Customer → Order administration: manages orders
README.md - Order administration → Order repository: loads orders
Forms/Admin/AdminOrdersForm.cs - Order administration → Order details: opens details
Forms/Admin/AdminOrdersForm.cs - Order details → Order repository: loads details
Forms/Admin/AdminOrderDetailsForm.cs - Catalog and filters → Product model: displays
Forms/Client/Form1.cs - Order repository → Transaction model: persists transactions
README.md - Database configuration → SQL Server: configures access
README.md