From af5847927931d3f491d7be5e0178cff3c37ac6f9 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 06 十一月 2025 17:20:44 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_ProductionOutboundOrderDetailService.cs | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_ProductionOutboundOrderDetailService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_ProductionOutboundOrderDetailService.cs"
index 39b719c..cf60638 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_ProductionOutboundOrderDetailService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_ProductionOutboundOrderDetailService.cs"
@@ -6,6 +6,7 @@
using WIDESEA_Core.Helper;
using WIDESEA_IOrderRepository;
using WIDESEA_IOrderServices;
+using WIDESEA_IStorageBasicRepository;
using WIDESEA_IStorageTaskRepository;
using WIDESEA_IStorageTaskServices;
using WIDESEA_Model.Models;
@@ -16,12 +17,13 @@
public class Dt_ProductionOutboundOrderDetailService : ServiceBase<Dt_ProductionOutboundOrderDetail, IDt_ProductionOutboundOrderDetailRepository>, IDt_ProductionOutboundOrderDetailService
{
private readonly IUnitOfWorkManage _unitOfWorkManage;
-
+ private readonly IStockInfoDetailRepository _stockInfoDetailRepository;
public Dt_ProductionOutboundOrderDetailService(IDt_ProductionOutboundOrderDetailRepository BaseDal,
- IUnitOfWorkManage unitOfWorkManage) : base(BaseDal)
+ IUnitOfWorkManage unitOfWorkManage,
+ IStockInfoDetailRepository stockInfoDetailRepository) : base(BaseDal)
{
_unitOfWorkManage = unitOfWorkManage;
-
+ _stockInfoDetailRepository = stockInfoDetailRepository;
}
public override PageGridData<Dt_ProductionOutboundOrderDetail> GetPageData(PageDataOptions options)
{
@@ -55,7 +57,19 @@
.WhereIF(!wheres.IsNullOrEmpty(), wheres)
.OrderBy(orderByModels)
.ToPageList(options.Page, options.Rows, ref totalCount);
- var x=new PageGridData<Dt_ProductionOutboundOrderDetail>(totalCount, data);
+
+ foreach (var item in data)
+ {
+ var detail = _stockInfoDetailRepository.QueryFirst(x => x.MaterielCode == item.MaterielCode);
+ if (detail != null)
+ {
+ item.Remark = "鏈夊簱瀛�";
+ }
+ else
+ {
+ item.Remark = "鏃犲簱瀛�";
+ }
+ }
return new PageGridData<Dt_ProductionOutboundOrderDetail>(totalCount, data);
}
}
--
Gitblit v1.9.3