How saimahmt03/buyingtool-v2 works
BuyingTool is an ASP.NET buying and allocation application. Its visible API workflow accepts a user identifier, routes filter requests through controllers and Service, caches filter results, then queries stored procedures through DBContext and a provider-backed database connection. The UI tree and stored-procedure catalog indicate broader workflows for planning, option selection, calculation, distribution review, site breakdown, size curves, export and allocation monitoring. Those UI-to-service links are not established by the sampled excerpts, so they are shown as unverified rather than asserted calls.
Main entry points: Main.cshtml Buying screens · DBContext.cs Buying data operations · Service.cs Workflow service · DatabaseConnection.cs Database connection
Components 20
Web interface
- Buying screens
BuyingTool/Pages/Component/Main.cshtml - Browser interactions
BuyingTool/Pages/Scripts/Index.js - Filter selection
BuyingTool/Pages/Component/SetFiltersWindow.cshtml - Distribution review
BuyingTool/Pages/Component/ReviewSummary.cshtml - Site details
BuyingTool/Pages/Component/ReviewSiteDetails.cshtml - Size curve
BuyingTool/Pages/Component/SizeCurve.cshtml - Export and monitoring
BuyingTool/Pages/Component/Export.cshtml
API and services
- Filter endpoints
BuyingTool/Controllers/OrganizationFiltersController.cs - Workflow service
BuyingTool/Services/Service.cs - Table and export helpers
BuyingTool/Services/ServiceHelper.cs
Data access
- Buying data operations
BuyingTool/Repository/DBContext.cs - Data operation contract
BuyingTool/Repository/IDBContext.cs - Database connection
BuyingTool/Data/DatabaseConnection.cs - Provider selection
BuyingTool/Data/DatabaseProviderFactory.cs - DB parameters
BuyingTool/Data/DatabaseParameterHelper.cs
Supporting capabilities
- Stored procedure catalog
BuyingTool/Shared/StoredProcedures.cs - Database activity logging
BuyingTool/Shared/Log.cs - Error handling
BuyingTool/Logs/ErrorMessage.cs
Other components
- Buying user
- Configured database
Connections 19
- Buying user → Buying screens: uses
- Buying screens → Browser interactions: loads interactions
- Buying screens → Filter selection: opens filters
- Buying screens → Distribution review: reviews results
- Buying screens → Site details: views sites
- Buying screens → Size curve: views curve
- Buying screens → Export and monitoring: exports data
- Filter endpoints → Workflow service: calls
BuyingTool/Controllers/OrganizationFiltersController.cs - Workflow service → Buying data operations: queries
BuyingTool/Services/Service.cs - Workflow service → Table and export helpers: formats tables
BuyingTool/Services/Service.cs - Buying data operations → Data operation contract: implements
BuyingTool/Repository/DBContext.cs - Buying data operations → Database connection: opens connections
BuyingTool/Repository/DBContext.cs - Database connection → Provider selection: selects factory
BuyingTool/Data/DatabaseConnection.cs - Buying data operations → DB parameters: creates parameters
BuyingTool/Repository/DBContext.cs - Buying data operations → Stored procedure catalog: executes procedures
BuyingTool/Repository/DBContext.cs - Database connection → Configured database: connects to
BuyingTool/Data/DatabaseConnection.cs - Buying data operations → Database activity logging: records activity
BuyingTool/Repository/DBContext.cs - Buying data operations → Error handling: uses messages
BuyingTool/Repository/DBContext.cs - Workflow service → Configured database: caches filters
BuyingTool/Services/Service.cs