From 5339020eae4f4ed4938302a902087a0693743898 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 22 五月 2024 11:28:00 +0800
Subject: [PATCH] 器具模块功能完善(器具档案、器具分类、器具保养项目,器具保养规程、器具保养计划、器具保养记录 器具维修项目、器具故障登记、器具维修记录单、器具维修验收单 器具寿命调整单、器具寿命耗用单 产品器具清单)

---
 WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs b/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs
index 40649b5..d3f3486 100644
--- a/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs
+++ b/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs
@@ -99,9 +99,10 @@
                 return objJsonResult;
             }
             DLL.ClsSb_EquipMaintainRuleBill oBill = new DLL.ClsSb_EquipMaintainRuleBill();
-            if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo))
+            ds = oCN.RunProcReturn("select * from Sb_EquipMaintainRuleBillMain where HItemID=" + HInterID, "Sb_EquipMaintainRuleBillMain");
+            if (ds.Tables[0].Rows.Count > 0)
             {
-                if (oBill.omodel.HBillStatus > 1)
+                if (int.Parse(ds.Tables[0].Rows[0]["HBillStatus"].ToString()) > 1)
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
@@ -109,7 +110,7 @@
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
-                if (oBill.omodel.HChecker != ""&& oBill.omodel.HChecker != null)
+                if (ds.Tables[0].Rows[0]["HChecker"].ToString() != "")
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;

--
Gitblit v1.9.1