| | |
| | | using MES.Service.util; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NetTaste; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System.Data; |
| | | using System.Dynamic; |
| | | |
| | | namespace MESApplication.Controllers.QC; |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取一致性核对项目 |
| | | /// </summary> |
| | | /// <param name="data"></param> |
| | | /// <returns></returns> |
| | | [HttpPost("getYzxItem")] |
| | | public ResponseResult getYzxItem([FromBody] JObject data) |
| | | { |
| | | |
| | | var id = data["id"]?.ToString(); |
| | | var releaseNo = data["releaseNo"]?.ToString(); |
| | | try |
| | | { |
| | | var tbBillList =new LljService().getYzxBDlist(id); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = tbBillList |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存一致性核对项目 |
| | | /// </summary> |
| | | /// <param name="data"></param> |
| | | /// <returns></returns> |
| | | [HttpPost("saveYzxItem")] |
| | | public ResponseResult saveYzxItem([FromBody] JObject data) |
| | | { |
| | | |
| | | var id = data["id"]?.ToString(); |
| | | var dataDt = data["data"]?.ToString(); |
| | | DataTable dt = JsonConvert.DeserializeObject<DataTable>(dataDt); |
| | | try |
| | | { |
| | | new LljService().saveYzxBDlist(id, dt); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = "ok" |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有检验员信息 |
| | | /// </summary> |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | //IqcQaSubmit |
| | | [HttpPost("getImgBDlist")] |
| | | public ResponseResult getImgBDlist([FromBody] JObject data) |
| | | { |
| | | try |
| | | { |
| | | var id = data["id"]?.ToString(); |
| | | |
| | | var db = new LljService().getImgBDlist(id); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = int.Parse("0"), |
| | | message = "OK", |
| | | data = db |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取U9图纸数据 |