You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
haoliang f83364ec7a 修复产量统计3个Bug:manual_reset/program_change产量丢失、日终汇总失败不重试、日志归档文件锁冲突
Bug#1(核心): ProductionTracker.Track()中manual_reset和program_change段结账时
endPartCount传入了复位后/新程序的值而非结账段最后已知值,导致50个manual_reset
段产量全部为0,program_change段产量偏差

Bug#2: _lastSummaryDate在DailySummaryJob.Execute()执行前就设置,若汇总失败则
永久无法重试。修改为Execute返回bool,成功后设置;时间窗口扩大到±2分钟

Bug#3: log4net RollingFileAppender默认排他锁与LogArchiveJob的File.WriteAllText冲突
导致IOException。改用Date滚动+MinimalLock模式,删除手写LogArchiveJob
1 month ago
.github/workflows fix(ci): 移除不必要的 setup-dotnet 步骤,windows-latest 自带 .NET Framework 4.7.2 环境 2 months ago
.sisyphus/plans test(ci): add Windows workflow and extended tests stage4-5; stabilize dashboard service tests 2 months ago
CncService feat(采集日志): 新增前端实现,包括 API 封装、Mock 数据、Vue 页面、路由和菜单;新增 CollectLog 页面组件、Mock 数据、API 接口,以及路由与侧边栏集成 2 months ago
CncWebApi/Controllers feat(采集日志): 新增前端实现,包括 API 封装、Mock 数据、Vue 页面、路由和菜单;新增 CollectLog 页面组件、Mock 数据、API 接口,以及路由与侧边栏集成 2 months ago
database feat: 日志分区管理优化——sp_ensure_partitions覆盖3张分区表(含log_collect_raw);LogCleanupJob改用DROP PARTITION清理;修复分区边界计算bug 2 months ago
docs docs: 添加前端构建与部署规范文档 2 months ago
frontend 系统设置明文化+仪表盘apiKey数据库化+日志分类+安装脚本防闪退 2 months ago
src 修复产量统计3个Bug:manual_reset/program_change产量丢失、日终汇总失败不重试、日志归档文件锁冲突 1 month ago
tests 系统设置明文化+仪表盘apiKey数据库化+日志分类+安装脚本防闪退 2 months ago
.gitignore
.txt 清理根目录临时文件和旧代码;修复采集服务名称不匹配(collector-service→CncCollector) 2 months ago
AGENTS.md
App.config feat(cnc-service): add Windows service status checker, integrate into dashboard status, enhance startup flow; stage4 plan initialized; add frontend typings and dashboard view updates; add test scaffold for WindowsServiceChecker 2 months ago
CncDataSystem.sln
README.md feat(cnc-service): add Windows service status checker, integrate into dashboard status, enhance startup flow; stage4 plan initialized; add frontend typings and dashboard view updates; add test scaffold for WindowsServiceChecker 2 months ago
simulator.json feat(cnc-service): add Windows service status checker, integrate into dashboard status, enhance startup flow; stage4 plan initialized; add frontend typings and dashboard view updates; add test scaffold for WindowsServiceChecker 2 months ago
发那科系统采集示例.txt feat: 品牌字段映射增加启用/禁用开关(is_enabled);前端增加开关列和行样式;新增6个Repository测试+6个Service/Controller测试;迁移脚本幂等执行 2 months ago

README.md

CncSimulator 项目根 README This repository contains a self-contained CNC data sampling simulator for .NET Framework 4.7.2. 具体实现参考 simulator.json、Config/SimulatorConfig.cs、Device/DeviceState.cs、Device/DeviceSimulator.cs、Generator/FanucDataGenerator.cs、Core/SimulatorServer.cs、Core/SimulatorEngine.cs、Program.cs。