From 2a68296e02cb0f17fd29e4a3aa041c6046becec9 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期五, 26 十一月 2021 17:01:02 +0800
Subject: [PATCH] 生产入库(源单:生产汇报单)模块,非多源单模式扫码增加控制,只能扫描对应源单条码
---
CLOUDWEB/WebService1.asmx.cs | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index ed482bf..86b02a4 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -31469,6 +31469,19 @@
}
else
{
+ if (HSourceBillNo != "" && SourceFlag == true)
+ {
+ if (HBillType == "1202") //鐢熶骇鍏ュ簱鏃� 鏉$爜涓诲唴鐮併�佸瓙鍐呯爜鍜屾簮鍗曚富鍐呯爜銆佸瓙鍐呯爜蹇呴』涓�鑷�
+ {
+ if (dal.omodel_View.HSourceInterID != DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceInterID"])
+ && dal.omodel_View.HSourceEntryID != DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceEntryID"])
+ )
+ {
+ sErrMsg = "璇ユ潯鐮佺殑婧愬崟涓庢壂鎻忕殑婧愬崟涓嶄竴鑷达紝璇风‘璁ゆ棤璇悗閲嶆柊鎵弿锛�";
+ return false;
+ }
+ }
+ }
dal.omodel_View.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HSourceBillNo"]);
dal.omodel_View.HSourceEntryID = DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceEntryID"]);
dal.omodel_View.HSourceInterID = DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceInterID"]);
@@ -33164,6 +33177,7 @@
#endregion
+
#region 妯″叿鏉$爜澶勭悊鏂规硶
#region 鎵弿妯″叿婧愬崟鏉$爜
--
Gitblit v1.9.1