From 941df81f243ea1f3b93929148adde8abe2ac3a55 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期二, 10 九月 2024 10:48:33 +0800
Subject: [PATCH] 按钮设置功能添加和收料采购通知查询模块

---
 WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs b/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs
index 86eb018..e7df88d 100644
--- a/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs
+++ b/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs
@@ -310,7 +310,19 @@
             try
             {
                 ds = oCN.RunProcReturn("select * from  Xt_ModuleButtonSet where HModuleName='" + HModName + "' and HBillType='" + HBillType + "' and HUserName='" + HUserName + "'", "Xt_ModuleButtonSet");
+                if (ds.Tables[0].Rows.Count == 0)
+                {
+                    ds = oCN.RunProcReturn("select * from  Xt_ModuleButtonSet where HModuleName='" + HModName + "' and HBillType='" + HBillType + "' and HUserName='" + "admin" + "'", "Xt_ModuleButtonSet");
 
+                    if (ds.Tables[0].Rows.Count != 0)
+                    {
+                        objJsonResult.code = "1";
+                        objJsonResult.count = ds.Tables[0].Rows.Count;
+                        objJsonResult.Message = "Sucess锛�";
+                        objJsonResult.data = ds.Tables[0];
+                        return objJsonResult;
+                    }
+                }
                 objJsonResult.code = "1";
                 objJsonResult.count = ds.Tables[0].Rows.Count;
                 objJsonResult.Message = "Sucess锛�";

--
Gitblit v1.9.1