| | |
| | | using WIDESEA_WMS.IRepositories; |
| | | using WIDESEA_WMS.Repositories; |
| | | |
| | | namespace WIDESEA_WCS.JobsPart.Common |
| | | namespace WIDESEA_WMS.Common |
| | | { |
| | | public class EmptyTray |
| | | { |
| | |
| | | agv_taskstate = "Create", |
| | | agv_qty = EmptyStation.quantity <= quantity ? EmptyStation.quantity : quantity, |
| | | //agv_qty = EmptyStation.quantity - toEmptyStation.quantity, |
| | | StarQuantity = EmptyStation.quantity <= quantity ? 0 : toEmptyStation.quantity, |
| | | StarQuantity = EmptyStation.quantity <= quantity ? 0 : EmptyStation.quantity - quantity, |
| | | EndQuantity = toEmptyStation.quantity, |
| | | agv_tasktype = "TaskType_EmptyPallet", |
| | | agv_toaddress = toEmptyStation.stationCode, |
| | |
| | | EmptyStation.location_state = LocationStateEnum.Busy.ToString(); |
| | | stationinfoRepository.Update(EmptyStation, true); |
| | | toEmptyStation.location_state = LocationStateEnum.Busy.ToString(); |
| | | toEmptyStation.tray_status = TrayStateEnum.EmptyTray.ToString(); |
| | | stationinfoRepository.Update(toEmptyStation, true); |
| | | WriteDBLog.Success("å建å çä½ç©ºæå
¥åºä»»å¡", $"ä»»å¡ç¼å·ï¼{agvtask.agv_tasknum}", "PCS"); |
| | | } |