From ca1ccd0dd9f2d6936368f07d14a2b29b309fd151 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期三, 04 十二月 2024 15:59:25 +0800
Subject: [PATCH] 增加单独匹配界面

---
 BLL/HStation.BLL.Assets.Core/04-bll/17-Flowmeter/02-FlowmeterMain/AssetsFlowmeterMain.cs |   77 +++++++++++++++++++++-----------------
 1 files changed, 43 insertions(+), 34 deletions(-)

diff --git a/BLL/HStation.BLL.Assets.Core/04-bll/17-Flowmeter/02-FlowmeterMain/AssetsFlowmeterMain.cs b/BLL/HStation.BLL.Assets.Core/04-bll/17-Flowmeter/02-FlowmeterMain/AssetsFlowmeterMain.cs
index 1e3b334..76622a1 100644
--- a/BLL/HStation.BLL.Assets.Core/04-bll/17-Flowmeter/02-FlowmeterMain/AssetsFlowmeterMain.cs
+++ b/BLL/HStation.BLL.Assets.Core/04-bll/17-Flowmeter/02-FlowmeterMain/AssetsFlowmeterMain.cs
@@ -4,18 +4,17 @@
 {
     /// <summary>
     /// 娴侀噺璁�
-    ///</summary>    
+    ///</summary>
     public partial class AssetsFlowmeterMain
-    { 
-         
+    {
         private readonly CAL.IAssetsFlowmeterMain _cal = CALCreateHelper.CreateCAL<CAL.IAssetsFlowmeterMain>();
-       
+
         #region Query
 
         /// <summary>
         /// 鑾峰彇鎵�鏈�
         /// </summary>
-        public async virtual Task<List<Vmo.AssetsFlowmeterMainVmo>> GetAll()
+        public virtual async Task<List<Vmo.AssetsFlowmeterMainVmo>> GetAll()
         {
             var dtoList = await _cal.GetAll();
             return Dto2Vmos(dtoList);
@@ -24,7 +23,7 @@
         /// <summary>
         /// 閫氳繃 ID 鑾峰彇
         /// </summary>
-        public async virtual Task<Vmo.AssetsFlowmeterMainVmo> GetByID(long ID)
+        public virtual async Task<Vmo.AssetsFlowmeterMainVmo> GetByID(long ID)
         {
             var dto = await _cal.GetByID(ID);
             return Dto2Vmo(dto);
@@ -33,20 +32,32 @@
         /// <summary>
         /// 閫氳繃 Ids 鑾峰彇
         /// </summary>
-        public async virtual Task<List<Vmo.AssetsFlowmeterMainVmo>> GetByIds(List<long> Ids)
+        public virtual async Task<List<Vmo.AssetsFlowmeterMainVmo>> GetByIds(List<long> Ids)
         {
             var dtoList = await _cal.GetByIds(Ids);
             return Dto2Vmos(dtoList);
         }
 
-        #endregion
+        /// <summary>
+        /// 閫氳繃绯诲垪ID鏌ユ壘
+        /// </summary>
+        /// <param name="ID"></param>
+        /// <returns></returns>
+        public async Task<List<Vmo.AssetsFlowmeterMainVmo>> GetBySeriesID(long ID)
+        {
+            var Dto = await _cal.GetBySeriesID(ID);
+            var dtoList = Dto2Vmos(Dto);
+            return dtoList;
+        }
+
+        #endregion Query
 
         #region Insert
 
         /// <summary>
         /// 鎻掑叆涓�鏉�
         /// </summary>
-        public async virtual Task<long> Insert(Vmo.AssetsFlowmeterMainVmo vmo)
+        public virtual async Task<long> Insert(Vmo.AssetsFlowmeterMainVmo vmo)
         {
             var dto = Vmo2AddDto(vmo);
             var id = await _cal.Insert(dto);
@@ -56,21 +67,21 @@
         /// <summary>
         /// 鎻掑叆澶氭潯
         /// </summary>
-        public async virtual Task<bool> Inserts(List<Vmo.AssetsFlowmeterMainVmo> vmoList)
+        public virtual async Task<bool> Inserts(List<Vmo.AssetsFlowmeterMainVmo> vmoList)
         {
             var dtoList = Vmo2AddDtos(vmoList);
             var bol = await _cal.Inserts(dtoList);
             return bol;
         }
 
-        #endregion
+        #endregion Insert
 
         #region Update
 
         /// <summary>
         /// 鏇存柊
         /// </summary>
-        public async virtual Task<bool> Update(Vmo.AssetsFlowmeterMainVmo vmo)
+        public virtual async Task<bool> Update(Vmo.AssetsFlowmeterMainVmo vmo)
         {
             var dto = Vmo2UpdateDto(vmo);
             var bol = await _cal.Update(dto);
@@ -80,65 +91,64 @@
         /// <summary>
         /// 鎵归噺鏇存柊
         /// </summary>
-        public async virtual Task<bool> Updates(List<Vmo.AssetsFlowmeterMainVmo> vmoList)
+        public virtual async Task<bool> Updates(List<Vmo.AssetsFlowmeterMainVmo> vmoList)
         {
             var dtoList = Vmo2UpdateDtos(vmoList);
             var bol = await _cal.Updates(dtoList);
             return bol;
         }
 
- 	
         /// <summary>
         /// 鏇存柊鎺掑簭鐮�
         /// </summary>
-        public async virtual Task<bool> UpdateSortCode(long ID, int SortCode)
+        public virtual async Task<bool> UpdateSortCode(long ID, int SortCode)
         {
             var bol = await _cal.UpdateSortCode(ID, SortCode);
             return bol;
-        }  
+        }
 
         /// <summary>
         /// 鎵归噺鏇存柊鎺掑簭鐮�
         /// </summary>
-        public async virtual Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters)
+        public virtual async Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters)
         {
             var dtoList = Sorters.ToDtoList();
             var bol = await _cal.UpdateSorter(dtoList);
             return bol;
         }
-    
+
         /// <summary>
         /// 鏇存柊 Flags
         /// </summary>
-        public async virtual Task<bool> UpdateFlags(long ID, List<string> Flags)
+        public virtual async Task<bool> UpdateFlags(long ID, List<string> Flags)
         {
             return await _cal.UpdateFlags(ID, Flags);
         }
-     
+
         /// <summary>
         /// 鏇存柊 Paras
         /// </summary>
-        public async virtual Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras)
+        public virtual async Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras)
         {
             return await _cal.UpdateParas(ID, Paras);
         }
- 
+
         /// <summary>
         /// 鏇存柊 TagName
         /// </summary>
-        public async virtual Task<bool> UpdateTagName(long ID, string TagName)
+        public virtual async Task<bool> UpdateTagName(long ID, string TagName)
         {
             return await _cal.UpdateTagName(ID, TagName);
         }
- 
-        #endregion
+
+        #endregion Update
 
         #region Exist
 
         /// <summary>
         /// 鍒ゆ柇 TagName 鏄惁瀛樺湪
         /// </summary>
-        public async virtual Task<bool> IsExistTagName(string TagName)
+        public virtual async Task<bool> IsExistTagName(string TagName)
         {
             return await _cal.IsExistTagName(TagName);
         }
@@ -146,25 +156,24 @@
         /// <summary>
         /// 鍒ゆ柇 TagName 鏄惁瀛樺湪 ExceptID
         /// </summary>
-        public async virtual Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID)
+        public virtual async Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID)
         {
             return await _cal.IsExistTagNameExceptID(TagName, ExceptID);
         }
 
-        #endregion
- 
-        #region Delete 
+        #endregion Exist
+
+        #region Delete
 
         /// <summary>
         /// 閫氳繃 ID 鍒犻櫎
         /// </summary>
-        public async virtual Task<bool> DeleteByID(long ID)
+        public virtual async Task<bool> DeleteByID(long ID)
         {
             var bol = await _cal.DeleteByID(ID);
             return bol;
-        } 
+        }
 
-        #endregion
-
+        #endregion Delete
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3