From 59f461f6a0e9a97d3e42330892c223a53250302a Mon Sep 17 00:00:00 2001
From: yuyou_x <2336760928@qq.com>
Date: 星期四, 14 三月 2024 10:28:07 +0800
Subject: [PATCH] ERP下发的单据任何状态下编辑按钮应不显示;(改为 只有WMS录入的单据且状态为等待执行的有编辑按钮,其余系统下发单据无编辑按钮)。增加客户编码查询条件。

---
 Wms/WMS.BLL/SysServer/CustomerServer.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Wms/WMS.BLL/SysServer/CustomerServer.cs b/Wms/WMS.BLL/SysServer/CustomerServer.cs
index c6895ce..0af5d65 100644
--- a/Wms/WMS.BLL/SysServer/CustomerServer.cs
+++ b/Wms/WMS.BLL/SysServer/CustomerServer.cs
@@ -25,11 +25,12 @@
         }
 
 
-        public List<CustomerDto> GetCustomerList(string name, int? type, string linkMan, string phone, int page, int limit, out int count)
+        public List<CustomerDto> GetCustomerList(string no,string name, int? type, string linkMan, string phone, int page, int limit, out int count)
         {
             try
             {
                 Expression<Func<SysCustomer, bool>> item = Expressionable.Create<SysCustomer>()
+                    .AndIF(!string.IsNullOrWhiteSpace(no), it => it.CustomerNo.Contains(no.Trim()))
                     .AndIF(!string.IsNullOrWhiteSpace(name), it => it.CustomerName.Contains(name.Trim()))
                     .AndIF(type >= 0, it => it.Type == type)
                     .AndIF(!string.IsNullOrWhiteSpace(linkMan), it => it.LinkMan.Contains(linkMan.Trim()))

--
Gitblit v1.8.0