From 3b3e3bcf1345197670c82988ceb3e8d34be3b5f1 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 02 9月 2024 18:24:58 +0800
Subject: [PATCH] 界面战士
---
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