| | |
| | | return content.OK(data: taskDTO); |
| | | } |
| | | } |
| | | |
| | | //æ¥è¯¢å建çè½¦è½®ä¿¡æ¯ |
| | | //var inWheelsInfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_CurrentStatue == "0"); |
| | | |
| | | //æ¥è¯¢å建çå¶å¨çä¿¡æ¯ |
| | | //var inBrakeInfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_CurrentStatue == "0"); |
| | | //if (inBrakeInfo == null) throw new Exception("å½åæ 车轮æå¶å¨çå
¥åºä¿¡æ¯"); |
| | | |
| | | //if (inWheelsInfo == null /*&& inBrakeInfo == null*/) throw new Exception("å½åæ 车轮æå¶å¨çå
¥åºä¿¡æ¯"); |
| | | |
| | | var newtask = new Dt_Task |
| | | { |
| | | CurrentAddress = input.Position, |
| | |
| | | PalletCode = "", |
| | | SourceAddress = input.Position, |
| | | TaskState = (int)TaskInStatusEnum.InNew, |
| | | TaskType = (int)TaskInboundTypeEnum.InWheels, //inWheelsInfo == null ? (int)TaskInboundTypeEnum.InBrake : |
| | | TaskType = (int)TaskInboundTypeEnum.Inbound, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam" |
| | | }; |