From 981e65a58c087f16fcff1777ea82f23759e84e5d Mon Sep 17 00:00:00 2001 From: zrg <z18737863051@163.com> Date: 星期一, 28 十月 2024 17:57:24 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/Pay_ReportController.cs | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 226 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/Pay_ReportController.cs b/WebAPI/Controllers/Pay_ReportController.cs index 18881ba..430f600 100644 --- a/WebAPI/Controllers/Pay_ReportController.cs +++ b/WebAPI/Controllers/Pay_ReportController.cs @@ -368,5 +368,231 @@ return objJsonResult; } #endregion + + + #region [杞﹂棿璁′欢宸ヨ祫姹囨�籡 + [Route("Pay_PaymentPieceSumReport/list")] + [HttpGet] + public object Pay_PaymentPieceSumReport(int HYear, int HPeriod, int DeptID, string user) + { + List<object> columnNameList = new List<object>(); + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + + if (!DBUtility.ClsPub.Security_Log("Pay_PaymentPieceSumReport", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳潈闄愭煡鐪�!"; + objJsonResult.data = null; + return objJsonResult; + } + ds = oCN.RunProcReturn("exec h_p_Pay_PaymentPieceSumReport '" + HYear + "','" + HPeriod + "','" + DeptID + "'", "h_p_Pay_PaymentPieceSumReport"); + 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 = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + 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 + + #region [杞﹂棿璁℃椂宸ヨ祫姹囨�籡 + [Route("Pay_PaymentTimeSumReport/list")] + [HttpGet] + public object Pay_PaymentTimeSumReport(int HYear, int HPeriod, int DeptID,int HEmpID,string user) + { + List<object> columnNameList = new List<object>(); + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + + if (!DBUtility.ClsPub.Security_Log("Pay_PaymentTimeSumReport", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳潈闄愭煡鐪�!"; + objJsonResult.data = null; + return objJsonResult; + } + ds = oCN.RunProcReturn("exec h_p_Pay_PaymentTimeSumReport '" + HYear + "', '" + HPeriod + "','" + DeptID + "','" + HEmpID + "'", "h_p_Pay_PaymentTimeSumReport"); + 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 = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + 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 + + #region [宸ヨ祫鏈堟姤琛╙ + [Route("Pay_PaymentMonthSumReport/list")] + [HttpGet] + public object Pay_PaymentMonthSumReport(int HYear, int HPeriod, int DeptID,int HGroupID,int HEmpID, string user) + { + List<object> columnNameList = new List<object>(); + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + + if (!DBUtility.ClsPub.Security_Log("Pay_PaymentMonthSumReport", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳潈闄愭煡鐪�!"; + objJsonResult.data = null; + return objJsonResult; + } + ds = oCN.RunProcReturn("exec h_p_Pay_PaymentMonthSumReport '" + HYear + "','" + HPeriod + "','" + DeptID + "','" + HGroupID + "','" + HEmpID + "'", "h_p_Pay_PaymentMonthSumReport"); + 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 = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + 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 + + #region [宸ヨ祫姹囨�籡 + [Route("Pay_PayWorkShopSumReport/list")] + [HttpGet] + public object Pay_PayWorkShopSumReport(int HYear, int HPeriod, int DeptID,int HEmpID, string user) + { + List<object> columnNameList = new List<object>(); + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + + if (!DBUtility.ClsPub.Security_Log("Pay_PayWorkShopSumReport", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳潈闄愭煡鐪�!"; + objJsonResult.data = null; + return objJsonResult; + } + ds = oCN.RunProcReturn("exec h_p_Pay_PayWorkShopSumReport '" + HYear + "','" + HPeriod + "','" + DeptID + "','" + HEmpID + "'", "h_p_Pay_PayWorkShopSumReport"); + 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 = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + 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 + + #region [姣忔棩宸ヨ祫纭] + [Route("Pay_PaymentDayCheckReport/list")] + [HttpGet] + public object Pay_PaymentDayCheckReport(int HYear, int HPeriod, int DeptID,int HGroupID, int HEmpID, string user) + { + List<object> columnNameList = new List<object>(); + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + + if (!DBUtility.ClsPub.Security_Log("Pay_PaymentDayCheckReport", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳潈闄愭煡鐪�!"; + objJsonResult.data = null; + return objJsonResult; + } + ds = oCN.RunProcReturn("exec h_p_Pay_PaymentDayCheckReport '" + HYear + "','" + HPeriod + "','" + DeptID + "','" + HGroupID + "','" + HEmpID + "'", "h_p_Pay_PaymentDayCheckReport"); + 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 = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + 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 } } \ No newline at end of file -- Gitblit v1.9.1