Rss & SiteMap

昂捷论坛 http://www.enjoyit.com.cn

中国零售业界精英论坛!
共2 条记录, 每页显示 15 条, 页签: [1]
[浏览完整版]

标题:报表中取得当前用户下属信息

1楼
liuya0428 发表于:2011/3/24 10:32:50
SELECT * FROM tb_hr_user thu WHERE thu.c_no IN (SELECT c_userno FROM tb_user_post WHERE ( c_post_guid IN (/*下属信息*/ SELECT c_guid FROM tb_post WHERE c_x_higher_post IN (SELECT c_post_guid FROM tb_user_post tup WHERE c_userno = '"+Parameters!用户编号_.Value+"') OR c_y_higher_post IN (SELECT c_post_guid FROM tb_user_post tup WHERE c_userno = '"+Parameters!用户编号_.Value+"') OR c_next_higher_post IN (SELECT c_post_guid FROM tb_user_post tup WHERE c_userno = '"+Parameters!用户编号_.Value+"')) OR c_userno = '"+Parameters!用户编号_.Value+"' /*看到自己的信息*/ ))
2楼
liuya0428 发表于:2011/3/24 10:35:05
可以限制报表中,当前用户所看到的下属人员相关的信息。
共2 条记录, 每页显示 15 条, 页签: [1]

Copyright © 2006-2010 EnjoyIT.com.cn
网友言论或观点与昂捷公司无关!涉及版权/著作权问题请与发帖者直接联系
Powered By Dvbbs Version 8.2.0
Processed in 0.15625 s, 2 queries.