| | |
| | | { |
| | | [RoutePrefix(prefix: "api/AppDeviceManage")] |
| | | [ControllerGroup("App设备管理", "在线接口")] |
| | | [ChannelActionFilterAttributeApp] |
| | | public class AppDeviceManageController : ApiController |
| | | { |
| | | //定义全局信息返回变量 |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region[日常点检,选择扫码设备列表带出点检项] |
| | | #region[日常点检,扫描工位/设备二维码查找点检标准] |
| | | /// <summary> |
| | | /// 日常点检,选择扫码设备列表带出点检项 |
| | | /// 日常点检,扫描工位/设备二维码查找点检标准 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "CheckScanDeviceTemp")] |
| | | [HttpGet] |
| | | public HttpResponseMessage CheckScanDeviceTemp(string eqpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.CheckScanDeviceTemp(eqpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[日常点检,选择扫码设备、点检标准带出点检项] |
| | | /// <summary> |
| | | /// 日常点检,选择扫码设备、点检标准带出点检项 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="checktempcode">点检标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "SelectScanDeviceQrCodeItem")] |
| | | [HttpGet] |
| | | public HttpResponseMessage SelectScanDeviceQrCodeItem(string eqpcode) |
| | | public HttpResponseMessage SelectScanDeviceQrCodeItem(string eqpcode,string checktempcode) |
| | | { |
| | | mes = AppDeviceManageBLL.SelectScanDeviceQrCodeItem(eqpcode); |
| | | mes = AppDeviceManageBLL.SelectScanDeviceQrCodeItem(eqpcode, checktempcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region[定期保养,扫描工位/设备二维码查找保养标准] |
| | | /// <summary> |
| | | /// 定期保养,扫描工位/设备二维码查找保养标准 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairScanDeviceTemp")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairScanDeviceTemp(string eqpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.RepairScanDeviceTemp(eqpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[日常保养,选择扫码设备列表带出保养项] |
| | | /// <summary> |
| | | /// 日常保养,选择扫码设备列表带出保养项 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="repartempcode">保养标准编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairSelectScanDeviceQrCodeItem")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairSelectScanDeviceQrCodeItem(string eqpcode) |
| | | public HttpResponseMessage RepairSelectScanDeviceQrCodeItem(string eqpcode,string repartempcode) |
| | | { |
| | | mes = AppDeviceManageBLL.RepairSelectScanDeviceQrCodeItem(eqpcode); |
| | | mes = AppDeviceManageBLL.RepairSelectScanDeviceQrCodeItem(eqpcode, repartempcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// 设备维修列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairScanDeviceQrCodeData")] |
| | | [Route(template: "RepairScanDeviceQrCodeDataList")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairScanDeviceQrCodeData() |
| | | public HttpResponseMessage RepairScanDeviceQrCodeDataList() |
| | | { |
| | | mes = AppDeviceManageBLL.RepairScanDeviceQrCodeData(); |
| | | mes = AppDeviceManageBLL.RepairScanDeviceQrCodeDataList(); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | [HttpPost] |
| | | public HttpResponseMessage RepairScanDeviceSave() |
| | | { |
| | | string docu_code = HttpContext.Current.Request["docu_code"].ToString();//维修申请单号 |
| | | string username = HttpContext.Current.Request["username"].ToString();//操作人员 |
| | | string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//设备编码 |
| | | string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //车间编码 |
| | |
| | | string repaircontent = HttpContext.Current.Request["repaircontent"].ToString(); //维修内容 |
| | | string replaceparts = HttpContext.Current.Request["replaceparts"].ToString(); //更换备件 |
| | | HttpFileCollection files = HttpContext.Current.Request.Files; |
| | | mes = AppDeviceManageBLL.RepairScanDeviceSave(username, eqpcode, wkshpcode, faultdescr, is_stoprepair, repaircontent, replaceparts, files); |
| | | mes = AppDeviceManageBLL.RepairScanDeviceSave(docu_code, username, eqpcode, wkshpcode, faultdescr, is_stoprepair, repaircontent, replaceparts, files); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 维修验证详情信息 |
| | | /// </summary> |
| | | /// <param name="repair_code">维修单号</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="wkshpcode">车间编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairVerificationScanDeviceDataSub")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairVerificationScanDeviceDataSub(string eqpcode,string wkshpcode) |
| | | public HttpResponseMessage RepairVerificationScanDeviceDataSub(string repair_code, string eqpcode, string wkshpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.RepairVerificationScanDeviceDataSub(eqpcode,wkshpcode); |
| | | mes = AppDeviceManageBLL.RepairVerificationScanDeviceDataSub(repair_code, eqpcode, wkshpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | |
| | | |
| | | |
| | | #region[安灯响应扫描工位/设备] |
| | | /// <summary> |
| | | /// 安灯响应扫描工位/设备 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备/工位编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AppDeviceAnDengLampResponseScanSearch")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AppDeviceAnDengLampResponseScanSearch(string eqpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.AppDeviceAnDengLampResponseScanSearch(eqpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯响应提交] |
| | | /// <summary> |
| | | /// 安灯响应提交 |
| | | /// </summary> |
| | | /// <param name="username">登录人员</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="wkshpcode">车间编码</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AppDeviceAnDengLampResponseSave")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AppDeviceAnDengLampResponseSave(string username, string eqpcode, string wkshpcode, List<ObjectData> json) |
| | | { |
| | | mes = AppDeviceManageBLL.AppDeviceAnDengLampResponseSave(username, eqpcode, wkshpcode, json); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |