How marcusteoqiyang/cte-ims works
CTEIMS is an inventory and equipment-management web application with a companion AI assistant. Users manage parts and projects, track stock, perform check-in/check-out/transfers, handle approvals and RFID reads, and monitor dashboards; administrators configure access and operational locations. The main workflow is web request to domain controller, optional service logic, and persisted application state. The tree and source index identify additional capabilities, but unsampled modules are represented only where their paths and subsystem roles are supported; uncertain links are omitted.
Main entry points: AppDbContext.cs Application database · Transaction Stock transactions · app.py AI request app · ApprovalController.cs Transaction approvals
Components 26
Web workflows
- Parts and projects
Controllers/Part - Inventory management
Controllers/Inventory - Stock transactions
Controllers/Transaction - Transaction approvals
Controllers/ApprovalController.cs - RFID workflows
Controllers/RFIDController.cs - Dashboard
Controllers/Dashboard/DashboardController.cs - Administration
Controllers/Administration - Permission checks
Controllers/Administration/PermissionBaseController.cs - Chatbot interface
wwwroot/js/chatbot.js
Inventory domain
- Parts and projects
Models/Part.cs - Stock records
Models/InventoryStock.cs - Transaction records
Models/InventoryTransaction.cs - Operational locations
Models/OperationalLocation.cs
Application services
- Inventory risk
Services/InventoryRiskService.cs - RFID services
Services/RFIDService.cs - RFID governance
Services/RFIDGovernanceService.cs - Notifications
Services/NotificationService.cs
Persistence and events
- Application database
Data/AppDbContext.cs - Notification hub
Hubs/NotificationHub.cs
AI assistant
- AI request app
AI/app.py - Input guardrail
AI/agents/guardrail.py - Function selector
AI/agents/function_selector.py - Function executor
AI/agents/function_executor.py - Tool registry
AI/tools/function_registry.py - LLM responder
AI/llm/llama_responder.py
Other components
- Web user
Connections 29
- Web user → Parts and projects: manages parts
- Web user → Inventory management: reviews stock
- Web user → Stock transactions: records movements
- Web user → Transaction approvals: reviews requests
- Web user → Dashboard: views metrics
- Parts and projects → Application database: reads and writes
Controllers/Part/PartController.cs - Inventory management → Application database: reads and writes
Controllers/Inventory/InventoryController.cs - Stock transactions → Application database: reads and writes
Controllers/Transaction/TransactionController.cs - Stock transactions → RFID services: uses RFID service
Controllers/Transaction/TransactionController.cs - Stock transactions → Notifications: sends notifications
Controllers/Transaction/TransactionController.cs - Stock transactions → Transaction records: uses transaction records
Controllers/Transaction/TransactionController.cs - Transaction approvals → Application database: reads and writes
Controllers/ApprovalController.cs - Transaction approvals → Notifications: sends notifications
Controllers/ApprovalController.cs - RFID workflows → RFID governance: uses governance
Controllers/RFIDController.cs - RFID workflows → Application database: reads and writes
Controllers/RFIDController.cs - Dashboard → Application database: retrieves dashboard data
- Administration → Application database: reads and writes
Controllers/Administration/RoleController.cs - Permission checks → Web user: checks session permissions
Controllers/Administration/PermissionBaseController.cs - Inventory risk → Application database: queries inventory
Services/InventoryRiskService.cs - Inventory risk → Stock records: evaluates stock
Services/InventoryRiskService.cs - RFID governance → Application database: reads and writes
Services/RFIDGovernanceService.cs - RFID governance → Notifications: sends notifications
Services/RFIDGovernanceService.cs - Notification hub → Application database: loads user locations
Hubs/NotificationHub.cs - Chatbot interface → AI request app: sends assistant requests
- AI request app → Input guardrail: checks input
AI/app.py - AI request app → Function selector: selects function
AI/app.py - AI request app → Function executor: executes function
AI/app.py - AI request app → LLM responder: generates response
AI/app.py - Function executor → Tool registry: resolves tools