From a296223898d61a9838bbd35ed75c87575e308a36 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期五, 07 十一月 2025 17:19:38 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_AllocateOutboundOrderDetailService.cs | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_AllocateOutboundOrderDetailService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_AllocateOutboundOrderDetailService.cs"
index c00107d..21f412f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_AllocateOutboundOrderDetailService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_AllocateOutboundOrderDetailService.cs"
@@ -6,22 +6,26 @@
using WIDESEA_Core.Helper;
using WIDESEA_IOrderRepository;
using WIDESEA_IOrderServices;
+using WIDESEA_IStorageBasicRepository;
using WIDESEA_IStorageTaskRepository;
using WIDESEA_IStorageTaskServices;
using WIDESEA_Model.Models;
using WIDESEA_Model.Models.Order;
+using WIDESEA_StorageBasicRepository;
namespace WIDESEA_OrderServices
{
public class Dt_AllocateOutboundOrderDetailService : ServiceBase<Dt_AllocateOutboundOrderDetail, IDt_AllocateOutboundOrderDetailRepository>, IDt_AllocateOutboundOrderDetailService
{
private readonly IUnitOfWorkManage _unitOfWorkManage;
+ private readonly IStockInfoDetailRepository _stockInfoDetailRepository;
public Dt_AllocateOutboundOrderDetailService(IDt_AllocateOutboundOrderDetailRepository BaseDal,
- IUnitOfWorkManage unitOfWorkManage) : base(BaseDal)
+ IUnitOfWorkManage unitOfWorkManage,
+ IStockInfoDetailRepository stockInfoDetailRepository) : base(BaseDal)
{
_unitOfWorkManage = unitOfWorkManage;
-
+ _stockInfoDetailRepository = stockInfoDetailRepository;
}
public override PageGridData<Dt_AllocateOutboundOrderDetail> GetPageData(PageDataOptions options)
{
@@ -55,7 +59,19 @@
.WhereIF(!wheres.IsNullOrEmpty(), wheres)
.OrderBy(orderByModels)
.ToPageList(options.Page, options.Rows, ref totalCount);
- var x=new PageGridData<Dt_AllocateOutboundOrderDetail>(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_AllocateOutboundOrderDetail>(totalCount, data);
}
}
--
Gitblit v1.9.3