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.WebForm/Pages/business/DeliverPlanEdit.aspx.cs |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanEdit.aspx.cs
index 0ef63b2..c653c04 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanEdit.aspx.cs
@@ -145,6 +145,7 @@
             _oA_CustomerCommunications.DegreeImportanId = m_OA_CorporateClients.DegreeImportanId;
             _oA_CustomerCommunications.AccountManagerId = m_OA_CorporateClients.AccountManagerId;
             _oA_CustomerCommunications.BusinessManagerId = m_OA_CorporateClients.BusinessManagerId;
+            _oA_CustomerCommunications.CompanyName = m_OA_CorporateClients.CompanyName;
             Response.Write(null == _oA_CustomerCommunications ? "" : JsonHelper.GetJsonStringByObject(_oA_CustomerCommunications));
         }
 
@@ -178,7 +179,7 @@
                     SellerOrderId = ssss + (aaaaaaaaaaaa.ToInt32().Value + 1).ToString("000");
                 }
                 //this.SellerOrderId.InnerText = SellerOrderId;
-                OA_CorporateClients oA_CorporateClients = _oA_CorporateClientsBLL.SelectModelByFirmIdandMemberId(CurrentUser.MemberId, this.selBuyerId.Value.ToGuid2());
+               
 
 
                 OA_DeliverPlan oA_DeliverPlan = new OA_DeliverPlan();
@@ -186,7 +187,22 @@
                 oA_DeliverPlan.Keyid = Guid.NewGuid();
                 oA_DeliverPlan.FirmId = CurrentUser.MemberId;
                 oA_DeliverPlan.DeliverTime = DateTime.Parse(this.txtDeliverTime.Value);
-                oA_DeliverPlan.BuyerId = this.selBuyerId.Value.ToGuid2();
+                if (string.IsNullOrWhiteSpace(this.selBuyerId.Value))
+                {
+                    oA_DeliverPlan.BuyerId = Guid.Empty;
+                    oA_DeliverPlan.BusinessManagerId = 0;
+                    oA_DeliverPlan.Biddingcompany = 0;
+
+                }
+                else
+                {
+                    oA_DeliverPlan.BuyerId = this.selBuyerId.Value.ToGuid2();
+                    OA_CorporateClients oA_CorporateClients = _oA_CorporateClientsBLL.SelectModelByFirmIdandMemberId(CurrentUser.MemberId, this.selBuyerId.Value.ToGuid2());
+                    oA_DeliverPlan.BusinessManagerId = oA_CorporateClients.BusinessManagerId ?? 0;
+                    oA_DeliverPlan.Biddingcompany = oA_CorporateClients.Biddingcompany ?? 0;
+                  
+                }
+               
                 oA_DeliverPlan.DeliveredTime = null;
                 oA_DeliverPlan.Zhuyishixiang = "";
                 oA_DeliverPlan.Gongzuokaoping = "";
@@ -204,9 +220,9 @@
                 oA_DeliverPlan.Dianhua = this.txtDianhua.Value;
                 oA_DeliverPlan.Dizhi = this.txtDizhi.Value;
                 oA_DeliverPlan.Remark = this.txtRemark.Value;
-                oA_DeliverPlan.BusinessManagerId = oA_CorporateClients.BusinessManagerId ?? 0;
-                oA_DeliverPlan.Biddingcompany = oA_CorporateClients.Biddingcompany ?? 0;
+              
                 oA_DeliverPlan.shifouDelivery = 1;
+                oA_DeliverPlan.CompanyName = this.txtCompanyName.Value;
                 isWin = oA_DeliverPlanBLL.InsertModel(oA_DeliverPlan);
 
             }

--
Gitblit v1.9.1