| | |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_WMS.IRepositories; |
| | | using System.Configuration; |
| | | using WIDESEA_Comm.LogInfo; |
| | | using WIDESEA_Core.ManageUser; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | |
| | | namespace WIDESEA_WMS.Services |
| | | { |
| | |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | |
| | | public override WebResponseContent Del(object[] keys, bool delList = true) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | string str = ""; |
| | | try |
| | | { |
| | | List<string> KeyList = new List<string>(); |
| | | foreach ( string key in keys ) |
| | | { |
| | | KeyList.Add(key); |
| | | } |
| | | var inventoryList= _repository.Find(x=>KeyList.Contains(x.ID.ToString())).ToList(); |
| | | str = $"{string.Join('ã', inventoryList.Select(t => t.SN).ToArray())}"; |
| | | content = base.Del(keys, delList); |
| | | WriteDBLog.Write($"æå¨å é¤åºå ", str, LogState.Sucess, "WMS", UserContext.Current.UserName); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | WriteDBLog.Write($"æå¨å é¤åºå ", new { éè¯¯ä¿¡æ¯ = ex.Message, æ°æ® = str }, LogState.Error, "WMS", UserContext.Current.UserName); |
| | | } |
| | | |
| | | return content; |
| | | } |
| | | } |
| | | } |