| | |
| | | using System; |
| | | using System.Configuration; |
| | | using System.IO; |
| | | using System.Threading.Tasks; |
| | | using WeifenLuo.WinFormsUI.Docking; |
| | | using static Bro.Common.Helper.EnumHelper; |
| | | |
| | |
| | | Process.OnAlarmUpdate -= Process_OnAlarmUpdate; |
| | | Process.OnAlarmUpdate += Process_OnAlarmUpdate; |
| | | |
| | | Process.OnUpdateResult = UpdateResultOK; |
| | | Process.OnUpdateCT = UpdateCT; |
| | | Process.OnUpdateResult -= UpdateResultOK; |
| | | Process.OnUpdateCT -= UpdateCT; |
| | | Process.OnUpdateResult += UpdateResultOK; |
| | | Process.OnUpdateCT += UpdateCT; |
| | | |
| | | _availableTimer = new System.Threading.Timer(AvailableTimerCallBack, null, -1, -1); |
| | | _idleTimer = new System.Threading.Timer(IdleTimerCallBack, null, -1, -1); |
| | |
| | | } |
| | | |
| | | Qty_OEE++; |
| | | |
| | | Task.Run(() => |
| | | { |
| | | SaveNumRecord(); |
| | | }); |
| | | } |
| | | |
| | | private void UpdateCT(float ctTime) |