From 63be464a9bfbfa9412fa7809612418c150eab478 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期五, 24 十月 2025 13:36:15 +0800
Subject: [PATCH] 1
---
WebAPI/Controllers/应收管理/YS_ReceiveReportController.cs | 72 ++++++++++++++++++++++++++++++++++-
1 files changed, 69 insertions(+), 3 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 39ef7e1..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"
@@ -20,17 +20,27 @@
Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
- #region 瀹㈡埛搴旀敹璐︽鍒嗘瀽鎶ヨ〃
+ #region 瀹㈡埛搴旀敹璐︽鍒嗘瀽鎶ヨ〃
/// <summary>
/// 瀹㈡埛搴旀敹璐︽鍒嗘瀽鎶ヨ〃
/// </summary>
/// <returns></returns>
[Route("YS_ReceiveReportController/GetYS_CusShouldIncomeReport_Json")]
[HttpGet]
- public object GetYS_CusShouldIncomeReport_Json(string sWhere)
+ public object GetYS_CusShouldIncomeReport_Json(string sWhere, string user)
{
try
{
+ if (!DBUtility.ClsPub.Security_Log("YS_CusShouldIncomeReport", 1, false, user))
+ {
+ objJsonResult.code = "0";
+ objJsonResult.count = 0;
+ objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+
+
ds = oCn.RunProcReturn("exec h_p_YS_CusShouldIncomeReport " + sWhere, "h_p_YS_CusShouldIncomeReport");
List<object> columnNameList = new List<object>();
//娣诲姞鍒楀悕
@@ -65,10 +75,19 @@
/// <returns></returns>
[Route("YS_ReceiveReportController/GetYS_CusShouldIncomeEntryReport_Json")]
[HttpGet]
- public object GetYS_CusShouldIncomeEntryReport_Json(string sWhere)
+ public object GetYS_CusShouldIncomeEntryReport_Json(string sWhere, string user)
{
try
{
+ if (!DBUtility.ClsPub.Security_Log("YS_CusShouldIncomeEntryReport", 1, false, user))
+ {
+ objJsonResult.code = "0";
+ objJsonResult.count = 0;
+ objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+
ds = oCn.RunProcReturn("exec h_p_YS_CusShouldIncomeEntryReport " + sWhere, "h_p_YS_CusShouldIncomeEntryReport");
List<object> columnNameList = new List<object>();
//娣诲姞鍒楀悕
@@ -96,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