From 28e1721d265cb676ad65030cc7967066fa324760 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期四, 04 十一月 2021 15:14:39 +0800
Subject: [PATCH] 出站汇报单模块界面新增报废品质确认按钮;新增工序隔离品报表、工序报废品报表

---
 WebAPI/Controllers/ReportFromController.cs |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Controllers/ReportFromController.cs b/WebAPI/Controllers/ReportFromController.cs
index 8e94ef6..86dd5ee 100644
--- a/WebAPI/Controllers/ReportFromController.cs
+++ b/WebAPI/Controllers/ReportFromController.cs
@@ -8,6 +8,7 @@
 using System.Net.Http;
 using System.Web.Http;
 using WebAPI.Models;
+using WebAPI.DbUntil;
 
 namespace WebAPI.Controllers
 {
@@ -83,6 +84,48 @@
             return objJsonResult;
         }
         #endregion
+
+
+        #region [鍔ㄦ�佸垪琛�2]
+        [Route("Sc_MESReportFrom/ReportFromBillList2")]
+        [HttpGet]
+        public object ReportFromBillList2(string sWhere)
+        {
+            try
+            {
+                string sql = "select HItemID,HNumber 浠g爜,HName 鍚嶇О from Gy_Process where 1 = 1 " + sWhere;
+                ds = new SQLHelper.ClsCN().RunProcReturn(sql, "Gy_Employee");
+                if (ds.Tables[0].Rows.Count > 0)
+                {
+                    objJsonResult.code = "1";
+                    objJsonResult.count = DataFormatUntil.BackRowCount(sql, "Gy_Employee");
+                    objJsonResult.Message = "Sucess锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    objJsonResult.list = DataFormatUntil.BackColTitle(ds);
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "false锛�";
+                    objJsonResult.data = null;
+                    objJsonResult.list = DataFormatUntil.BackColTitle(ds);
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "Exception锛�" + e.Message.ToString();
+                objJsonResult.data = null;
+                objJsonResult.list = null;
+            }
+            return objJsonResult;
+        }
+        #endregion
     }
 }
     
\ No newline at end of file

--
Gitblit v1.9.1