From 7583af9c032a7805a41222db300fbfd3f49d505a Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期二, 08 四月 2025 10:28:20 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/应收管理/YS_ReceiveReportController.cs | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git "a/WebAPI/Controllers/\345\272\224\346\224\266\347\256\241\347\220\206/YS_ReceiveReportController.cs" "b/WebAPI/Controllers/\345\272\224\346\224\266\347\256\241\347\220\206/YS_ReceiveReportController.cs" index 08026a0..1997645 100644 --- "a/WebAPI/Controllers/\345\272\224\346\224\266\347\256\241\347\220\206/YS_ReceiveReportController.cs" +++ "b/WebAPI/Controllers/\345\272\224\346\224\266\347\256\241\347\220\206/YS_ReceiveReportController.cs" @@ -115,6 +115,53 @@ } #endregion + #region 瀹㈡埛搴旀敹璐︽鏄庣粏鍒嗘瀽鎶ヨ〃锛堟樉绀虹墿鏂欙級 + /// <summary> + /// 瀹㈡埛搴旀敹璐︽鏄庣粏鍒嗘瀽鎶ヨ〃锛堟樉绀虹墿鏂欙級 + /// </summary> + /// <returns></returns> + [Route("YS_ReceiveReportController/GetYS_CusShouldIncomeMaterEntryReport_Json")] + [HttpGet] + public object GetYS_CusShouldIncomeMaterEntryReport_Json(string sWhere, string user) + { + try + { + if (!DBUtility.ClsPub.Security_Log("YS_CusShouldIncomeMaterEntryReport", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + ds = oCn.RunProcReturn("exec h_p_YS_CusShouldIncomeMaterEntryReport " + sWhere, "h_p_YS_CusShouldIncomeMaterEntryReport"); + List<object> columnNameList = new List<object>(); + //娣诲姞鍒楀悕 + foreach (DataColumn col in ds.Tables[0].Columns) + { + Type dataType = col.DataType; + string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; + columnNameList.Add(JsonConvert.DeserializeObject(ColmString)); //鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + objJsonResult.list = columnNameList; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏌ヨ鎶ヨ〃淇℃伅澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + -- Gitblit v1.9.1