How broshchak/projectmanagement works
ProjectManagement is an order-management system with a WPF desktop client, ASP.NET API, PostgreSQL-backed application services, and a Telegram bot. Users sign in, manage customers/products and orders, then advance orders through configurable workflows; administrators manage access and workflow rules. Users can also generate reports and PDFs in WPF or Telegram. The graph preserves these documented capabilities, while sampled source provides detail for order workflow, authentication, reporting, and bot startup; unsampled service and controller internals are represented at subsystem level.
Main entry points: Program.cs ASP.NET API · ReportPdfService.cs PDF generation · OrdersController.cs Orders endpoints · api.py Backend API adapter
Components 27
User clients
- WPF client
WpfClient/MainWindow.xaml.cs - HTTP API client
WpfClient/Services/HttpOrdersApiClient.cs - Telegram bot
TelegramBot/bot/main.py - Bot handlers
TelegramBot/bot/handlers.py - Backend API adapter
TelegramBot/bot/api.py
Web API
- ASP.NET API
WebApi/Program.cs - Orders endpoints
WebApi/Controllers/OrdersController.cs - Reports endpoints
WebApi/Controllers/ReportsController.cs - Management endpoints
WebApi/Controllers/RolesController.cs
Application services
- Authentication
Application/Services/AuthService.cs - Order workflow
Application/Services/OrderWorkflowService.cs - Order services
Application/Services/OrderService.cs - Customer and product services
Application/Services/CustomerService.cs - Users and roles
Application/Services/UserManagementService.cs - Report services
Application/Services/ReportService.cs - PDF generation
Application/Services/ReportPdfService.cs - Telegram services
Application/Services/BotService.cs - Permission rules
Application/Security/Permissions.cs
Persistence and integrations
- Order repository
Infrastructure/Persistence/Repositories/OrderRepository.cs - Report queries
Infrastructure/Persistence/Repositories/ReportQueries.cs - PostgreSQL
Infrastructure/Persistence/AppDbContext.cs - QuestPDF renderer
Infrastructure/Reports/QuestReportPdfRenderer.cs
Domain model
- Order and workflow data
Domain/Entities/OrderEntity.cs - Users and roles
Domain/Entities/AppUserEntity.cs - Report templates
Domain/Entities/ReportTemplateEntity.cs
Other components
- Staff user
- Telegram platform
Connections 30
- Staff user → WPF client: uses
README.md - WPF client → HTTP API client: invokes
WpfClient/Services/HttpOrdersApiClient.cs - HTTP API client → ASP.NET API: HTTP requests
README.md - Telegram bot → Bot handlers: registers
TelegramBot/bot/main.py - Telegram bot → Backend API adapter: creates
TelegramBot/bot/main.py - Bot handlers → Backend API adapter: uses
TelegramBot/bot/handlers.py - Backend API adapter → ASP.NET API: requests
README.md - Telegram platform → Telegram bot: messages
TelegramBot/bot/main.py - ASP.NET API → Orders endpoints: routes
- Orders endpoints → Order services: calls
WebApi/Controllers/OrdersController.cs - Orders endpoints → Order workflow: dispatches transitions
WebApi/Controllers/OrdersController.cs - Orders endpoints → Permission rules: checks access
WebApi/Controllers/OrdersController.cs - ASP.NET API → Reports endpoints: routes
- Reports endpoints → Report services: calls
WebApi/Controllers/ReportsController.cs - Reports endpoints → PDF generation: requests PDFs
WebApi/Controllers/ReportsController.cs - ASP.NET API → Management endpoints: routes
- Management endpoints → Users and roles: delegates
- Authentication → Users and roles: authenticates
Application/Services/AuthService.cs - Order workflow → Order repository: reads and updates
Application/Services/OrderWorkflowService.cs - Order services → Order repository: uses
- Order repository → PostgreSQL: queries
Infrastructure/Persistence/Repositories/OrderRepository.cs - Order repository → Order and workflow data: reads and writes
Infrastructure/Persistence/Repositories/OrderRepository.cs - Report services → Report queries: loads report data
- PDF generation → Report queries: loads report data
Application/Services/ReportPdfService.cs - PDF generation → QuestPDF renderer: renders document
Application/Services/ReportPdfService.cs - Report queries → PostgreSQL: queries
- PDF generation → Report templates: uses templates
- Telegram services → PDF generation: delivers reports
README.md - Backend API adapter → Telegram platform: sends PDF
README.md - Users and roles → Permission rules: manages access
README.md