From cdcac3ef6fafe0d7f9a61a94151c80294d10a3d8 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期三, 28 八月 2024 15:53:24 +0800
Subject: [PATCH] 巡检单修改报错修改

---
 WebAPI/Controllers/工资管理/Pay_ProcPriceRequestBillController.cs |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_ProcPriceRequestBillController.cs" "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_ProcPriceRequestBillController.cs"
index 7a1d97c..010cf89 100644
--- "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_ProcPriceRequestBillController.cs"
+++ "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_ProcPriceRequestBillController.cs"
@@ -620,7 +620,7 @@
             public string HBackerDate;
             public string HBackRemark;
             public string HChangeType;
-            public string HChangeValue;
+            public Double HChangeValue;
         }
         #endregion
         #region 瀛愯〃
@@ -653,6 +653,7 @@
             public double HRelationMoney;
             public string HCloseMan;
             public string HEntryCloseDate;
+            public int HWorkCenterID;
         }
         #endregion
         #region 瀹氶鐢宠鍗� 鏂板/缂栬緫
@@ -759,7 +760,7 @@
                 string HBackerDate = mainList[0].HBackerDate;
                 string HBackRemark = mainList[0].HBackRemark;
                 string HChangeType = mainList[0].HChangeType;
-                string HChangeValue = mainList[0].HChangeValue;
+                Double HChangeValue = mainList[0].HChangeValue;
                 //淇濆瓨鍓嶆帶鍒�
                 DataSet BeforeDs = oCn.RunProcReturn("Exec h_p_Pay_ProcPriceRequestBill_BeforeSaveCtrl " + HInterID.ToString() + ",'" + HBillNo + "'," + OperationType.ToString(), "h_p_Pay_ProcPriceRequestBill_BeforeSaveCtrl");
                 if (BeforeDs == null || BeforeDs.Tables[0].Rows.Count == 0)
@@ -815,6 +816,7 @@
                 }
                 else if (OperationType == 3 || ds.Tables[0].Rows.Count != 0)                    //缂栬緫
                 {
+                    
                     string sql = "update Pay_ProcPriceRequestBillMain set " +
                         "HYear = " + HYear +
                         ", HPeriod = " + HPeriod +
@@ -919,12 +921,12 @@
                 string HSourceBillType = oSub.HSourceBillType;
                 double HRelationQty = oSub.HRelationQty;
                 double HRelationMoney = oSub.HRelationMoney;
-
+                int HWorkCenterID = oSub.HWorkCenterID;
 
 
                 string sql = "insert into Pay_ProcPriceRequestBillSub" +
                     "(HInterID,HEntryID,HMaterID,HProcID,HSourceID,HOldPrice,HPrice,HOldFixPrice,HFixPrice,HBeginDate,HEndDate,HCostFlag,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo" +
-                    ",HSourceBillType,HRelationQty,HRelationMoney) " +
+                    ",HSourceBillType,HRelationQty,HRelationMoney,HWorkCenterID) " +
                     "values(" +
                     "" + HInterID +
                     "," + HEntryID +
@@ -945,6 +947,7 @@
                     "','" + HSourceBillType +
                     "'," + HRelationQty +
                     "," + HRelationMoney +
+                    "," + HWorkCenterID +
                     ")";
 
                 oCn.RunProc(sql);

--
Gitblit v1.9.1