| | |
| | | { |
| | | LogTextHelper.WriteLog(Resources.LogDir, this.ToString(), "GetPlaceMaterialViews", ex.Message); |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据物料信息列表找取指定的库位物料信息 【Editby shaocx,2025-09-29】 |
| | | /// </summary> |
| | | /// <param name="materialcode"></param> |
| | | /// <returns></returns> |
| | | public List<int> GetPlaceMaterialViewsByCodeList(List<string> materialcodeList, out string msg) |
| | | { |
| | | msg = ""; |
| | | try |
| | | { |
| | | using (DbModelCore mcore = new DbModelCore()) |
| | | { |
| | | |
| | | var list = mcore.BASEPlaceMaterialViews.Where(x => materialcodeList.Contains(x.materialcode)).ToList(); |
| | | foreach (var item in list) |
| | | { |
| | | if (!materialcodeList.Contains(item.materialcode)) |
| | | { |
| | | msg = $"唯一编码{item.materialcode}没有库存"; |
| | | return null; |
| | | } |
| | | } |
| | | return list.Select(x => x.id).ToList(); |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | msg = "异常:" + ex.ToString(); |
| | | LogTextHelper.WriteLog(Resources.LogDir, this.ToString(), "GetPlaceMaterialViewsByCodeList", ex.Message); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | |
| | | public int islots { get; set; } |
| | | |
| | | public int priority { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 表BASEInOutListDetail的ID 【Editby shaocx,2025-09-29】 |
| | | /// </summary> |
| | | public int? InOutListDetailId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 表BASEInOutList的ListNo 【Editby shaocx,2025-09-29】 |
| | | /// </summary> |
| | | public string ListNo { get; set; } |
| | | } |
| | | } |
| | |
| | | public int Priority { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 表BASEInOutListDetail的ID 【Editby shaocx,2025-09-29】 |
| | | /// </summary> |
| | | public int? InOutListDetailId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 表BASEInOutList的ListNo 【Editby shaocx,2025-09-29】 |
| | | /// </summary> |
| | | public string ListNo { get; set; } |
| | | |
| | | |
| | | |
| | | public List<MaterialViewEntity> Materials { get; set; } |
| | | |
| | |
| | | {"DecompositionTimes","decompositiontimes"}, |
| | | {"IsLots","islots"}, |
| | | {"Priority","priority"}, |
| | | {"InOutListDetailId","InOutListDetailId"}, |
| | | {"ListNo","ListNo"}, |
| | | {"PackageNo","packageno"} |
| | | }; |
| | | } |
| | |
| | | {"DecompositionTimes","decompositiontimes"}, |
| | | {"IsLots","islots"}, |
| | | {"Priority","priority"}, |
| | | {"InOutListDetailId","InOutListDetailId"}, |
| | | {"ListNo","ListNo"}, |
| | | {"PackageNo","packageno"} |
| | | }; |
| | | } |