From 43d58c9cafae2edfb38e0287c53c71e9c9e369e6 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 22 五月 2023 13:03:35 +0800
Subject: [PATCH] 1

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

diff --git a/WebAPI/Controllers/LMESController.cs b/WebAPI/Controllers/LMESController.cs
index 3ada2c2..4c7a8ea 100644
--- a/WebAPI/Controllers/LMESController.cs
+++ b/WebAPI/Controllers/LMESController.cs
@@ -472,6 +472,48 @@
         }
 
         /// <summary>
+        /// 宸ュ簭娴佽浆鍗$殑鏈亾宸ュ簭
+        /// </summary>
+        /// <param name="sBillBarCode"></param>
+        /// <returns></returns>
+        [Route("LEMS/TxtHBarCode_KeyDown_Last")]
+        [HttpGet]
+        public object TxtHBarCode_KeyDown_Last(string sBillBarCode)
+        {
+            DataSet ds;
+            try
+            {
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                if (sBillBarCode == null || sBillBarCode.Equals(""))
+                {
+                    return CustomError("鏈緭鍏ユ潯褰㈢爜锛�");
+                }
+                else
+                {
+                    //鎷嗗垎鏉″舰鐮�
+                    string[] NewBarCode;
+                    if (sBillBarCode.CompareTo("#") > 0)
+                    {
+                        NewBarCode = sBillBarCode.Split(Convert.ToChar("#"));
+                        sBillBarCode = NewBarCode[0];
+                    }
+                    string sBillNo = sBillBarCode;
+                    ds = oCN.RunProcReturn("select top 1 * from h_v_Sc_ProcessExchangeBillList  where 鍗曟嵁鍙�= '" + sBillNo + "' and 鏈亾宸ュ簭='鏄�' ", "h_v_Sc_ProcessExchangeBillList");
+                    if (ds == null || ds.Tables[0].Rows.Count == 0)
+                    {
+                        return CustomError("涓嶅瓨鍦ㄦ娴佽浆鍗″彿锛�");
+                    }
+                }
+
+            }
+            catch (Exception e)
+            {
+                ds = null;
+            }
+            return CustomCorrect(ds);
+        }
+
+        /// <summary>
         /// 娴佹按鍙峰洖杞︽柟娉�(杩涚珯鎺ユ敹鍗曘�佸嚭绔欐眹鎶ュ崟)
         ///鍙傛暟锛歴tring sql銆�
         ///杩斿洖鍊硷細object銆�
@@ -1273,6 +1315,34 @@
             }
         }
 
+        #region 鎵撳嵃鏌ヨ鏁版嵁
+        [Route("Gy_SOPBillList/WindowPrintList")]
+        [HttpGet]
+        public object WindowPrintList(string sWhere)
+        {
+            DataSet ds;
+            try
+            {
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                ds = oCN.RunProcReturn(sWhere, "WindowPrint");
+
+                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
+
         //
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1