Created
August 5, 2011 11:40
-
-
Save mgallego/1127362 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * TRATAR BOTON | |
| * | |
| * @PARAM item IN VARCHAR2 --Item a tratar | |
| * @PARAM accion IN VARCHAR2 --acción a realizar {ocultar | mostrar | habilitar | deshabilitar} | |
| * | |
| */ | |
| PROCEDURE TratarBoton(item IN VARCHAR2, accion IN VARCHAR2) | |
| IS | |
| BEGIN | |
| CASE Upper(accion) | |
| WHEN 'OCULTAR' THEN | |
| Set_Item_Property('item',VISIBLE,PROPERTY_FALSE); | |
| WHEN 'MOSTRAR' THEN | |
| Set_Item_Property('item',VISIBLE,PROPERTY_TRUE); | |
| TratarBoton(item, 'HABILITAR'); | |
| WHEN 'HABLITAR' THEN | |
| Set_Item_Property('item',ENABLED,PROPERTY_TRUE); | |
| TratarBoton(item, 'NAVIGABLE'); | |
| WHEN 'DESHABILITAR' THEN | |
| Set_Item_Property('item',ENABLED,PROPERTY_FALSE); | |
| WHEN 'NAVIGABLE' THEN | |
| Set_Item_Property('item',NAVIGABLE,PROPERTY_TRUE); | |
| END CASE; | |
| EXCEPTION | |
| WHEN OTHERS THEN | |
| Mensaje_Aviso('Ha ocurrido un error en: UTIL.TratarBoton'); | |
| END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment