From c864d6da7e40046d7d4f9a45f007f7b3dcd5cf78 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 04 十一月 2025 20:08:12 +0800
Subject: [PATCH] 首件检验单 APP 所需 接口 完善

---
 WebAPI/DLL/ClsKf_MateOutBill.cs |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/WebAPI/DLL/ClsKf_MateOutBill.cs b/WebAPI/DLL/ClsKf_MateOutBill.cs
index 85dffab..7f65745 100644
--- a/WebAPI/DLL/ClsKf_MateOutBill.cs
+++ b/WebAPI/DLL/ClsKf_MateOutBill.cs
@@ -110,7 +110,8 @@
                         ",HMaterEmpID=" + omodel.HMaterEmpID +
                         ",HMachineSpeed=" + omodel.HMachineSpeed +
                         ",HWaterRush=" + omodel.HWaterRush +
-                        ",HWaterQty=" + omodel.HWaterQty +
+                        ",HHuaGun='" + omodel.HHuaGun +
+                        "',HWaterQty=" + omodel.HWaterQty +
                         ",HWaterRate=" + omodel.HWaterRate +
                         " where HInterID=" + lngBillKey.ToString();
                 }
@@ -238,7 +239,7 @@
                 ",HSupID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" +
                 ",HKeeperID,HDeptID,HExplanation,HInnerBillNo,HRedBlueFlag" +
                 ") " +
-                " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" +
+                " values('" + this.BillType + "','" + omodel.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" +
                 ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" +
                 ", " + omodel.HSupID.ToString() + "," + omodel.HWHID.ToString() + "," + omodel.HSCWHID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString() +
                 ", " + omodel.HKeeperID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + DBUtility.ClsPub.BoolToString(omodel.HRedBlueFlag) +
@@ -254,10 +255,10 @@
                     mainSql = "Insert Into Kf_ICStockBillMain" +
                         "(HBillType,HBillSubType,HInterID,HBillNo,HDate,HYear,HPeriod,HRemark,HMainSourceInterID,HMainSourceBillNo,HMainSourceBillType,HMaker,HMakeDate,HSupID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID,HKeeperID,HDeptID,HExplanation,HInnerBillNo,HRedBlueFlag" +
                         ",HICMOInterID,HICMOEntryID,HICMOBillNo,HProcExchInterID,HProcExchEntryID,HProcExchBillNo,HMaterID,HMaterName,HVerNo,HModel,HModel2,HPieceQty,HCusID,HWeight,HLong,HSingleWeight,HMaterSumWeight,HMaterEmpID" +
-                        ",HMachineSpeed,HWaterRush,HWaterQty,HWaterRate) " +
+                        ",HMachineSpeed,HWaterRush,HHuaGun,HWaterQty,HWaterRate) " +
                         " values(" +
                         "'" + this.BillType +
-                        "','" + this.HBillSubType +
+                        "','" + omodel.HBillSubType +
                         "'," + omodel.HInterID.ToString() +
                         ",'" + omodel.HBillNo +
                         "','" + omodel.HDate +
@@ -266,7 +267,7 @@
                         ",'" + omodel.HRemark +
                         "'," + omodel.HProcExchInterID +
                         ",'" + omodel.HProcExchBillNo +
-                        "','" + "3772" +
+                        "','" + (string.IsNullOrEmpty(omodel.HMainSourceBillType) == true ?  "3772" : omodel.HMainSourceBillType) +
                         "','" + DBUtility.ClsPub.CurUserName +
                         "',getdate()" +
                         "," + omodel.HSupID.ToString() +
@@ -300,7 +301,8 @@
                         "," + omodel.HMaterEmpID +
                         "," + omodel.HMachineSpeed +
                         "," + omodel.HWaterRush +
-                        "," + omodel.HWaterQty +
+                        ",'" + omodel.HHuaGun +
+                        "'," + omodel.HWaterQty +
                         "," + omodel.HWaterRate +
                         ")";
                 }

--
Gitblit v1.9.1