From e110200c2e32a0f82f474fa38b315ae6360f2dc4 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 04 三月 2025 08:39:38 +0800
Subject: [PATCH] 在订单列表    送货安排     点击打印送货单  选择送货日期   默认最晚的送货日期,默认当天,可以修改  完成  司机查询  拥有司机小程序权限的人员  完成  新增送货     可以选择客户,也可以  填写临时客户  完成

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingOrderPrint.aspx.cs |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingOrderPrint.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingOrderPrint.aspx.cs
index 3029430..17f899b 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingOrderPrint.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingOrderPrint.aspx.cs
@@ -86,7 +86,7 @@
 
 
 
-
+            string orderids = Request["SellerOrderId"] == null ? "" : Request["SellerOrderId"]; 
 
 
 
@@ -117,7 +117,18 @@
             SetParamValue(searchParam, 23, "");
             SetParamValue(searchParam, 24, "");
             SetParamValue(searchParam, 25, "");
-            SetParamValue(searchParam, 26, KaipiaoshenqingId.ToGuid2());
+            if (string.IsNullOrEmpty(KaipiaoshenqingId))
+            {
+                SetParamValue(searchParam, 26, "");
+                SetParamValue(searchParam, 29, orderids);
+               
+            }
+            else
+            {
+                SetParamValue(searchParam, 26, KaipiaoshenqingId.ToGuid2());
+                SetParamValue(searchParam, 29, "");
+            }
+          
             SearchParam = searchParam;
 
 
@@ -133,7 +144,12 @@
             rptOrder.DataSource = result;
             rptOrder.DataBind();
 
-             
+            this.Spanjineheji.InnerText = string.Format("{0:F2}", result.Sum(x => x.SumPrice));
+            this.Spanyishou.InnerText = string.Format("{0:F2}", result.Sum(x => x.TradingSingle.PayedMoney));
+            this.Spanweishou.InnerText = string.Format("{0:F2}", result.Sum(x => x.UnPayedMoney));
+
+
+
             return true;
         }
 

--
Gitblit v1.9.1