From 56fcaa1904a933c5f27c5fce65994e8b041e2a6e Mon Sep 17 00:00:00 2001
From: 杨乐 <yang.le.192@qq.com>
Date: 星期二, 25 一月 2022 21:36:39 +0800
Subject: [PATCH] 委外加工入库 完善
---
WebAPI/Controllers/工资管理/Pay_GroupBalBillController.cs | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diff --git "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs" "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs"
index 7d9ddea..56a805b 100644
--- "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs"
+++ "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs"
@@ -29,10 +29,18 @@
/// </summary>
[Route("Pay_GroupBalBill/GetGroupBalBill")]
[HttpGet]
- public object GetGroupBalBill(string sWhere)
+ public object GetGroupBalBill(string sWhere,string user)
{
try
{
+ if (!DBUtility.ClsPub.Security_Log("Pay_SingleBalBillList", 1, false, user))
+ {
+ objJsonResult.code = "0";
+ objJsonResult.count = 0;
+ objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
ds = Sc_GetGroupBalBill(sWhere);
objJsonResult.code = "1";
@@ -138,11 +146,19 @@
string msg2 = sArray[0].ToString();
string msg3 = sArray[1].ToString();
string msg4 = sArray[2].ToString();
-
+ string msg5 = sArray[3].ToString();
string UserName = "";
ListModels oListModels = new ListModels();
try
{
+ if (!DBUtility.ClsPub.Security_Log("Pay_SingleBalBill_Edit", 1, false, msg5))
+ {
+ objJsonResult.code = "0";
+ objJsonResult.count = 0;
+ objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
DLL.ClsPay_GroupBalBill oBill = new DLL.ClsPay_GroupBalBill();
List<Models.ClsPay_GroupBalBillMain> lsmain = new List<Models.ClsPay_GroupBalBillMain>();
msg2 = msg2.Replace("\\", "");
@@ -266,10 +282,19 @@
/// <returns></returns>
[Route("Pay_GroupBalBill/DeltetGroupBalBill")]
[HttpGet]
- public object Pay_GroupBalBill(string HInterID)
+ public object Pay_GroupBalBill(string HInterID,string user)
{
try
{
+ if (!DBUtility.ClsPub.Security_Log("Pay_SingleBalBill_Delete", 1, false, user))
+ {
+ objJsonResult.code = "0";
+ objJsonResult.count = 0;
+ objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+
oCN.BeginTran();
oCN.RunProc("Delete From Pay_GroupBalBillMain where HInterID = " + HInterID);
oCN.RunProc("Delete From Pay_GroupBalBillSub where HInterID = " + HInterID);
--
Gitblit v1.9.1