From 14c60e8bc1ece67eb409eec2797080d956223f09 Mon Sep 17 00:00:00 2001
From: jhz <jinghz@oceic.com>
Date: 星期四, 09 六月 2022 22:05:06 +0800
Subject: [PATCH] 产线绑定功能

---
 DAL/车间管理/ClsSc_StationInBill.cs |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git "a/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationInBill.cs" "b/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationInBill.cs"
index e65edd5..943a5f6 100644
--- "a/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationInBill.cs"
+++ "b/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationInBill.cs"
@@ -323,9 +323,12 @@
         public override bool AddBill(ref string sReturn)
         {
             try
-            { 
+            {
                 //寰楀埌mainid
-                omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo);
+                if (DBUtility.ClsPub.isLong(omodel.HInterID) == 0)
+                {
+                    omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo);
+                }
                 //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙�
                 oCn.BeginTran();
                 //涓昏〃
@@ -390,7 +393,7 @@
                 oCn.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_In " + omodel.HInterID.ToString() + ",1");
 
                 
-                //==================杩涚珯鍗曞惎鐢ㄩ厤浠舵竻鍗曠粦瀹氾紝鍒欏皢 閰嶄欢娓呭崟鍐欏叆  瀹為檯琛�. 骞惰繘琛� 淇濆瓨寮哄埗鎺у埗
+                //==================杩涚珯鍗曞惎鐢ㄩ厤浠舵竻鍗曠粦瀹氾紝 杩涜 淇濆瓨寮哄埗鎺у埗
 
                 //==============================
 

--
Gitblit v1.9.1