From 374ce4ffd0c459bb4067e8d5765f972668aff9b1 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期四, 02 三月 2023 14:56:23 +0800
Subject: [PATCH] 变更oracle访问组件

---
 web/web/GwDm.ashx |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/web/web/GwDm.ashx b/web/web/GwDm.ashx
index 34a75f3..674a588 100644
--- a/web/web/GwDm.ashx
+++ b/web/web/GwDm.ashx
@@ -8,10 +8,16 @@
 
 public class GwDm : PageHandler<SysUser>
 {
+    private int _userId = -1;
+    private string _userType = "";
+    private string _account = "";
 
     public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context)
     {
         string action = context.GetString("action");
+        _userId = context.SessionObject.UserID;
+        _userType = context.SessionObject.UserType;
+        _account = context.SessionObject.Account;
 
         switch (action)
         {
@@ -35,8 +41,11 @@
         int recordCount = 0;
         int pageSize = context.GetInt("pageSize", 20);
         int pageIndex = context.GetInt("pageIndex", 1);
+            
+            //鏍规嵁绯荤粺鐢ㄦ埛鑾峰彇鏈夋潈闄愬鎴疯处鍙�
+        string permissionsSQL = new GwClientDao().GetSpPermissions(_userId, _userType, null);
 
-        List<Model.GwDm> list = dao.LoadInfoList(SelectedApID, SelectedOpID, SelectedSpID, SelectedDestnationID, SelectedDate, out recordCount, pageSize, pageIndex);
+        List<Model.GwDm> list = dao.LoadInfoList(SelectedApID, SelectedOpID, SelectedSpID, SelectedDestnationID, SelectedDate, permissionsSQL, out recordCount, pageSize, pageIndex);
 
         string str = "";
         if (list != null && list.Count > 0)

--
Gitblit v1.9.1