From 0c1f670d60c130a26b2d4273b3b858d8d6900541 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 10 12月 2024 11:20:34 +0800
Subject: [PATCH] 22
---
SDA/iWareSda/Devices/1-Srm/SrmModel/SrmEntity.cs | 35 +----------------------------------
1 files changed, 1 insertions(+), 34 deletions(-)
diff --git a/SDA/iWareSda/Devices/1-Srm/SrmModel/SrmEntity.cs b/SDA/iWareSda/Devices/1-Srm/SrmModel/SrmEntity.cs
index fb56a37..e8fa25f 100644
--- a/SDA/iWareSda/Devices/1-Srm/SrmModel/SrmEntity.cs
+++ b/SDA/iWareSda/Devices/1-Srm/SrmModel/SrmEntity.cs
@@ -624,40 +624,7 @@
- /// <summary>
- /// 鑾峰彇褰撳墠鎶ヨ淇℃伅
- /// </summary>
- /// <returns></returns>
- public List<DeviceWarningInfo> GetAlertDatas()
- {
- List<DeviceWarningInfo> db_warningList = new List<DeviceWarningInfo>();
- try
- {
- string _dbValue;
- var isHasAlert = false;
- IDictionary<string, string> srmAlertDict = new Dictionary<string, string>();
- srmAlertDict = WareSdaStruct.SrmAlertDict;
- foreach (var item in srmAlertDict)
- {
- _dbValue = item.Key;
- isHasAlert = Convert.ToBoolean(this.plcService.ReadValuePoint(Srm_CacheEntity.R_DBHeader_Alert, item.Key, typeof(bool)));
- if (isHasAlert)
- {
- db_warningList.Add(new DeviceWarningInfo()
- {
- Address = item.Key,
- Code = item.Key,
- Context = item.Value.Trim()
- });
- }
- }
- }
- catch (Exception ex)
- {
- throw ex;
- }
- return db_warningList;
- }
+
#endregion
--
Gitblit v1.9.3