Zmiany pomiędzy wersją 11 and wersją 12 dla UserGuide/AdvancedConfiguration/DefiningReports/ReportParams
- Data i czas:
- 08/14/14 21:49:37 (10 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
UserGuide/AdvancedConfiguration/DefiningReports/ReportParams
v11 v12 227 227 }}} 228 228 229 STATUSY230 {{{231 232 SELECT tpstid, dscrpt FROM types_of_processes_states WHERE clsnam = 'PROCESS' ORDER BY state_233 }}}234 235 229 KOMÓRKI ORGANIZACYJNE 236 230 {{{ 231 -- z ograniczeniem do tych do których user ma prawo 237 232 SELECT orunid, orunsm AS caption 238 233 FROM organization_units 239 234 WHERE is_del IS FALSE 240 235 AND ndetpe = 'ORGCELL' 241 AND chkUsrOrgAcc({LOGGED_USR_ID}, orunid) - ten filtr ogranicza do tych do których user ma prawo236 AND chkUsrOrgAcc({LOGGED_USR_ID}, orunid) 242 237 ORDER BY orunsm 238 239 -- Wybór komórek typu Komórka organizacyjna (same działy) 240 SELECT orunid, COALESCE(orunsm, '') || ' - ' || ndenam AS stanowisko 241 FROM orgtree_view 242 WHERE orunid > 0 AND ndetpe = 'ORGCELL' 243 AND orunsm IS NOT NULL AND is_del IS FALSE 243 244 }}} 244 245 … … 249 250 }}} 250 251 251 STATUS SPRAWY (lista statusów) 252 {{{ 252 STATUSY (lista) 253 {{{ 254 -- SPRAWY 253 255 Filtr = state_ in ({value}) 254 256 SELECT tpstid, dscrpt FROM types_of_processes_states WHERE clsnam LIKE 'PROCESS%' ORDER BY state_ 257 258 -- DOKUMENTY typu dctpid = 2 (Faktury) 259 SELECT tpstid, dscrpt FROM types_of_processes_states 260 WHERE clsnam = 'DOCUMENT|2' ORDER BY state_ 255 261 }}} 256 262 … … 264 270 forepa > COALESCE(NULLIF('{value}', '')::int,0) 265 271 }}} 272 273 {{{ 274 -- Osoby do których użytkownik ma prawo 275 SELECT ov.usr_id, ov.usrnam FROM orgtree_view ov where 276 chkUsrOrgAcc({LOGGED_USR_ID}, ov.orunid) IS TRUE 277 278 279 -- Wartości cechy osób do których uzytkownik ma prawo 280 SELECT ftopid, ftopnm 281 FROM 282 features_options 283 INNER JOIN features_options_def USING(fodfid) 284 LEFT JOIN users u ON u.initls = ftopnm 285 LEFT JOIN orgtree_view ov ON ov.usr_id = u.usr_id 286 WHERE featid = 91 287 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) 288 ORDER BY ftopnm 289 290 -- Wartości cechy tekstowej o featid 83 291 SELECT DISTINCT data__ AS value, data__ AS caption 292 FROM features_text_view 293 WHERE featid = 83 294 ORDER BY data__ 295 296