public ActionResult GetDetailDataAlarm(string alerId)
 {
     ES_CapDien.MongoDb.Entity.DataAlarm dataAlarm = new ES_CapDien.MongoDb.Entity.DataAlarm();
     dataAlarm = dataAlarmMongoService.FindByKey(alerId);
     dataAlarm.AMATI = dataAlarm.AMATI == null ? "" : dataAlarm.AMATI;
     dataAlarm.AMIHU = dataAlarm.AMIHU == null ? "" : dataAlarm.AMIHU;
     dataAlarm.AMADR = dataAlarm.AMADR == null ? "" : dataAlarm.AMADR;
     dataAlarm.AMAFL = dataAlarm.AMAFL == null ? "" : dataAlarm.AMAFL;
     dataAlarm.AMAFR = dataAlarm.AMAFR == null ? "" : dataAlarm.AMAFR;
     dataAlarm.AMIPS = dataAlarm.AMIPS == null ? "" : dataAlarm.AMIPS;
     dataAlarm.AMIAL = dataAlarm.AMIAL == null ? "" : dataAlarm.AMIAL;
     dataAlarm.AMIAH = dataAlarm.AMIAH == null ? "" : dataAlarm.AMIAH;
     dataAlarm.AMIAP = dataAlarm.AMIAP == null ? "" : dataAlarm.AMIAP;
     dataAlarm.AMIAC = dataAlarm.AMIAC == null ? "" : dataAlarm.AMIAC;
     dataAlarm.AMIGN = dataAlarm.AMIGN == null ? "" : dataAlarm.AMIGN;
     dataAlarm.AMIAR = dataAlarm.AMIAR == null ? "" : dataAlarm.AMIAR;
     dataAlarm.AMIL1 = dataAlarm.AMIL1 == null ? "" : dataAlarm.AMIL1;
     dataAlarm.AMIH1 = dataAlarm.AMIH1 == null ? "" : dataAlarm.AMIH1;
     dataAlarm.AMIT1 = dataAlarm.AMIT1 == null ? "" : dataAlarm.AMIT1;
     dataAlarm.AMIT2 = dataAlarm.AMIT2 == null ? "" : dataAlarm.AMIT2;
     dataAlarm.AMIL2 = dataAlarm.AMIL2 == null ? "" : dataAlarm.AMIL2;
     dataAlarm.AMIH2 = dataAlarm.AMIH2 == null ? "" : dataAlarm.AMIH2;
     return PartialView("_DetailAlarm", dataAlarm);
 }
Exemple #2
0
 public ES_CapDien.MongoDb.Entity.DataAlarm FindByKey(string alarmId)
 {
     ES_CapDien.MongoDb.Entity.DataAlarm entity = new ES_CapDien.MongoDb.Entity.DataAlarm();
     entity = data.FindByKey(alarmId);
     return(entity);
 }