USP_DATALIST_CYCLE
Shows all of the cycles within the system.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@INCLUDEINACTIVE | bit | IN | Include inactive |
Definition
Copy
CREATE procedure dbo.USP_DATALIST_CYCLE
(
@INCLUDEINACTIVE bit = 0
)
as
set nocount on
select CYCLE.ID,
CYCLE.NAME,
(SELECT DBO.UFN_CYCLEDAY_GETDAYS(CYCLE.ID)) DAYS,
ISACTIVE
from dbo.CYCLE
where
(
(@INCLUDEINACTIVE = 1)
or
(ISACTIVE = 1)
)