{
    "type": "Ext.window.Window",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "autoShow": true,
        "height": 393,
        "width": 756,
        "designer|userClassName": "consultartrabajador",
        "designer|userAlias": "consultartrabajador",
        "layout": "border",
        "closable": false,
        "title": "Editar Personal a Instituión",
        "modal": true
    },
    "designerId": "48ed908f-72f6-4aff-af5d-98a90656d130",
    "cn": [
        {
            "type": "Ext.form.Panel",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "layout|region": "center",
                "bodyPadding": 10,
                "title": ""
            },
            "designerId": "9b51d561-d9c3-427c-8dac-9d38ca519b00",
            "cn": [
                {
                    "type": "Ext.form.FieldSet",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "height": 309,
                        "width": 724,
                        "layout": "column"
                    },
                    "designerId": "42d2bcb7-342e-4d15-90cc-a2ea6cf4de7b",
                    "cn": [
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "autoRender": false,
                                "hidden": true,
                                "id": "personal_tarea_id",
                                "margin": "0 0 0 15",
                                "width": 77,
                                "fieldLabel": "ID",
                                "labelAlign": "top",
                                "name": "personal_tarea_id",
                                "inputId": null,
                                "readOnly": true,
                                "allowBlank": null,
                                "enforceMaxLength": null,
                                "maxLength": null
                            },
                            "designerId": "9d127501-da60-4c03-b99c-b580abf9d49d"
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "action": "nuevopersonal",
                                "autoRender": false,
                                "id": "indiv_dni8",
                                "margin": "0 0 0 15",
                                "width": 77,
                                "fieldLabel": "D.N.I.",
                                "labelAlign": "top",
                                "name": "indiv_dni",
                                "inputId": null,
                                "readOnly": true,
                                "allowBlank": false,
                                "enableKeyEvents": true,
                                "enforceMaxLength": true,
                                "maskRe": "/[0-9.]/",
                                "maxLength": 8,
                                "selectOnFocus": true
                            },
                            "designerId": "9e97bda2-cc95-4def-8823-c2207ddc1249",
                            "customConfigs": [
                                {
                                    "group": "(Custom Properties)",
                                    "name": "action",
                                    "type": "string"
                                }
                            ],
                            "cn": [
                                {
                                    "type": "Ext.XTemplate",
                                    "reference": {
                                        "name": "afterLabelTextTpl",
                                        "type": "object"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "implHandler": [
                                            "<span style=\"color:red;font-weight:bold\" data-qtip=\"Required\">*</span>"
                                        ],
                                        "designer|displayName": "afterLabelTextTpl"
                                    },
                                    "designerId": "ff1e4b67-19f2-41af-a196-3c7eb40eab72"
                                },
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onIndiv_dni2Keypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('cargo_id').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "c16790fe-7ce0-4169-8484-c3e413016590"
                                }
                            ]
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "action": "BuscarDniClick2",
                                "hidden": true,
                                "id": "addtrabajador1",
                                "margin": "18 0 0 8",
                                "width": 25,
                                "icon": "img/view.gif",
                                "iconAlign": "right",
                                "text": ""
                            },
                            "designerId": "657bb189-7235-432d-a651-e3265e0108b0",
                            "customConfigs": [
                                {
                                    "group": "(Custom Properties)",
                                    "name": "action",
                                    "type": "string"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "indiv_appaterno8",
                                "margin": "0 0 0 10",
                                "width": 170,
                                "fieldLabel": "Ap. Paterno <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "indiv_appaterno",
                                "fieldStyle": "text-transform: uppercase",
                                "readOnly": true
                            },
                            "designerId": "32f7c98f-7450-4258-90e7-382320f28a23"
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "indiv_apmaterno8",
                                "margin": "0 0 0 10",
                                "width": 177,
                                "fieldLabel": "Ap. Materno <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "indiv_apmaterno",
                                "fieldStyle": "text-transform: uppercase",
                                "readOnly": true
                            },
                            "designerId": "944d5375-87a1-4501-8539-e43bc96a591f"
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "indiv_nombres8",
                                "margin": "0 0 0 10",
                                "width": 190,
                                "fieldLabel": "Nombres <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "indiv_nombres",
                                "fieldStyle": "text-transform: uppercase",
                                "readOnly": true
                            },
                            "designerId": "90129be2-e3ea-4fb5-bd93-4cf5608215be"
                        },
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "autoRender": true,
                                "id": "personal_cargo_id1",
                                "itemId": "personal_cargo_id",
                                "margin": "15 0 0 15",
                                "width": 328,
                                "fieldLabel": "Cargo <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "personal_cargo_id",
                                "allowBlank": false,
                                "blankText": "Ingrese cargo personal",
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "displayField": "personal_cargo_nombre",
                                "store": "cargopersonal",
                                "typeAhead": true,
                                "valueField": "personal_cargo_id"
                            },
                            "designerId": "80eb9652-d1d4-48a1-b7c1-086c1112921f",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onCargo_idKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('idsituacionlaboral1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "c75e3cc3-9d67-474a-a016-f7a840f7f78a"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "idsituacionlaboral1",
                                "itemId": "idsituacionlaboral",
                                "margin": "15 0 0 10",
                                "width": 256,
                                "fieldLabel": "Situación Laboral <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "idsituacionlaboral",
                                "allowBlank": false,
                                "blankText": "Ingrese Situacion Laboral",
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "displayField": "nombresituacionlaboral",
                                "store": "situacionlaboral",
                                "typeAhead": true,
                                "valueField": "idsituacionlaboral"
                            },
                            "designerId": "d88f152f-90a3-4f9b-bb8c-f74567806da0",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onSituacionlaboralKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('jornada1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "bb8ed2de-4607-4c97-90c9-01ed46f6e331"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Number",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "jornada1",
                                "margin": "15 0 0 10",
                                "width": 55,
                                "fieldLabel": "Jorn.Lab.<span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "jornada",
                                "allowBlank": false,
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "minValue": 0
                            },
                            "designerId": "47465c3e-33b8-4959-9590-75704bd1ac28",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onJornadaKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('idnexus1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "99580d4f-5405-4438-928c-f41e25a642fc"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "idnexus1",
                                "margin": "15 0 0 15",
                                "width": 152,
                                "fieldLabel": "Codigo Nexus <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "idnexus",
                                "allowBlank": false,
                                "enableKeyEvents": true,
                                "enforceMaxLength": true,
                                "maxLength": 12,
                                "selectOnFocus": true
                            },
                            "designerId": "4a53ca0a-5cd9-4656-ac86-211815533e8b",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onIdnexusKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('idairhsp1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "de8b7e4e-6ffa-47ba-ac04-09be6dbc8c0b"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "idairhsp1",
                                "margin": "15 0 0 5",
                                "width": 101,
                                "fieldLabel": "Cod. Airhsp <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "idairhsp",
                                "allowBlank": false,
                                "enableKeyEvents": true,
                                "enforceMaxLength": true,
                                "maskRe": "/[0-9.]/",
                                "maxLength": 6,
                                "selectOnFocus": true
                            },
                            "designerId": "3524da16-c937-424b-97f9-ab12a3f86ac4",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onIdairhspKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('idtipotrabajador1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "936b62c2-ed9e-4a17-a60c-713e3a1b63af"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "idtipotrabajador1",
                                "itemId": "idtipotrabajador",
                                "margin": "15 0 0 10",
                                "width": 158,
                                "fieldLabel": "Tipo Trabajador <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "idtipotrabajador",
                                "allowBlank": false,
                                "blankText": "Ingrese Tipo Trabajador",
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "editable": false,
                                "displayField": "nombretipotrabajador",
                                "forceSelection": true,
                                "store": "tipotrabajador",
                                "valueField": "idtipotrabajador"
                            },
                            "designerId": "3d4a0735-6597-476a-9103-6609bca6e115",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onSituacionlaboralKeypress1",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('idsubtipotrabajador1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "76e10189-1684-41b4-8e13-38c71b594605"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "idsubtipotrabajador1",
                                "itemId": "idsubtipotrabajador",
                                "margin": "15 0 0 10",
                                "width": 234,
                                "fieldLabel": "Sub Tipo Trabajador <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "idsubtipotrabajador",
                                "allowBlank": false,
                                "blankText": "Ingrese Tipo Trabajador",
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "displayField": "nombresubtipotrabajador",
                                "forceSelection": true,
                                "store": "subtipotrabajador",
                                "typeAhead": true,
                                "valueField": "idsubtipotrabajador"
                            },
                            "designerId": "c1e777c4-0db0-46b0-9f4f-c48119d62f7d",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onSituacionlaboralKeypress11",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('idestado1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "5f19030a-1e83-4fd1-9131-ffe1507f740b"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "idestado1",
                                "itemId": "idestado",
                                "margin": "15 0 0 10",
                                "width": 374,
                                "fieldLabel": "Estado<span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "estado_id",
                                "allowBlank": false,
                                "blankText": "Ingrese Estado Trabajador",
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "displayField": "estado_nombre",
                                "store": "personalestado",
                                "typeAhead": true,
                                "valueField": "estado_id"
                            },
                            "designerId": "6ca6ca87-0ea6-469d-8349-8a705b127aab",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onEstadoTrabajadorKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('fecha_inicio1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "301768cc-1400-4cdd-99c3-c820a45a3fd7"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Date",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "fecha_inicio1",
                                "margin": "15 0 0 10",
                                "width": 146,
                                "fieldLabel": "F. Ingreso<span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "fecha_inicio",
                                "allowBlank": false,
                                "blankText": "Ingrese Fecha Inicio",
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "format": "d/m/Y"
                            },
                            "designerId": "f94e47e3-044c-4384-8a95-89a7fb387068",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onFechaInicioKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('fecha_fin1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "01072dff-fb23-463d-b5fd-22578f03135d"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Date",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "fecha_fin1",
                                "margin": "15 0 0 10",
                                "width": 146,
                                "fieldLabel": "F. Termino<span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "fecha_fin",
                                "allowBlank": false,
                                "blankText": "Ingrese Fecha Fin",
                                "enableKeyEvents": true,
                                "selectOnFocus": true,
                                "format": "d/m/Y"
                            },
                            "designerId": "d9800935-9c4c-4f4e-96e4-036ad06c0f88",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onFechaFinKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('observaciones1').focus(100,true);\r",
                                            "}"
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "3d1d5fe2-0e9f-420b-9ac1-4e8f35732beb"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Hidden",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "id_ie1",
                                "margin": "15 0 0 5",
                                "width": 101,
                                "fieldLabel": "IIEE <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "id_ie"
                            },
                            "designerId": "cce6d98f-ee25-4cce-9be2-b7cc3ff7646f"
                        },
                        {
                            "type": "Ext.form.field.Hidden",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "indiv_id8",
                                "margin": "15 0 0 5",
                                "width": 101,
                                "fieldLabel": "Cod. Airhsp <span style=\"color:red\">*</span>",
                                "labelAlign": "top",
                                "name": "indiv_id"
                            },
                            "designerId": "2cd3c228-6517-476c-bed0-acc23f2c4f23"
                        },
                        {
                            "type": "Ext.form.field.TextArea",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "id": "observaciones1",
                                "itemId": "observaciones",
                                "margin": "15 0 0 10",
                                "width": 684,
                                "fieldLabel": "Observación",
                                "labelAlign": "top",
                                "name": "observaciones",
                                "enableKeyEvents": true,
                                "selectOnFocus": true
                            },
                            "designerId": "0379eea7-fcb8-4f2f-b707-035f940d7650",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onTextareafieldKeypress",
                                        "implHandler": [
                                            "if(e.getKey()==13){\r",
                                            "    Ext.getCmp('idgrabar7').focus(100,true);\r",
                                            "}\r",
                                            "\r",
                                            ""
                                        ],
                                        "name": "keypress",
                                        "scope": "me"
                                    },
                                    "designerId": "d2b8b28d-ad19-41f5-ab9b-fb123ce2fe4b"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "bottom",
                        "height": 29
                    },
                    "designerId": "06b3ca37-c01c-4f2d-a65d-80776e86deab",
                    "cn": [
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "width": 300
                            },
                            "designerId": "159ed2b9-d2fc-4b2d-a78c-e12e0bdf4c30"
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "id": "idgrabar7",
                                "icon": "img/filesave.png",
                                "text": "Grabar"
                            },
                            "designerId": "e6807321-65c2-48a8-91d2-b475beba919f",
                            "cn": [
                                {
                                    "type": "basicfunction",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "handler",
                                        "designer|params": [
                                            "btn"
                                        ],
                                        "implHandler": [
                                            "var gridIE = Ext.ComponentQuery.query('#colegios')[0]; // itemId del grid izquierdo\r",
                                            "if (!gridIE) {\r",
                                            "    Ext.Msg.alert('Mensaje', 'No se encontró el grid de Instituciones.');\r",
                                            "    return;\r",
                                            "}\r",
                                            "\r",
                                            "// 2) Obtener la fila seleccionada en el grid izquierdo\r",
                                            "var recIE = gridIE.getSelectionModel().getSelection()[0];\r",
                                            "\r",
                                            "if (!recIE) {\r",
                                            "    Ext.Msg.alert('Mensaje', 'Debe seleccionar una Institución Educativa.');\r",
                                            "    return;\r",
                                            "}\r",
                                            "\r",
                                            "// 3) Tomar el id_ie de esa fila\r",
                                            "var idIE = recIE.get('id_ie');    // nombre del field en el model del grid izquierdo\r",
                                            "var personal_tarea_id   = (Ext.getCmp('personal_tarea_id') && Ext.getCmp('personal_tarea_id').getValue()) || '';\r",
                                            "var indiv_id            = (Ext.getCmp('indiv_id8') && Ext.getCmp('indiv_id8').getValue()) || '';\r",
                                            "var indiv_dni           = (Ext.getCmp('indiv_dni8') && Ext.getCmp('indiv_dni8').getValue()) || '';\r",
                                            "var personal_cargo_id   = (Ext.getCmp('personal_cargo_id1') && Ext.getCmp('personal_cargo_id1').getValue()) || '';\r",
                                            "var idsituacionlaboral  = (Ext.getCmp('idsituacionlaboral1') && Ext.getCmp('idsituacionlaboral1').getValue()) || '';\r",
                                            "var jornada             = (Ext.getCmp('jornada1') && Ext.getCmp('jornada1').getValue()) || '';\r",
                                            "var idnexus             = (Ext.getCmp('idnexus1') && Ext.getCmp('idnexus1').getValue()) || '';\r",
                                            "var idairhsp            = (Ext.getCmp('idairhsp1') && Ext.getCmp('idairhsp1').getValue()) || '';\r",
                                            "var idtipotrabajador    = (Ext.getCmp('idtipotrabajador1') && Ext.getCmp('idtipotrabajador1').getValue()) || '';\r",
                                            "var idsubtipotrabajador = (Ext.getCmp('idsubtipotrabajador1') && Ext.getCmp('idsubtipotrabajador1').getValue()) || '';\r",
                                            "var idestado            = (Ext.getCmp('idestado1') && Ext.getCmp('idestado1').getValue()) || '';\r",
                                            "var fecha_inicio        = (Ext.getCmp('fecha_inicio1') && Ext.getCmp('fecha_inicio1').getValue()) || '';\r",
                                            "var fecha_fin           = (Ext.getCmp('fecha_fin1') && Ext.getCmp('fecha_fin1').getValue()) || '';\r",
                                            "var observaciones       = (Ext.getCmp('observaciones1') && Ext.getCmp('observaciones1').getValue()) || '';\r",
                                            "Ext.Ajax.request({\r",
                                            "    method: 'POST',\r",
                                            "    url : 'controladores/EditarPersonalIIEE.php',\r",
                                            "    params: {\r",
                                            "        idIE                : idIE,\r",
                                            "        personal_tarea_id   : personal_tarea_id,\r",
                                            "        indiv_id            : indiv_id,\r",
                                            "        indiv_dni           : indiv_dni,\r",
                                            "        personal_cargo_id   : personal_cargo_id,  \r",
                                            "        idsituacionlaboral  : idsituacionlaboral,\r",
                                            "        jornada             : jornada,\r",
                                            "        idnexus             : idnexus,\r",
                                            "        idairhsp            : idairhsp,\r",
                                            "        idtipotrabajador    : idtipotrabajador,\r",
                                            "        idsubtipotrabajador : idsubtipotrabajador,\r",
                                            "        idestado            : idestado,\r",
                                            "        fecha_inicio        : fecha_inicio,\r",
                                            "        fecha_fin           : fecha_fin,\r",
                                            "        observaciones       : observaciones \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.licencia[0];\r",
                                            "        if(no =='error'){\r",
                                            "            alert(\"Campos vacios...Verifique!!!\");\r",
                                            "            return;\r",
                                            "        }\r",
                                            "        if(no=='ok'){\r",
                                            "            Ext.Msg.alert('Mensaje','Modificado 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": "59fbc276-8aa5-4a13-9ceb-600d038c6277"
                                }
                            ]
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "icon": "img/exit.png",
                                "text": "Salir"
                            },
                            "designerId": "b379e9b0-1e78-4f0e-b7f2-67f0f80f27cd",
                            "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": "1fc42f57-a500-4c67-a7b7-3bb58a7fe03c"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}