| | |
| | | // var strMsg = new HttpService().RequestPackWcs("LN000001"); |
| | | cts.Cancel(); |
| | | listPlc = _db.Queryable<WcsPlc>() |
| | | .Where(s => s.Type == PLCTypeEnum.StackingMachine || s.Type == PLCTypeEnum.ConveyorLine || s.Type == PLCTypeEnum.BoxConveyorLine) |
| | | .Where(s => s.Type == PLCTypeEnum.StackingMachine || s.Type == PLCTypeEnum.ConveyorLine || s.Type == PLCTypeEnum.BoxConveyorLine || s.Type == PLCTypeEnum.StackingRobot) |
| | | .Where(s => s.Enable == YesNoEnum.Y) |
| | | .ToList(); |
| | | listPlcDevice = _db.Queryable<WcsDevice>().ToList(); |
| | |
| | | } |
| | | } |
| | | |
| | | Thread.Sleep(1000); |
| | | Thread.Sleep(2000); |
| | | } |
| | | catch (OperationCanceledException) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | Thread.Sleep(3000); |
| | | Thread.Sleep(2000); |
| | | } |
| | | catch (Exception ex) |
| | | { |