From ec5c31cfa93b3c195e4d2721ea689da6ac1e4f2e Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期三, 09 十月 2024 15:45:12 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/工资管理/Pay_SingleBalBillController.cs |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs" "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs"
index fafa6d8..2373dea 100644
--- "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs"
+++ "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs"
@@ -783,12 +783,20 @@
         {
             try
             {
-                DAL.ClsGy_ProcPrice_Ctl oProcPrice = new DAL.ClsGy_ProcPrice_Ctl();
-                double HPrice = oProcPrice.LoadProcPrice(HMaterID, HProcID, HSourceID, true);
+                double HPrice=0;
+                ds = oCn.RunProcReturn("exec h_p_Pay_GetPriceByMaterHProcHSource " + HMaterID.ToString() + "," + HProcID.ToString() + "," + HSourceID.ToString(), "h_p_Pay_GetPriceByMaterHProcHSource");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    HPrice = 0;
+                }
+                else
+                {
+                    HPrice = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[0]["HPrice"]);
+                }
 
-                objJsonResult.code = "1";
+                objJsonResult.code = "0";
                 objJsonResult.count = 1;
-                objJsonResult.Message = "Sucess锛�";
+                objJsonResult.Message = "鎴愬姛锛�";
                 objJsonResult.data = HPrice;
                 return objJsonResult;
             }

--
Gitblit v1.9.1