| | |
| | | #endregion |
| | | |
| | | #region[设备维修申请,提交保存] |
| | | /// <summary> |
| | | /// 设备维修申请,提交保存 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "MaintainScanDeviceApplySave")] |
| | | [HttpPost] |
| | | public HttpResponseMessage MaintainScanDeviceApplySave() |
| | |
| | | #endregion |
| | | |
| | | |
| | | #region[设备维修列表] |
| | | /// <summary> |
| | | /// 设备维修列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairScanDeviceQrCodeData")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairScanDeviceQrCodeData() |
| | | { |
| | | mes = AppDeviceManageBLL.RepairScanDeviceQrCodeData(); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备维修提交] |
| | | /// <summary> |
| | | /// 设备维修提交 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairScanDeviceSave")] |
| | | [HttpPost] |
| | | public HttpResponseMessage RepairScanDeviceSave() |
| | | { |
| | | string username = HttpContext.Current.Request["username"].ToString();//操作人员 |
| | | string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//设备编码 |
| | | string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //车间编码 |
| | | string faultdescr = HttpContext.Current.Request["faultdescr"].ToString(); //故障描述 |
| | | string is_stoprepair = HttpContext.Current.Request["is_stoprepair"].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); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[维修验证列表] |
| | | /// <summary> |
| | | /// 维修验证列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairVerificationScanDeviceData")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairVerificationScanDeviceData() |
| | | { |
| | | mes = AppDeviceManageBLL.RepairVerificationScanDeviceData(); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[维修验证详情信息] |
| | | /// <summary> |
| | | /// 维修验证详情信息 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="wkshpcode">车间编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairVerificationScanDeviceDataSub")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairVerificationScanDeviceDataSub(string eqpcode,string wkshpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.RepairVerificationScanDeviceDataSub(eqpcode,wkshpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[维修验证提交] |
| | | /// <summary> |
| | | /// 维修验证提交 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairVerificationScanDeviceSave")] |
| | | [HttpPost] |
| | | public HttpResponseMessage RepairVerificationScanDeviceSave() |
| | | { |
| | | string username = HttpContext.Current.Request["username"].ToString();//操作人员 |
| | | string repairwo = HttpContext.Current.Request["repairwo"].ToString();//维修单号 |
| | | string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//设备编码 |
| | | string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //车间编码 |
| | | string result = HttpContext.Current.Request["result"].ToString(); //验证结果 |
| | | mes = AppDeviceManageBLL.RepairVerificationScanDeviceSave(username, repairwo, eqpcode, wkshpcode, result); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[安灯呼叫扫描工位] |