wxw
2024-09-25 350507ac0a6ccfa0463612996731f4165fe55601
Admin.NET/WCS.Application/Hub/PlcHub.cs
@@ -63,6 +63,18 @@
            PLCTaskAction.boRefresh = context.BoRefresh.Value;
            await _sysConfigService.UpdateConfigValue("sys_Refresh", context.BoRefresh.Value);
        }
        //演示模式
        if (context.BoDemo.HasValue)
        {
            PLCTaskAction.boDemo = context.BoDemo.Value;
            await _sysConfigService.UpdateConfigValue("sys_demo", context.BoDemo.Value);
        }
        //滚筒反转
        if (context.BoDrumReversal.HasValue)
        {
            PLCTaskAction.boDrumReversal = context.BoDrumReversal.Value;
            await _sysConfigService.UpdateConfigValue("sys_DrumReversal", context.BoDrumReversal.Value);
        }
        await _plcHubContext.Clients.All.UpdateService(new PLCServiceModel() { BoRunningState = PLCTaskAction.boRunningState, BoRefresh = PLCTaskAction.boRefresh, BoOffline = PLCTaskAction.boOffline, BoDemo = PLCTaskAction.boDemo});
    }
}
@@ -77,4 +89,6 @@
    public bool? BoRefresh { get; set; }
    public bool? BoDemo { get; set; }
    public bool? BoDrumReversal { get; set; }
}