| | |
| | | //logTaskEntry2.IsCancel = 0; |
| | | logTaskEntry2.BackDate = DateTime.Now; |
| | | logTaskEntry2.Status = "1"; |
| | | Db.Insertable(logTaskEntry2).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry2).ExecuteCommand(); |
| | | |
| | | startLoction2.Status = "3";//出库中 |
| | | Db.Updateable(startLoction2).ExecuteCommand(); |
| | |
| | | { |
| | | logTaskEntry2.IsSuccess = 0; |
| | | logTaskEntry2.Information = agvMsg; |
| | | Db.Insertable(logTaskEntry2).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry2).ExecuteCommand(); |
| | | |
| | | } |
| | | //提交事务 |
| | |
| | | //logTaskEntry.IsCancel = 0; |
| | | logTaskEntry.BackDate = DateTime.Now; |
| | | logTaskEntry.Status = "1";//正在执行 |
| | | Db.Insertable(logTaskEntry).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry).ExecuteCommand(); |
| | | |
| | | startLoction.Status = "3";//出库中 |
| | | Db.Updateable(startLoction).ExecuteCommand(); |
| | |
| | | { |
| | | logTaskEntry.IsSuccess = 0; |
| | | logTaskEntry.Information = agvMsg; |
| | | Db.Insertable(logTaskEntry).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry).ExecuteCommand(); |
| | | |
| | | } |
| | | //提交事务 |
| | |
| | | //logTaskEntry.IsCancel = 0; |
| | | logTaskEntry.BackDate = DateTime.Now; |
| | | logTaskEntry.Status = "1";//正在执行 |
| | | Db.Insertable(logTaskEntry).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry).ExecuteCommand(); |
| | | |
| | | deviceLocatInfo.Status = "3";//出库中 |
| | | Db.Updateable(deviceLocatInfo).ExecuteCommand(); |
| | |
| | | { |
| | | logTaskEntry.IsSuccess = 0; |
| | | logTaskEntry.Information = agvMsg; |
| | | Db.Insertable(logTaskEntry).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry).ExecuteCommand(); |
| | | } |
| | | //提交事务 |
| | | Db.CommitTran(); |
| | |
| | | //logTaskEntry.IsCancel = 0; |
| | | logTaskEntry.BackDate = DateTime.Now; |
| | | logTaskEntry.Status = "1";//正在执行 |
| | | Db.Insertable(logTaskEntry).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry).ExecuteCommand(); |
| | | |
| | | |
| | | locatInfo.Status = "5";//移出中 |
| | |
| | | { |
| | | logTaskEntry.IsSuccess = 0; |
| | | logTaskEntry.Information = agvMsg; |
| | | Db.Insertable(logTaskEntry).ExecuteCommand(); |
| | | Db.Updateable(logTaskEntry).ExecuteCommand(); |
| | | |
| | | throw new Exception($"给小车下发移库任务失败,桶号:{palletInfoYi.PalletNo}"); |
| | | } |