From 5c9033488d025bdf554e2e33b2a8030d3743faeb Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 12 一月 2026 10:05:49 +0800
Subject: [PATCH] 添加 模具维修检验单 派工单 APP 获取单据缓存接口 添加 APP 根据器具条码查找器具档案信息 应用程序接口

---
 WebAPI/Controllers/SBGL/Sb_EquipRepairSendWorkBillController.cs |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/SBGL/Sb_EquipRepairSendWorkBillController.cs b/WebAPI/Controllers/SBGL/Sb_EquipRepairSendWorkBillController.cs
index fd8e9c5..4509ba1 100644
--- a/WebAPI/Controllers/SBGL/Sb_EquipRepairSendWorkBillController.cs
+++ b/WebAPI/Controllers/SBGL/Sb_EquipRepairSendWorkBillController.cs
@@ -204,6 +204,19 @@
 
                 if (OperationType == 1)//鏂板
                 {
+                    LogService.Write("Insert Into Sb_EquipRepairSendWorkBillMain" +
+               "(HBillType,HBillSubType,HInterID,HBillNo,HDate" +
+              ",HYear,HPeriod,HRemark,HMaker,HMakeDate" +
+              ",HEquipID,HExplanation,HInnerBillNo,HRepairID,HEmpID" +
+              ",HManagerID,HDeptID,HRepairContent,HRepairPlanBeginDate,HRepairPlanEndDate" +
+              ",HPlanTimes,HCycleUnit" +
+              ") " +
+              " values('" + BillType + "','" + BillType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" +
+              ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HMaker + "',getdate()" +
+              ", " + omodel.HEquipID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + omodel.HRepairID.ToString() + "," + omodel.HEmpID.ToString() +
+              "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HRepairContent + "','" + omodel.HRepairPlanBeginDate + "','" + omodel.HRepairPlanEndDate + "'" +
+              "," + omodel.HPlanTimes.ToString() + ",'" + omodel.HCycleUnit + "'" +
+              ") ");
                     //涓昏〃
                     oCN.RunProc("Insert Into Sb_EquipRepairSendWorkBillMain" +
                "(HBillType,HBillSubType,HInterID,HBillNo,HDate" +
@@ -282,6 +295,15 @@
             //鎻掑叆瀛愯〃
             foreach (Models.ClsSb_EquipRepairSendWorkBillSub oSub in DetailColl)
             {
+                LogService.Write("Insert into Sb_EquipRepairSendWorkBillSub " +
+                       " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" +
+                       ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" +
+                       ",HRepairID,HManagerID,HRepairExplanation" +
+                       ") values("
+                       + omodel.HInterID.ToString() + "," + (hentryid == -1 ? i : hentryid) + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" +
+                       "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() +
+                       "," + oSub.HRepairID.ToString() + "," + oSub.HManagerID.ToString() + ",'" + oSub.HRepairExplanation + "'" +
+                       ") ");
                 oCN.RunProc("Insert into Sb_EquipRepairSendWorkBillSub " +
                        " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" +
                        ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" +
@@ -294,7 +316,7 @@
                 i++;
             }
 
-            //淇濆瓨鍓嶆帶鍒�=========================================
+            //淇濆瓨鍚庢帶鍒�=========================================
             DataSet ds = oCN.RunProcReturn("Exec h_p_Sb_EquipRepairSendWorkBill_AfterSaveCtrl " + omodel.HInterID + ",'" + omodel.HBillNo + "','',1", "h_p_Sb_EquipRepairSendWorkBill_AfterSaveCtrl");
             if (ds == null)
             {

--
Gitblit v1.9.1