| | |
| | | using MES.Service.service.QC; |
| | | using MES.Service.util; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NetTaste; |
| | | using Newtonsoft.Json.Linq; |
| | | using System.Dynamic; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | [HttpPost("SaveCheckBy")] |
| | | public ResponseResult SaveCheckBy([FromBody] JObject data) |
| | | { |
| | | try |
| | | { |
| | | var NewStaffName = data["NewStaffName"].ToString(); |
| | | var userID = data["userID"].ToString(); |
| | | var releaseNo = data["releaseNo"].ToString(); |
| | | var NewStaffUserID = data["NewStaffUserID"].ToString(); |
| | | |
| | | string[] msg = new LljService().SaveCheckBy(NewStaffUserID, userID, releaseNo); |
| | | |
| | | |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = int.Parse(msg[0]), |
| | | message = msg[1], |
| | | data = msg[1] |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | //getItems |
| | | [HttpPost("getJYItem")] |
| | | public ResponseResult getJYItem([FromBody] JObject data) |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 获取所有检验员信息 |
| | | /// </summary> |
| | | /// <param name="data"></param> |
| | | /// <returns></returns> |
| | | [HttpPost("getAllInspectors")] |
| | | public ResponseResult getAllInspectors([FromBody] JObject data) |
| | | { |
| | | |
| | | try |
| | | { |
| | | var tbBillList = new LljService().getAllInspectors(); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = tbBillList |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | //getXjDetail02ById |
| | | [HttpPost("getXjDetail02ById")] |
| | |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | var tbBillList = |
| | | new LljService().IqcQaSubmit(rkjDto); |
| | | resultInfos.tbBillList = tbBillList; |
| | | var msg = new LljService().IqcQaSubmit(rkjDto); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | status = int.Parse(msg[0]), |
| | | message = msg[1], |
| | | data = msg[1] |
| | | }; |
| | | } |
| | | catch (Exception ex) |