| | |
| | | var cntId = locCntrRel.S_CNTR_CODE; |
| | | var task = WCSHelper.BuildTask(startLoc, endLoc, cntId, taskName); |
| | | |
| | | LocationHelper.LockStartLoc(ref startLoc); // 起点出库锁 |
| | | LocationHelper.LockEndLoc(ref endLoc); // 终点入库锁 |
| | | WCSHelper.LockStartLoc(ref startLoc); // 起点出库锁 |
| | | WCSHelper.LockEndLoc(ref endLoc); // 终点入库锁 |
| | | |
| | | using (var tran = db.Ado.UseTran()) { |
| | | if (locCntrRelOld != null) { |
| | |
| | | } |
| | | } |
| | | catch (Exception ex) { |
| | | LogHelper.InfoEx(ex); |
| | | return new Result<bool>(false, ex.Message); |
| | | return NewResult(false, ex.Message); |
| | | } |
| | | } |
| | | |
| | | private static Result<bool> NewResult(bool res, string msg, bool log = true) { |
| | | if (log) { LogHelper.Info(msg); } |
| | | return new Result<bool>(res, msg); |
| | | } |
| | | |
| | | } |
| | | |
| | | public class ProductCompletedMessage { |