| | |
| | | using DocumentFormat.OpenXml.Drawing; |
| | | using Furion.Logging; |
| | | using Microsoft.AspNetCore.SignalR; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using System; |
| | | //using WCS.Application.Util; |
| | | |
| | | namespace WCS.Application; |
| | | public static class PLCTaskAction |
| | |
| | | { |
| | | var bl = false; |
| | | int value = Convert.ToInt32(item.Value); |
| | | if (value == 0) |
| | | if (value <= 30) |
| | | { |
| | | bl = false; |
| | | } |
| | |
| | | HubUtil.PublicPosition(modInfo); |
| | | UpdatePosition(modInfo); |
| | | } |
| | | // liudl 注释:和电气工程师确认页面展示交互字后启用。 |
| | | //var value = Convert.ToBoolean(item.Value); |
| | | //if (!value == modDevice.BoHaveItem) |
| | | //{ |
| | | // modDevice.BoHaveItem = value; |
| | | // //下发状态 |
| | | // var modInfo = new PlcPositionInfo() { Type = modPlc.Type, StationNum = modDevice.StationNum.PadLeft(3,'0'), BoHaveItem = value }; |
| | | // HubUtil.PublicPosition(modInfo); |
| | | // UpdatePosition(modInfo); |
| | | //} |
| | | } |
| | | break; |
| | | default: |