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 |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index 3cb072b..1a48a70 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -8951,11 +8951,11 @@
                 SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
                 if (sWhere == null || sWhere.Equals(""))
                 {
-                    ds = oCN.RunProcReturn("Select HInterID,HEquipFileNumber,HName  from Gy_EquipFileBillMain where 0=0 Order by HInterID ", "Gy_EquipFileBillMain");
+                    ds = oCN.RunProcReturn("Select HInterID,HEquipFileNumber,HName,HModel2  from Gy_EquipFileBillMain where 0=0 Order by HInterID ", "Gy_EquipFileBillMain");
                 }
                 else
                 {
-                    string sql1 = "Select HInterID,HEquipFileNumber,HName  from Gy_EquipFileBillMain where 0=0  ";
+                    string sql1 = "Select HInterID,HEquipFileNumber,HName,HModel2  from Gy_EquipFileBillMain where 0=0  ";
                     string sql = sql1 + sWhere;
                     ds = oCN.RunProcReturn(sql, "Gy_EquipFileBillMain");
                 }
@@ -9984,7 +9984,7 @@
         /// <returns></returns>
         [Route("Web/GetItemByEquipFile")]
         [HttpGet]
-        public object GetItemByEquipFile(int EquipProjectID,string Type)
+        public object GetItemByEquipFile(int EquipProjectID,string Type,string HDate)
         {
             if (EquipProjectID <= 0)
             {
@@ -10014,7 +10014,8 @@
                 }
 
                 SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
-                string sql = string.Format(@"select * from " + HView + " where HInterID = " + EquipProjectID);
+                //string sql = string.Format(@"select * from " + HView + " where HInterID = " + EquipProjectID);
+                string sql = string.Format(@"Exec h_p_Sb_GetCheckItem_PDA '" + EquipProjectID + "','" + Type + "','" + HDate + "'");
                 ds = oCN.RunProcReturn(sql, HView);
                 if (ds == null || ds.Tables[0].Rows.Count <= 0)
                 {
@@ -10049,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
             {
@@ -10081,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