From 879b9eaa07c8f3e5340bfd7cac565780b9d2867c Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 24 七月 2025 09:31:03 +0800 Subject: [PATCH] 采购付款抹零 --- CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 43 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..74d9ec5 100644 --- a/CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs +++ b/CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs @@ -314,11 +314,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 +1185,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