From a985e6ba578b4ec28a25932f871c4df76ce092f2 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 12 五月 2026 15:02:39 +0800
Subject: [PATCH] 模块添加自定义标签鉴权 在Token启用的情况下。通过自定义标签定义的modname和Operate 判断用户是否有访问模块的权限
---
WebAPI/Controllers/XSGL/Xs_SellOutChangeBillController.cs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/WebAPI/Controllers/XSGL/Xs_SellOutChangeBillController.cs b/WebAPI/Controllers/XSGL/Xs_SellOutChangeBillController.cs
index bca5439..b07596e 100644
--- a/WebAPI/Controllers/XSGL/Xs_SellOutChangeBillController.cs
+++ b/WebAPI/Controllers/XSGL/Xs_SellOutChangeBillController.cs
@@ -8,9 +8,11 @@
using System.Data.SqlClient;
using System.Web.Http;
using WebAPI.Models;
+using WebAPI.Utility;
namespace WebAPI.Controllers
{
+ [Permission(HModName = "Xs_SellOutChangeBill")]
//閿�鍞皟浠峰崟Controller
public class Xs_SellOutChangeBillController : ApiController
{
@@ -31,6 +33,7 @@
/// </summary>
[Route("Xs_SellOutChangeBill/list")]
[HttpGet]
+ [Permission(HModName = "Xs_SellOutChangeBill_Query")]
public object getXs_SellOutChangeBill(string sWhere, string user)
{
try
@@ -86,6 +89,7 @@
#region 閿�鍞皟浠峰崟淇濆瓨 鏂板/缂栬緫
[Route("Xs_SellOutChangeBill/SaveXs_SellOutChangeBill")]
[HttpPost]
+ [Permission(HModName = "Xs_SellOutChangeBill_Edit")]
public object SaveXs_SellOutChangeBill([FromBody] JObject msg)
{
var _value = msg["msg"].ToString();
@@ -309,6 +313,7 @@
/// </summary>
[Route("Xs_SellOutChangeBill/delete")]
[HttpGet]
+ [Permission(HModName = "Xs_SellOutChangeBill_Drop")]
public object deleteXs_SellOutChangeBill(string HInterID, string user)
{
try
@@ -442,6 +447,7 @@
/// <returns></returns>
[Route("Xs_SellOutChangeBill/AuditXs_SellOutChangeBill")]
[HttpGet]
+ [Permission(HModName = "Xs_SellOutChangeBill_Check")]
public object AuditXs_SellOutChangeBill(int HInterID, int IsAudit, string CurUserName)
{
string ModRightNameCheck = "Xs_SellOutChangeBill_Check";
@@ -716,6 +722,7 @@
/// <returns></returns>
[Route("Xs_SellOutChangeBill/CloseXs_SellOutChangeBill")]
[HttpGet]
+ [Permission(HModName = "Xs_SellOutChangeBill_Close")]
public object CloseSc_ICMOChangeBill(int HInterID, int IsAudit, string CurUserName)
{
string ModRightNameCheck = "Xs_SellOutChangeBill_Close";
@@ -861,6 +868,7 @@
/// <returns></returns>
[Route("Xs_SellOutChangeBill/DeleteXs_SellOutChangeBill")]
[HttpGet]
+ [Permission(HModName = "Xs_SellOutChangeBill_Delete")]
public object DeleteSc_ICMOChangeBill(int HInterID, int IsAudit, string CurUserName)
{
string ModRightNameCheck = "Xs_SellOutChangeBill_Delete";
--
Gitblit v1.9.1