Exemplo n.º 1
0
        public AlarmRecordListResponse GetAlarmRecordList(AlarmRecordListRequest request)
        {
            AlarmRecordListResponse      recordListResponse = new AlarmRecordListResponse();
            IPagedList <AlarmRecordItem> pagedAlarmRecords  = ServiceHelper.LoadService <IAlarmService>().GetPagedAlarmRecords(request.Keyword, request.AlarmDateStart, request.AlarmDateEnd, request.PageNumber, request.PageSize);

            recordListResponse.AlarmRecords = pagedAlarmRecords.ToPagedData <AlarmRecordItem>();
            return(recordListResponse);
        }
Exemplo n.º 2
0
        public AlarmTemporaryListResponse Execute(AlarmTemporaryListRequest request)
        {
            AlarmTemporaryListResponse      temporaryListResponse = new AlarmTemporaryListResponse();
            IPagedList <AlarmTemporaryItem> alarmTemporaries      = ServiceHelper.LoadService <IAlarmService>().GetPagedAlarmTemporaries(request.ProcessDID, request.PageNumber, request.PageSize);

            temporaryListResponse.AlarmTemporaries = alarmTemporaries.ToPagedData <AlarmTemporaryItem>();
            return(temporaryListResponse);
        }