From 83ad2914eb0ea3e2ff5a2acee1230bba6ff0bb29 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期五, 25 八月 2023 11:10:40 +0800
Subject: [PATCH] 工艺子路线 指引卡开工单  完工单 使用 进出站新增模块

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

diff --git a/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
index 687beea..5cbd86a 100644
--- a/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
@@ -39,6 +39,7 @@
                 //濮斿宸ュ簭鍙戝嚭鍙嶅簭鍒楀寲
                 string msg2 = "[" + sArray[0].ToString() + "]";
                 string user = sArray[1].ToString();
+                string OperationType = sArray[2].ToString();
                 string HComputerName = SystemInformation.ComputerName; //璁惧鍚嶇О
 
                 //鍒ゆ柇鏄惁鏈夌紪杈戞潈闄�
@@ -214,7 +215,7 @@
                     ",HProcNo,HOrderProcNO,HMainInterID,HPRDOrgID" +
                     ",HmaterOutqty" +
                     ") " +
-                    " values('" + BillType + "','" + BillType + "'," + HInterID + ",'" + HBillNo + "'," + HBillStatus + ",getdate(),'" + HMaker + "',getdate()" +
+                    " values('" + BillType + "','" + (OperationType=="5"?"SUB":BillType) + "'," + HInterID + ",'" + HBillNo + "'," + HBillStatus + ",getdate(),'" + HMaker + "',getdate()" +
                     "," + HYear + "," + HPeriod + ",'" + HRemark + "'" +
                     "," + HICMOInterID + ",'" + HICMOBillNo + "'," + HProcPlanInterID + "," + HProcPlanEntryID + ",'" + HProcPlanBillNo + "'," + HProcExchInterID + "," + HProcExchEntryID +
                     ",'" + HProcExchBillNo + "'," + HMaterID + "," + HProcID + "," + HICMOQty + "," + HPlanQty + ",getdate()," + HSourceID +

--
Gitblit v1.9.1