文件名从 IStation.Service.SZJT/05-service/05-dma/LogicDma.cs 修改 |
| | |
| | | #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) |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region Delete |
| | | |