Zmiany pomiędzy wersją 16 and wersją 17 dla UserGuide/AdvancedConfiguration/DefiningReports/ReportParams
- Data i czas:
- 03/31/15 22:44:42 (10 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
UserGuide/AdvancedConfiguration/DefiningReports/ReportParams
v16 v17 242 242 GRUPY PRODUKTÓW 243 243 {{{ 244 SELECT pgr_id, name__ FROM product_groups WHERE is_act IS TRUE AND is_del IS FALSE AND pgr_id NOT IN (SELECT prn_id FROM product_groups) ORDER BY prn_id, name__ 244 SELECT pgr_id, name__ FROM product_groups 245 WHERE is_act IS TRUE AND is_del IS FALSE AND pgr_id NOT IN (SELECT prn_id FROM product_groups) ORDER BY prn_id, name__ 245 246 }}} 246 247 … … 303 304 LEFT JOIN orgtree_view ov ON ov.usr_id = u.usr_id 304 305 WHERE featid = 91 305 AND (CASE WHEN (SELECT count(*) > 0 FROM users_link_group WHERE grp_id = 29 AND usr_id = {LOGGED_USR_ID}) THEN 1 = 1 ELSE chkUsrOrgAcc({LOGGED_USR_ID}, ov.orunid) IS TRUE END) 306 AND (CASE WHEN (SELECT count(*) > 0 FROM users_link_group 307 WHERE grp_id = 29 AND usr_id = {LOGGED_USR_ID}) THEN 1 = 1 308 ELSE chkUsrOrgAcc({LOGGED_USR_ID}, ov.orunid) IS TRUE END) 306 309 ORDER BY ftopnm 307 310 … … 322 325 -- Format zapytania do zwrócenia drzewka 323 326 -- Może być wykonane na dowolnej strukturze danych, ważne by zwracało elementy: KLUCZ, RODZIC, NAZWA, TYP. 324 SELECT c.strcid AS keyval, c.prn_id, c.strnam AS name__, CASE WHEN (SELECT count(*) FROM cregisters.creg_structure_elements c2 WHERE c2.prn_id = c.strcid) > 0 THEN 'FOLDER' ELSE 'ITEM' END AS icon__ FROM cregisters.creg_structure_elements c WHERE c.is_del IS FALSE 327 SELECT c.strcid AS keyval, c.prn_id, c.strnam AS name__, 328 CASE WHEN (SELECT count(*) FROM cregisters.creg_structure_elements c2 329 WHERE c2.prn_id = c.strcid) > 0 THEN 'FOLDER' ELSE 'ITEM' END AS icon__ 330 FROM cregisters.creg_structure_elements c WHERE c.is_del IS FALSE