| | |
| | | using System.Dynamic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | | using NewPdaSqlServer.service.QC; |
| | | using NewPdaSqlServer.util; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | |
| | | namespace NewPdaSqlServer.Controllers.QC; |
| | |
| | | [ApiController] |
| | | public class IpqcController : ControllerBase |
| | | { |
| | | IpqcService m = new IpqcService(); |
| | | private readonly IpqcService m = new(); |
| | | |
| | | /// <summary> |
| | | /// 首检单据查询 |
| | | /// 首检单据查询 |
| | | /// </summary> |
| | | /// <param name="queryObj"></param> |
| | | /// <returns></returns> |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 首检单据查询 |
| | | /// 首检单据查询 |
| | | /// </summary> |
| | | /// <param name="queryObj"></param> |
| | | /// <returns></returns> |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 首检单据查询 |
| | | /// 首检单据查询 |
| | | /// </summary> |
| | | [HttpPost("createByWomdaa")] |
| | | public ResponseResult CreateByWomdaa(dynamic query) |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取表格配置 |
| | | /// 获取表格配置 |
| | | /// </summary> |
| | | [HttpPost("GetTableConfig")] |
| | | public ResponseResult GetTableConfig([FromBody] dynamic query) |
| | |
| | | throw new ArgumentException("明细记录GUID不能为空"); |
| | | |
| | | var configData = m.GetTableConfig(query.mxguid?.ToString()); |
| | | |
| | | |
| | | if (configData == null) |
| | | throw new Exception("未找到相关配置信息"); |
| | | |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存表格配置 |
| | | /// 保存表格配置 |
| | | /// </summary> |
| | | [HttpPost("SaveTableConfig")] |
| | | public ResponseResult SaveTableConfig([FromBody] dynamic query) |
| | |
| | | var affectedRows = m.UpdateTableConfig( |
| | | query.selectedWater?.ToString(), |
| | | query.selectedFlow?.ToString(), |
| | | Newtonsoft.Json.JsonConvert.SerializeObject(query.tableData), |
| | | JsonConvert.SerializeObject(query.tableData), |
| | | query.mxguid?.ToString() |
| | | ); |
| | | |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取认证信息列表 |
| | | /// 获取认证信息列表 |
| | | /// </summary> |
| | | [HttpPost("GetRzxxList")] |
| | | public ResponseResult GetRzxxList([FromBody] dynamic query) |
| | |
| | | throw new ArgumentException("检验项目GUID不能为空"); |
| | | |
| | | var rzxxList = m.GetRzxxList(query.mxguid?.ToString()); |
| | | |
| | | |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = rzxxList; |
| | | |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新认证信息_生产日期 |
| | | /// 更新认证信息_生产日期 |
| | | /// </summary> |
| | | [HttpPost("updateScDate")] |
| | | public ResponseResult UpdateScDate([FromBody] dynamic query) |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存认证信息相关使用数量 |
| | | /// 保存认证信息相关使用数量 |
| | | /// </summary> |
| | | [HttpPost("saveIpqcrzxxNum")] |
| | | public ResponseResult SaveIpqcrzxxNum([FromBody] dynamic query) |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存品水测试是否有异味 |
| | | /// 保存品水测试是否有异味 |
| | | /// </summary> |
| | | [HttpPost("saveIpqCpscs")] |
| | | public ResponseResult SaveIpqCpscs([FromBody] dynamic query) |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 现场收料获取可选工单信息 |
| | | /// 现场收料获取可选工单信息 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |