From df56727d0044a7d2429959cb5d8f492bbf5ca8b2 Mon Sep 17 00:00:00 2001 From: Mr_z <1047577696@qqcom> Date: Wed, 21 Jun 2023 17:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B2=E7=AA=81=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Pages/Model/AlarmHelper.cs | 14 ++++++++++++-- DosingSystem/Model/DeviceInquire.cs | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) 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) =>