From ab827809e020777c1c482846e1af90a16a51b067 Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期四, 17 十一月 2022 20:02:52 +0800
Subject: [PATCH] 合并

---
 WebAPI/Controllers/PublicPageMethodController.cs |   55 +++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 41 insertions(+), 14 deletions(-)

diff --git a/WebAPI/Controllers/PublicPageMethodController.cs b/WebAPI/Controllers/PublicPageMethodController.cs
index a47f0ea..463036c 100644
--- a/WebAPI/Controllers/PublicPageMethodController.cs
+++ b/WebAPI/Controllers/PublicPageMethodController.cs
@@ -34,7 +34,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -108,7 +108,7 @@
             {
                 objJsonResult.code = "0";
                 objJsonResult.count = 0;
-                objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                 objJsonResult.data = null;
                 return objJsonResult;
             }
@@ -140,7 +140,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -214,7 +214,7 @@
             {
                 objJsonResult.code = "0";
                 objJsonResult.count = 0;
-                objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                 objJsonResult.data = null;
                 return objJsonResult;
             }
@@ -245,7 +245,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -319,7 +319,7 @@
             {
                 objJsonResult.code = "0";
                 objJsonResult.count = 0;
-                objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                 objJsonResult.data = null;
                 return objJsonResult;
             }
@@ -350,7 +350,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -424,7 +424,7 @@
             {
                 objJsonResult.code = "0";
                 objJsonResult.count = 0;
-                objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                 objJsonResult.data = null;
                 return objJsonResult;
             }
@@ -455,7 +455,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -529,7 +529,7 @@
             {
                 objJsonResult.code = "0";
                 objJsonResult.count = 0;
-                objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                 objJsonResult.data = null;
                 return objJsonResult;
             }
@@ -1919,6 +1919,33 @@
         }
         #endregion
 
+        #region 鑾峰彇鍏ㄩ儴鐗╂枡淇℃伅
+        [Route("PublicPageMethod/MaterialList")]
+        [HttpGet]
+        public object MaterialList(string sWhere)
+        {
+            try
+            {
+                ds = oCN.RunProcReturn("select * from h_v_KF_ICInventoryList_IF" + sWhere , "h_v_KF_ICInventoryList_IF");
+
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "Sucess锛�";
+                objJsonResult.data = ds.Tables[0];
+                return objJsonResult;
+
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "Exception锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+        #endregion
+
         #region  鏍规嵁鏍戝瀷id鏌ユ壘鐗╂枡鍒楄〃   
         [Route("Gy_MaintenanceMode/PartCX")]
         [HttpGet]
@@ -2228,7 +2255,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -2302,7 +2329,7 @@
             {
                 objJsonResult.code = "0";
                 objJsonResult.count = 0;
-                objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                 objJsonResult.data = null;
                 return objJsonResult;
             }
@@ -2333,7 +2360,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -2438,7 +2465,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "鏃犺缁勭粐鐨勭敤鎴锋暟鎹紒";
+                    objJsonResult.Message = "褰撳墠缁勭粐鏁版嵁鏈淮鎶わ紒";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }

--
Gitblit v1.9.1