以文本方式查看主題 - 昂捷論壇 (http://www.26035.net/bbs/index.asp) -- □-系統(tǒng)配置管理類(lèi) (http://www.26035.net/bbs/list.asp?boardid=34) ---- 報(bào)表中取得當(dāng)前用戶下屬信息 (http://www.26035.net/bbs/dispbbs.asp?boardid=34&id=7940) |
-- 作者:liuya0428 -- 發(fā)布時(shí)間:2011/3/24 10:32:50 -- 報(bào)表中取得當(dāng)前用戶下屬信息 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!用戶編號(hào)_.Value+"\') OR c_y_higher_post IN (SELECT c_post_guid FROM tb_user_post tup WHERE c_userno = \'"+Parameters!用戶編號(hào)_.Value+"\') OR c_next_higher_post IN (SELECT c_post_guid FROM tb_user_post tup WHERE c_userno = \'"+Parameters!用戶編號(hào)_.Value+"\')) OR c_userno = \'"+Parameters!用戶編號(hào)_.Value+"\' /*看到自己的信息*/ )) |
-- 作者:liuya0428 -- 發(fā)布時(shí)間:2011/3/24 10:35:05 -- 可以限制報(bào)表中,當(dāng)前用戶所看到的下屬人員相關(guān)的信息。 |