From 64c86c8354884c152a00e14faa8229e1b7152bed Mon Sep 17 00:00:00 2001
From: jingh <jingh@LAPTOP-I53VDLOO>
Date: 星期六, 07 八月 2021 18:48:14 +0800
Subject: [PATCH] 22

---
 WebAPI/Controllers/Sc_MouldController.cs |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/WebAPI/Controllers/Sc_MouldController.cs b/WebAPI/Controllers/Sc_MouldController.cs
index 658e8b7..2bc9e08 100644
--- a/WebAPI/Controllers/Sc_MouldController.cs
+++ b/WebAPI/Controllers/Sc_MouldController.cs
@@ -73,8 +73,8 @@
                 BillNew.omodel.HEmpID = 0;
                 BillNew.omodel.HManagerID = mainList[0].HManagerID;
                 BillNew.omodel.HSecManagerID = mainList[0].HSecManagerID;
-                BillNew.omodel.HKeeperID = mainList[0].HSecManagerID;
-                BillNew.omodel.HDeptID = mainList[0].HSecManagerID;
+                BillNew.omodel.HKeeperID = mainList[0].HKeeperID;
+                BillNew.omodel.HDeptID = mainList[0].HDeptID;
                 BillNew.omodel.HExplanation = mainList[0].HExplanation;
                 BillNew.omodel.HInnerBillNo = mainList[0].HInnerBillNo;
                 BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag;
@@ -190,10 +190,10 @@
                 //msg2 = "[" + msg2.ToString() + "]";
                 msg1 = "[" + msg1.ToString() + "]";
                 DAL.ClsSc_MouldProdOutBill BillNew = new DAL.ClsSc_MouldProdOutBill();
-                List<Model.ClsSc_MouldProdOutBillMain> mainList = Newtonsoft
+                List<Model.ClsSc_MouldStockBillMain> mainList = Newtonsoft
                     .Json
                     .JsonConvert
-                    .DeserializeObject<List<Model.ClsSc_MouldProdOutBillMain>>(msg1);
+                    .DeserializeObject<List<Model.ClsSc_MouldStockBillMain>>(msg1);
                 List<Model.ClsSc_MouldStockBillSub> subList = Newtonsoft
                     .Json
                     .JsonConvert
@@ -213,6 +213,7 @@
                 }
                 BillNew.omodel.HYear = sYear;
                 BillNew.omodel.HPeriod = sPeriod;
+                BillNew.omodel.HInterID = mainList[0].HInterID;
                 BillNew.omodel.HBillNo = mainList[0].HBillNo.Trim();
                 BillNew.omodel.HMaker = mainList[0].HMaker;
                 BillNew.omodel.HDate = HDate;
@@ -229,7 +230,8 @@
                 BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag;
                 BillNew.DetailColl = new List<Model.ClsSc_MouldStockBillSub>();
                 Model.ClsSc_MouldStockBillSub oSub = new Model.ClsSc_MouldStockBillSub();
-
+                
+                oSub.HInterID = mainList[0].HInterID;
                 oSub.HEntryID = 1;
                 oSub.HRemark = DBUtility.ClsPub.isStrNull(subList[0].HRemark);
                 oSub.HSourceInterID = DBUtility.ClsPub.isLong(subList[0].HSourceInterID);
@@ -281,13 +283,13 @@
                 oSub.HDiameter = DBUtility.ClsPub.isStrNull(subList[0].HDiameter);
                 oSub.HBackFlag = DBUtility.ClsPub.isStrNull(subList[0].HBackFlag);
                 BillNew.DetailColl.Add(oSub);
-                bResult = BillNew.AddBill(ref ClsPub.sExeReturnInfo);
+                bResult = BillNew.AddBill_PDA(ref ClsPub.sExeReturnInfo);
                 //鎻愮ず
                 if (bResult == true)
                 {
                     objJsonResult.code = "1";
                     objJsonResult.count = 1;
-                    objJsonResult.Message = ClsPub.sExeReturnInfo + "鍗曟嵁鍙�:" + mainList[0].HBillNo.Trim();
+                    objJsonResult.Message = ClsPub.sExeReturnInfo + "鍗曟嵁鍙�:" + mainList[0].HInterID.ToString()+"鍗曟嵁涓籌D:"+ mainList[0].HInterID;
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
@@ -432,7 +434,7 @@
                 oSub.HDesignLife = DBUtility.ClsPub.isLong(subList[0].HDesignLife);
                 oSub.HUseLife = DBUtility.ClsPub.isLong(subList[0].HUseLife);
                 BillNew.DetailColl.Add(oSub);
-                bResult = BillNew.AddBill(ref ClsPub.sExeReturnInfo);
+                bResult = BillNew.AddBill_PDA(ref ClsPub.sExeReturnInfo);
                 //鎻愮ず
                 if (bResult == true)
                 {

--
Gitblit v1.9.1