From ad652cc0f75c675391c6e0b86e8bca57940b3f10 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期五, 27 三月 2026 10:43:41 +0800
Subject: [PATCH] 调整 鉴权标签

---
 sdk_dingding/TopSdk/bin/Debug/TopSdk.dll                            |    0 
 SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt |    5 +++++
 Pub_Class/CustomerCls/ClsXt_SystemParameter.cs                      |   11 +++++++++++
 WebAPI/Controllers/品质管理/检验取样还样单/QC_TakeSampleCheckBillController.cs |   10 +++++++++-
 sdk_dingding/TopSdk/obj/Debug/TopSdk.dll                            |    0 
 WebAPI/Utility/PermissionAttribute.cs                               |    0 
 Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs                  |    3 +++
 WebAPI/App_Start/WebApiConfig.cs                                    |    4 ++--
 sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache |    0 
 DAL/质检管理/ClsQC_TakeSampleCheckBill.cs                               |    4 +++-
 sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt    |    6 ++++++
 sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb                            |    0 
 WebAPI/WebAPI.csproj                                                |    2 +-
 sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb                            |    0 
 14 files changed, 40 insertions(+), 5 deletions(-)

diff --git "a/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_TakeSampleCheckBill.cs" "b/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_TakeSampleCheckBill.cs"
index 4a9a368..35ed2c9 100644
--- "a/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_TakeSampleCheckBill.cs"
+++ "b/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_TakeSampleCheckBill.cs"
@@ -241,6 +241,8 @@
                 sReturn = e.Message;
                 throw (e);
             }
-        }      
+        }     
+        
+
     }
 }
diff --git a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
index 0dfe75b..c77aa63 100644
--- a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
+++ b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
@@ -2810,6 +2810,12 @@
                     {
                         omodel.Gy_BarCodeBill_Rework_Ctrl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
                     }
+                    
+                    // 取样单
+                    if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_TakeSampleCheckBill_AutoCheck")
+                    {
+                        omodel.QC_TakeSampleCheckBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
+                    }
                 }
                 sReturn = "显示单据成功!";
                 return true;
@@ -5559,6 +5565,11 @@
                     {
                         omodel.HR_PostSkillBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
                     }
+                    
+                    if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_TakeSampleCheckBill_AutoCheck")
+                    {
+                        omodel.QC_TakeSampleCheckBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
+                    }
                 }
                 sReturn = "显示单据成功!";
                 return true;
diff --git a/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs b/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
index 26b027b..7e3250d 100644
--- a/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
+++ b/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
@@ -877,6 +877,9 @@
 
         //返修条码
         public string Gy_BarCodeBill_Rework_Ctrl;  //生成物料条码时,机型码不允许为空
+
+        // 取样单
+        public string QC_TakeSampleCheckBill_AutoCheck; // 生成取样单时,是否自动审核
     }
 
 }
diff --git a/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt b/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
index 7862f67..9acbe60 100644
--- a/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
+++ b/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
@@ -10,3 +10,8 @@
 C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.CoreCompileInputs.cache
 C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.dll
 C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.pdb
+D:\WorkBench\MES-WEB-API\SyntacticSugar\bin\Debug\SyntacticSugar.dll
+D:\WorkBench\MES-WEB-API\SyntacticSugar\bin\Debug\SyntacticSugar.pdb
+D:\WorkBench\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.CoreCompileInputs.cache
+D:\WorkBench\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.dll
+D:\WorkBench\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.pdb
diff --git a/WebAPI/App_Start/WebApiConfig.cs b/WebAPI/App_Start/WebApiConfig.cs
index 59db8ef..7ddc912 100644
--- a/WebAPI/App_Start/WebApiConfig.cs
+++ b/WebAPI/App_Start/WebApiConfig.cs
@@ -31,10 +31,10 @@
             );
 
             // 鍏ㄥ眬鍚敤 JWT 璁よ瘉
-            config.Filters.Add(new JwtAuthorizeAttribute());
+            // config.Filters.Add(new JwtAuthorizeAttribute());
 
             // 鍚敤JWT鍝嶅簲鎷︽埅鍣紝鑷姩鍒锋柊JWT
-            config.MessageHandlers.Add(new TokenAppendHandler());
+            // config.MessageHandlers.Add(new TokenAppendHandler());
         }
     }
 }
diff --git "a/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs" "b/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs"
index 806b95d..9c0d411 100644
--- "a/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs"
+++ "b/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs"
@@ -263,7 +263,7 @@
                    
                     bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
                     string sReturn = "";
-                    if (oSystemParameter.ShowBill(ref sReturn) == true)
+                    if (oSystemParameter.ShowBill(ref DBUtility.ClsPub.sExeReturnInfo) == true)
                     {
                         if (oSystemParameter.omodel.WMS_CampanyName == "鍗庤垷")
                         {
@@ -282,7 +282,15 @@
 
                             }
                         }
+
+                        // 閫氳繃绯荤粺鍙傛暟鍒ゆ柇鏄惁闇�瑕佽嚜鍔ㄥ鏍�
+                        if(oSystemParameter.omodel.QC_TakeSampleCheckBill_AutoCheck == "Y")
+                        {
+                            bResult = oBill.CheckBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
+                        }
+
                     }
+
                 }
                 else if (refSav == "Update")
                 {
diff --git a/WebAPI/Utility/ModOperateAttribute.cs b/WebAPI/Utility/PermissionAttribute.cs
similarity index 100%
rename from WebAPI/Utility/ModOperateAttribute.cs
rename to WebAPI/Utility/PermissionAttribute.cs
diff --git a/WebAPI/WebAPI.csproj b/WebAPI/WebAPI.csproj
index 2a01afc..d8df164 100644
--- a/WebAPI/WebAPI.csproj
+++ b/WebAPI/WebAPI.csproj
@@ -1250,7 +1250,7 @@
       <DependentUpon>Barcode.ashx</DependentUpon>
     </Compile>
     <Compile Include="Utility\JWTHelper.cs" />
-    <Compile Include="Utility\ModOperateAttribute.cs" />
+    <Compile Include="Utility\PermissionAttribute.cs" />
     <Compile Include="Utility\ServerTools.cs" />
     <Compile Include="Service\TokenAppendHandler.cs" />
     <Compile Include="Utility\Util.cs" />
diff --git a/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll b/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll
index e79d90f..4c02304 100644
--- a/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll
+++ b/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll
Binary files differ
diff --git a/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb b/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb
index ac48823..b3ddb57 100644
--- a/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb
+++ b/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache b/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache
index 35e5324..d77c332 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache
+++ b/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt b/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt
index 70c98f4..9ce07b3 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt
+++ b/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt
@@ -10,3 +10,9 @@
 C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.CoreCompileInputs.cache
 C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.dll
 C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.pdb
+D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\bin\Debug\TopSdk.dll
+D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\bin\Debug\TopSdk.pdb
+D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.AssemblyReference.cache
+D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.CoreCompileInputs.cache
+D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.dll
+D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.pdb
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll b/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll
index e79d90f..4c02304 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll
+++ b/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb b/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb
index ac48823..b3ddb57 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb
+++ b/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb
Binary files differ

--
Gitblit v1.9.1