5 Commits (7f0ce63ef6cebeec9ef595a1611908df1bc36832)

Author SHA1 Message Date
jiang eb37c0e183 refactor: 重构配置管理和测试规范
数据库配置:
- 将数据库连接字符串移到 web.config 的环境变量中
- 从 appsettings.json 删除 ConnectionStrings 节点
- 使用 ConnectionStrings__CNCBusinessDB 和 ConnectionStrings__CNCLLogDB 格式

系统配置:
- 创建 App_Data 目录存储系统配置
- 创建 system_config.json 存储 CollectionSettings、LoggingSettings、AlarmSettings 等
- 更新 Haoliang.Api.csproj 包含 App_Data/**/* 内容到输出

测试规范:
- 创建 testing-requirements.md 测试规范文档
- 删除旧的 Tests 项目并重建
- 创建 SystemControllerTests.cs 实现 100% 方法/分支/参数覆盖
- 添加 Haoliang.Api 项目引用以支持测试

符合要求:
- 数据库配置仅存储在 web.config
- 其他系统配置存储在 App_Data/system_config.json
- App_Data 作为项目内容,随项目一起编译和发布
3 weeks ago
821644@qq.com c3d17cebb9 Continue fixing compilation errors after .NET 8 upgrade
- Fixed CNCDbContext type references in repositories
- Fixed ambiguous TagData and DeviceCurrentStatus references
- Added missing using statements to repository files
- Updated DataCollection namespace references

Note: There are still remaining DbContext/model mismatches that need to be resolved
3 weeks ago
821644@qq.com 11efc0d1b9 Fix Entity Framework version conflicts and type ambiguities
- Unified all packages to use EF Core 7.0.2
- Fixed ambiguous DeviceCurrentStatus references in CNCDbContext
- Added missing DataCollection namespace reference
- Resolved package version conflicts across all projects
- Fixed repository using statements to include Haoliang.Data.Entities
3 weeks ago
821644@qq.com f53ba60b8b feat: Complete CNC machine data collection system implementation
- Add comprehensive production statistics engine with advanced analytics,
  forecasting, and OEE calculations
- Implement real-time WebSocket streaming for live device monitoring and alerts
- Build cache management service with multi-layer caching strategies
- Create device state machine with automatic validation and recovery
- Add statistics and configuration API controllers with full CRUD operations
- Implement business rules engine with dynamic expression evaluation
- Add comprehensive test coverage for all new services and controllers
- Update project dependencies and DI container configuration
- Add system configuration models and comprehensive error handling

This completes the core functionality for the CNC data collection system
supporting 100+ devices with real-time monitoring and analytics capabilities.
4 weeks ago
821644@qq.com f90cbd7209 Initial commit: Complete .NET6 CNC machine data collection and analysis system
- Created standard .NET6 project structure with Haoliang.Api, Haoliang.Core, Haoliang.Data, Haoliang.Models, and Haoliang.Tests
- Implemented device management API with Entity Framework Core and MySQL
- Added production calculation logic for CNC machine output statistics
- Created comprehensive data models for devices, templates, production records, users, and system
- Implemented repository pattern for data access
- Added comprehensive test coverage for models and production logic
- Fixed version compatibility issues with Pomelo.EntityFrameworkCore.MySql and Microsoft.AspNetCore.Cors
4 weeks ago