| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存工单工艺节点岗位资源 |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> SaveWoRouteNodePost([FromBody] ApiAction<List<MES_WO_NODE_POST>> action) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | | { |
| | | response = response.GetResponse(await DI.Resolve<IRoute>().SaveWoRouteNodePost(action.Data)); |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | response = response.GetResponse().CatchExceptionWithLog(ex); |
| | | } |
| | | return Ok(response); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存工单工艺路线图形数据 |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> SaveWoRouteData([FromBody] ApiAction<WoRouteData> action) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | | { |
| | | response = response.GetResponse(await DI.Resolve<IRoute>().SaveWoRouteData(action.Data)); |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | response = response.GetResponse().CatchExceptionWithLog(ex); |
| | | } |
| | | return Ok(response); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取工单工艺路线图形数据 |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("api/[controller]/[action]")] |
| | | public async Task<IActionResult> GetWoRouteData([FromBody] ApiAction action) |
| | | { |
| | | ApiAction response = new(); |
| | | try |
| | | { |
| | | response = response.GetResponse(await DI.Resolve<IRoute>().GetWoRouteData(action.Data?.ToString())); |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | response = response.GetResponse().CatchExceptionWithLog(ex); |
| | | } |
| | | return Ok(response); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除工单绑定的工艺路线 |
| | | /// </summary> |
| | | /// <param name="action"></param> |