| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Net.Http; |
| | | using System.Web; |
| | | using System.Web.Http; |
| | | using VueWebApi.DLL.BLL; |
| | | using VueWebApi.Models; |
| | |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[日常保养,选择扫码设备列表带出保养项] |
| | | /// <summary> |
| | | /// 日常保养,选择扫码设备列表带出保养项 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairSelectScanDeviceQrCodeItem")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairSelectScanDeviceQrCodeItem(string eqpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.RepairSelectScanDeviceQrCodeItem(eqpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[日常保养,提交保存] |
| | | /// <summary> |
| | | /// 日常保养,提交保存 |
| | | /// </summary> |
| | | /// <param name="username">登录人员(保养人)</param> |
| | | /// <param name="maintcyc">保养周期</param> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AppDeviceRepairSave")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AppDeviceRepairSave(string username, string maintcyc, AppDevicecCheck json) |
| | | { |
| | | mes = AppDeviceManageBLL.AppDeviceRepairSave(username, maintcyc, json); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[设备维修申请,扫描工位/设备二维码] |
| | | /// <summary> |
| | | /// 设备维修申请,扫描工位/设备二维码 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "MaintainScanDeviceApplyQrCodeData")] |
| | | [HttpGet] |
| | | public HttpResponseMessage MaintainScanDeviceApplyQrCodeData(string eqpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.MaintainScanDeviceApplyQrCodeData(eqpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备维修申请,提交保存] |
| | | /// <summary> |
| | | /// 设备维修申请,提交保存 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "MaintainScanDeviceApplySave")] |
| | | [HttpPost] |
| | | public HttpResponseMessage MaintainScanDeviceApplySave() |
| | | { |
| | | string username = HttpContext.Current.Request["username"].ToString();//操作人员 |
| | | string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//设备编码 |
| | | string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //车间编码 |
| | | string faultsourcecode = HttpContext.Current.Request["faultsourcecode"].ToString(); //故障来源编码 |
| | | string faultdescr = HttpContext.Current.Request["faultdescr"].ToString(); //故障描述 |
| | | HttpFileCollection files = HttpContext.Current.Request.Files; |
| | | mes = AppDeviceManageBLL.MaintainScanDeviceApplySave(username, eqpcode, wkshpcode, faultsourcecode, faultdescr, files); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[设备维修列表] |
| | | /// <summary> |
| | | /// 设备维修列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairScanDeviceQrCodeDataList")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairScanDeviceQrCodeDataList() |
| | | { |
| | | mes = AppDeviceManageBLL.RepairScanDeviceQrCodeDataList(); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备维修提交] |
| | | /// <summary> |
| | | /// 设备维修提交 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairScanDeviceSave")] |
| | | [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 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(docu_code,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="repair_code">维修单号</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="wkshpcode">车间编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "RepairVerificationScanDeviceDataSub")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RepairVerificationScanDeviceDataSub(string repair_code, string eqpcode,string wkshpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.RepairVerificationScanDeviceDataSub(repair_code,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[安灯呼叫扫描工位] |
| | | /// <summary> |
| | | /// 安灯呼叫扫描工位 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AppDeviceAnDengCallScanSearch")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AppDeviceAnDengCallScanSearch(string eqpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.AppDeviceAnDengCallScanSearch(eqpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯呼叫,选择扫描工位带出呼叫类型选项及对应人员数据] |
| | | /// <summary> |
| | | /// 安灯呼叫,选择扫描工位带出呼叫类型选项及对应人员数据 |
| | | /// </summary> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="wkshpcode">车间编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AppDeviceAnDengCallItemSearch")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AppDeviceAnDengCallItemSearch(string eqpcode, string wkshpcode) |
| | | { |
| | | mes = AppDeviceManageBLL.AppDeviceAnDengCallItemSearch(eqpcode, wkshpcode); |
| | | 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: "AppDeviceAnDengCallSave")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AppDeviceAnDengCallSave(string username, string eqpcode, string wkshpcode, List<AnDnDate> json) |
| | | { |
| | | mes = AppDeviceManageBLL.AppDeviceAnDengCallSave(username, eqpcode, wkshpcode, json); |
| | | 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 |
| | | } |
| | | } |