From 0420d0effd8cae920a7a7152c9b9b61dc33bdb7f Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 08 十一月 2023 10:31:40 +0800
Subject: [PATCH] 销售订单:选中客户带出币别、汇率、结算方式

---
 WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
index 30ca36b..7ac3215 100644
--- a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
+++ b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
@@ -1758,5 +1758,56 @@
             }
         }
         #endregion
+
+        #region 閿�鍞鍗� 鏍规嵁瀹㈡埛鑾峰彇甯佸埆銆佹眹鐜囥�佺粨绠楁柟寮�
+        [Route("Xs_SeOrderBill/getCustomerByCusID")]
+        [HttpGet]
+        public object getCustomerByCusID(long HCusID)
+        {
+            try
+            {
+                string sql = @"select 
+                            c.HItemID HCusID
+                            ,c.HNumber HCusNumber
+                            ,c.HName HCusName
+                            ,c.HSSID
+                            ,s.HName HSSName
+                            ,c.HCurID
+                            ,cur.HName HCurName
+                            ,cur.HExchangeRate HExRate
+                            from Gy_Customer as c 
+                            left join Gy_SettleStyle as s on c.HSSID = s.HItemID
+                            left join Gy_Currency as cur on c.HCurID = cur.HItemID
+                            where c.HItemID = " + HCusID;
+                ds = oCN.RunProcReturn(sql,"Gy_Customer");
+
+
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏈煡璇㈠埌璇ュ鎴蜂俊鎭紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    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