src-db/database/model/triggers/AD_WINDOW_TRG.xml
changeset 1605 8a0fe0193bef
parent 785 8dba91261590
child 1615 f4373ee564cc
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
    38     THEN
    38     THEN
    39     --  Create Translation Row
    39     --  Create Translation Row
    40   INSERT
    40   INSERT
    41   INTO AD_Window_Trl
    41   INTO AD_Window_Trl
    42     (
    42     (
    43       AD_Window_ID, AD_Language, AD_Client_ID,
    43       AD_Window_Trl_ID, AD_Window_ID, AD_Language, AD_Client_ID,
    44       AD_Org_ID, IsActive, Created,
    44       AD_Org_ID, IsActive, Created,
    45       CreatedBy, Updated, UpdatedBy,
    45       CreatedBy, Updated, UpdatedBy,
    46       Name, Description, Help,
    46       Name, Description, Help,
    47       IsTranslated
    47       IsTranslated
    48     )
    48     )
    49   SELECT :new.AD_Window_ID,
    49   SELECT get_uuid(), :new.AD_Window_ID,
    50     AD_Language, :new.AD_Client_ID, :new.AD_Org_ID,
    50     AD_Language, :new.AD_Client_ID, :new.AD_Org_ID,
    51     :new.IsActive, :new.Created, :new.CreatedBy,
    51     :new.IsActive, :new.Created, :new.CreatedBy,
    52     :new.Updated, :new.UpdatedBy, :new.Name,
    52     :new.Updated, :new.UpdatedBy, :new.Name,
    53     :new.Description, :new.Help, 'N'
    53     :new.Description, :new.Help, 'N'
    54   FROM AD_Language
    54   FROM AD_Language
    63       CreatedBy, Updated, UpdatedBy,
    63       CreatedBy, Updated, UpdatedBy,
    64       IsReadWrite
    64       IsReadWrite
    65     )
    65     )
    66   SELECT DISTINCT :new.AD_Window_ID,
    66   SELECT DISTINCT :new.AD_Window_ID,
    67     r.AD_Role_ID, r.AD_CLIENT_ID, r.AD_ORG_ID,
    67     r.AD_Role_ID, r.AD_CLIENT_ID, r.AD_ORG_ID,
    68      'Y', now(), 0,
    68      'Y', now(), '0',
    69     now(), 0,  'Y'
    69     now(), '0',  'Y'
    70   FROM AD_Role r
    70   FROM AD_Role r
    71    WHERE isManual='N';
    71    WHERE isManual='N';
    72  END IF;
    72  END IF;
    73  -- Inserting
    73  -- Inserting
    74  -- AD_Window update trigger
    74  -- AD_Window update trigger