| | |
| | | using MES.Service.util; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Newtonsoft.Json.Linq; |
| | | using SqlSugar.Extensions; |
| | | |
| | | namespace MESApplication.Controllers.QC; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | [HttpPost("SavePlan")] |
| | | public ResponseResult SavePlan([FromBody] JObject data) |
| | | { |
| | | decimal pid = Convert.ToDecimal(data["pid"]); |
| | | string planName = data["planName"].ToString(); |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | var SJ = new SJService(); |
| | | decimal res = SJ.SavePlan(pid, planName); |
| | | resultInfos.res = res; |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | [HttpPost("GetItemProj")] |
| | | public ResponseResult GetItemProj([FromBody] JObject data) |
| | | { |