diff --git a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs index e504cf29..7390621a 100644 --- a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs +++ b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs @@ -107,8 +107,18 @@ namespace BPASmartClient.CustomResource.Pages.Model Time = DateTime.Now.ToString("HH:mm:ss"), }; - var res = Sqlite.GetInstance.Base.Add(tempAlarm); - Sqlite.GetInstance.Save(); + var res = Sqlite.GetInstance.Base.Add(tempAlarm); + try + { + + Sqlite.GetInstance.Save(); + + } + catch (Exception) + { + + //throw; + } if (Alarms.FirstOrDefault(p => p.Info == AlarmInfo) == null) { diff --git a/DosingSystem/Model/DeviceInquire.cs b/DosingSystem/Model/DeviceInquire.cs index ecb4eeea..dcc4df90 100644 --- a/DosingSystem/Model/DeviceInquire.cs +++ b/DosingSystem/Model/DeviceInquire.cs @@ -197,9 +197,9 @@ namespace BPASmartClient.DosingSystem } } }*/ - for (int i = 0; i < 15; i++) + for (int i = 0; i < 6; i++) { - IPLists.Add($"{IPSegment}{(i + 1) * 10}"); + IPLists.Add($"{IPSegment}{(i + 1) * 10}"); } IPLists.ForEach((item) =>