From 2fee7b9b90c1acf7a17aef84ee22c2a31b801fe2 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 07 三月 2025 08:34:42 +0800
Subject: [PATCH] 送货管理  增加查询  业务经理   客户名称   完成  查询送货安排的历史 完成

---
 CY_ECommercePlatform/CY.SQLDAL/OA/OA_ProcurementDAL.cs |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_ProcurementDAL.cs b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_ProcurementDAL.cs
index e24d161..da944f6 100644
--- a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_ProcurementDAL.cs
+++ b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_ProcurementDAL.cs
@@ -36,10 +36,21 @@
             {
                 return false;
             }
+            SqlParameter SuppliersId = null;
+            if (trueModel.SuppliersId.HasValue)
+            {
+                SuppliersId = new SqlParameter("@SuppliersId", trueModel.SuppliersId);
+            }
+            else
+            {
+                SuppliersId = new SqlParameter("@SuppliersId", DBNull.Value);
+            }
+
+
             IList<SqlParameter> sqlParms = new List<SqlParameter>()
             {
                     new SqlParameter("@FirmId",trueModel.FirmId),
-					new SqlParameter("@SuppliersId",trueModel.SuppliersId),
+                    SuppliersId,
 					new SqlParameter("@GoodsId",trueModel.GoodsId),
 					new SqlParameter("@ClearingStatusId",trueModel.ClearingStatusId),
 					new SqlParameter("@Price",trueModel.Price),
@@ -55,7 +66,9 @@
                     new SqlParameter("@PaperWeightId",trueModel.PaperWeightId),
             	    new SqlParameter("@tanPrice",trueModel.TanPrice??0),
                     new SqlParameter("@ReceiveMoney",decimal.Parse("0")),
-                    new SqlParameter("@Commodityid",trueModel.Commodityid)
+                    new SqlParameter("@Commodityid",trueModel.Commodityid),
+                     new SqlParameter("@orderId",trueModel.orderId.HasValue?trueModel.orderId.Value:0),
+                      new SqlParameter("@DocumentName",string.IsNullOrEmpty(trueModel.DocumentName)?"":trueModel.DocumentName)
             };
             try
             {
@@ -80,11 +93,21 @@
             {
                 return false;
             }
+
+            SqlParameter SuppliersId = null;
+            if (trueModel.SuppliersId.HasValue)
+            {
+                SuppliersId = new SqlParameter("@SuppliersId", trueModel.SuppliersId);
+            }
+            else
+            {
+                SuppliersId = new SqlParameter("@SuppliersId", DBNull.Value);
+            }
             IList<SqlParameter> sqlParms = new List<SqlParameter>()
             { 
                     new SqlParameter("@Keyid",trueModel.Keyid),
                     new SqlParameter("@FirmId",trueModel.FirmId),
-					new SqlParameter("@SuppliersId",trueModel.SuppliersId),
+                    SuppliersId,
 					new SqlParameter("@GoodsId",trueModel.GoodsId),
 					new SqlParameter("@ClearingStatusId",trueModel.ClearingStatusId),
 					new SqlParameter("@Price",trueModel.Price),

--
Gitblit v1.9.1