chengsc
2024-09-12 4683c8a19e593e8f999c6f1a145e0bb73eb20dea
Admin.NET/WCS.Application/Hub/PlcHub.cs
@@ -63,7 +63,7 @@
            PLCTaskAction.boRefresh = context.BoRefresh.Value;
            await _sysConfigService.UpdateConfigValue("sys_Refresh", context.BoRefresh.Value);
        }
        await _plcHubContext.Clients.All.UpdateService(new PLCServiceModel() { BoRunningState = PLCTaskAction.boRunningState, BoRefresh = PLCTaskAction.boRefresh, BoOffline = PLCTaskAction.boOffline });
        await _plcHubContext.Clients.All.UpdateService(new PLCServiceModel() { BoRunningState = PLCTaskAction.boRunningState, BoRefresh = PLCTaskAction.boRefresh, BoOffline = PLCTaskAction.boOffline, BoDemo = PLCTaskAction.boDemo});
    }
}
public class PLCServiceModel
@@ -75,4 +75,6 @@
    public bool? BoRefresh { get; set; }
    public bool? BoDemo { get; set; }
}