| | |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备清单查看履历] |
| | | /// <summary> |
| | | /// 设备清单查看履历 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="createdate">操作时间</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceResumeSearch")] |
| | | [HttpGet] |
| | | public JsonResult DeviceResumeSearch(string eqpcode, string createdate = null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | string opendate = ""; //开始时间 |
| | | string closedate = ""; //结束时间 |
| | | if (createdate != "" && createdate != null) |
| | | { |
| | | opendate = createdate.Split('~')[0].ToString(); |
| | | closedate = createdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceResumeSearch(eqpcode, opendate, closedate, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[设备点检项列表查询] |