From 6a3376a4e17a29c9fb0822367edb5c661abb49e2 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 02 七月 2025 16:53:31 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs |   73 ++++++++++++++++++++++++++++++------
 1 files changed, 61 insertions(+), 12 deletions(-)

diff --git a/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs b/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs
index 484d2a0..efaf9ba 100644
--- a/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs
+++ b/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs
@@ -646,10 +646,22 @@
                     }
 
                     string sql= $@"update Cg_POInStockBillMain  set " +
-                                "HRemark='" + HRemark + "', HUpDater ='" + HMaker + "', HUpDateDate=getdate()"+ ",HBillNo='" + HBillNo + "'" +
-                                ",HSupID=" + HSupID + ",HCurID=" + HCurID
-                                 + ",HExRate=" + HExRate + ",HEmpID=" + HEmpID + ",HManagerID=" + HManagerID + ",HDeptID=" + HDeptID
-                                 + ",HAddress='" + HAddress + "',HInnerBillNo='" + HInnerBillNo + "',HProjectID="+ HProjectID + ",HInvoiceBillNo='"+ HInvoiceBillNo + "' where HInterID=" + HInterID;
+                                "HRemark='" + HRemark + "'" +
+                                ", HUpDater ='" + HMaker + "'" +
+                                ", HUpDateDate=getdate()"+ "" +
+                                ",HBillNo='" + HBillNo + "'" +
+                                ",HWHID=" + HWHID + "" +
+                                ",HSupID=" + HSupID + "" +
+                                ",HCurID=" + HCurID + "" +
+                                ",HExRate=" + HExRate + "" +
+                                ",HEmpID=" + HEmpID + "" +
+                                ",HManagerID=" + HManagerID + "" +
+                                ",HDeptID=" + HDeptID + "" +
+                                ",HAddress='" + HAddress + "'" +
+                                ",HInnerBillNo='" + HInnerBillNo + "'" +
+                                ",HProjectID="+ HProjectID + "" +
+                                ",HInvoiceBillNo='"+ HInvoiceBillNo + "' " +
+                                " where HInterID=" + HInterID;
 
                     oCN.RunProc(sql);
 
@@ -775,14 +787,14 @@
             foreach (ClsCg_POInStockBillSub oSub in DetailColl)
             {
                 i++;
-                if (oSub.HQty <= 0 || oSub.HQty == null)
-                {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = "绗�" + i + "琛岋紝鏁伴噺涓嶈兘涓�0鎴栬�呭皬浜�0";
-                    objJsonResult.data = null;
-                    return objJsonResult;
-                }
+                //if (oSub.HQty <= 0 || oSub.HQty == null)
+                //{
+                //    objJsonResult.code = "0";
+                //    objJsonResult.count = 0;
+                //    objJsonResult.Message = "绗�" + i + "琛岋紝鏁伴噺涓嶈兘涓�0鎴栬�呭皬浜�0";
+                //    objJsonResult.data = null;
+                //    return objJsonResult;
+                //}
 
                 if (oSub.HMaterID == 0)
                 {
@@ -2716,5 +2728,42 @@
             }
         }
         #endregion
+
+        #region 鏀舵枡閫氱煡鍗昣PDA 鏍规嵁鍗曟嵁鍙锋潯鐮佹壂鎻忚幏鍙栦富瀛愯〃鏁版嵁
+        [Route("Cg_POInStockBill/GetCg_POInStockBill_PDA")]
+        [HttpGet]
+        public object GetCg_POInStockBill_PDA(string HBillNo)
+        {
+            try
+            {
+
+                ds = oCN.RunProcReturn("select * from h_v_IF_POInStockBillList where 鍗曟嵁鍙� ='"+ HBillNo+"'" , "h_v_IF_POInStockBillList");
+                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