From 58cc59639e3ca32896d6db5d0c261ff63848a30d Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 15 九月 2025 15:04:37 +0800
Subject: [PATCH] 增加一个完结时间,如果下次打开,就按完结时间计算合同金额

---
 CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs |   63 ++++++++++++++++++++++++++++++-
 1 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs b/CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs
index 17e5c72..ab4c1e0 100644
--- a/CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs
+++ b/CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs
@@ -85,6 +85,24 @@
             }
         }
 
+
+        /// <summary>
+        /// 淇敼鍚堜綔瀹㈡埛
+        /// </summary>
+        /// <param name="rType"></param>
+        /// <returns></returns>
+        public bool UpdateWanjie(CY.Model.OA_CorporateClients m_OA_CorporateClients)
+        {
+            try
+            {
+                return _IOA_CorporateClientsDal.UpdateWanjie(m_OA_CorporateClients);
+            }
+            catch (Exception ex)
+            {
+                throw ex;
+            }
+        }
+
         /// <summary>
         /// 璁剧疆鑷姩澶栧崗
         /// </summary>
@@ -314,11 +332,11 @@
             {
                 if (selHetongshangchuan == "1")
                 {
-                    Condition += string.Format(" and EXISTS   ( select  CorporateClientsid  from [dbo].[OA_CorporateClientContract] where CorporateClientsid=a.Keyid ) ");
+                    Condition += string.Format(" and a.Keyid in   ( select  CorporateClientsid  from [dbo].[OA_CorporateClientContract]  ) ");
                 }
                 else
                 {
-                    Condition += string.Format(" and NOT  EXISTS   ( select  CorporateClientsid  from [dbo].[OA_CorporateClientContract] where CorporateClientsid=a.Keyid ) ");
+                    Condition += string.Format(" and a.Keyid not in   ( select  CorporateClientsid  from [dbo].[OA_CorporateClientContract]   ) ");
                 }
             }
                
@@ -1185,5 +1203,46 @@
         {
             return _IOA_CorporateClientsDal.SelectVisitListByBuzAndTime(BusinessManagerId, chaxuntime);
         }
+
+
+        /// <summary>
+        /// 娣诲姞闄勪欢
+        /// </summary>
+        /// <param name="rType"></param>
+        /// <returns></returns>
+        public bool Insertattachment(OA_attachment a_Attachment)
+        {
+            try
+            {
+                _IOA_CorporateClientsDal.Insertattachment(a_Attachment);
+            }
+            catch (Exception ex)
+            {
+                throw ex;
+            }
+            return true;
+        }
+
+
+        /// <summary>
+        /// 鑾峰彇闄勪欢
+        /// </summary>
+        /// <param name="Keyid">涓婚敭id</param>
+        /// <returns></returns>
+        public IEnumerable<OA_attachment> GetattachmentlList(string OA_Id)
+        {
+             
+            return _IOA_CorporateClientsDal.GetattachmentlList(OA_Id);
+        }
+
+        /// <summary>
+        /// 鍗曚釜鏌ヨ璁块棶
+        /// </summary>
+        /// <param name="Keyid">缂栧彿</param>
+        /// <returns></returns>
+        public OA_CorporateClientsVisit SelectVisitByKeyid(Guid Keyid)
+        {
+            return _IOA_CorporateClientsDal.SelectVisitByKeyid(Keyid);
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1