Exemplo n.º 1
0
 /// <summary>
 /// 分页获取视频下载列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public List <ServVideoInfoModel> GetVideoDownlonadList(ServVideoInfoQuery query, out int total)
 {
     try
     {
         List <ServVideoInfoModel> list = new List <ServVideoInfoModel>();
         list = servVideoInfoDAL.GetEntities(query, 1, 1, out total);
         return(list);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 获取视频下载列表
 /// </summary>
 /// <param name="pageIndex">开始页码</param>
 /// <param name="pageSize">每页行数</param>
 /// <param name="deviceName">摄像头名称</param>
 /// <param name="downloadStatus">下载状态</param>
 /// <param name="startTime">开始时间</param>
 /// <param name="endTime">结束时间</param>
 /// <returns></returns>
 public JsonResult GetVideoDownloadList(int pageIndex, int pageSize, string deviceName, int downloadStatus, string startTime, string endTime)
 {
     try
     {
         int total = 0;
         ServVideoInfoQuery query = new ServVideoInfoQuery();
         query.pageIndex        = pageIndex;
         query.pageSize         = pageSize;
         query.device_name      = deviceName;
         query.download_status  = downloadStatus;
         query.video_start_time = startTime;
         query.video_end_time   = endTime;
         List <ServVideoInfoModel> list = servVideoDownloadBLL.GetVideoDownlonadList(query, out total);
         return(Json(new { status = 0, msg = new { rows = list, total = total } }));
     }
     catch (Exception ex)
     {
         return(Json(new { status = 1, msg = ex.Message }));
     }
 }