| | |
| | | // }) |
| | | // .ToList(); |
| | | |
| | | var sql =string.Format(@"SELECT c.item_no ItemNo,c.item_name ItemName,c.item_model ItemModel,b.dab006 FQty,b.dab007 SQty,b.dab006 - b.dab007 DSQty , |
| | | var sql =string.Format(@"SELECT c.item_no ItemNo,c.item_name ItemName,c.item_model ItemModel,b.dab006 FQty,b.dab007 SQty,b.dab006 - b.dab007 DSQty ,C.item_id FMaterialId , |
| | | dbo.F_QX_GETRECODEPOTSE(B.dab003,'','','') as RecoKw |
| | | FROM WOMDAB B |
| | | LEFT JOIN WOMDAA A ON A.guid = B.daaGuid |
| | |
| | | return Traceability; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取物料相关条码信息 |
| | | /// </summary> |
| | | /// <param name="unity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public dynamic GetBarKwByItem(dynamic unity) |
| | | { |
| | | if (unity == null) |
| | | throw new ArgumentNullException(nameof(unity), "参数对象不能为null"); |
| | | |
| | | if (string.IsNullOrEmpty(unity.itemId?.ToString())) |
| | | throw new ArgumentException("物料ID不能为空", nameof(unity.itemId)); |
| | | |
| | | try |
| | | { |
| | | var parameters = new List<SugarParameter> |
| | | { |
| | | new SugarParameter("@itemId", unity.itemId) |
| | | }; |
| | | |
| | | return Db.Ado.SqlQuery<dynamic>("EXEC prc_pda_scll_selBarMx @itemId", parameters); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception($"获取条码信息失败:{ex.Message}"); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | public dynamic ProductBinding(dynamic query) |
| | | { |
| | | if (query == null) throw new ArgumentNullException(nameof(query), "参数对象不能为 null"); |