From c5a629655949aa14868b66e8517e6c5505b2ad8a Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期四, 07 三月 2024 10:26:41 +0800
Subject: [PATCH] 工序工价新增字段;PDA 设备,质量模块查询列表

---
 WebAPI/Controllers/WebAPIController.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index abc503b..1a48a70 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -10050,7 +10050,7 @@
         /// <returns></returns>
         [Route("Web/GetEquipmentBillsList")]
         [HttpGet]
-        public object GetEquipmentBillsList(string sWhere, string Type)
+        public object GetEquipmentBillsList(string sWhere, string Type,string user)
         {            
             try
             {
@@ -10082,6 +10082,15 @@
                 }
 
                 SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+
+                ds = oCN.RunProcReturn("select ManagerFlag from gy_czygl where czymc='" + user.Trim() + "'", "gy_czygl");
+                if (!(bool)ds.Tables[0].Rows[0]["ManagerFlag"])  //鏄惁绠$悊鍛�
+                {
+                    //涓嶆槸绠$悊鍛�
+                    sWhere += " and 鍒跺崟浜� = '" + user + "'";
+                }
+
+
                 string sql = string.Format(@"select * from " + HView + " where 1 = 1 " + sWhere);
                 ds = oCN.RunProcReturn(sql, HView);
                 //娣诲姞鍒楀悕

--
Gitblit v1.9.1