From 2c67df91fda91f2cc47c231231ca311e2b7f5d08 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期五, 19 四月 2024 13:31:26 +0800
Subject: [PATCH] 设备保养逾期预警报表;报工台根据 生产资源 + 用户 删除所绑定的生产资源

---
 PlanM/计划管理/Gy_RoutingBillList.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git "a/PlanM/\350\256\241\345\210\222\347\256\241\347\220\206/Gy_RoutingBillList.cs" "b/PlanM/\350\256\241\345\210\222\347\256\241\347\220\206/Gy_RoutingBillList.cs"
index 564de88..f9032a6 100644
--- "a/PlanM/\350\256\241\345\210\222\347\256\241\347\220\206/Gy_RoutingBillList.cs"
+++ "b/PlanM/\350\256\241\345\210\222\347\256\241\347\220\206/Gy_RoutingBillList.cs"
@@ -46,7 +46,7 @@
             //杩囨护鏉′欢
             if (frmCondition.SqlStr.Trim().Length == 0)
                 return;
-            sSql = frmCondition.SqlStr + sWhere + " order by 鍗曟嵁鍙� desc,hsubid ";
+            sSql = frmCondition.SqlStr + sWhere + " and HPRDORGID='"+DBUtility.ClsPub.HOrgID.ToString()+"' order by 鍗曟嵁鍙� desc,hsubid ";
             //
             DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);
             //鐢熸垚棣栬鏍囬
@@ -438,6 +438,11 @@
         private void sy_Click(object sender, EventArgs e)
         {
             long sOldInterID = 0;
+            //鍒ゆ柇鏉冮檺
+            if (!ClsPub.Security_Log(ModRightNameCheck, 1, true, DBUtility.ClsPub.CurUserName))
+            {
+                return;
+            }
             for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++)
             {
                 long HInterID = DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("HMainID")].Value);

--
Gitblit v1.9.1