以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [讨论]隐藏后为什么开发者会看不到  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=91315)

--  作者:hyr88
--  发布时间:2016/10/7 20:58:00
--  [讨论]隐藏后为什么开发者会看不到
If UserName <> "开发者" AndAlso User.name <> "管理员" then
DataTables("rs").LoadFilter = "status <> \'离职\'"
DataTables("rs").Load
end if

这个目的是想“开发者”和“管理员”登陆都能看到全部的人员信息。
但是实际是“开发者”登陆会看不到离职的信息,“管理员”登陆所有信息都能看到。
有写错吗?
请指教,谢谢!

--  作者:有点蓝
--  发布时间:2016/10/8 9:11:00
--  
If User.Type = UserTypeEnum.User then
DataTables("rs").LoadFilter = "status <> \'离职\'"
DataTables("rs").Load
end if