From 8f4af99e5ea3939e56148dc969158b35c0cb8470 Mon Sep 17 00:00:00 2001 From: zrg <z18737863051@163.com> Date: 星期五, 17 一月 2025 10:12:45 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs index ce4915e..bcc49f0 100644 --- a/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs +++ b/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs @@ -530,7 +530,7 @@ string sql =string.Format(@"select A.HInterID,b.HEntryID,A.HBillStatus,A.HBillNo,A.HDate,A.HContext,A.HDescription,A.HRemark, A.HQty,A.HSendType,a.HForm,a.HChangeNote,a.HNote,a.HBadProcMan,f1.HName HBadProcManName, a.HQEMan,f2.HName HQEManName,a.HSourceID,s.HName HSourceName,a.HShiftsID,s1.HName HShiftsName, - A.HDeptID,D.HName HDeptName, A.HSendMan, + A.HDeptID,D.HName HDeptName, A.HSendMan,a.HCenterID HCenterID,wo.HName HCenterName, A.HReceiveMan,A.HCopyMan,A.HHasten, A.HLevel,A.HMaterNumber,A.HMaterName,A.HMaterModel, B.HReadFlag, A.HMaker,A.HMakeDate,A.HUpDater,A.HUpDateDate,A.HChecker,A.HCheckDate,A.HCloseMan,A.HCloseDate,A.HDeleteMan,A.HDeleteDate, @@ -545,6 +545,7 @@ left join Gy_Employee f2 on a.HQEMan=f2.HItemID left join Gy_Source s on a.HSourceID=s.HItemID left join Gy_Shifts s1 on a.HShiftsID=s1.HItemID + left join Gy_WorkCenter wo on a.HCenterID=wo.HItemID where A.HInterID='" + HID + "' and b.HEntryID='" + HEntryID + "'"); var dataSet = oCN.RunProcReturn(sql, "OA_ErrMsgBackBillMain"); if (dataSet == null || dataSet.Tables[0].Rows.Count == 0) @@ -6770,13 +6771,21 @@ [Route("Sc_MESTransFerWorkBill/GetSc_MESTransFerWorkBillQuery")] [HttpGet] - public object GetSc_MESTransFerWorkBillQuery(string user) + public object GetSc_MESTransFerWorkBillQuery(string sWhere, string user) { try { + Dictionary<object, object> dic = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<object, object>>(sWhere); + + + string HStatus = dic["HStatus"].ToString();//鏃堕棿鐘舵�� + string HBeginDate = dic["HBeginDate"].ToString();//寮�濮嬫棩鏈� + string HEndDate = dic["HEndDate"].ToString();//缁撴潫鏃ユ湡 + string HSourceID = dic["HSourceID"].ToString();//鐢熶骇璧勬簮 + List<object> columnNameList = new List<object>(); - ds = oCN.RunProcReturn("exec h_p_OA_ErrMsgBackSelfQuery " + user, "h_p_OA_ErrMsgBackSelfQuery"); + ds = oCN.RunProcReturn("exec h_p_OA_ErrMsgBackSelfQuery '" + HStatus + "','" + HBeginDate + "','" + HEndDate + "','" + HSourceID + "','" + user + "'" , "h_p_OA_ErrMsgBackSelfQuery"); if (ds.Tables[0].Rows.Count != 0 || ds != null) { @@ -6825,8 +6834,8 @@ { List<object> columnNameList = new List<object>(); - string sql = "select a.HSourceBillNo 娴佽浆鍗″彿,a.HSourceBillType 娴佽浆鍗$被鍨�,a.HSourceInterID 娴佽浆鍗′富鍐呯爜,a.HSourceEntryID 娴佽浆鍗″瓙鍐呯爜,b.HNumber 鐗╂枡浠g爜,b.HName 鐗╂枡鍚嶇О,b.HModel 瑙勬牸鍨嬪彿,a.HPlanQty 璁″垝鏁伴噺,a.HSourceID,c.HName 鐢熶骇璧勬簮 from Sc_ICMOBillStatus_Tmp a " + - "left join Gy_Material b on a.HMaterID=b.HItemID left join Gy_Source c on a.HSourceID=c.HItemID where HSourceBillNo='" + HSourceBill + "'"; + string sql = "select a.HSourceBillNo 娴佽浆鍗″彿,a.HSourceBillType 娴佽浆鍗$被鍨�,a.HSourceInterID 娴佽浆鍗′富鍐呯爜,a.HSourceEntryID 娴佽浆鍗″瓙鍐呯爜,b.HNumber 鐗╂枡浠g爜,b.HName 鐗╂枡鍚嶇О,b.HModel 瑙勬牸鍨嬪彿,a.HDatePlanQty 璁″垝鏁伴噺,a.HSourceID,c.HName 鐢熶骇璧勬簮 from Sc_ICMOBillStatus_Tmp a " + + "left join Gy_Material b on a.HMaterID=b.HItemID left join Gy_Source c on a.HSourceID=c.HItemID where HSourceBillNo='" + HSourceBill + "' and a.HICMOStatus=1"; ds = oCN.RunProcReturn(sql, "Sc_ICMOBillStatus_Tmp"); //娣诲姞鍒楀悕 -- Gitblit v1.9.1