From f3493a6f6f9958cea100ad596fa84239a6e2e962 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期二, 18 六月 2024 16:58:53 +0800
Subject: [PATCH] 获取老PCS下VK、桁架机械手、机床、状态信息

---
 代码管理/PCS/WCS_Server/WIDESEA_WebApi/Controllers/WIDESEA_WCS/Partial/dt_mes_headController.cs |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WebApi/Controllers/WIDESEA_WCS/Partial/dt_mes_headController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WebApi/Controllers/WIDESEA_WCS/Partial/dt_mes_headController.cs"
index 02e9d63..6e45bb2 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WebApi/Controllers/WIDESEA_WCS/Partial/dt_mes_headController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WebApi/Controllers/WIDESEA_WCS/Partial/dt_mes_headController.cs"
@@ -11,6 +11,8 @@
 using Microsoft.AspNetCore.Http;
 using WIDESEA_Entity.DomainModels;
 using WIDESEA_WCS.IServices;
+using Microsoft.AspNetCore.Authorization;
+using WIDESEA_Core.Utilities;
 
 namespace WIDESEA_WCS.Controllers
 {
@@ -29,5 +31,29 @@
             _service = service;
             _httpContextAccessor = httpContextAccessor;
         }
+
+        /// <summary>
+        /// 鎵嬪姩瀹屾垚宸ュ崟
+        /// </summary>
+        /// <param name="saveModel"></param>
+        /// <returns></returns>
+
+        [HttpPost, Authorize, Route("FinishWorkOrder"), AllowAnonymous]
+        public WebResponseContent FinishWorkOrder([FromBody] SaveModel saveModel)
+        {
+            return Service.FinishWorkOrder(saveModel);
+        }
+
+        [HttpPost, Authorize, Route("OutsorcingWorkOrder"), AllowAnonymous]
+        public WebResponseContent OutsorcingWorkOrder([FromBody] SaveModel saveModel)
+        {
+            return Service.OutsorcingWorkOrder(saveModel);
+        }
+
+        [HttpPost, Authorize, Route("CancelsorcingWorkOrder"), AllowAnonymous]
+        public WebResponseContent CancelsorcingWorkOrder([FromBody] SaveModel saveModel)
+        {
+            return Service.CancelsorcingWorkOrder(saveModel);
+        }
     }
 }

--
Gitblit v1.9.3