public ActionResult AjaxQueryDeviceNoticeInfo() { QF_SmokeDetectorStatusLog filter = BuildQueryFilterEntity <QF_SmokeDetectorStatusLog>(); var resul = SmokeDetectorServices.QueryDeviceNoticeList(filter); return(AjaxGridJson(resul)); }
public ActionResult DeviceDetails(string code) { DateTime now = DateTime.Now; QF_SmokeDetectorStatusLog filter = new QF_SmokeDetectorStatusLog() { DeviceCode = code, PageIndex = 0, PageSize = 9999 }; QueryResult <SmokeDetectorStatusLog> list = SmokeDetectorServices.QueryDeviceNoticeList(filter); SmokeDetector info = SmokeDetectorServices.LoadSmokeDetail(code); info.MessageList = list.data; ViewBag.UserType = curentUser.UserType; return(View(info)); }