Exemple #1
0
 public void removeOldRecord(List <Model.AlarmRecordInfo> alarms)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     foreach (Model.AlarmRecordInfo alarm in alarms)
     {
         dal.updateStatus(alarm);
     }
 }
Exemple #2
0
 public void deleteByMessage(String devCode, List <int> devStatuslList)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.removeDeviceStatus(devCode, devStatuslList);
 }
Exemple #3
0
 public void save(AlarmRecordInfo alarm)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.add(alarm);//增加设备状态
 }
Exemple #4
0
 public void removeByDevCode(String devCode)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.remove(devCode);
     //dal.saveGXAlarm(alarm);
 }
Exemple #5
0
 public void saveGXPressAlarm(Model.AlarmRecordInfo alarm)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.saveGXAlarm(alarm);
 }
Exemple #6
0
 /// <summary>
 /// A method to insert a new Adapter
 /// </summary>
 /// <param name="flow">An adapter entity with information about the new adapter</param>
 public void insert(List <Model.AlarmRecordInfo> alarms)
 {
     removeOldRecord(alarms);
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.insert(alarms);
 }