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); }
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); }