| | |
| | | using Newtonsoft.Json.Linq; |
| | | using System.Data; |
| | | using System.Dynamic; |
| | | using static System.Runtime.InteropServices.JavaScript.JSType; |
| | | |
| | | namespace MESApplication.Controllers.QC; |
| | | |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 携客云改善报告新增 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost("SaveXkyImproveReport")] |
| | | public async Task<ResponseResult> SaveXkyImproveReport(string id) |
| | | { |
| | | try |
| | | { |
| | | var msg = await new LljService().SaveXkyImproveReport(id); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = int.Parse(msg[0]), |
| | | message = msg[1], |
| | | data = msg[1] |
| | | }; |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 携客云改善报告审核 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost("AuditXkyImproveReport")] |
| | | public async Task<ResponseResult> AuditXkyImproveReport(string id) |
| | | { |
| | | try |
| | | { |
| | | //string[] msg = new LljService().SaveSysSubmit(sysSubmit); |
| | | var msg = await new LljService().AuditXkyImproveReport(id); |
| | | return new ResponseResult |
| | | { |
| | | status = int.Parse(msg[0]), |
| | | message = msg[1], |
| | | data = msg[1] |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量刷新改善报告供应商未回复单据 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost("FlushedXkyImproveReport")] |
| | | public async Task<ResponseResult> FlushedXkyImproveReport(string id="") |
| | | { |
| | | try |
| | | { |
| | | //string[] msg = new LljService().SaveSysSubmit(sysSubmit); |
| | | var msg = await new LljService().FlushedXkyImproveReport(id); |
| | | return new ResponseResult |
| | | { |
| | | status = int.Parse(msg[0]), |
| | | message = msg[1], |
| | | data = msg[1] |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | } |