How apiwat1229/ytrc-mrp-c- works
YTRC-MRP Desktop is a Windows WPF client for YTRC ERP. A user signs in against the ERP API, then works through role-aware department and administration screens; supported workflows include SI export, device settings and truck-scale operations. The application also checks for updates and exports loaded data. The graph shows the documented layered boundaries and sampled runtime wiring; several department workflows are documented but their implementation details were not sampled, so their internal calls are not inferred.
Main entry points: MainWindow.Navigation.cs Role-aware navigation · App.xaml.cs Startup composition · ApiClient.cs ERP API client · SIExportPage.cs SI export workspace
Components 34
Desktop shell
- Startup composition
src/YTRC.ERP.Wpf/App.xaml.cs - Sign-in window
src/YTRC.ERP.Wpf/LoginWindow.xaml.cs - Workspace shell
src/YTRC.ERP.Wpf/MainWindow.xaml.cs - Role-aware navigation
src/YTRC.ERP.Wpf/Presentation/Shell/MainWindow.Navigation.cs
ERP workflows
- Dashboard
src/YTRC.ERP.Wpf/Features/Dashboard/DashboardPage.cs - Department workspaces
src/YTRC.ERP.Wpf/Features/Departments - Booking queue
src/YTRC.ERP.Wpf/Features/Departments/BookingQueuePage.cs - Marking preparation
src/YTRC.ERP.Wpf/Features/Departments/MarkingPreparationPage.cs - Purchasing workflows
src/YTRC.ERP.Wpf/Features/Departments/PurchasingPage.cs - SI export workspace
src/YTRC.ERP.Wpf/Features/SIExport/SIExportPage.cs - SI export editor
src/YTRC.ERP.Wpf/Features/SIExport/SIExportEditorWindow.cs - SI export history
src/YTRC.ERP.Wpf/Features/SIExport/SIExportHistoryWindow.cs - Administration settings
src/YTRC.ERP.Wpf/Features/Settings/SettingsPages.cs - User accounts
src/YTRC.ERP.Wpf/Features/Settings/UserAccountsPage.cs - Truck scale operations
src/YTRC.ERP.Wpf/Features/TruckScale/TruckScalePage.cs - Search
src/YTRC.ERP.Wpf/Features/Search/SearchPage.cs
Application and domain
- Sign-in use case
src/YTRC.ERP.Application/Features/Authentication/SignInUseCase.cs - Application contracts
src/YTRC.ERP.Application/Contracts/Services.cs - ERP domain models
src/YTRC.ERP.Domain/Models/ErpModels.cs - Application settings
src/YTRC.ERP.Application/Configuration/AppSettings.cs - Server URL rules
src/YTRC.ERP.Domain/Configuration/ServerUrl.cs - SI export models
src/YTRC.ERP.Application/Features/SIExport/SIExportModels.cs - SI Excel writer
src/YTRC.ERP.Application/Export/SIExportExcelWriter.cs - CSV export
src/YTRC.ERP.Application/Export/CsvExportService.cs - API row mapper
src/YTRC.ERP.Application/Mapping/ApiRowMapper.cs
Infrastructure adapters
- ERP API client
src/YTRC.ERP.Infrastructure/Api/ApiClient.cs - SI export API adapter
src/YTRC.ERP.Infrastructure/Api/SIExportService.cs - Local settings store
src/YTRC.ERP.Infrastructure/Configuration/AppSettingsStore.cs - Serial scale adapter
src/YTRC.ERP.Infrastructure/Devices/HardwareScaleService.cs - Update service
src/YTRC.ERP.Infrastructure/Updates/UpdateService.cs
Other components
- Desktop user
- YTRC ERP API
- Serial scales
- Update host
Connections 38
- Desktop user → Startup composition: starts
README.md - Startup composition → Local settings store: loads settings
src/YTRC.ERP.Wpf/App.xaml.cs - Startup composition → ERP API client: creates
src/YTRC.ERP.Wpf/App.xaml.cs - Startup composition → Sign-in use case: creates
src/YTRC.ERP.Wpf/App.xaml.cs - Startup composition → Serial scale adapter: creates
src/YTRC.ERP.Wpf/App.xaml.cs - Startup composition → Update service: creates
src/YTRC.ERP.Wpf/App.xaml.cs - Startup composition → Sign-in window: opens
src/YTRC.ERP.Wpf/App.xaml.cs - Startup composition → Workspace shell: opens after login
src/YTRC.ERP.Wpf/App.xaml.cs - Sign-in window → Sign-in use case: requests sign-in
src/YTRC.ERP.Wpf/LoginWindow.xaml.cs - Sign-in use case → ERP API client: authenticates through
src/YTRC.ERP.Wpf/App.xaml.cs - ERP API client → YTRC ERP API: sends API requests
src/YTRC.ERP.Infrastructure/Api/ApiClient.cs - Workspace shell → Role-aware navigation: hosts navigation
- Role-aware navigation → Dashboard: routes to
- Role-aware navigation → Department workspaces: routes to
- Role-aware navigation → Booking queue: routes to
- Role-aware navigation → Marking preparation: routes to
- Role-aware navigation → Purchasing workflows: routes to
- Role-aware navigation → SI export workspace: routes to
- Role-aware navigation → Administration settings: routes to
- Role-aware navigation → Truck scale operations: routes to
- Role-aware navigation → Search: routes to
- SI export workspace → SI export editor: opens editor
src/YTRC.ERP.Wpf/Features/SIExport/SIExportPage.cs - SI export workspace → SI export history: opens history
src/YTRC.ERP.Wpf/Features/SIExport/SIExportPage.cs - SI export workspace → SI export API adapter: requests SI data
src/YTRC.ERP.Infrastructure/Api/SIExportService.cs - SI export API adapter → ERP API client: calls API client
src/YTRC.ERP.Infrastructure/Api/SIExportService.cs - SI export API adapter → YTRC ERP API: reads and writes SI
src/YTRC.ERP.Infrastructure/Api/SIExportService.cs - SI export history → SI Excel writer: exports workbook
src/YTRC.ERP.Wpf/Features/SIExport/SIExportHistoryWindow.cs - SI export workspace → SI Excel writer: exports workbook
src/YTRC.ERP.Wpf/Features/SIExport/SIExportPage.cs - Truck scale operations → Serial scale adapter: uses scale service
- Serial scale adapter → Serial scales: reads scale frames
src/YTRC.ERP.Infrastructure/Devices/HardwareScaleService.cs - Startup composition → Update service: provides update service
src/YTRC.ERP.Wpf/App.xaml.cs - Update service → Update host: checks and downloads
src/YTRC.ERP.Infrastructure/Updates/UpdateService.cs - Administration settings → Local settings store: persists preferences
- User accounts → Administration settings: administrates accounts
- CSV export → Dashboard: exports loaded data
README.md - ERP API client → Server URL rules: normalizes base URL
src/YTRC.ERP.Infrastructure/Api/ApiClient.cs - ERP API client → ERP domain models: parses user profile
- API row mapper → ERP domain models: maps API rows