From 2f4a49241722b1c17041fcba565a04e4ff99c8a0 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 05 二月 2024 15:37:22 +0800
Subject: [PATCH] 增加 应收单编辑模块, 单据列表。 源单为 销售出库单和 销售订单;
---
WebAPI/DLL/ClsSc_ICMOReportBill.cs | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/WebAPI/DLL/ClsSc_ICMOReportBill.cs b/WebAPI/DLL/ClsSc_ICMOReportBill.cs
index a5269ab..0221832 100644
--- a/WebAPI/DLL/ClsSc_ICMOReportBill.cs
+++ b/WebAPI/DLL/ClsSc_ICMOReportBill.cs
@@ -672,14 +672,14 @@
}
//鍒犻櫎鍗曟嵁
- public virtual bool DeleteBill(Int64 lngBillKey, ref string sReturn)
+ public virtual bool DeleteBill(Int64 lngBillKey, string HBillNo, string procName, string user, ref string sReturn)
{
try
{
oCn.BeginTran();
//鏌ヨ鐢熶骇姹囨姤鍗曡〃鏁伴噺
DataSet ds = oCn.RunProcReturn("select a.HBillNo,b.HICMOInterID,b.HICMOEntryID from Sc_ICMOReportBillMain a inner join Sc_ICMOReportBillSub b on a.HInterID = b.HInterID where a.HInterID = '" + lngBillKey + "'", "Sc_ICMOReportBillMain");
- string HBillNo = ds.Tables[0].Rows[0]["HBillNo"].ToString();
+ HBillNo = ds.Tables[0].Rows[0]["HBillNo"].ToString();
string HICMOInterID = ds.Tables[0].Rows[0]["HICMOInterID"].ToString();
string HICMOEntryID = ds.Tables[0].Rows[0]["HICMOEntryID"].ToString();
//
@@ -706,6 +706,24 @@
//鍒犻櫎涓昏〃
DeleteBillMain(lngBillKey);
+ //鍒犻櫎鍚庢帶鍒�==================================================================================
+ string sql2 = "exec " + procName + " " + lngBillKey + ",'" + HBillNo + "','" + user + "'";
+ ds = oCn.RunProcReturn(sql2, procName);
+ if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
+ {
+
+ sReturn = "鍒犻櫎澶辫触!鍘熷洜:鍒犻櫎鍚庡垽鏂け璐ワ紝璇蜂笌缃戠粶绠$悊浜哄憳鑱旂郴";
+ oCn.RollBack();
+ return false;
+ }
+ if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0")
+ {
+ sReturn = "鍒犻櫎澶辫触!鍘熷洜:" + ds.Tables[0].Rows[0]["HRemark"].ToString();
+ oCn.RollBack();
+ return false;
+ }
+ //==============================================================================================
+
sReturn = "鍒犻櫎鍗曟嵁鎴愬姛锛�";
oCn.Commit();
return true;
--
Gitblit v1.9.1