KR25003初步更改项目的信息

This commit is contained in:
2025-09-06 10:43:35 +08:00
parent e954988fb5
commit c35da1d6d5
12 changed files with 204 additions and 203 deletions

View File

@@ -17,7 +17,7 @@ namespace CapMachine.Wpf.Services
/// </summary>
public class AlarmService : BindableBase
{
public AlarmService(ConfigService configService, IEventAggregator eventAggregator,IFreeSql freeSql
public AlarmService(ConfigService configService, IEventAggregator eventAggregator, IFreeSql freeSql
)
{
ConfigService = configService;
@@ -65,47 +65,47 @@ namespace CapMachine.Wpf.Services
ThresholdUp=1,
BoolActiveValue=true
}},
//new AlarmRunCell(FreeSql){Index=3,CurAlarmConfig=new AlarmConfig()
//{
// Name="水压低",
// ActiveType=ActiveType.Bool,
// Address="V0.3",
// AlarmLevel=AlarmLevel.Level1,
// Category="一般报警",
// Message="水压低",
// ThresholdDown=1,
// ThresholdUp=1,
// BoolActiveValue=true
//}},
//new AlarmRunCell(FreeSql){Index=4,CurAlarmConfig=new AlarmConfig()
//{
// Name="水泵过载",
// ActiveType=ActiveType.Bool,
// Address="V0.4",
// AlarmLevel=AlarmLevel.Level1,
// Category="一般报警",
// Message="水泵过载",
// ThresholdDown=1,
// ThresholdUp=1,
// BoolActiveValue=true
//}},
//new AlarmRunCell(FreeSql){Index=5,CurAlarmConfig=new AlarmConfig()
//{
// Name="冷水机组故障",
// ActiveType=ActiveType.Bool,
// Address="V0.5",
// AlarmLevel=AlarmLevel.Level1,
// Category="一般报警",
// Message="冷水机组故障",
// ThresholdDown=1,
// ThresholdUp=1,
// BoolActiveValue=true
//}},
new AlarmRunCell(FreeSql){Index=3,CurAlarmConfig=new AlarmConfig()
{
Name="水压低",
ActiveType=ActiveType.Bool,
Address="V0.3",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="水压低",
ThresholdDown=1,
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=4,CurAlarmConfig=new AlarmConfig()
{
Name="水泵过载",
ActiveType=ActiveType.Bool,
Address="V0.4",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="水泵过载",
ThresholdDown=1,
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=5,CurAlarmConfig=new AlarmConfig()
{
Name="冷水机组故障",
ActiveType=ActiveType.Bool,
Address="V0.5",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="冷水机组故障",
ThresholdDown=1,
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=6,CurAlarmConfig=new AlarmConfig()
{
Name="排气压力",
ActiveType=ActiveType.Bool,
Address="V0.6",
Address="V0.3",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="排气压力",
@@ -113,11 +113,11 @@ namespace CapMachine.Wpf.Services
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=7,CurAlarmConfig=new AlarmConfig()
new AlarmRunCell(FreeSql){Index=4,CurAlarmConfig=new AlarmConfig()
{
Name="吸气压力",
ActiveType=ActiveType.Bool,
Address="V0.7",
Address="V0.4",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="吸气压力",
@@ -125,11 +125,11 @@ namespace CapMachine.Wpf.Services
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=8,CurAlarmConfig=new AlarmConfig()
new AlarmRunCell(FreeSql){Index=5,CurAlarmConfig=new AlarmConfig()
{
Name="吸气温度",
ActiveType=ActiveType.Bool,
Address="V1.0",
Address="V0.5",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="吸气温度",
@@ -137,11 +137,23 @@ namespace CapMachine.Wpf.Services
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=9,CurAlarmConfig=new AlarmConfig()
new AlarmRunCell(FreeSql){Index=6,CurAlarmConfig=new AlarmConfig()
{
Name="冷凝器循环水温",
ActiveType=ActiveType.Bool,
Address="V0.6",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="冷凝器循环水温",
ThresholdDown=1,
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=7,CurAlarmConfig=new AlarmConfig()
{
Name="吸气混合器温度",
ActiveType=ActiveType.Bool,
Address="V1.1",
Address="V0.7",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="吸气混合器温度",
@@ -149,23 +161,12 @@ namespace CapMachine.Wpf.Services
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=10,CurAlarmConfig=new AlarmConfig()
{
Name="水加热温度",
ActiveType=ActiveType.Bool,
Address="V1.2",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="水加热温度",
ThresholdDown=1,
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=11,CurAlarmConfig=new AlarmConfig()
new AlarmRunCell(FreeSql){Index=8,CurAlarmConfig=new AlarmConfig()
{
Name="排气温度",
ActiveType=ActiveType.Bool,
Address="V1.3",
Address="V1.0",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="排气温度",
@@ -173,23 +174,35 @@ namespace CapMachine.Wpf.Services
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=12,CurAlarmConfig=new AlarmConfig()
new AlarmRunCell(FreeSql){Index=9,CurAlarmConfig=new AlarmConfig()
{
Name="水箱进水温度",
Name="水加热温度",
ActiveType=ActiveType.Bool,
Address="V1.4",
Address="V1.1",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="水箱进水温度",
Message="水加热温度",
ThresholdDown=1,
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=13,CurAlarmConfig=new AlarmConfig()
//new AlarmRunCell(FreeSql){Index=12,CurAlarmConfig=new AlarmConfig()
//{
// Name="水箱进水温度",
// ActiveType=ActiveType.Bool,
// Address="V1.4",
// AlarmLevel=AlarmLevel.Level1,
// Category="一般报警",
// Message="水箱进水温度",
// ThresholdDown=1,
// ThresholdUp=1,
// BoolActiveValue=true
//}},
new AlarmRunCell(FreeSql){Index=10,CurAlarmConfig=new AlarmConfig()
{
Name="压缩机表面温度",
ActiveType=ActiveType.Bool,
Address="V1.5",
Address="V1.2",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="压缩机表面温度",
@@ -197,18 +210,18 @@ namespace CapMachine.Wpf.Services
ThresholdUp=1,
BoolActiveValue=true
}},
new AlarmRunCell(FreeSql){Index=14,CurAlarmConfig=new AlarmConfig()
{
Name="试验箱",
ActiveType=ActiveType.Bool,
Address="V1.6",
AlarmLevel=AlarmLevel.Level1,
Category="一般报警",
Message="试验箱",
ThresholdDown=1,
ThresholdUp=1,
BoolActiveValue=true
}},
//new AlarmRunCell(FreeSql){Index=14,CurAlarmConfig=new AlarmConfig()
//{
// Name="试验箱",
// ActiveType=ActiveType.Bool,
// Address="V1.6",
// AlarmLevel=AlarmLevel.Level1,
// Category="一般报警",
// Message="试验箱",
// ThresholdDown=1,
// ThresholdUp=1,
// BoolActiveValue=true
//}},
};
}
public ConfigService ConfigService { get; }