From a737eb14fe1b705b07f017e0edc002fae6f857c3 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 03 四月 2026 12:59:20 +0800
Subject: [PATCH] 发版套数再增加自定义填写数字 补单的生产施工单不要默认开料规格的数据 "付款未开票”列表中的金额合计放在“金额”格子下面,既要单页合计,又要每页的全部合计 生产要求跟“数量:    ”的宽度一样 印刷数量的填写格子跟后道工序一样长

---
 CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs b/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
index c069f65..1f57378 100644
--- a/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
+++ b/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
@@ -164,9 +164,28 @@
         /// <param name="pa"></param>
         /// <returns></returns>
         public IEnumerable<CoreDeliverOrder> SelectModelPage(Pagination pa, Guid FirmId, int? DriverId, string shipAddress,
-            string BuyerName, string createTimeStart, string createTimeEnd)
+            string BuyerName, string createTimeStart, string createTimeEnd, string OrderState)
         {
-            string Condition = " and b.FirmId ='" + FirmId + "' and a.OrderState = 0 ";
+            string Condition = " and b.FirmId ='" + FirmId + "' and b.DeliverState != 2 ";
+
+            if (!string.IsNullOrEmpty(OrderState))
+            {
+                if (OrderState != "4")
+                {
+                    Condition += " and  a.OrderState = " + OrderState + " ";
+                }
+                else
+                {
+                    Condition += " and a.OrderState  in( 0,1 ) ";
+                }
+            }
+            else
+            {
+                Condition += " and a.OrderState  in( 0,1,2 ) ";
+
+
+            }
+
             if (DriverId.HasValue)
             {
                var oA_Staff  = staffBLL.GetModelByKeyid(DriverId);
@@ -193,7 +212,7 @@
             {
                 new Criterion("", Condition),
 
-                new Criterion("orderBy"," MakeTime ")
+                new Criterion("orderBy"," DeliveryMoble asc,MakeTime asc ")
             };
             query.Criteria = criterias;
             return _ICoreDeliverOrderDAL.SelectModelPage(query, pa);

--
Gitblit v1.9.1