| | |
| | | using SqlSugar; |
| | | using WMS.BLL.LogServer; |
| | | using WMS.DAL; |
| | | using WMS.Entity.BllAsnEntity; |
| | | using WMS.Entity.BllQualityEntity; |
| | | using WMS.Entity.Context; |
| | | using WMS.Entity.DataEntity; |
| | |
| | | |
| | | return boxInforList; |
| | | } |
| | | /// <summary> |
| | | /// 托盘明细备注 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <param name="demo"></param> |
| | | /// <param name="userId"></param> |
| | | /// <exception cref="Exception"></exception> |
| | | public void EditStockDetailDemo(int id, string demo, int userId) |
| | | { |
| | | try |
| | | { |
| | | var detail = Db.Queryable<DataStockDetail>().First(m => m.IsDel == "0" && m.Id == id); |
| | | if (detail == null) |
| | | { |
| | | throw new Exception("未查询到库存明细信息"); |
| | | } |
| | | detail.Demo = demo + "".Trim(); |
| | | detail.UpdateUser = userId; |
| | | detail.UpdateTime = DateTime.Now; |
| | | |
| | | int i = Db.Updateable(detail).ExecuteCommand(); |
| | | if (i > 0) |
| | | { |
| | | //添加操作日志 |
| | | new OperationASNServer().AddLogOperationAsn("库存统计", "托盘明细", detail.PalletNo, "编辑", $"编辑了托盘号为{detail.PalletNo}的备注信息", userId); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception(ex.Message); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |