| | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 整排解绑 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public SimpleResult RowUnbind(RowUnbindInfo model) { |
| | | LogHelper.Info("RowUnbind Request:" + JsonConvert.SerializeObject(model), "TSSG"); |
| | | SimpleResult result = new SimpleResult(); |
| | | List<Location> locations = WMSHelper.GetLocationList(model.area, model.row); |
| | | foreach (var item in locations) |
| | | { |
| | | //货位解锁 |
| | | LocationHelper.UnLockLoc(item.S_CODE); |
| | | |
| | | |
| | | //货位容器解绑 |
| | | var db = new SqlHelper<object>().GetInstance(); |
| | | var lcrList = db.Queryable<LocCntrRel>().Where(a => a.S_LOC_CODE == item.S_CODE).Select(s => s.S_CNTR_CODE).ToList(); |
| | | LocationHelper.UnBindingLoc(item.S_CODE, lcrList); |
| | | |
| | | } |
| | | LogHelper.Info("RowUnbind response:" + JsonConvert.SerializeObject(model), "TSSG"); |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// pda入库申请 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public SimpleResult Instock(InstockInfo model) { |
| | | var result = new SimpleResult(); |
| | | LogHelper.Info("Instock Request:" + JsonConvert.SerializeObject(model), "TSSG"); |
| | | result = ApiHelper.Instock(model); |
| | | LogHelper.Info("Instock response:" + JsonConvert.SerializeObject(result), "TSSG"); |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// pda移库申请 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public SimpleResult shiftStock(ShiftStockInfo model) { |
| | | var result = new SimpleResult(); |
| | | LogHelper.Info("shiftStock Request:" + JsonConvert.SerializeObject(model), "TSSG"); |
| | | result = ApiHelper.shiftStock(model); |
| | | LogHelper.Info("shiftStock response:" + JsonConvert.SerializeObject(result), "TSSG"); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |