-- Voice communication screen (شاشة موظف الاتصالات, legacy AqabaTCS entity GN_COMMUNICATION). Primary (NAFITHTCS) schema. Safe to re-run; not run by the app. -- Legacy STATUS_ACTION_MATRIX: SEARCH / VIEW and ADD_PERMIT_GN_BLACKLIST are GTO and SU, REPORT is SU only (SU needs no rows). -- grains.communication the screen -- grains.communication.blacklist stop the postponement of the permits that did not answer -- grains.communication.report Excel (SU only: no rows) INSERT INTO GRAINS_SCREEN_PERMISSIONS (ROLECODE, RESOURCE_KEY) SELECT v.rolecode, v.resource_key FROM (SELECT 'GTO' AS rolecode, 'grains.communication' AS resource_key FROM dual UNION ALL SELECT 'GTO', 'grains.communication.blacklist' FROM dual) v WHERE NOT EXISTS (SELECT 1 FROM GRAINS_SCREEN_PERMISSIONS p WHERE p.ROLECODE = v.rolecode AND p.RESOURCE_KEY = v.resource_key); COMMIT;