From cd340c98f5a6481f8ab1931ef786e8c020589fcb Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期一, 09 六月 2025 12:45:23 +0800
Subject: [PATCH] 报工台按钮优化,若没设置按钮,就显示管理员绑定按钮

---
 WebAPI/Service/LuBaoSevice.cs |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Service/LuBaoSevice.cs b/WebAPI/Service/LuBaoSevice.cs
index ea59229..8b12c75 100644
--- a/WebAPI/Service/LuBaoSevice.cs
+++ b/WebAPI/Service/LuBaoSevice.cs
@@ -663,6 +663,25 @@
 
 
         /// <summary>
+        /// 璁惧鑺傛媿鏍规嵁id鑾峰彇淇℃伅
+        /// </summary>
+        public static ApiResult<DataSet> GetEqiupMaterWorkTimeDetail(string HID)
+        {
+            if (string.IsNullOrEmpty(HID))
+                return new ApiResult<DataSet> { code = -1, msg = "ID涓嶈兘涓虹┖" };
+            var dataSet = GetEqiupMaterWorkTimeDb(HID);
+            if (dataSet == null || dataSet.Tables[0].Rows.Count == 0)
+                return new ApiResult<DataSet> { code = -1, msg = "涓嶅瓨鍦ㄨ澶囪妭鎷嶆暟鎹�" };
+            return new ApiResult<DataSet> { code = 1, msg = "鏌ヨ鎴愬姛", data = dataSet };
+        }
+        public static DataSet GetEqiupMaterWorkTimeDb(string HID)
+        {
+            SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+            var dataSet = oCN.RunProcReturn("select top 1 * from h_v_Sb_EqiupMaterWorkTimes  where HItemID= " + HID + " ", "h_v_Sb_EqiupMaterWorkTimes");
+            return dataSet;
+        }
+
+        /// <summary>
         /// 绠″緞鏍规嵁id鑾峰彇淇℃伅
         /// </summary>
         public static ApiResult<DataSet> GetGy_PiPeDetail(string HID)

--
Gitblit v1.9.1