From f0826424c58f3e925a77437111a2e06808bfff26 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 02 9月 2024 17:48:25 +0800
Subject: [PATCH] //处理OP30的数据

---
 DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/Utils/SystemBussinessHelper.cs |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/Utils/SystemBussinessHelper.cs b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/Utils/SystemBussinessHelper.cs
index b5120fc..854b9bb 100644
--- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/Utils/SystemBussinessHelper.cs
+++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/Utils/SystemBussinessHelper.cs
@@ -3,8 +3,10 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
 using System.Text;
 using System.Threading.Tasks;
+using System.Web.UI.WebControls;
 
 namespace iWare_SCADA_BusinessLogical.Utils
 {
@@ -13,6 +15,40 @@
     /// </summary>
     public class SystemBussinessHelper
     {
+
+        /// <summary>
+        /// 鏍¢獙璇诲彇鐨勪簩缁寸爜鏄惁姝g‘
+        /// </summary>
+        /// <param name="workPieceID"></param>
+        /// <returns></returns>
+        public static bool ValidateIsRightWorkPieceID(string workPieceID)
+        {
+            if (string.IsNullOrEmpty(workPieceID))
+            {
+                return false;
+            }
+            if (workPieceID.Length == 22)
+            {
+                var n_workPieceID = workPieceID.Trim();
+                if (n_workPieceID.Length == 22)
+                {
+                    if (n_workPieceID.IndexOf("ERROR") > -1)
+                    {
+                        return false;
+                    }
+                    return true;
+                }
+                else
+                {
+                    return false;
+                }
+            }
+            else
+            {
+                return false;
+            }
+        }
+
         /// <summary>
         /// 璁剧疆 WorkPieceInfo 鐨凞ataCapturePointCname
         /// </summary>

--
Gitblit v1.9.3