src-db/database/model/triggers/AD_FORM_TRG2.xml
changeset 2078 cf88ca44cdd2
parent 1605 8a0fe0193bef
child 2084 5081e251a384
equal deleted inserted replaced
2077:1a0d02e15999 2078:cf88ca44cdd2
    24 ************************************************************************/
    24 ************************************************************************/
    25   v_ID VARCHAR2(32) ;
    25   v_ID VARCHAR2(32) ;
    26   v_ID_MAP     VARCHAR2(32) ;
    26   v_ID_MAP     VARCHAR2(32) ;
    27   v_WindowName VARCHAR2(60):='ad_forms';
    27   v_WindowName VARCHAR2(60):='ad_forms';
    28   v_ClassName  VARCHAR2(60) ;
    28   v_ClassName  VARCHAR2(60) ;
       
    29     v_ADEnabledTriggers NUMBER;
    29 BEGIN
    30 BEGIN
       
    31     SELECT COUNT(*) INTO v_ADEnabledTriggers FROM AD_ENABLE_TRIGGERS WHERE ISENABLED='N';
       
    32     IF v_ADEnabledTriggers!=0 THEN RETURN;
       
    33     END IF;
       
    34 
       
    35 
    30   IF(UPDATING) THEN
    36   IF(UPDATING) THEN
    31     IF NOT(COALESCE(:old.NAME, '.') <> COALESCE(:NEW.NAME, '.')
    37     IF NOT(COALESCE(:old.NAME, '.') <> COALESCE(:NEW.NAME, '.')
    32    OR COALESCE(:old.IsActive, '.') <> COALESCE(:NEW.IsActive, '.')
    38    OR COALESCE(:old.IsActive, '.') <> COALESCE(:NEW.IsActive, '.')
    33    OR COALESCE(:old.CLASSNAME, '.') <> COALESCE(:NEW.CLASSNAME, '.'))
    39    OR COALESCE(:old.CLASSNAME, '.') <> COALESCE(:NEW.CLASSNAME, '.'))
    34   THEN
    40   THEN