From f6cb981322bc4c2a27921ad0480dce7fb483a4d8 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 10 四月 2026 13:23:54 +0800
Subject: [PATCH] 先提交一部分

---
 CY_ECommercePlatform/CY.BLL/OA/OA_ShebeijijianBLL.cs |  181 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 181 insertions(+), 0 deletions(-)

diff --git a/CY_ECommercePlatform/CY.BLL/OA/OA_ShebeijijianBLL.cs b/CY_ECommercePlatform/CY.BLL/OA/OA_ShebeijijianBLL.cs
new file mode 100644
index 0000000..97aefe8
--- /dev/null
+++ b/CY_ECommercePlatform/CY.BLL/OA/OA_ShebeijijianBLL.cs
@@ -0,0 +1,181 @@
+锘�
+/**  
+* OA_ShebeijijianBLL.cs
+*
+* 鍔� 鑳斤細 鍚堜綔瀹㈡埛涓氬姟閫昏緫绫�
+* 绫� 鍚嶏細 OA_ShebeijijianBLL
+*
+* Ver    鍙樻洿鏃ユ湡             璐熻矗浜�  鍙樻洿鍐呭
+* 鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�鈹�
+* V0.01  2013-4-2 15:11       鍚磋緣      鍒濈増
+* V0.02  2013-5-29 17:43      鍚村磶鍧�    澧炲姞杞崲鍦ㄧ嚎浼氬憳涓哄巶鍟嗗鎴锋柟娉� 
+*
+*
+*
+*
+*
+*
+*/
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using CY.IDAL;
+using CY.Model;
+using AbstractFactory;
+using CY.IBaseDAL;
+using CY.Infrastructure.DESEncrypt;
+using CY.Infrastructure.Query;
+
+namespace CY.BLL
+{
+    public class OA_ShebeijijianBLL
+    {
+
+        IOA_ShebeijijianDAL _IOA_ShebeijijianDAL = null;
+
+        /// <summary>
+        /// 鍒濆鍖栨瀯閫�
+        /// </summary>
+        public OA_ShebeijijianBLL()
+        {
+            //鑾峰彇OA_Shebeijijian DAL瀹炵幇
+            _IOA_ShebeijijianDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_ShebeijijianDAL) as IOA_ShebeijijianDAL;
+
+
+        }
+
+        /// <summary>
+        /// 鏂板閫佽揣瀹夋帓
+        /// </summary>
+        /// <param name="rType"></param>
+        /// <param name="m_OA_CustomerCommunications"></param>
+        /// <param name="m_EC_AcceptWayByCustomers"></param>
+        /// <returns></returns>
+        public bool InsertModel(CY.Model.OA_Shebeijijian m_OA_Shebeijijian)
+        {
+            try
+            {
+
+                return _IOA_ShebeijijianDAL.InserModel(m_OA_Shebeijijian);
+            }
+            catch (Exception ex)
+            {
+                throw ex;
+            }
+        }
+
+        /// <summary>
+        /// 淇敼閫佽揣瀹夋帓
+        /// </summary>
+        /// <param name="rType"></param>
+        /// <returns></returns>
+        public bool UpdateModel(CY.Model.OA_Shebeijijian m_OA_Shebeijijian)
+        {
+            try
+            {
+                return _IOA_ShebeijijianDAL.UpdateModel(m_OA_Shebeijijian);
+            }
+            catch (Exception ex)
+            {
+                throw ex;
+            }
+        }
+
+        /// <summary>
+        /// 鑾峰彇鍏ㄩ儴鍚堜綔瀹㈡埛
+        /// </summary>
+        /// <param name="Keyid">涓婚敭id</param>
+        /// <returns></returns>
+        public IEnumerable<OA_Shebeijijian> GetModelList()
+        {
+            Query query = new Query();
+            return _IOA_ShebeijijianDAL.SelectAllModel(query);
+        }
+
+
+        /// <summary>
+        /// 鏍规嵁formid鑾峰緱淇℃伅
+        /// </summary>
+        /// <param name="Keyid">缂栧彿</param>
+        /// <returns></returns>
+        public IEnumerable<Model.OA_Shebeijijian> GetModelByformid(Guid formid, string ShebeiId)
+        {
+
+            return _IOA_ShebeijijianDAL.GetModelByformid(formid, ShebeiId);
+        }
+
+        /// <summary>
+        /// 鑾峰彇鍏ㄩ儴鍚堜綔瀹㈡埛
+        /// </summary>
+        /// <param name="Keyid">涓婚敭id</param>
+        /// <returns></returns>
+        public OA_Shebeijijian GetModelByKeyid(int keyid)
+        {
+
+            return _IOA_ShebeijijianDAL.GetModelByKeyid(keyid);
+        }
+
+        /// <summary>
+        /// 鍒犻櫎鍚堜綔瀹㈡埛
+        /// </summary>
+        /// <param name="rType"></param>
+        /// <returns></returns>
+        public bool DeleteModel(CY.Model.OA_Shebeijijian rType)
+        {
+            try
+            {
+                _IOA_ShebeijijianDAL.DeleteModel(rType);
+            }
+            catch (Exception ex)
+            {
+                throw ex;
+            }
+            return true;
+        }
+
+        /// <summary>
+        /// 鏌ヨ鍚堜綔瀹㈡埛鍒嗛〉鍒楄〃
+        /// </summary>
+        /// <param name="pa"></param>
+        /// <returns></returns>
+        public IEnumerable<OA_Shebeijijian> SelectModelPage(Pagination pa, Guid FirmId, string CreateTimeStart, string CreateTimeEnd,
+    string ShebeiId)
+        {
+            string Condition = " and ok.FirmId ='" + FirmId + "'  ";
+
+            if (!string.IsNullOrEmpty(CreateTimeStart))
+                Condition += " and DATEDIFF(day,ok.[CreateTime],'" + CreateTimeStart + "')<=0 ";
+
+            if (!string.IsNullOrEmpty(CreateTimeEnd))
+                Condition += " and DATEDIFF(day,ok.[CreateTime],'" + CreateTimeEnd + "')>=0 ";
+
+            if (!string.IsNullOrEmpty(ShebeiId))
+                Condition += " and  ok.ShebeiId = " + ShebeiId + "";
+
+            
+            Query query = new Query();
+            IList<Criterion> criterias = new List<Criterion>()
+            {
+                new Criterion("", Condition),
+
+                new Criterion("orderBy"," CreateTime desc   ")
+            };
+            query.Criteria = criterias;
+            return _IOA_ShebeijijianDAL.SelectModelPage(query, pa);
+        }
+
+
+        /// <summary>
+        /// 鎵归噺鍒犻櫎
+        /// </summary>
+        /// <param name="keyids"></param>
+        /// <param name="Memberid"></param>
+        /// <returns></returns>
+        public bool DelAllModel(string keyids, Guid Memberid)
+        {
+            return _IOA_ShebeijijianDAL.DelAllModel(keyids, Memberid);
+        }
+
+    }
+}

--
Gitblit v1.9.1