private void RefreshAlarmHandleInfo(int pageindex, int pagesize) { DateTime stime = Convert.ToDateTime(dateEdit3.Text).Date; DateTime etime = Convert.ToDateTime(dateEdit4.Text).Date; if (stime > etime) { XtraMessageBox.Show("开始时间不应大于结束时间"); return; } TimeSpan span = etime.Subtract(stime); if (span.TotalDays > 2) { XtraMessageBox.Show("查询时间不能大于3天"); return; } SetExecuteBeginTime(); AlarmHandelGetByStimeAndETime request = new AlarmHandelGetByStimeAndETime() { Stime = stime, Etime = etime, PagerInfo = new PagerInfo { PageIndex = pageindex, PageSize = pagesize } }; var alarmHandleresponse = alarmHandleService.GetAlarmHandleByStimeAndEtime(request); if (alarmHandleresponse != null && alarmHandleresponse.IsSuccess) { AlarmHandleInfos = alarmHandleresponse.Data; this.logicAlarmGrid.DataSource = AlarmHandleInfos; SetPageInfo(alarmHandleresponse.PagerInfo); } }
public BasicResponse <List <JC_AlarmHandleInfo> > GetAlarmHandleByStimeAndEtime(AlarmHandelGetByStimeAndETime alarmHandelRequest) { return(alarmHandleService.GetAlarmHandleByStimeAndEtime(alarmHandelRequest)); }