/// <summary>
 ///     巡查信息列表
 /// </summary>
 /// <returns></returns>
 public IEnumerable<Info> GetInspectInfoList()
 {
     var inspectInfoList = new List<Info>();
     var inspectionService = new InspectionService();
     var taskService = new TaskService();
     long taskid = 0, employeeId = 0;
     var dateTime = new DateTime();
     IOrderedEnumerable<inspection> inspectionAll = inspectionService.FindAll().OrderByDescending(m => m.Time);
     foreach (inspection inspection in inspectionAll)
     {
         if (taskid == inspection.TaskId && employeeId == inspection.EmployeeId &&
             dateTime.Date.Equals(inspection.Time.Date)) continue;
         inspectInfoList.Add(new Info
                                 {
                                     TaskNumber = taskService.Find(inspection.TaskId).TaskNumber,
                                     EmployeeName = inspection.employee.Name,
                                     Time = inspection.Time,
                                     Meno = inspection.Memo
                                 });
         taskid = inspection.TaskId;
         employeeId = inspection.EmployeeId;
         dateTime = inspection.Time;
     }
     return inspectInfoList;
 }