| | |
| | | public override WebResponseContent Del(object[] keys, bool delList = true) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | VOLContext context = new VOLContext(); |
| | | Idt_stationinfoRepository stationinfoRepository = new dt_stationinfoRepository(context); |
| | | string str = ""; |
| | | try |
| | | { |
| | |
| | | |
| | | foreach (var inventory in inventorys) |
| | | { |
| | | var station = stationinfoRepository.Find(x => x.stationCode == inventory.stationCode).FirstOrDefault(); |
| | | var bindSNS = station.bindSN.Split(","); |
| | | station.bindSN = ToMesServer.OperStr(bindSNS, inventory.SN); |
| | | var billetS = station.billetID.Split(","); |
| | | station.billetID = ToMesServer.OperStr(billetS, inventory.BilletNumber.ToString()); |
| | | station.quantity = station.quantity - 1; |
| | | stationinfoRepository.Update(station, true); |
| | | _repository.Delete(inventory, true); |
| | | } |
| | | WriteDBLog.Write($"鎵嬪姩鍒犻櫎搴撳瓨 ", $"璐т綅缂栧彿锛歿inventorys.Key}锛汼N鍙凤細{str}", LogState.Sucess, "WMS", UserContext.Current.UserName); |