From 50f766bdd428af1214c4b35b369695880e902137 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 14 六月 2023 13:30:59 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/CJGL/Cj_StationInBillController.cs |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
index 0daf31a..71507cb 100644
--- a/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
@@ -136,6 +136,23 @@
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
+                string sReturn = "";
+                if (oSystemParameter.ShowBill(ref sReturn) == true)
+                {
+                    if (oSystemParameter.omodel.WMS_CampanyName == "涔斾竴") //绯荤粺鍙傛暟  鍒ゆ柇瀹㈡埛
+                    {
+                        //鍒ゆ柇鐢熶骇璧勬簮
+                        if (HSourceID <= 0)
+                        {
+                            objJsonResult.code = "0";
+                            objJsonResult.count = 0;
+                            objJsonResult.Message = "鐢熶骇璧勬簮娌℃湁閫夋嫨锛�";
+                            objJsonResult.data = null;
+                            return objJsonResult;
+                        }
+                    }
+                }
+
                 if (HCenterID <= 0)
                 {
                     objJsonResult.code = "0";
@@ -305,7 +322,7 @@
 
                 }
                 oCN.Commit();
-                string sReturn = "";
+               
                 if (oSystemParameter.ShowBill(ref sReturn) == true)
                 {
                     if (oSystemParameter.omodel.MES_StationInBill_SaveAutoAddnew == "Y") //绯荤粺鍙傛暟  鑷姩瀹℃牳 

--
Gitblit v1.9.1