예제 #1
0
        public ActionResult AjaxQueryDeviceNoticeInfo()
        {
            QF_SmokeDetectorStatusLog filter = BuildQueryFilterEntity <QF_SmokeDetectorStatusLog>();
            var resul = SmokeDetectorServices.QueryDeviceNoticeList(filter);

            return(AjaxGridJson(resul));
        }
예제 #2
0
        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));
        }