public ActionResult MaintainRecordList(DateTime?startTime, DateTime?endTime, string deviceID = "", string returnUrl = "", string searchInfo = "", int pageIndex = 1, int pageSize = 10, string orderBy = ""
                                               , bool ascending = false)
        {
            ViewBag.ReturnUrl = returnUrl;
            MaintainRecordBLL maintainRecord = new MaintainRecordBLL();

            ViewBag.StartTime = startTime;
            ViewBag.EndTime   = endTime;
            int totalCount = 0;
            var cResult    = maintainRecord.GetMaintainRecordList(out totalCount, this.GetCurrentProjectID(), searchInfo, startTime, endTime, deviceID, pageIndex, pageSize, orderBy, ascending);

            List <WebMaintainRecord> webRepairRecordList = new List <WebMaintainRecord>();

            if (cResult.Code == 0)
            {
                webRepairRecordList = cResult.Data;
            }
            var pageList = new PagedList <WebMaintainRecord>(webRepairRecordList, pageIndex, pageSize, totalCount);

            ViewBag.SearchInfo = searchInfo;
            ViewBag.PageSize   = pageSize;
            return(View("MaintainRecord/MaintainRecordList", pageList));
        }