From a980cd04341d71216e0f59bd4b7327fe9fc50032 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 21 五月 2025 11:41:46 +0800
Subject: [PATCH] 提交

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs |   63 ++++++++++++++++++++++++++++++-
 1 files changed, 60 insertions(+), 3 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
index 8737fc7..b9d27d6 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
@@ -94,6 +94,12 @@
                 JavaScript.MessageBox("瀹㈡埛鏉ユ簮涓烘斂搴滈噰璐紝璇峰~鍐欐満鏋勪唬鐮�", this);
                 return;
             }
+
+            if (string.IsNullOrEmpty(Request["selectProvince"].ToString2()) || string.IsNullOrEmpty(Request["selectCity"].ToString2()) || string.IsNullOrEmpty(Request["selectCounty"].ToString2()))
+            {
+                JavaScript.MessageBox("璇烽�夋嫨鎵�鍦ㄥ尯鍩�", this);
+                return;
+            }
             try
             {
                 //var files = Request.Files;
@@ -379,6 +385,56 @@
         }
 
 
+
+        //瀹岀粨浜嬩欢
+        protected void btn_Submit_chongxinkaitong(object sender, EventArgs e)
+        {
+            OA_CorporateClients m_OA_CorporateClients = new OA_CorporateClients();
+
+
+            try
+            {
+                Guid Keyid = Request["Keyid"].ToGuid2();
+
+
+
+
+                if (Request["Keyid"] != null)
+                {
+                    m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(Request["Keyid"].ToGuid2());
+
+                }
+                else
+                {
+                    JavaScript.MessageBox("璇峰厛淇濆瓨瀹㈡埛", this);
+                }
+
+                m_OA_CorporateClients.Shifouwanjie = 2;
+
+                m_OA_CorporateClients.LastUpdateTime = DateTime.Now;
+
+
+
+
+                #region 娣诲姞鎴栫紪杈�
+
+
+                bool result = bll_OA_CorporateClientsBLL.UpdateModel(m_OA_CorporateClients);//鏇存柊淇℃伅
+                if (result)
+                    JavaScript.MessageBox("瀹岀粨鎴愬姛", this, true, true);
+                else
+                    JavaScript.MessageBox("瀹岀粨澶辫触", this);
+
+                #endregion
+
+
+            }
+            catch (Exception ex)
+            {
+                PAGEHandleException(ex);
+                JavaScript.MessageBox("鎿嶄綔澶辫触", this);
+            }
+        }
         ////瀹岀粨浜嬩欢
         //protected void btn_Submit_Visit(object sender, EventArgs e)
         //{
@@ -475,7 +531,7 @@
             this.selCustomerIndustriesId.DataTextField = "Name";
             this.selCustomerIndustriesId.DataBind();
 
-            this.selCustomerIndustriesId.Value = "69";
+            this.selCustomerIndustriesId.Value = "454";
 
             this.selCustomerTypeId.DataSource = bll_Sys_DictionaryBLL.GetDataByType("瀹㈡埛绫诲瀷");
             this.selCustomerTypeId.DataValueField = "Keyid";
@@ -559,8 +615,8 @@
                 this.selSourcesInfoId.Value = m_OA_CorporateClients.SourcesInfoId.ToString2();
                 this.selCustomerIndustriesId.Value = m_OA_CorporateClients.CustomerIndustriesId.ToString2();
                 this.selCustomerTypeId.Value = m_OA_CorporateClients.CustomerTypeId.ToString2();
-                this.selBusinessManagerId.Value = m_OA_CorporateClients.BusinessManagerId.ToString2();
-                this.selAccountManagerId.Value = m_OA_CorporateClients.AccountManagerId.ToString2();
+                this.selBusinessManagerId.Value = m_OA_CorporateClients.BusinessManagerId.ToString2()=="0"?"": m_OA_CorporateClients.BusinessManagerId.ToString2();
+                this.selAccountManagerId.Value = m_OA_CorporateClients.AccountManagerId.ToString2() == "0" ? "" : m_OA_CorporateClients.AccountManagerId.ToString2();
                 this.selDegreeImportanId.Value = m_OA_CorporateClients.DegreeImportanId.ToString2();
                 this.selBusinessAnalysisId.Value = m_OA_CorporateClients.BusinessAnalysisId.ToString2();
                 this.selIsLoginCorporateWeb.Value = m_OA_CorporateClients.IsLoginCorporateWeb.ToString2();
@@ -660,6 +716,7 @@
                 this.txtFinancialOfficers.Value = "";
                 this.txtOfficersMobile.Value = "";
                 this.txtOfficersQQ.Value = "";
+                Shifouwanjie = "3";
 
                 #endregion
 

--
Gitblit v1.9.1