Zmiany pomiędzy wersją 16 and wersją 17 dla UserGuide/AdvancedConfiguration/DefiningReports/ReportParams

Pokaż
Ignoruj:
Data i czas:
03/31/15 22:44:42 (10 years temu)
Autor:
JP (IP: 79.188.124.105)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • UserGuide/AdvancedConfiguration/DefiningReports/ReportParams

    v16 v17  
    242242GRUPY PRODUKTÓW 
    243243{{{ 
    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__ 
     244SELECT pgr_id, name__ FROM product_groups  
     245WHERE 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__ 
    245246}}} 
    246247 
     
    303304LEFT JOIN orgtree_view ov ON ov.usr_id = u.usr_id 
    304305WHERE 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) 
     306AND (CASE WHEN (SELECT count(*) > 0 FROM users_link_group  
     307WHERE grp_id = 29 AND usr_id = {LOGGED_USR_ID}) THEN 1 = 1  
     308ELSE chkUsrOrgAcc({LOGGED_USR_ID}, ov.orunid) IS TRUE END) 
    306309ORDER BY ftopnm 
    307310 
     
    322325-- Format zapytania do zwrócenia drzewka 
    323326-- 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 
     327SELECT c.strcid AS keyval, c.prn_id, c.strnam AS name__,  
     328CASE WHEN (SELECT count(*) FROM cregisters.creg_structure_elements c2  
     329WHERE c2.prn_id = c.strcid) > 0 THEN 'FOLDER' ELSE 'ITEM' END AS icon__  
     330FROM cregisters.creg_structure_elements c WHERE c.is_del IS FALSE