MES.Service/Modes/MesDepotSections.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
MES.Service/service/Warehouse/MesDepotSectionsManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
MES.Service/service/Warehouse/OpeningReceiptServer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
MES.Service/Modes/MesDepotSections.cs
@@ -100,4 +100,16 @@ /// </summary> [SugarColumn(ColumnName = "ERPID")] public decimal? Erpid { get; set; } /// <summary> /// 仓库类别编码 /// </summary> [SugarColumn(IsIgnore = true)] public string? DepotCode { get; set; } /// <summary> /// 仓库类别名称 /// </summary> [SugarColumn(IsIgnore = true)] public string? DepotName { get; set; } } MES.Service/service/Warehouse/MesDepotSectionsManager.cs
@@ -22,5 +22,42 @@ } return sectionName; } public MesDepotSections ScanInDepotSectionsName(WarehouseQuery query) { if (string.IsNullOrEmpty(query.sectionCode)) { throw new Exception("请扫库位条码!"); } var mesDepotSections = Db.Queryable<MesDepotSections, MesDepots>( (a, b) => new JoinQueryInfos(JoinType.Inner, a.DepotId == b.DepotId)) .Where((a, b) => a.DepotSectionCode == query.sectionCode) .Select((a, b) => new MesDepotSections { DepotSectionName = a.DepotSectionName, DepotCode = b.DepotCode, DepotName = b.DepotName }).First(); if (mesDepotSections == null) { throw new Exception("库位编码" + query.sectionCode + " 不存在,请确认!"); } return mesDepotSections; } public MesInvItemStocks ScanEditBarcode(WarehouseQuery entity) { if (string.IsNullOrEmpty(entity.sectionCode)) { throw new Exception("请扫库位条码!"); } return null; } } MES.Service/service/Warehouse/OpeningReceiptServer.cs
@@ -1,7 +1,6 @@ using MES.Service.DB; using MES.Service.Dto.service; using MES.Service.Modes; using MES.Service.util; using SqlSugar; namespace MES.Service.service.Warehouse;