| | |
| | | if (numType == "stacker" || numType == "WMS") |
| | | { |
| | | //éå¶æå°åæå¤§å¼ |
| | | if (taskno < 1000 || taskno >= 10000) |
| | | if (taskno < 1000 || taskno >= 100000) |
| | | { |
| | | taskno = 1000; |
| | | } |
| | |
| | | var EmptyD = EmptyStations.Where(x => x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity == 5).FirstOrDefault(); |
| | | if (EmptyD != null) EmptyTray.CreateEmptyTrayIn(stationinfoRepository, EmptyD); |
| | | var val = timeRepository.Find(x => x.management_name == "StackingArea").FirstOrDefault().management_numericalvalue; |
| | | EmptyD = EmptyStations.Where(x => x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity < 5 && x.lastUpdateTime.AddHours(val) < DateTime.Now).FirstOrDefault();//æ¶é´è¶
è¿6å°æ¶å
¥åº |
| | | EmptyD = EmptyStations.Where(x => x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity < 5 && x.lastUpdateTime.AddHours(val) < DateTime.Now).FirstOrDefault(); |
| | | if (EmptyD != null) EmptyTray.CreateEmptyTrayIn(stationinfoRepository, EmptyD); |
| | | #endregion |
| | | |
| | |
| | | agv_taskstate = "Create", |
| | | agv_qty = EmptyStation.quantity <= quantity ? EmptyStation.quantity : quantity, |
| | | //agv_qty = EmptyStation.quantity - toEmptyStation.quantity, |
| | | StarQuantity = toEmptyStation.quantity, |
| | | StarQuantity = EmptyStation.quantity <= quantity ? 0 : toEmptyStation.quantity, |
| | | EndQuantity = toEmptyStation.quantity, |
| | | agv_tasktype = "TaskType_EmptyPallet", |
| | | agv_toaddress = toEmptyStation.stationCode, |