| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[设备点检标准列表查询] |
| | | /// <summary> |
| | | /// 设备点检标准列表查询 |
| | | /// </summary> |
| | | /// <param name="checkstandcode">点检标准编码</param> |
| | | /// <param name="checkstandname">点检标准名称</param> |
| | | /// <param name="checkcontr">点检管控</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckStandArdSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage DeviceCheckStandArdSearch(string checkstandcode = null, string checkstandname = null, string checkcontr = null,int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = DeviceManagerBLL.DeviceCheckStandArdSearch(checkstandcode, checkstandname, checkcontr, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准新增、编辑获取检验项目下拉列表] |
| | | /// <summary> |
| | | /// 设备点检标准新增、编辑获取检验项目下拉列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "DeviceCheckItemSelect")] |
| | | [HttpGet] |
| | | public HttpResponseMessage DeviceCheckItemSelect() |
| | | { |
| | | mes = DeviceManagerBLL.DeviceCheckItemSelect(); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准编辑/查看获取数据] |
| | | /// <summary> |
| | | /// 设备点检标准编辑/查看获取数据 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">设备点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ViewDeviceCheckStanedSearch")] |
| | | [HttpPost] |
| | | public HttpResponseMessage ViewDeviceCheckStanedSearch(string checkstand_code) |
| | | { |
| | | mes = DeviceManagerBLL.ViewDeviceCheckStanedSearch(checkstand_code); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准新增编辑] |
| | | /// <summary> |
| | | /// 设备点检标准新增编辑 |
| | | /// </summary> |
| | | /// <param name="opertype">操作类型</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateDeviceCheckStandArd")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AddUpdateDeviceCheckStandArd(string opertype, RoutEdit json) |
| | | { |
| | | var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员 |
| | | mes = DeviceManagerBLL.AddUpdateDeviceCheckStandArd(opertype, json, username); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备点检标准删除] |
| | | /// <summary> |
| | | /// 设备点检标准删除 |
| | | /// </summary> |
| | | /// <param name="checkstand_code">设备点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteDeviceCheckStaned")] |
| | | [HttpPost] |
| | | public HttpResponseMessage DeleteDeviceCheckStaned(string checkstand_code) |
| | | { |
| | | mes = DeviceManagerBLL.DeleteDeviceCheckStaned(checkstand_code); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |