Browse Source

冲突解决

master
Mr_z 1 year ago
parent
commit
df56727d00
2 changed files with 14 additions and 4 deletions
  1. +12
    -2
      BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs
  2. +2
    -2
      DosingSystem/Model/DeviceInquire.cs

+ 12
- 2
BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs View File

@@ -107,8 +107,18 @@ namespace BPASmartClient.CustomResource.Pages.Model
Time = DateTime.Now.ToString("HH:mm:ss"),
};

var res = Sqlite<Alarm>.GetInstance.Base.Add(tempAlarm);
Sqlite<Alarm>.GetInstance.Save();
var res = Sqlite<BPASmartClient.Model.Alarm>.GetInstance.Base.Add(tempAlarm);
try
{
Sqlite<BPASmartClient.Model.Alarm>.GetInstance.Save();
}
catch (Exception)
{

//throw;
}

if (Alarms.FirstOrDefault(p => p.Info == AlarmInfo) == null)
{


+ 2
- 2
DosingSystem/Model/DeviceInquire.cs View File

@@ -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) =>


Loading…
Cancel
Save