{
    "type": "Ext.container.Viewport",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "border": false,
        "designer|userClassName": "MyViewport1",
        "designer|userAlias": "principal",
        "layout": "border"
    },
    "designerId": "6c83f33a-03c6-455e-90f5-fc3773a6309b",
    "cn": [
        {
            "type": "Ext.form.Panel",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "layout|region": "north",
                "height": 59,
                "hidden": true,
                "layout": "auto",
                "title": null
            },
            "designerId": "84c3d476-abda-4ebf-9fed-c9dcebb60e3e",
            "cn": [
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "hidden": true,
                        "style": [
                            "{background: '#FFFFFF'}"
                        ]
                    },
                    "designerId": "12e0f26d-b218-4aca-98ba-236e95270e46",
                    "cn": [
                        {
                            "type": "Ext.Img",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "height": 55,
                                "hidden": true,
                                "margin": null,
                                "width": 201,
                                "src": "img/logotipo1.jpg"
                            },
                            "designerId": "82a3a4ed-bce6-4f8e-968c-70d30eeb560d"
                        },
                        {
                            "type": "Ext.form.Label",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "height": null,
                                "hidden": true,
                                "html": "<font color=\"black\" ><H3>::..SISTEMAS DE INSCRIPCION</H3></font>",
                                "margin": null,
                                "width": 244,
                                "text": null
                            },
                            "designerId": "dfb6affe-6ac0-4b93-9133-04a181bc0366"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Ext.toolbar.Toolbar",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "layout|flex": null,
                "layout|region": "north",
                "height": 26
            },
            "designerId": "362bd9b9-3501-4536-a9a8-6ae61b66dbb6",
            "cn": [
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "width": 115,
                        "icon": "img/root.gif",
                        "text": "Operaciones"
                    },
                    "designerId": "ace60f12-c54b-475c-b1d6-914c99bfef0d",
                    "cn": [
                        {
                            "type": "Ext.menu.Menu",
                            "reference": {
                                "name": "menu",
                                "type": "object"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "width": 140
                            },
                            "designerId": "95393400-70c1-4981-84a3-7f8d61487b13",
                            "cn": [
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "action": "personal",
                                        "id": "personal",
                                        "itemId": "personal",
                                        "icon": "img/Rh.png",
                                        "text": "Personal"
                                    },
                                    "designerId": "b202e343-13f0-4262-be4c-8aa5dfb099f2",
                                    "customConfigs": [
                                        {
                                            "group": "(Custom Properties)",
                                            "name": "action",
                                            "type": "string"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "action": "institucion",
                                        "id": "institucion",
                                        "itemId": "institucion",
                                        "icon": "img/Ins.png",
                                        "text": "Institución"
                                    },
                                    "designerId": "5da01d42-6216-4648-9244-8f797a02b8ab",
                                    "customConfigs": [
                                        {
                                            "group": "(Custom Properties)",
                                            "name": "action",
                                            "type": "string"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "action": "verdos",
                                        "id": "verdos",
                                        "itemId": "verdos",
                                        "width": 250,
                                        "icon": "img/adelante.png",
                                        "text": "Personal - Institución"
                                    },
                                    "designerId": "e7f47d30-0300-4eda-9dcf-26dab5e4514c",
                                    "customConfigs": [
                                        {
                                            "group": "(Custom Properties)",
                                            "name": "action",
                                            "type": "string"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "action": "importar",
                                        "id": "importar",
                                        "itemId": "importar",
                                        "width": 250,
                                        "icon": "img/ark2.png",
                                        "text": "Importar Asistencia"
                                    },
                                    "designerId": "2e079c3d-f57d-40e0-a67e-57b91018db42",
                                    "customConfigs": [
                                        {
                                            "group": "(Custom Properties)",
                                            "name": "action",
                                            "type": "string"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "action": "asistencia",
                                        "id": "asistencia",
                                        "itemId": "asistencia",
                                        "width": 250,
                                        "icon": "img/edit.png",
                                        "text": "Registrar Asistencia"
                                    },
                                    "designerId": "7469015c-db16-42d5-9e09-37ad32f4e053",
                                    "customConfigs": [
                                        {
                                            "group": "(Custom Properties)",
                                            "name": "action",
                                            "type": "string"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "icon": "img/printer.png",
                        "text": "Reportes"
                    },
                    "designerId": "4100ed43-6e15-4299-a280-5d81a6796a5d",
                    "cn": [
                        {
                            "type": "Ext.menu.Menu",
                            "reference": {
                                "name": "menu",
                                "type": "object"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "width": 120
                            },
                            "designerId": "f98c9286-f297-4be6-a25c-2267c40992f9",
                            "cn": [
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "2a183cdf-df4d-4a40-8303-629e5bcc43a5"
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "3522c30a-0138-4edb-90e0-f3a0ebf807a0"
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "371ded6b-a0f7-49db-8059-d8330ad7ee35"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "icon": "img/configure.gif",
                        "text": "Mantenimiento"
                    },
                    "designerId": "a77a4b1a-c74f-43b5-9ae7-a566d32aab80",
                    "cn": [
                        {
                            "type": "Ext.menu.Menu",
                            "reference": {
                                "name": "menu",
                                "type": "object"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "width": 120
                            },
                            "designerId": "35a487b3-5532-4f36-a608-934709daff22",
                            "cn": [
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "2028b45b-cb50-4c28-ade9-3cbed2dc25a2"
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "66a08de8-5508-4593-818a-4a9cdd17fa2f"
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "4dc2fdb5-d06f-40dc-9b3c-f1f6e5183f7c"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "icon": "img/icon_padlock.png",
                        "text": "Seguridad"
                    },
                    "designerId": "6b2c67b4-a9df-4d07-9ef9-fd8428c468d0",
                    "cn": [
                        {
                            "type": "Ext.menu.Menu",
                            "reference": {
                                "name": "menu",
                                "type": "object"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "width": 120
                            },
                            "designerId": "4f8086c7-c8d9-446f-9b06-a9c76dfec557",
                            "cn": [
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "ef2a3093-ac8d-4108-b4ed-40f1c1764305"
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "25c499ee-6693-4c16-9771-fcdd7e121553"
                                },
                                {
                                    "type": "Ext.menu.Item",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "text": "Menu Item"
                                    },
                                    "designerId": "9545e362-6b18-4eef-b8af-4be4c4646188"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "action": "CerrarApp",
                        "layout|flex": null,
                        "designer|displayName": null,
                        "icon": "img/exit.png",
                        "text": "Cerrar Sesión"
                    },
                    "designerId": "c91ff6d9-51de-4376-a2af-a53f527ed01d",
                    "customConfigs": [
                        {
                            "group": "(Custom Properties)",
                            "name": "action",
                            "type": "string"
                        }
                    ],
                    "cn": [
                        {
                            "type": "basicfunction",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "handler",
                                "implHandler": [
                                    "window.location.href = \"app.html\";"
                                ]
                            },
                            "designerId": "b8a91a55-44ab-4ace-914f-6655bb4eda12"
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Fill",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null
                    },
                    "designerId": "4317991a-181b-40ec-a9b7-fdd76640c7a5"
                },
                {
                    "type": "Ext.toolbar.TextItem",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "itemId": "infoUsuario",
                        "text": null
                    },
                    "designerId": "0a856c4f-98c8-4bbb-b6f4-467c1ff5b28c"
                }
            ]
        },
        {
            "type": "Ext.Img",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "layout|region": "center",
                "src": "img/desktop.jpg"
            },
            "designerId": "9e3ebed9-997e-4ca1-98d4-04728175f331"
        },
        {
            "type": "basiceventbinding",
            "reference": {
                "name": "listeners",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "fn": "onViewportAfterRender",
                "implHandler": [
                    "var me = this;\r",
                    "var rol = MyApp.rolUsuario;\r",
                    "if (rol === 'operador') {\r",
                    "    \r",
                    "    me.down('#personal').hide();\r",
                    "    me.down('#institucion').hide();\r",
                    "    //me.down('#verdos').hide();\r",
                    "    //me.down('#importar').hide();\r",
                    "    \r",
                    "    me.down('button[text=Reportes]').hide();\r",
                    "    me.down('button[text=Mantenimiento]').hide();\r",
                    "    me.down('button[text=Seguridad]').hide();\r",
                    "}\r",
                    "\r",
                    ""
                ],
                "name": "afterrender",
                "scope": "me"
            },
            "designerId": "eed31a56-37e0-4498-a38d-860d5e88243b"
        }
    ]
}