| | |
| | | using HMI.AlarmInfoManage.Entity; |
| | | using HMI.Core.Util; |
| | | using HMI.UI; |
| | | using HMI.UI.DpUtil; |
| | | using HMI.UI.Util; |
| | | using log4net; |
| | | using Panuon.WPF.UI; |
| | |
| | | catch (Exception ex) |
| | | { |
| | | log.Error("AlarmSetting Form Submit Failed.", ex); |
| | | ToastHelper.Error(this, $"未知异常!{ex.Message}"); |
| | | ToastHelper.Error(this, $"Error: {ex.Message}"); |
| | | e.Cancel = true; |
| | | return; |
| | | } |
| | |
| | | int dbAddress = Convert.ToInt32(value); |
| | | if (Datasource.FirstOrDefault(e => e.DBAddress == dbAddress) != null) |
| | | { |
| | | err = "DB地址已存在"; |
| | | err = this.lang("App.MustBeUnique", this.lang("Alm.DbAddress")); |
| | | return false; |
| | | } |
| | | return true; |