public bool OnBin(string binCode, List<string> huIds) { var inventoryPutList = new List<Entity.INV.InventoryPut>(); foreach (var huId in huIds) { var inventoryPut = new Entity.INV.InventoryPut(); inventoryPut.Bin = binCode; inventoryPut.HuId = huId; inventoryPutList.Add(inventoryPut); } this.locationDetailMgr.InventoryPut(inventoryPutList); return true; }
public void DoPutAway(string huId, string binCode) { if (string.IsNullOrWhiteSpace(huId)) { throw new Entity.Exception.BusinessException("条码不能为空"); } if (string.IsNullOrWhiteSpace(binCode)) { throw new Entity.Exception.BusinessException("库格不能为空"); } var inventoryPutList = new List<Entity.INV.InventoryPut>(); var inventoryPut = new Entity.INV.InventoryPut(); inventoryPut.Bin = binCode; inventoryPut.HuId = huId; inventoryPutList.Add(inventoryPut); this.locationDetailMgr.InventoryPut(inventoryPutList); //var huStatus = this.huMgr.GetHuStatus(huId); ////todo PickUp //var hu = Mapper.Map<Entity.VIEW.HuStatus, Entity.SD.INV.Hu>(huStatus); //return hu; }
public void DoPutAway(string huId, string binCode) { if (string.IsNullOrWhiteSpace(huId)) { throw new Entity.Exception.BusinessException("条码不能为空"); } if (string.IsNullOrWhiteSpace(binCode)) { throw new Entity.Exception.BusinessException("库格不能为空"); } var inventoryPutList = new List<Entity.INV.InventoryPut>(); var inventoryPut = new Entity.INV.InventoryPut(); inventoryPut.Bin = binCode; inventoryPut.HuId = huId; inventoryPutList.Add(inventoryPut); this.locationDetailMgr.InventoryPut(inventoryPutList); }