lixiaojun
2024-09-09 c0f3c3f170846197d8d3f74ac123e0ac93a6dd67
IStation.Service.SZJT/05-service/01-dma/LogicDma.cs
文件名从 IStation.Service.SZJT/05-service/05-dma/LogicDma.cs 修改
@@ -304,32 +304,6 @@
        #region Exist
        /// <summary>
        /// 鍒ゆ柇 Code 鏄惁瀛樺湪
        /// </summary>
        public bool IsExistCode(string Code)
        {
            if (string.IsNullOrEmpty(Code))
            {
                return false;
            }
            var all = GetAll();
            return all.Exists(x => x.Code == Code);
        }
        /// <summary>
        /// 鍒ゆ柇 Code 鏄惁瀛樺湪 ExceptID
        /// </summary>
        public bool IsExistCodeExceptID(string Code, long ExceptID)
        {
            if (string.IsNullOrEmpty(Code))
            {
                return false;
            }
            var all = GetAll();
            return all.Exists(x => x.Code == Code && x.ID != ExceptID);
        }
        /// <summary>
        /// 鍒ゆ柇 TagName 鏄惁瀛樺湪
        /// </summary>
        public bool IsExistTagName(string TagName)
@@ -356,7 +330,6 @@
        }
        #endregion
        #region Delete