{
    "type": "Ext.window.Window",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "autoShow": true,
        "height": 567,
        "width": 470,
        "designer|userClassName": "cuentas",
        "designer|userAlias": "cuentas",
        "layout": "border",
        "closable": false,
        "title": "CUENTAS [Nuevo Registro]",
        "titleAlign": "center",
        "modal": true
    },
    "designerId": "f81dd261-08d2-4022-a9de-23e28cef2b14",
    "cn": [
        {
            "type": "Ext.form.Panel",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "layout|region": "north",
                "height": 544,
                "layout": "border",
                "bodyPadding": 10,
                "title": ""
            },
            "designerId": "89a92d13-ef01-43b6-bafa-bbf83c5f29fc",
            "cn": [
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|margins": "",
                        "dock": "top",
                        "margin": "0 0 0 0"
                    },
                    "designerId": "4ca6c954-2bca-446d-8303-dde98585585b",
                    "cn": [
                        {
                            "type": "Ext.form.Label",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "height": 18,
                                "width": 217,
                                "text": "INSTITUCION EDUCATIVA"
                            },
                            "designerId": "9ed08993-4e95-41a9-86e5-51d9827b0e71"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "dock": "top",
                        "id": "nombre_ie9",
                        "margin": "5 0 0 5",
                        "fieldLabel": "Nombre I.E.",
                        "labelWidth": 110,
                        "name": "nombre_ie",
                        "readOnly": true
                    },
                    "designerId": "74296a5d-cd56-4023-8d6b-a7a09a6783a4"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "dock": "top",
                        "hidden": true,
                        "id": "id_ie9",
                        "margin": "5 0 0 5",
                        "fieldLabel": "id I.E.",
                        "labelWidth": 110,
                        "name": "id_ie",
                        "readOnly": true
                    },
                    "designerId": "c10120e0-bb18-4639-b93e-eadd55576954"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": null,
                        "dock": "top",
                        "hidden": true,
                        "id": "codigo_nivel9",
                        "margin": "5 0 0 5",
                        "fieldLabel": "id Nivel",
                        "labelWidth": 110,
                        "name": "codigo_nivel",
                        "readOnly": true
                    },
                    "designerId": "080307da-279d-46c6-8bac-bcec3a1a6d1b"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "nombre_nivel9",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Nivel",
                        "labelWidth": 110,
                        "name": "nombre_nivel",
                        "readOnly": true
                    },
                    "designerId": "e4b7e30c-98f8-4172-a9b9-5702ecb1a0fd"
                },
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|margins": "",
                        "dock": "top",
                        "margin": "15 0 0 0"
                    },
                    "designerId": "2d8705a5-150d-4d14-b300-16176ba60d63",
                    "cn": [
                        {
                            "type": "Ext.form.Label",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "height": 19,
                                "width": 174,
                                "text": "DATOS PERSONALES"
                            },
                            "designerId": "ac989697-a250-4cf3-92fc-b3f1d97df625"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "indiv_dni9",
                        "margin": "5 0 0 5",
                        "fieldLabel": "D.N.I.",
                        "labelWidth": 110,
                        "name": "indiv_dni",
                        "readOnly": true
                    },
                    "designerId": "b1e8f695-bfb4-4612-af7f-cbf1745cb3f8"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "hidden": true,
                        "id": "indiv_id9",
                        "margin": "5 0 0 5",
                        "fieldLabel": "Id",
                        "labelWidth": 110,
                        "name": "indiv_id",
                        "readOnly": true
                    },
                    "designerId": "22039297-0d92-45a5-ac80-d550dd911317"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "indiv_appaterno9",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Ap. Paterno",
                        "labelWidth": 110,
                        "name": "indiv_appaterno",
                        "readOnly": true
                    },
                    "designerId": "66adce8b-729f-4691-85a7-f42f5dca645b"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "indiv_apmaterno9",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Ap. Materno",
                        "labelWidth": 110,
                        "name": "indiv_apmaterno",
                        "readOnly": true
                    },
                    "designerId": "822b63d5-6de4-445b-9970-b5ad4341aab1"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "indiv_nombres9",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Nombres",
                        "labelWidth": 110,
                        "name": "indiv_nombres",
                        "readOnly": true
                    },
                    "designerId": "e5472235-4391-4d7c-a193-9ff6842c6f3c"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "personal_cargo_id9",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Cargo",
                        "labelWidth": 110,
                        "name": "personal_cargo_nombre",
                        "readOnly": true
                    },
                    "designerId": "1efa846a-b2c4-4743-bba6-bf30995aa236"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "hidden": true,
                        "id": "cargo_id9",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Cargo",
                        "labelWidth": 110,
                        "name": "personal_cargo_id",
                        "readOnly": true
                    },
                    "designerId": "18bc428b-c37c-485c-92dc-5b95ae076bdd"
                },
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|margins": "",
                        "dock": "top",
                        "margin": "15 0 0 0"
                    },
                    "designerId": "9349bced-2b3c-4b8d-866d-636cd6ec6018",
                    "cn": [
                        {
                            "type": "Ext.form.Label",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "height": 19,
                                "width": 244,
                                "text": "DATOS DE LA CUENTA"
                            },
                            "designerId": "9c855a25-7b43-471c-bd51-1155ba942640"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "logn1",
                        "margin": "10 0 0 5",
                        "fieldLabel": "Nombre Usuario<span style=\"color:red\">*</span>",
                        "labelWidth": 110,
                        "name": "logn",
                        "enableKeyEvents": true
                    },
                    "designerId": "3c402250-c3f1-4c13-8b04-1fd892e7ac0c",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onLogn1Keypress",
                                "implHandler": [
                                    "if(e.getKey()==13){\r",
                                    "    Ext.getCmp('password1').focus(100,true);\r",
                                    "}\r",
                                    ""
                                ],
                                "name": "keypress",
                                "scope": "me"
                            },
                            "designerId": "40560f3b-d9a2-41b8-bcff-dfef77f05cdd"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "autoRender": false,
                        "cls": "txt-rounded",
                        "id": "password1",
                        "itemId": null,
                        "margin": "2 0 0 5",
                        "fieldLabel": "Contraseña<span style=\"color:red\">*</span>",
                        "labelWidth": 110,
                        "name": "password1",
                        "inputType": "password",
                        "allowBlank": false,
                        "blankText": "Ingrese Password",
                        "enableKeyEvents": true,
                        "enforceMaxLength": true,
                        "vtype": null
                    },
                    "designerId": "8aabcfae-dfb3-414e-9948-583c0278e305",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onPassword1Keypress",
                                "implHandler": [
                                    "if(e.getKey()==13){\r",
                                    "    Ext.getCmp('confirmpassword1').focus(100,true);\r",
                                    "}\r",
                                    ""
                                ],
                                "name": "keypress",
                                "scope": "me"
                            },
                            "designerId": "0794fd1f-e3bb-4400-9483-ee40ce04c9f9"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "formBind": false,
                        "cls": "txt-rounded",
                        "id": "confirmpassword1",
                        "itemId": "confirmpassword1",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Contraseña (Confirmar)<span style=\"color:red\">*</span>",
                        "labelWidth": 110,
                        "msgTarget": "side",
                        "name": "confirmpassword1",
                        "inputType": "password",
                        "allowBlank": false,
                        "blankText": "Confirmar Password",
                        "enableKeyEvents": true,
                        "vtype": "password"
                    },
                    "designerId": "cf97d293-aeab-4c41-b0c1-ebca55050da4",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onConfirmpassword1Render",
                                "implHandler": [
                                    "Ext.apply(Ext.form.field.VTypes, {\r",
                                    "    vtype: 'password', \r",
                                    "    password: function(val, field){\r",
                                    "        var firstPasswordValue = field.up('form').\r",
                                    "        down('[name=password1]').\r",
                                    "        getValue();\r",
                                    "        return val ===firstPasswordValue;\r",
                                    "    }, \r",
                                    "    passwordText: 'Error Clave diferente...' \r",
                                    "\r",
                                    "});"
                                ],
                                "name": "render",
                                "scope": "me"
                            },
                            "designerId": "5d234fad-e2e2-435b-838a-5ef2d9d3598c"
                        },
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onConfirmpassword1Keypress",
                                "implHandler": [
                                    "if(e.getKey()==13){\r",
                                    "    Ext.getCmp('cuenta_id').focus(100,true);\r",
                                    "}"
                                ],
                                "name": "keypress",
                                "scope": "me"
                            },
                            "designerId": "f344090c-e012-4183-825a-53b934c23421"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.ComboBox",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "autoRender": false,
                        "id": "cuenta_id",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Tipo Usuario<span style=\"color:red\">*</span>",
                        "labelWidth": 110,
                        "name": "cuenta_nombre",
                        "enableKeyEvents": true,
                        "selectOnFocus": true,
                        "editable": false,
                        "displayField": "cuenta_nombre",
                        "store": "cuenta",
                        "typeAhead": true,
                        "valueField": "cuenta_id"
                    },
                    "designerId": "aaf41447-85e4-4139-a20d-f4a2f2ca8f4a",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onCuenta_idKeypress",
                                "implHandler": [
                                    "if(e.getKey()==13){\r",
                                    "    Ext.getCmp('vigencia').focus(100,true);\r",
                                    "}\r",
                                    ""
                                ],
                                "name": "keypress",
                                "scope": "me"
                            },
                            "designerId": "7d2ce548-e264-4edf-963d-d90d8e289829"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.Date",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "vigencia",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Vigente hasta<span style=\"color:red\">*</span>",
                        "labelWidth": 110,
                        "enableKeyEvents": true,
                        "format": "d/m/Y"
                    },
                    "designerId": "7e092227-5664-486d-8dfb-f123aaf567d0",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onVigenciaKeypress",
                                "implHandler": [
                                    "if(e.getKey()==13){\r",
                                    "    Ext.getCmp('estado_id').focus(100,true);\r",
                                    "}\r",
                                    ""
                                ],
                                "name": "keypress",
                                "scope": "me"
                            },
                            "designerId": "26f5f677-bd77-48fa-a666-ac8f481d2600"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.ComboBox",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "autoRender": false,
                        "id": "estado_id",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Estado<span style=\"color:red\">*</span>",
                        "labelWidth": 110,
                        "name": "estado_nombre",
                        "enableKeyEvents": true,
                        "selectOnFocus": true,
                        "editable": false,
                        "displayField": "estado_nombre",
                        "store": "personalestado",
                        "typeAhead": true,
                        "valueField": "estado_id"
                    },
                    "designerId": "2c4a369e-1f62-430e-a36f-6c0f00121594",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onEstado_idKeypress",
                                "implHandler": [
                                    "if(e.getKey()==13){\r",
                                    "    Ext.getCmp('observacion').focus(100,true);\r",
                                    "}\r",
                                    ""
                                ],
                                "name": "keypress",
                                "scope": "me"
                            },
                            "designerId": "d904639b-9e6c-4740-bcbb-41b512bfa37a"
                        }
                    ]
                },
                {
                    "type": "Ext.form.field.TextArea",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "id": "observacion",
                        "margin": "2 0 0 5",
                        "fieldLabel": "Observaciones ",
                        "labelWidth": 110,
                        "enableKeyEvents": true
                    },
                    "designerId": "df3d03fa-c82f-4c81-b09e-828128103e90",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onObservacionKeypress",
                                "implHandler": [
                                    "if(e.getKey()==13){\r",
                                    "    Ext.getCmp('idgrabar8').focus(100,true);\r",
                                    "}\r",
                                    ""
                                ],
                                "name": "keypress",
                                "scope": "me"
                            },
                            "designerId": "545241bb-3b2c-471b-b7d8-71a4773d9b76"
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "top",
                        "margin": "5 0 0 0"
                    },
                    "designerId": "cb625818-1b9b-49d2-8632-b5c6ffe429fd",
                    "cn": [
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "id": "idgrabar8",
                                "margin": "0 0 0 135",
                                "icon": "img/ark2.png",
                                "text": "GRABAR"
                            },
                            "designerId": "27d6846e-15e8-4a07-819d-542fdb3f5e71",
                            "cn": [
                                {
                                    "type": "basicfunction",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "handler",
                                        "designer|params": [
                                            "btn"
                                        ],
                                        "implHandler": [
                                            "// 1) Tomar las variables del formulario\r",
                                            "var idIE                = (Ext.getCmp('id_ie9') && Ext.getCmp('id_ie9').getValue()) || '';\r",
                                            "var codigo_nivel        = (Ext.getCmp('codigo_nivel9') && Ext.getCmp('codigo_nivel9').getValue()) || '';\r",
                                            "var indiv_id            = (Ext.getCmp('indiv_id9') && Ext.getCmp('indiv_id9').getValue()) || '';\r",
                                            "var indiv_dni           = (Ext.getCmp('indiv_dni9') && Ext.getCmp('indiv_dni9').getValue()) || '';\r",
                                            "var indiv_appaterno     = (Ext.getCmp('indiv_appaterno9') && Ext.getCmp('indiv_appaterno9').getValue()) || '';\r",
                                            "var indiv_apmaterno     = (Ext.getCmp('indiv_apmaterno9') && Ext.getCmp('indiv_apmaterno9').getValue()) || '';\r",
                                            "var indiv_nombres       = (Ext.getCmp('indiv_nombres9') && Ext.getCmp('indiv_nombres9').getValue()) || '';\r",
                                            "var personal_cargo_id   = (Ext.getCmp('personal_cargo_id9') && Ext.getCmp('personal_cargo_id9').getValue()) || '';\r",
                                            "var cargo_id            = (Ext.getCmp('cargo_id9') && Ext.getCmp('cargo_id9').getValue()) || '';\r",
                                            "var logn                = (Ext.getCmp('logn1') && Ext.getCmp('logn1').getValue()) || '';\r",
                                            "var password            = (Ext.getCmp('password1') && Ext.getCmp('password1').getValue()) || '';\r",
                                            "var confirmpassword     = (Ext.getCmp('confirmpassword1') && Ext.getCmp('confirmpassword1').getValue()) || '';\r",
                                            "var cuenta_id           = (Ext.getCmp('cuenta_id') && Ext.getCmp('cuenta_id').getValue()) || '';\r",
                                            "var vigencia            = (Ext.getCmp('vigencia') && Ext.getCmp('vigencia').getValue()) || '';\r",
                                            "var estado_id           = (Ext.getCmp('estado_id') && Ext.getCmp('estado_id').getValue()) || '';\r",
                                            "var observacion         = (Ext.getCmp('observacion') && Ext.getCmp('observacion').getValue()) || '';\r",
                                            "Ext.Ajax.request({\r",
                                            "    method: 'POST',\r",
                                            "    url : 'controladores/GuardarResponsable.php',\r",
                                            "    params: {\r",
                                            "        idIE                : idIE,\r",
                                            "        codigo_nivel        : codigo_nivel,\r",
                                            "        indiv_id            : indiv_id,\r",
                                            "        indiv_dni           : indiv_dni,\r",
                                            "        indiv_appaterno     : indiv_appaterno,\r",
                                            "        indiv_apmaterno     : indiv_apmaterno,  \r",
                                            "        indiv_nombres       : indiv_nombres,\r",
                                            "        vigencia            : vigencia,\r",
                                            "        logn                : logn,\r",
                                            "        password            : password,\r",
                                            "        confirmpassword     : confirmpassword,\r",
                                            "        cuenta_id           : cuenta_id,\r",
                                            "        vigencia            : vigencia,\r",
                                            "        estado_id           : estado_id,\r",
                                            "        observacion         : observacion\r",
                                            "    },\r",
                                            "    failure: function(){\r",
                                            "        Ext.Msg.alert('Mensaje','Error en el servidor');\r",
                                            "        alert(\"Error...Verifique!!!\");\r",
                                            "    },\r",
                                            "    success: function(response) {\r",
                                            "        var resp = Ext.decode(response.responseText);\r",
                                            "        var no = resp.data[0];\r",
                                            "        if(no =='igual'){\r",
                                            "            alert(\"Las contraseñas no coinciden...Verifique!!!\");\r",
                                            "            return;\r",
                                            "        }\r",
                                            " \r",
                                            "        if(no =='dupli'){\r",
                                            "            alert(\"Nombre de Usuario ya existe...Verifique!!!\");\r",
                                            "            return;\r",
                                            "        }\r",
                                            " \r",
                                            "        if(no =='error'){\r",
                                            "            alert(\"Campos vacios...Verifique!!!\");\r",
                                            "            return;\r",
                                            "        }\r",
                                            "        if(no =='error1'){\r",
                                            "            alert(\"No se pudo obtener ID de usuario...Verifique!!!\");\r",
                                            "            return;\r",
                                            "        }\r",
                                            "        \r",
                                            "        if(no=='ok'){\r",
                                            "            Ext.Msg.alert('Mensaje','Registrado correctamente',\r",
                                            "            function () {\r",
                                            "                Ext.getStore('trabajador').load({\r",
                                            "                    params: { idIE: idIE } });\r",
                                            "                    var win = Ext.WindowManager.getActive();\r",
                                            "                    if (win)\r",
                                            "                    win.close();\r",
                                            "                });\r",
                                            "                return;\r",
                                            "            }        \r",
                                            "        }        \r",
                                            "    })\r",
                                            ""
                                        ]
                                    },
                                    "designerId": "5b599b81-6dda-4eaf-be86-c0e3b5bdc255"
                                }
                            ]
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "margin": "0 0 0 35",
                                "icon": "img/execute.gif",
                                "text": "SALIR"
                            },
                            "designerId": "ab5c958c-5021-4af4-8b61-df8d70af7b1a",
                            "cn": [
                                {
                                    "type": "basicfunction",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "handler",
                                        "designer|params": [
                                            "button"
                                        ],
                                        "implHandler": [
                                            "var win    = button.up('window');\r",
                                            "win.close();\r",
                                            ""
                                        ]
                                    },
                                    "designerId": "d8cc6d15-c470-4972-9639-122b089773c1"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}