From 08d524f6eb22204cc073a8b01f28eb0d3274e007 Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期三, 15 十一月 2023 11:24:34 +0800 Subject: [PATCH] 销售订单子表存在关联数量不为0的记录时,不可以以下推保存销售订单变更单 --- DAL/销售管理/ClsXs_SeOrderChangeBill.cs | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git "a/DAL/\351\224\200\345\224\256\347\256\241\347\220\206/ClsXs_SeOrderChangeBill.cs" "b/DAL/\351\224\200\345\224\256\347\256\241\347\220\206/ClsXs_SeOrderChangeBill.cs" index 7df559c..0b29e2e 100644 --- "a/DAL/\351\224\200\345\224\256\347\256\241\347\220\206/ClsXs_SeOrderChangeBill.cs" +++ "b/DAL/\351\224\200\345\224\256\347\256\241\347\220\206/ClsXs_SeOrderChangeBill.cs" @@ -191,6 +191,23 @@ ")"; oCn.RunProc(subSql); } + + //淇濆瓨鍚庢帶鍒�========================================= + DataSet ds = oCn.RunProcReturn("Exec h_p_Xs_SeOrderChangeBill_AfterSaveCtrl " + omodel.HInterID.ToString(), "h_p_Xs_SeOrderChangeBill_AfterSaveCtrl"); + if (ds == null) + { + sReturn = "淇濆瓨鍚庡垽鏂け璐ワ紒"; + return false; + } + if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0") + { + sReturn = "淇濆瓨澶辫触锛�" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); + return false; + } + //========================================================= + + + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; oCn.Commit(); return true; -- Gitblit v1.9.1