TCF-Framework-Integration/db/UDO_P_EQCONFIG_DATASET_MAKE.prc

27 lines
1.4 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create or replace procedure UDO_P_EQCONFIG_DATASET_MAKE
/* Формирование сведений о наработках единицы оборудования для прогноза */
(
NEQCONFIG in number, -- Рег. номер единицы оборудования
DBEG in date, -- Дата "С"
DEND in date, -- Дата "По"
NDATASET_IDENT out number, -- Идентификатор буфера данных
NDATASET_CONFIG_IDENT out number -- Идентификатор буфера описания данных
)
is
begin
for C in (select T.COMPANY,
T.RN
from EQCONFIG T
where T.RN = NEQCONFIG)
loop
UDO_PKG_EQUIPDS_DATAPROCESS.DATASET_CONF_SET(NCOMPANY => C.COMPANY,
NEQCONFIG => C.RN,
DBEG => DBEG,
DEND => DEND,
NLENGTH_GB => 1,
NDATASET_IDENT => NDATASET_IDENT,
NDATASET_CONFIG_IDENT => NDATASET_CONFIG_IDENT);
end loop;
end UDO_P_EQCONFIG_DATASET_MAKE;
/