SELECT
{FIELDS}
FROM DocConfirmationDefs A
LEFT JOIN SecurityRoles CR ON A.CreatorRole_ID = CR.ID
LEFT JOIN SecurityRoles CFR ON A.ConfirmatorRole_ID = CFR.ID
{JOIN}
{WHERE}
{ORDERBY}
| Alias | CLSID objektu | Prefix | Popis |
|---|---|---|---|
| A | 4FYOJXN5LMV4TIMCQPZOD42WN0 | Schvalovací scénáře | |
| CFR | QRDGQ1DV2CU4D3TOUMORZ0LWIW | ConfirmatorRole | Role schval. |
| CFU | 22AHIVDVAVE13C5S00CA141B44 | ConfirmatorUser | Schvalovatel |
| COR | 22AHIVDVAVE13C5S00CA141B44 | CorrectedBy | Opravil |
| CR | QRDGQ1DV2CU4D3TOUMORZ0LWIW | CreatorRole | Role tvůrce |
| CRE | 22AHIVDVAVE13C5S00CA141B44 | CreatedBy | Vytvořil |
| DQ | OFTMKVQH3ZD13ACL03KIU0CLP4 | DocQueue | Řada dokladů |
/* Omezeni za role s moznosti vsech podrizenych */
(
/* timhle omezime vsechny prime nadrizene */
(A.CreatorRole_ID in (select Bx.ID from SecurityRoles Bx where Bx.ID in ({:LIST})))
or
/* a jestli mame omezeit za podrizene tak to udelame takhle */
({WithChildren} = 1 AND
(A.CreatorRole_ID in
(select Bx.ID from SecurityRoles Bx where
Bx.ID in (select B2x.ID from Sys$SecurityRoles2 B2x where B2x.Superior_ID in ({:LIST}))
)
)
)
)
/* Omezeni za role s moznosti vsech podrizenych */
(
/* timhle omezime vsechny prime nadrizene */
(A.CreatorRole_ID = (select Bx.ID from SecurityRoles Bx where Bx.ID = {:VALUE}))
or
/* a jestli mame omezeit za podrizene tak to udelame takhle */
({WithChildren} = 1 AND
(A.CreatorRole_ID in
(select Bx.ID from SecurityRoles Bx where
Bx.ID in (select B2x.ID from Sys$SecurityRoles2 B2x where B2x.Superior_ID = {:VALUE})
)
)
)
)
A.CreatorRole_ID IS NULL
<<A.Condition>> LIKE {:VALUE} ESCAPE '~'
/* Omezeni za role s moznosti vsech podrizenych */
(
/* timhle omezime vsechny prime nadrizene */
(A.ConfirmatorRole_ID in (select Bx.ID from SecurityRoles Bx where Bx.ID in ({:LIST})))
or
/* a jestli mame omezeit za podrizene tak to udelame takhle */
({WithChildren} = 1 AND
(A.ConfirmatorRole_ID in
(select Bx.ID from SecurityRoles Bx where
Bx.ID in (select B2x.ID from Sys$SecurityRoles2 B2x where B2x.Superior_ID in ({:LIST}))
)
)
)
)
/* Omezeni za role s moznosti vsech podrizenych */
(
/* timhle omezime vsechny prime nadrizene */
(A.ConfirmatorRole_ID = (select Bx.ID from SecurityRoles Bx where Bx.ID = {:VALUE}))
or
/* a jestli mame omezeit za podrizene tak to udelame takhle */
({WithChildren} = 1 AND
(A.ConfirmatorRole_ID in
(select Bx.ID from SecurityRoles Bx where
Bx.ID in (select B2x.ID from Sys$SecurityRoles2 B2x where B2x.Superior_ID = {:VALUE})
)
)
)
)
A.ConfirmatorRole_ID IS NULL
A.ConfirmatorUser_ID = {:VALUE}
A.ConfirmatorUser_ID IN ({:LIST})
A.ConfirmatorUser_ID IS NULL
A.EvaluateConfirmator = {:VALUE}
<<A.ExpressionForEvalConfirmator>> LIKE {:VALUE} ESCAPE '~'
A.ConfirmatorOrder BETWEEN {:LOW} and {:HIGH}
A.DocType
DQ.Code Collate PXW_CSY {DIR},A.DocQueue_IDCR.Name Collate PXW_CSY {DIR}, A.CreatorRole_IDcast(A.Condition as varchar(200))
CFR.Name Collate PXW_CSY {DIR}, A.ConfirmatorRole_IDCFU.Name Collate PXW_CSY {DIR}, A.ConfirmatorUser_IDA.ConfirmatorOrder
CRE.Name Collate PXW_CSY {DIR}, A.CreatedBy_IDCOR.Name Collate PXW_CSY {DIR}, A.CorrectedBy_IDGenerated by ABRA Software a.s. 27.10.2021 16:35