From 6dee5ec23bd7b7d35e7820dd71d7a7ebe70fc69f Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期一, 02 八月 2021 11:57:09 +0800
Subject: [PATCH] 合并

---
 WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 53 insertions(+), 2 deletions(-)

diff --git a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
index bb63d15..52a3248 100644
--- a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
+++ b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
@@ -573,7 +573,7 @@
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = "淇濆瓨澶辫触锛�" + DBUtility.ClsPub.sExeReturnInfo;
+                    objJsonResult.Message = "淇濆瓨澶辫触锛�";
                     objJsonResult.data = 1;
                     return objJsonResult;
                 }
@@ -664,6 +664,8 @@
                 model.HGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HGroupID"]);
                 model.HDeptID= DBUtility.ClsPub.isLong(ds0.Tables[0].Rows[0]["HDeptID"]);
                 model.HPRDORGID = DBUtility.ClsPub.isLong(ds0.Tables[0].Rows[0]["HPRDORGID"]);
+                model.HMainSourceInterID = HICMOInterID;
+                model.HMainSourceEntryID = HICMOEntryID;
                 WebS.WebService1 oWebs = new WebS.WebService1();
                 bool flag=oWebs.set_SaveICMOProductReportBill_Layui(model, sHSourceType, ref DBUtility.ClsPub.sErrInfo);
                 if (flag)
@@ -692,7 +694,56 @@
             return objJsonResult;
         }
         #endregion
-   
 
+
+
+        #region [鍔ㄦ�佸垪琛╙
+        [Route("Sc_MESBeginWorkBill/ReportFrom")]
+        [HttpGet]
+        public object ReportFrom()
+        {
+            List<string> columnNameList = new List<string>();
+            try
+            {
+                //鏍规嵁閫夋嫨璧勬簮ID鑾峰彇褰撳墠鐢熶骇宸ュ崟銆佽矗浠讳汉
+                ds = oCN.RunProcReturn("select HItemID,HNumber,HName,HRemark,HUseFlag,HBirthDay   from Gy_Employee where HItemID=9999", "Gy_Employee");
+                string aa = ds.Tables[0].Columns[0].ToString();
+
+                foreach (DataColumn col in ds.Tables[0].Columns)
+                {
+                    columnNameList.Add(col.ColumnName);//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕
+                }
+                if (ds.Tables[0].Rows.Count > 0)
+                {
+
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "鑾峰彇璧勬簮缁戝畾鏁版嵁鎴愬姛锛�";
+                    objJsonResult.data = ds;
+                    objJsonResult.list = columnNameList;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏆傛棤璧勬簮缁戝畾锛�";
+                    objJsonResult.data = null;
+                    objJsonResult.list = columnNameList;
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = e.Message.ToString();
+                objJsonResult.data = null;
+                objJsonResult.list = columnNameList;
+            }
+            return objJsonResult;
+        }
+        #endregion
     }
 }

--
Gitblit v1.9.1