database/model/triggers/AD_WINDOW_TRG.xml
changeset 735 daced7e311c9
parent 367 b3c089243e73
child 737 935386ff0f30
equal deleted inserted replaced
734:df05d2345ead 735:daced7e311c9
    66       CreatedBy, Updated, UpdatedBy,
    66       CreatedBy, Updated, UpdatedBy,
    67       IsReadWrite
    67       IsReadWrite
    68     )
    68     )
    69   SELECT DISTINCT :new.AD_Window_ID,
    69   SELECT DISTINCT :new.AD_Window_ID,
    70     r.AD_Role_ID, r.AD_CLIENT_ID, r.AD_ORG_ID,
    70     r.AD_Role_ID, r.AD_CLIENT_ID, r.AD_ORG_ID,
    71      'Y', SysDate, 0,
    71      'Y', now(), 0,
    72     SysDate, 0,  'Y'
    72     now(), 0,  'Y'
    73   FROM AD_Role r
    73   FROM AD_Role r
    74    WHERE isManual='N';
    74    WHERE isManual='N';
    75  END IF;
    75  END IF;
    76  -- Inserting
    76  -- Inserting
    77  -- AD_Window update trigger
    77  -- AD_Window update trigger
   101     END IF;
   101     END IF;
   102     
   102     
   103     -- Translation
   103     -- Translation
   104     UPDATE AD_Window_Trl
   104     UPDATE AD_Window_Trl
   105       SET IsTranslated='N',
   105       SET IsTranslated='N',
   106       Updated=SysDate
   106       Updated=now()
   107     WHERE AD_Window_ID=:new.AD_Window_ID;
   107     WHERE AD_Window_ID=:new.AD_Window_ID;
   108   END IF;
   108   END IF;
   109  END IF;
   109  END IF;
   110 -- Updating
   110 -- Updating
   111 END AD_Window_Trg
   111 END AD_WINDOW_TRG
   112 
       
   113 
       
   114 
       
   115 
       
   116 ]]></body>
   112 ]]></body>
   117     </trigger>
   113     </trigger>
   118   </database>
   114   </database>