From 85feb93b944f52051b5908452938cef4fe909fe8 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期六, 04 三月 2023 11:33:38 +0800
Subject: [PATCH] 1.工单派发选择工艺路线或选择生产车间时判断绑定条件接口开发
2.组织架构删除update改为delete
3.工艺路线新增else if改为if

---
 VueWebApi/Controllers/ProductionManagementController.cs |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/VueWebApi/Controllers/ProductionManagementController.cs b/VueWebApi/Controllers/ProductionManagementController.cs
index b851546..a598b04 100644
--- a/VueWebApi/Controllers/ProductionManagementController.cs
+++ b/VueWebApi/Controllers/ProductionManagementController.cs
@@ -188,6 +188,23 @@
         }
         #endregion
 
+        #region[宸ュ崟娲惧彂閫夋嫨宸ヨ壓璺嚎鎴栭�夋嫨鐢熶骇杞﹂棿鏃跺垽鏂粦瀹氭潯浠禲
+        /// <summary>
+        /// 宸ュ崟娲惧彂閫夋嫨宸ヨ壓璺嚎鎴栭�夋嫨鐢熶骇杞﹂棿鏃跺垽鏂粦瀹氭潯浠�
+        /// </summary>
+        /// <param name="partcode">浜у搧缂栫爜</param>
+        /// <param name="routecode">宸ヨ壓璺嚎缂栫爜</param>
+        /// <param name="wkshopcode">杞﹂棿缂栫爜</param>
+        /// <returns></returns>
+        [Route(template: "SelectRouteOrWkshop")]
+        [HttpGet]
+        public HttpResponseMessage SelectRouteOrWkshop(string partcode, string routecode, string wkshopcode)
+        {
+            mes = ProductionManagementBLL.SelectRouteOrWkshop(partcode, routecode, wkshopcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
         #region[MES宸ュ崟鏂板銆佺紪杈戞彁浜
         /// <summary>
         /// MES宸ュ崟鏂板銆佺紪杈戞彁浜�
@@ -209,11 +226,9 @@
             string planstartdate = obj["planstartdate"].ToString(); //璁″垝寮�濮嬫椂闂�
             string planenddate = obj["planenddate"].ToString();     //璁″垝瀹屾垚鏃堕棿
             string orderlev = obj["orderlev"].ToString(); //宸ュ崟绛夌骇
-            string is_aps = obj["is_aps"].ToString(); //鏄惁鎺掍骇
-            string bom_id = obj["bom_id"].ToString(); //Bom涓籭d
             string opertype = obj["OperType"].ToString();  //鎿嶄綔绫诲瀷
             var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //鎿嶄綔浜哄憳
-            mes = ProductionManagementBLL.AddUpdateMesOrder(mesorderstus, sourceorder, ordertype, mesordercode, partcode, mesqty, routecode, wkshopcode, planstartdate, planenddate, orderlev, username, opertype, is_aps);
+            mes = ProductionManagementBLL.AddUpdateMesOrder(mesorderstus, sourceorder, ordertype, mesordercode, partcode, mesqty, routecode, wkshopcode, planstartdate, planenddate, orderlev, username, opertype);
             return TJson.toJson(mes);
         }
         #endregion

--
Gitblit v1.9.3