From abdd1a1d8802a93ad9307b0b42020beae9147f62 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 30 十月 2025 08:44:30 +0800
Subject: [PATCH] 把这个放到开票管理中,就是财务管理的付款未票啊,付款未开票啊,把它放到开票管理中,同时在后面加一个开票说明,这个就有。经办人自己填,就是这个好久开开不开得到那个个进度。

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs |   75 ++++++++++++++++++++++++++++++++++---
 1 files changed, 68 insertions(+), 7 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
index a555040..c93236b 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
@@ -89,7 +89,17 @@
             OA_CorporateClients m_OA_CorporateClients = new OA_CorporateClients();
             OA_CustomerCommunications m_OA_CustomerCommunications = new OA_CustomerCommunications();
             EC_AcceptWayByCustomers m_EC_AcceptWayByCustomers = new EC_AcceptWayByCustomers();
+            if ( this.selSourcesInfoId.Value.ToString() == "452" && string.IsNullOrWhiteSpace(this.txtJigoudaima.Value.ToString()))
+            {
+                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;
@@ -350,14 +360,14 @@
                 m_OA_CorporateClients.Shifouwanjie = 1;
 
                 m_OA_CorporateClients.LastUpdateTime = DateTime.Now;
+                m_OA_CorporateClients.WanjieTime = DateTime.Now;
 
 
- 
 
-                        #region 娣诲姞鎴栫紪杈�
+                #region 娣诲姞鎴栫紪杈�
 
-                         
-                            bool result = bll_OA_CorporateClientsBLL.UpdateModel(m_OA_CorporateClients);//鏇存柊淇℃伅
+
+                bool result = bll_OA_CorporateClientsBLL.UpdateWanjie(m_OA_CorporateClients);//鏇存柊淇℃伅
                             if (result)
                                 JavaScript.MessageBox("瀹岀粨鎴愬姛", this, true, true);
                             else
@@ -375,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;
+
+                m_OA_CorporateClients.WanjieTime = DateTime.Now;
+
+
+                #region 娣诲姞鎴栫紪杈�
+
+
+                bool result = bll_OA_CorporateClientsBLL.UpdateWanjie(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)
         //{
@@ -471,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";
@@ -555,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();
@@ -656,6 +716,7 @@
                 this.txtFinancialOfficers.Value = "";
                 this.txtOfficersMobile.Value = "";
                 this.txtOfficersQQ.Value = "";
+                Shifouwanjie = "3";
 
                 #endregion
 

--
Gitblit v1.9.1