| | |
| | | } |
| | | } |
| | | |
| | | if (station.stationType == 1) //å
¥åºå£ |
| | | if (station.stationType == 1 ) //å
¥åºå£ |
| | | { |
| | | var requestInbound = conveyorLine.GetValue<ConveyorLineDBName, bool>(ConveyorLineDBName.EntApply, station.stationChildCode); |
| | | if (requestInbound) |
| | |
| | | } |
| | | } |
| | | |
| | | if (station.stationType == 3) |
| | | if (station.stationType == 3) //RB043ç²¾æç¹ |
| | | { |
| | | var requestFolw = conveyorLine.GetValue<ConveyorLineDBName, bool>(ConveyorLineDBName.EntApply, station.stationChildCode); |
| | | if (requestFolw) |
| | |
| | | //var pvi = conveyorLine.GetValue<ConveyorLineDBName, string>(ConveyorLineDBName.PVI, station.stationChildCode); |
| | | |
| | | WebResponseContent response = _taskService.RequestRoadWayTask(palletcode.ToString(), palletcode.ToString(), station).Result; |
| | | if (!response.Status) |
| | | if (response.Status) |
| | | { |
| | | var task = _taskService.QueryBarCodeConveyorLineTask(palletcode.ToString(), station.stationChildCode); |
| | | if (task != null) |
| | | { |
| | | var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == task.NextAddress); |
| | | conveyorLine.SetValue<ConveyorLineDBName, Int16>(ConveyorLineDBName.Spare6, Convert.ToInt16(stationInfo.stationTCLocation), station.stationChildCode); |
| | | Thread.Sleep(200); |
| | | //conveyorLine.SetValue<ConveyorLineDBName, Int16>(ConveyorLineDBName.Spare5, 3, station.stationChildCode); |
| | | conveyorLine.SetValue<ConveyorLineDBName, Int16>(ConveyorLineDBName.AllowRelease, 1, station.stationChildCode); |
| | | |
| | | _taskService.UpdateTaskStatusToNext(task); |
| | | } |
| | | } |
| | | conveyorLine.SetValue<ConveyorLineDBName, Int16>(ConveyorLineDBName.AllowRelease, 1, station.stationChildCode); |
| | | //else |
| | | //{ |
| | | // conveyorLine.SetValue<ConveyorLineDBName, Int16>(ConveyorLineDBName.AllowRelease, 1, station.stationChildCode); |
| | | //} |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | if (station.stationType == 6) //ç©ºæ»æ©å
¥åºå£ |
| | | { |
| | | var requestInbound = conveyorLine.GetValue<ConveyorLineDBName, bool>(ConveyorLineDBName.EntApply, station.stationChildCode); |
| | | if (requestInbound) |
| | | { |
| | | var palletcode = conveyorLine.GetValue<ConveyorLineDBName, Int16>(ConveyorLineDBName.SkidNo, station.stationChildCode); |
| | | //var pvi = conveyorLine.GetValue<ConveyorLineDBName, string>(ConveyorLineDBName.PVI, station.stationChildCode); |
| | | |
| | | //_taskService.QueryBarCodeConveyorLineTask(); |
| | | var task = _taskService.QueryExecutingTaskByBarcode(palletcode.ToString(), station.stationChildCode); |
| | | if (task != null) |
| | | { |
| | | _taskService.UpdateTaskStatusToNext(task); |
| | | conveyorLine.SetValue<ConveyorLineDBName, Int16>(ConveyorLineDBName.AllowRelease, 1, station.stationChildCode); |
| | | } |
| | | else |
| | | { |
| | | continue; |
| | | //妿¾ä¸å°å¯¹åºå
¥åºä»»å¡ï¼åæ ¹æ®æç PVIç³è¯·å
¥åº |
| | | //WebResponseContent response = _taskService.RequestTask(palletcode.ToString(), pvi, station).Result; |
| | | //if (!response.Status) |
| | | //{ |
| | | // continue; |
| | | //} |
| | | } |
| | | } |
| | | } |
| | | |
| | | #region æ ¹æ®åè®®è¯»åæ¹æ¡ |
| | | //DeviceProtocolDetailDTO? deviceProtocolDetails = conveyorLine.DeviceProtocolDetailDTOs.FirstOrDefault(x => x.DeviceProParamName == station.stationChildCode && x.ProtocalDetailValue == request.ToString()); |
| | | |