From 3e324486599007039995ee4a27dbda1a4981257e Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 03 9月 2024 10:32:47 +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