From 8392e7a4686794df6eeeb9f68fbdf11ba3580450 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期一, 14 三月 2022 22:37:50 +0800
Subject: [PATCH] 新增发出确认单模块调用方法
---
CLOUDWEB/WebService1.asmx.cs | 78 +++++++++++++++++++++++++++++++++++++++
1 files changed, 78 insertions(+), 0 deletions(-)
diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index 455871b..3cca01e 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -27447,6 +27447,84 @@
+ #region 鍙戝嚭纭鍗曟ā鍧� 璋冪敤鏂规硶
+
+ #region 鎵弿鍗曟嵁鍙锋潯鐮�
+
+ [WebMethod]
+ public bool set_SaveSendConfirmation_BarCode(Model.ClsKF_PonderationBillMain_Temp oMain, ref string sErrMsg)
+ {
+ SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+ DAL.ClsKF_PonderationBillMain_Temp_Ctl dal = new DAL.ClsKF_PonderationBillMain_Temp_Ctl();
+ dal.oModel = oMain;
+
+ DataSet Ds = oCn.RunProcReturn("exec h_p_KF_PonderationBillMain_Temp_Add_SendConfirmation " + oMain.HInterID.ToString() + ",'" + oMain.HBillNo + "','" + oMain.HBillType + "','" + oMain.HMaker + "','" + oMain.HBarCode + "'", "h_p_KF_PonderationBillMain_Temp_Add_SendConfirmation");
+ if (Ds == null || Ds.Tables[0].Rows.Count == 0)
+ {
+ sErrMsg = "鎵弿鍗曟嵁鍙锋潯鐮佸彂鐢熼敊璇紒";
+ return false;
+ }
+ else
+ {
+ if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0][0]) == 1)
+ {
+ sErrMsg = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]);
+ return false;
+ }
+ }
+ return true;
+ }
+
+ #endregion
+
+ #region 鐢熸垚鍙戝嚭纭鍗�
+
+ [WebMethod]
+ public bool set_SaveSendConfirmationBill_New(Int64 HInterID, string HBillNo, string HBillType, ref string sErrMsg)
+ {
+ SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+
+ try
+ {
+ oCn.BeginTran();
+ //鐢熸垚鍑洪棬纭鍗�
+ DataSet Ds = oCn.RunProcReturn("exec h_p_Kf_SendConfirmationBill_Insert_New " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "'", "h_p_Kf_SendConfirmationBill_Insert_New");
+ if (Ds == null || Ds.Tables[0].Rows.Count == 0)
+ {
+ sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛屼笂浼犳彁浜ゅ彂鍑虹‘璁ゅ崟锛屽彂鐢熼敊璇紒";
+ oCn.RollBack();
+ return false;
+ }
+ else
+ {
+ if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0][0]) == 1)
+ {
+ sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛�" + DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]);
+ oCn.RollBack();
+ return false;
+ }
+ else
+ {
+ sErrMsg = "鏂板鍗曟嵁鎴愬姛锛�";
+ oCn.Commit();
+ return true;
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛岀敓鎴愬彂鍑虹‘璁ゅ崟澶辫触锛�" + e.Message;
+ oCn.RollBack();
+ return false;
+ }
+ }
+
+ #endregion
+
+
+ #endregion
+
+
#region 妗岄潰鏉$爜鐢熸垚澶栫綉鐗�
[WebMethod]
--
Gitblit v1.9.1