| | |
| | | |
| | | if (Sourcelocation != null) |
| | | { |
| | | if (BaseDal.QueryFirst(x => x.SourceAddress == task.SourceAddress && x.TaskState < TaskOutStatusEnum.SC_OutFinish.ObjToInt()) == null) |
| | | if (BaseDal.QueryFirst(x => x.SourceAddress == task.SourceAddress && x.TaskState < TaskOutStatusEnum.SC_OutFinish.ObjToInt() && x.TaskId != task.TaskId) == null) |
| | | Sourcelocation.LocationStatus = LocationStatusEnum.InStock.ObjToInt(); |
| | | Sourcelocation.CurrentQty--; |
| | | if (Sourcelocation.CurrentQty <= 0) |
| | |
| | | //stockInfo.SerialNumber = Targetlocation.CurrentQty; |
| | | stockInfo.StockStatus = StockStatusEmun.å·²å
¥åº.ObjToInt(); |
| | | if (Sourcelocation.CurrentQty == 0) Sourcelocation.LocationStatus = LocationStatusEnum.Free.ObjToInt(); |
| | | Dt_Task _Task = BaseDal.QueryFirst(x => x.TaskNum != task.TaskNum && x.TaskType == task.TaskType && x.SourceAddress == Sourcelocation.LocationCode && x.TargetAddress == Targetlocation.LocationCode); |
| | | Dt_Task _Task = BaseDal.QueryFirst(x => x.TaskId != task.TaskId && x.TaskType == task.TaskType && x.SourceAddress == Sourcelocation.LocationCode && x.TargetAddress == Targetlocation.LocationCode); |
| | | if (_Task == null) |
| | | { |
| | | if (Targetlocation.CurrentQty == Targetlocation.MaxQty) Targetlocation.LocationStatus = LocationStatusEnum.Fullload.ObjToInt(); |
| | |
| | | inventoryInfo.InDate = DateTime.Now; |
| | | inventoryInfo.StockStatus = StockStatusEmun.å·²å
¥åº.ObjToInt(); |
| | | int beforeStatus = locationInfo.LocationStatus; |
| | | if (BaseDal.QueryFirst(x => x.TargetAddress == locationInfo.LocationCode && x.TaskNum != task.TaskNum) == null) |
| | | if (BaseDal.QueryFirst(x => x.TargetAddress == locationInfo.LocationCode && x.TaskId != task.TaskId) == null) |
| | | locationInfo.LocationStatus = LocationStatusEnum.InStock.ObjToInt(); |
| | | task.CurrentAddress = task.NextAddress; |
| | | task.NextAddress = string.Empty; |