| | |
| | | endLoc.N_CURRENT_NUM = 1; |
| | | |
| | | using (var tran = db.Ado.UseTran()) { |
| | | if (db.Updateable<TN_Location>(startLoc).ExecuteCommand() <= 0 && |
| | | db.Updateable<TN_Location>(endLoc).ExecuteCommand() <= 0 && |
| | | db.Updateable<TN_Loc_Container>(locCntrRel).ExecuteCommand() <= 0) { |
| | | if (db.Updateable(startLoc).ExecuteCommand() <= 0 && |
| | | db.Updateable(endLoc).ExecuteCommand() <= 0 && |
| | | db.Updateable(locCntrRel).ExecuteCommand() <= 0) { |
| | | |
| | | tran.RollbackTran(); |
| | | return "数据库操作失败!"; |
| | |
| | | /// AGV 小车号 |
| | | /// </summary> |
| | | public string ForkliftNo { set; get; } |
| | | ///// <summary> |
| | | ///// AGV 下一个状态 |
| | | ///// </summary> |
| | | //public int NextState { set; get; } |
| | | } |
| | | |
| | | public class AgvReportsInfo { |
| | |
| | | public int NextState { set; get; } = 0; |
| | | } |
| | | |
| | | public class FalseOk { |
| | | public bool JumpOut { set; get; } = true; |
| | | } |
| | | |
| | | public class InsertCntrItemInfo { |
| | | public string Cntr { set; get; } |
| | | public string Item { set; get; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | |
| | | public List<ReturnResult> ResultList { set; get; } |
| | | } |
| | | |
| | | public class LocCntrCg { |
| | | public string Note { get; set; } // 仅用于备注 |
| | | |
| | | public string LocCode { get; set; } |
| | | public string LocArea { get; set; } |
| | | public string CntrCode { get; set; } |
| | | public string CntrType { get; set; } |
| | | public string ItemCode { get; set; } |
| | | public string BatchNo { get; set; } |
| | | } |
| | | } |