From 0943f67964d1eee585228a61bc78135454c9761e Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期五, 10 五月 2024 14:16:04 +0800
Subject: [PATCH] 网页版 增加 设备开机单 单据编辑 以及 单据列表 功能 增加 保养级别的 基础资料编辑 和 列表 页面;

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

diff --git a/WebAPI/Controllers/XSGL/Xs_ReceivableBillController.cs b/WebAPI/Controllers/XSGL/Xs_ReceivableBillController.cs
index 02e88d1..abc342f 100644
--- a/WebAPI/Controllers/XSGL/Xs_ReceivableBillController.cs
+++ b/WebAPI/Controllers/XSGL/Xs_ReceivableBillController.cs
@@ -363,6 +363,20 @@
 
                 oCN.BeginTran();
 
+                ds = oCN.RunProcReturn("select * from h_v_Xs_ReceivableBillList_Query where hmainid=" + HInterID, "h_v_Xs_ReceivableBillList_Query");
+                string hSourceBillType = ds.Tables[0].Rows[0]["HSourceBillType"].ToString();
+                if (hSourceBillType == "1401")
+                {
+                    //搴旀敹鍗� 鍒犻櫎鍥炲~ 閿�鍞鍗� 鍏宠仈鏁伴噺
+                    oCN.RunProc("exec h_p_Xs_UpDateRelation_SeOrderToPOStockIn_Del " + HInterID);
+                }
+                else if (hSourceBillType == "1205")
+                {
+                    //搴旀敹鍗� 鍒犻櫎鍥炲~ 閿�鍞嚭搴撳崟 鍏宠仈鏁伴噺
+                    oCN.RunProc("exec h_p_Xs_UpDateRelation_ICStockoPOStockIn_Del	 " + HInterID);
+                }
+
+
                 oCN.RunProc("delete from Xs_ReceivableBillMain where HInterID = " + HInterID);
                 oCN.RunProc("delete from Xs_ReceivableBillSub where HInterID= " + HInterID);
 

--
Gitblit v1.9.1