Esempio n. 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);
     }
 }
Esempio n. 2
0
 public void deleteByMessage(String devCode, List <int> devStatuslList)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.removeDeviceStatus(devCode, devStatuslList);
 }
Esempio n. 3
0
 public void save(AlarmRecordInfo alarm)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.add(alarm);//增加设备状态
 }
Esempio n. 4
0
 public void removeByDevCode(String devCode)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.remove(devCode);
     //dal.saveGXAlarm(alarm);
 }
Esempio n. 5
0
 public void saveGXPressAlarm(Model.AlarmRecordInfo alarm)
 {
     IDAL.IAlarmRecord dal = SensorHub.DALFactory.AlarmRecord.Create();
     dal.saveGXAlarm(alarm);
 }
Esempio n. 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);
 }