{
    "type": "Ext.form.Panel",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "bodyPadding": 10,
        "cls": [
            "formpanel"
        ],
        "container|align": "stretch",
        "designer|userAlias": "laboresform",
        "designer|userClassName": "LaboresForm",
        "height": null,
        "initialTitle": "labor",
        "itemId": null,
        "layout": "vbox",
        "scrollable": true,
        "title": null,
        "trackResetOnLoad": true,
        "width": null
    },
    "configAlternates": {
        "bodyPadding": "auto",
        "container|align": "string",
        "designer|userAlias": "string",
        "designer|userClassName": "string",
        "height": "auto",
        "itemId": "string",
        "layout": "string",
        "scrollable": "auto",
        "title": "string",
        "width": "auto",
        "cls": "typedarray",
        "initialTitle": "string",
        "trackResetOnLoad": "boolean"
    },
    "name": "LaboresForm1",
    "designerId": "609e31be-a99e-4abd-bc02-fca2cf301ace",
    "customConfigs": [
        {
            "group": "(Custom Properties)",
            "name": "initialTitle",
            "type": "string"
        }
    ],
    "viewControllerInstanceId": "f1961471-7148-4ea1-a32b-06c8dccef075",
    "viewModelInstanceId": "1db237f7-09c6-4d3b-845f-9c0ef1332d4d",
    "cn": [
        {
            "type": "basiceventbinding",
            "reference": {
                "name": "listeners",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "fn": "onFormActivate",
                "implHandler": [
                    "var item = component.initialTitle;",
                    "",
                    "if(component.action === 'ADD') {",
                    "  component.setTitle('Nueva ' + item);",
                    "}",
                    "else if(component.action === 'EDIT') {",
                    "  component.setTitle('Editar ' + item);",
                    "}",
                    "else {",
                    "  component.setTitle(item);",
                    "}"
                ],
                "name": "activate",
                "scope": "me"
            },
            "configAlternates": {
                "fn": "string",
                "implHandler": "code",
                "name": "string",
                "scope": "string"
            },
            "name": "onFormActivate",
            "designerId": "63cce2cf-7bf1-4a11-96b4-e52c811d6bb0"
        },
        {
            "type": "basiceventbinding",
            "reference": {
                "name": "listeners",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "fn": "onFormRender",
                "implHandler": [
                    "var form_panel = this;",
                    "var item = component.initialTitle;",
                    "var record = form_panel.getRecord();",
                    "",
                    "//empty labores_ stores",
                    "for (var i=1; i < form_panel.store_array.length; i++){",
                    "  f_crud.load_store(form_panel.store_array[i],'id_labores = -1');",
                    "}",
                    "",
                    "if(component.action === 'ADD') {",
                    "  var today = new Date();",
                    "  this.down('#fecha').setValue(today);",
                    "}",
                    "else if(component.action === 'EDIT') {",
                    "  var id = record.get('id');",
                    "  for (var i=1; i < form_panel.store_array.length; i++){",
                    "    f_crud.load_store(form_panel.store_array[i],'id_labores = ' + id);",
                    "  }",
                    "}"
                ],
                "name": "render",
                "scope": "me"
            },
            "configAlternates": {
                "fn": "string",
                "implHandler": "code",
                "name": "string",
                "scope": "string"
            },
            "name": "onFormRender",
            "designerId": "22bdbf49-4bd0-42cb-ae72-3350aecf6997"
        },
        {
            "type": "Ext.tab.Panel",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "activeTab": 0,
                "bodyPadding": 10,
                "layout|flex": 0
            },
            "configAlternates": {
                "activeTab": "auto",
                "bodyPadding": "auto",
                "layout|flex": "number"
            },
            "name": "MyTabPanel",
            "designerId": "c26b853d-d1ce-42d4-9aaa-18ac0fedfe7f",
            "cn": [
                {
                    "type": "Ext.panel.Panel",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "title": "Labor"
                    },
                    "configAlternates": {
                        "title": "string"
                    },
                    "name": "MyPanel4",
                    "designerId": "0f0f97e4-57c9-4320-9bb8-9c1313d05cf3",
                    "cn": [
                        {
                            "type": "Ext.tab.Tab",
                            "reference": {
                                "name": "tabConfig",
                                "type": "object"
                            },
                            "codeClass": null,
                            "name": "TabConfig2",
                            "designerId": "3b5b8e21-662f-4e54-a685-2760e07a680f"
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "allowBlank": false,
                                "blankText": "Este campo es obligatorio",
                                "editable": false,
                                "enableKeyEvents": true,
                                "fieldLabel": "ID",
                                "hidden": true,
                                "name": "id"
                            },
                            "configAlternates": {
                                "allowBlank": "boolean",
                                "blankText": "string",
                                "editable": "boolean",
                                "fieldLabel": "string",
                                "hidden": "boolean",
                                "name": "string",
                                "enableKeyEvents": "boolean"
                            },
                            "name": "MyTextField15",
                            "designerId": "76392ea5-48e2-437a-be66-12a4fd4f285f"
                        },
                        {
                            "type": "Ext.form.field.Date",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "allowBlank": false,
                                "designer|displayName": "",
                                "enableKeyEvents": true,
                                "fieldLabel": "Fecha*",
                                "format": "d-m-Y",
                                "itemId": "fecha",
                                "name": "fecha",
                                "width": "100%"
                            },
                            "configAlternates": {
                                "designer|displayName": "string",
                                "fieldLabel": "string",
                                "itemId": "string",
                                "name": "string",
                                "width": "auto",
                                "format": "string",
                                "enableKeyEvents": "boolean",
                                "allowBlank": "boolean"
                            },
                            "name": "MyDateField2",
                            "designerId": "d9fc624e-1f78-478c-9982-753d6ce48476"
                        },
                        {
                            "type": "Ext.container.Container",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "container|align": "stretch",
                                "layout": "hbox",
                                "margin": "10 0"
                            },
                            "configAlternates": {
                                "container|align": "string",
                                "layout": "string",
                                "margin": "auto"
                            },
                            "name": "MyContainer8",
                            "designerId": "4fba3e9e-e164-4e9f-b830-43d8708cfe58",
                            "cn": [
                                {
                                    "type": "Ext.form.field.ComboBox",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "allowBlank": false,
                                        "blankText": "Este campo es obligatorio",
                                        "defaultListenerScope": true,
                                        "displayField": "descripcion",
                                        "enableKeyEvents": true,
                                        "fieldLabel": "Tarea*",
                                        "forceSelection": true,
                                        "itemId": "fieldTarea",
                                        "name": "cod_tarea",
                                        "queryMode": "local",
                                        "store": "Tareas",
                                        "valueField": "codigo",
                                        "width": "80%"
                                    },
                                    "configAlternates": {
                                        "allowBlank": "boolean",
                                        "blankText": "string",
                                        "defaultListenerScope": "boolean",
                                        "displayField": "datafield",
                                        "fieldLabel": "string",
                                        "forceSelection": "boolean",
                                        "itemId": "string",
                                        "name": "string",
                                        "queryMode": "string",
                                        "store": "store",
                                        "valueField": "datafield",
                                        "width": "auto",
                                        "enableKeyEvents": "boolean"
                                    },
                                    "name": "MyComboBox",
                                    "designerId": "178006af-0e46-467c-8684-6b5356cbe66a"
                                },
                                {
                                    "type": "Ext.button.Button",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "iconCls": "x-fa fa-plus",
                                        "layout|flex": null,
                                        "layout|margins": "",
                                        "margin": "0 10",
                                        "text": "",
                                        "width": "10%"
                                    },
                                    "configAlternates": {
                                        "iconCls": "string",
                                        "layout|flex": "number",
                                        "layout|margins": "string",
                                        "margin": "auto",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyButton1",
                                    "designerId": "0c816f35-3c59-413e-abd8-668d8d0a8d1a",
                                    "cn": [
                                        {
                                            "type": "fixedfunction",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "designer|params": [
                                                    "button",
                                                    "e"
                                                ],
                                                "fn": "handler",
                                                "implHandler": [
                                                    "var formWrapper = this.up('[cls=formpanel]');",
                                                    "formWrapper.dropdownId = \"fieldTarea\";",
                                                    "f_crud.openNestedForm('TareasPanel');"
                                                ]
                                            },
                                            "configAlternates": {
                                                "designer|params": "typedarray",
                                                "fn": "string",
                                                "implHandler": "code"
                                            },
                                            "name": "handler",
                                            "designerId": "c22850b6-1fca-4fb2-991f-a33c889c277b"
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.field.Number",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "allowBlank": false,
                                "allowDecimals": false,
                                "decimalPrecision": 0,
                                "decimalSeparator": null,
                                "enableKeyEvents": true,
                                "fieldLabel": "Cantidad*",
                                "inputType": "tel",
                                "minValue": 0,
                                "name": "cantidad",
                                "negativeText": "Este valor debe ser positivo",
                                "width": "100%"
                            },
                            "configAlternates": {
                                "fieldLabel": "string",
                                "name": "string",
                                "width": "auto",
                                "enableKeyEvents": "boolean",
                                "allowDecimals": "boolean",
                                "decimalPrecision": "number",
                                "decimalSeparator": "string",
                                "minValue": "number",
                                "negativeText": "string",
                                "allowBlank": "boolean",
                                "inputType": "string"
                            },
                            "name": "MyNumberField2",
                            "designerId": "3c213300-f246-4a56-878e-d9199fb5fead"
                        },
                        {
                            "type": "Ext.form.field.Number",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "allowBlank": false,
                                "decimalSeparator": null,
                                "enableKeyEvents": true,
                                "fieldLabel": "Precio*",
                                "inputType": "tel",
                                "minValue": 0,
                                "name": "precio",
                                "negativeText": "Este valor debe ser positivo",
                                "width": "100%"
                            },
                            "configAlternates": {
                                "fieldLabel": "string",
                                "name": "string",
                                "width": "auto",
                                "enableKeyEvents": "boolean",
                                "decimalSeparator": "string",
                                "minValue": "number",
                                "negativeText": "string",
                                "allowBlank": "boolean",
                                "inputType": "string"
                            },
                            "name": "MyNumberField4",
                            "designerId": "d61eaa1f-7336-4ca0-8fad-f33ba2da6126"
                        },
                        {
                            "type": "Ext.container.Container",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "container|align": "stretch",
                                "layout": "hbox",
                                "margin": "10 0"
                            },
                            "configAlternates": {
                                "container|align": "string",
                                "layout": "string",
                                "margin": "auto"
                            },
                            "name": "MyContainer9",
                            "designerId": "e65ef33d-7420-4d66-9fc6-2e8ae824f7d5",
                            "cn": [
                                {
                                    "type": "Ext.form.field.ComboBox",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "blankText": "Este campo es obligatorio",
                                        "defaultListenerScope": true,
                                        "displayField": "nombre",
                                        "enableKeyEvents": true,
                                        "fieldLabel": "Contratista",
                                        "forceSelection": true,
                                        "itemId": "fieldContratista",
                                        "name": "cod_contratista",
                                        "queryMode": "local",
                                        "store": "Contratistas",
                                        "valueField": "codigo",
                                        "width": "80%"
                                    },
                                    "configAlternates": {
                                        "blankText": "string",
                                        "defaultListenerScope": "boolean",
                                        "displayField": "datafield",
                                        "fieldLabel": "string",
                                        "forceSelection": "boolean",
                                        "itemId": "string",
                                        "name": "string",
                                        "queryMode": "string",
                                        "store": "store",
                                        "valueField": "datafield",
                                        "width": "auto",
                                        "enableKeyEvents": "boolean"
                                    },
                                    "name": "MyComboBox1",
                                    "designerId": "714b711d-9f6c-4fff-a617-d27ca2c3787c"
                                },
                                {
                                    "type": "Ext.button.Button",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "iconCls": "x-fa fa-plus",
                                        "layout|flex": null,
                                        "layout|margins": "",
                                        "margin": "0 10",
                                        "text": "",
                                        "width": "10%"
                                    },
                                    "configAlternates": {
                                        "iconCls": "string",
                                        "layout|flex": "number",
                                        "layout|margins": "string",
                                        "margin": "auto",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyButton2",
                                    "designerId": "3f759a13-c66c-4c3d-90a2-127f7d8730d8",
                                    "cn": [
                                        {
                                            "type": "fixedfunction",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "designer|params": [
                                                    "button",
                                                    "e"
                                                ],
                                                "fn": "handler",
                                                "implHandler": [
                                                    "var formWrapper = this.up('[cls=formpanel]');",
                                                    "formWrapper.dropdownId = \"fieldContratista\";",
                                                    "f_crud.openNestedForm('ContratistasPanel');"
                                                ]
                                            },
                                            "configAlternates": {
                                                "designer|params": "typedarray",
                                                "fn": "string",
                                                "implHandler": "code"
                                            },
                                            "name": "handler",
                                            "designerId": "5ab82003-7de0-4f08-abbb-c2e5f318854c"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.panel.Panel",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "bodyPadding": null,
                        "html": null,
                        "itemId": "labores_insumos_tab",
                        "title": "Insumos"
                    },
                    "configAlternates": {
                        "bodyPadding": "auto",
                        "html": "object",
                        "itemId": "string",
                        "title": "string"
                    },
                    "name": "MyPanel1",
                    "designerId": "a71b5df7-1aa3-41cb-99f9-d9ba05075491",
                    "cn": [
                        {
                            "type": "Ext.tab.Tab",
                            "reference": {
                                "name": "tabConfig",
                                "type": "object"
                            },
                            "codeClass": null,
                            "name": "TabConfig",
                            "designerId": "7cd31bb6-c17f-43f9-8dbb-dadd77116476"
                        },
                        {
                            "type": "Ext.grid.Panel",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "header": false,
                                "itemId": "labores_insumos_grid",
                                "store": "Labores_insumos",
                                "title": "InsumosGrid"
                            },
                            "configAlternates": {
                                "header": "boolean",
                                "itemId": "string",
                                "store": "store",
                                "title": "string"
                            },
                            "name": "MyGridPanel5",
                            "designerId": "a9c8b5ea-e70c-48ab-8fd9-61234e13d50d",
                            "cn": [
                                {
                                    "type": "Ext.view.Table",
                                    "reference": {
                                        "name": "viewConfig",
                                        "type": "object"
                                    },
                                    "codeClass": null,
                                    "name": "MyTable5",
                                    "designerId": "1c59d49f-2ac1-4187-b778-47b1befc8a2e"
                                },
                                {
                                    "type": "Ext.grid.column.Column",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "estado_registro",
                                        "hidden": true,
                                        "text": "Estado Registro"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyColumn4",
                                    "designerId": "f9cb0939-622e-4d7d-98f4-56ee63630e49",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Text",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyTextField7",
                                            "designerId": "82ea700c-630d-4682-89db-35dfb8ee547a"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "id",
                                        "hidden": true,
                                        "text": "ID",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto",
                                        "hidden": "boolean"
                                    },
                                    "name": "MyNumberColumn43",
                                    "designerId": "c3c953c2-174a-4698-a90a-94347b8637f8",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Display",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "value": "Display Field"
                                            },
                                            "configAlternates": {
                                                "value": "string"
                                            },
                                            "name": "MyDisplayField1",
                                            "designerId": "ad8e912c-a2fd-4d1a-b2f3-cd8c8e9fda27"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "id_labores",
                                        "format": "00",
                                        "hidden": true,
                                        "text": "Id Labores"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyNumberColumn46",
                                    "designerId": "02ac9a6c-efff-42af-a958-1120855157a7",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Display",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "value": "Display Field"
                                            },
                                            "configAlternates": {
                                                "value": "string"
                                            },
                                            "name": "MyDisplayField2",
                                            "designerId": "b4098cc6-d702-4eec-8ddb-04c87cef7f3b"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "uid",
                                        "format": "00",
                                        "hidden": true,
                                        "text": "Uid"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyNumberColumn47",
                                    "designerId": "b5b174be-665b-45c0-afba-2e50d8e4b3e2",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyNumberField8",
                                            "designerId": "8a4e8241-aaf2-4180-9e9a-1bfd83900c7d"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cod_insumo",
                                        "designer|displayName": "Insumo",
                                        "format": "00",
                                        "text": "Insumo",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "designer|displayName": "string",
                                        "format": "string",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn48",
                                    "designerId": "6152b93a-a4d6-4ced-ac01-f958fbe4801f",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.ComboBox",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "displayField": "descripcion",
                                                "forceSelection": true,
                                                "queryMode": "local",
                                                "store": "Insumos",
                                                "valueField": "codigo"
                                            },
                                            "configAlternates": {
                                                "displayField": "datafield",
                                                "forceSelection": "boolean",
                                                "queryMode": "string",
                                                "store": "store",
                                                "valueField": "datafield"
                                            },
                                            "name": "MyComboBox4",
                                            "designerId": "1ae8f5b3-360d-4e1f-8e4c-3a965e615488"
                                        },
                                        {
                                            "type": "basicfunction",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "designer|params": [
                                                    "value, metaData, record, rowIndex, colIndex, store"
                                                ],
                                                "fn": "renderer",
                                                "implHandler": [
                                                    "return f_crud.getDisplayValue('Insumos',value,'descripcion');"
                                                ]
                                            },
                                            "configAlternates": {
                                                "designer|params": "typedarray",
                                                "fn": "string",
                                                "implHandler": "code"
                                            },
                                            "name": "renderer",
                                            "designerId": "92ddf9b0-884b-4b5f-a6e6-10b90bd75c67"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "dosis",
                                        "text": "Dosis",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn49",
                                    "designerId": "e633819d-dd17-4c94-b96e-628eae88d603",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "inputType": "tel"
                                            },
                                            "configAlternates": {
                                                "inputType": "string"
                                            },
                                            "name": "MyNumberField10",
                                            "designerId": "ff7308e2-4937-45f2-b3b8-46cd1ee8dc72"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cantidad",
                                        "text": "Cantidad",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn90",
                                    "designerId": "f08d509a-a3c6-4b24-8f2f-bfc783100432",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "allowDecimals": false,
                                                "inputType": "tel"
                                            },
                                            "configAlternates": {
                                                "inputType": "string",
                                                "allowDecimals": "boolean"
                                            },
                                            "name": "MyNumberField11",
                                            "designerId": "7fa2ff24-87ab-45be-8bd3-c8cd5adf1fd4"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cod_deposito",
                                        "designer|displayName": "Deposito",
                                        "format": "00",
                                        "text": "Deposito",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "designer|displayName": "string",
                                        "format": "string",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn91",
                                    "designerId": "3907ddef-b8c8-4391-8d90-31dc79836ba1",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.ComboBox",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "displayField": "nombre",
                                                "forceSelection": true,
                                                "queryMode": "local",
                                                "store": "Depositos",
                                                "valueField": "codigo"
                                            },
                                            "configAlternates": {
                                                "displayField": "datafield",
                                                "forceSelection": "boolean",
                                                "queryMode": "string",
                                                "store": "store",
                                                "valueField": "datafield"
                                            },
                                            "name": "MyComboBox5",
                                            "designerId": "8e058292-bc40-44a5-977a-534102163b77"
                                        },
                                        {
                                            "type": "basicfunction",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "designer|params": [
                                                    "value, metaData, record, rowIndex, colIndex, store"
                                                ],
                                                "fn": "renderer",
                                                "implHandler": [
                                                    "return f_crud.getDisplayValue('Depositos',value,'nombre');"
                                                ]
                                            },
                                            "configAlternates": {
                                                "designer|params": "typedarray",
                                                "fn": "string",
                                                "implHandler": "code"
                                            },
                                            "name": "renderer",
                                            "designerId": "597ff750-6508-473a-ad51-06a259668731"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Column",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "tipo",
                                        "hidden": true,
                                        "text": "Tipo"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyColumn40",
                                    "designerId": "a8c2c250-56a4-4dc8-8815-352467bae995",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Text",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyTextField8",
                                            "designerId": "d864a09e-b689-47fe-a827-673b1c611734"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.plugin.CellEditing",
                                    "reference": {
                                        "name": "plugins",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "clicksToEdit": 1
                                    },
                                    "configAlternates": {
                                        "clicksToEdit": "number"
                                    },
                                    "name": "MyCellEditingPlugin5",
                                    "designerId": "4c8c8ae5-e1a8-4c74-8321-ac01a523e091"
                                },
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onGridpanelSelectionChange",
                                        "implHandler": [
                                            "this.down(\"#labores_insumos_grid\").record = selected[0];"
                                        ],
                                        "name": "selectionchange",
                                        "scope": "me"
                                    },
                                    "configAlternates": {
                                        "fn": "string",
                                        "implHandler": "code",
                                        "name": "string",
                                        "scope": "string"
                                    },
                                    "name": "onGridpanelSelectionChange",
                                    "designerId": "bb0d85db-8814-4e04-830d-54fdf4258d17"
                                },
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onLabores_insumos_gridBeforeRender",
                                        "implHandler": [
                                            "f_crud.renderGridWidth(component);"
                                        ],
                                        "name": "beforerender",
                                        "scope": "me"
                                    },
                                    "configAlternates": {
                                        "fn": "string",
                                        "implHandler": "code",
                                        "name": "string",
                                        "scope": "string"
                                    },
                                    "name": "onLabores_insumos_gridBeforeRender",
                                    "designerId": "07ba93a3-0e81-4f8a-96e2-bfc85225ad37"
                                },
                                {
                                    "type": "Ext.selection.CheckboxModel",
                                    "reference": {
                                        "name": "selModel",
                                        "type": "object"
                                    },
                                    "codeClass": null,
                                    "name": "MyCheckboxSelectionModel",
                                    "designerId": "46512f7d-82e0-471a-9fba-e45acf0022df"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.Panel",
                            "reference": {
                                "name": "dockedItems",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "bodyPadding": 10,
                                "designer|displayName": "gridControl",
                                "dock": "bottom",
                                "flex": null,
                                "header": false,
                                "layout": "column",
                                "title": "My Form"
                            },
                            "configAlternates": {
                                "bodyPadding": "auto",
                                "designer|displayName": "string",
                                "dock": "string",
                                "flex": "number",
                                "header": "boolean",
                                "layout": "string",
                                "title": "string"
                            },
                            "name": "MyForm2",
                            "designerId": "607b987b-081a-423d-bd1e-45004090d605",
                            "cn": [
                                {
                                    "type": "Ext.container.Container",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "cls": [
                                            "tabCtrol"
                                        ],
                                        "container|align": "stretch",
                                        "container|pack": "center",
                                        "itemId": "tabCtrolInsumos",
                                        "layout": "hbox",
                                        "layout|columnWidth": 1
                                    },
                                    "configAlternates": {
                                        "container|align": "string",
                                        "container|pack": "string",
                                        "itemId": "string",
                                        "layout": "string",
                                        "layout|columnWidth": "auto",
                                        "cls": "typedarray"
                                    },
                                    "name": "MyContainer2",
                                    "designerId": "4143882f-d82c-41a3-8707-95ccbc3dde8e",
                                    "cn": [
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "",
                                                "iconCls": "x-fa fa-plus",
                                                "padding": null,
                                                "text": ""
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "text": "string",
                                                "padding": "auto"
                                            },
                                            "name": "MyButton3",
                                            "designerId": "cd410300-54d3-4b83-9998-df299b24c29f",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "var form_panel = this.up('[cls=formpanel]');",
                                                            "var id_labores  =  form_panel.getRecord().get('id');",
                                                            "var store = Ext.getStore('Labores_insumos');",
                                                            "var newrecord = Ext.create('MyApp.model.Labores_insumos');",
                                                            "f_crud.secuencia(function(rtn){",
                                                            "  if (rtn !== -1){",
                                                            "    newrecord.set('id',rtn);",
                                                            "    newrecord.set('id_labores', id_labores);",
                                                            "    newrecord.set('tipo','T');",
                                                            "    store.add(newrecord);",
                                                            "  }",
                                                            "});"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "cef8be01-04e3-4a68-b424-4e82cf5ce83a"
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "",
                                                "iconCls": "x-fa fa-trash",
                                                "layout|flex": null,
                                                "margin": "0 0 0 10",
                                                "text": ""
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "layout|flex": "number",
                                                "margin": "auto",
                                                "text": "string"
                                            },
                                            "name": "MyButton4",
                                            "designerId": "99b5c43e-f5c1-46b7-86d8-a13f971c54df",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "var grid = this.up('#labores_insumos_tab').down(\"#labores_insumos_grid\"),",
                                                            "//var gridSeletedRecord = this.up('#labores_insumos_tab').down(\"#labores_insumos_grid\").record;",
                                                            "gridSeletedRecords = grid.getSelection();",
                                                            "grid.getStore().remove(gridSeletedRecords);"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "cbf6b9b0-5221-4d30-b607-ee7aaac0c18c"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.container.Container",
                                    "reference": {
                                        "name": "dockedItems",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "cls": [
                                            "newButtons"
                                        ],
                                        "container|align": "middle",
                                        "container|pack": "center",
                                        "dock": "bottom",
                                        "itemId": "newButtonsInsumos",
                                        "layout": "hbox",
                                        "layout|columnWidth": 1,
                                        "margin": "20px 0 0 0 "
                                    },
                                    "configAlternates": {
                                        "container|align": "string",
                                        "container|pack": "string",
                                        "itemId": "string",
                                        "layout": "string",
                                        "layout|columnWidth": "auto",
                                        "dock": "string",
                                        "margin": "auto",
                                        "cls": "typedarray",
                                        "hidden": "boolean"
                                    },
                                    "name": "MyContainer3",
                                    "designerId": "f24dc24f-add3-4509-ab84-f109487183ad",
                                    "cn": [
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "sec-btn",
                                                "iconCls": "x-fa fa-plus",
                                                "layout|flex": null,
                                                "margin": "0 0 0 10",
                                                "text": "Insumo"
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "layout|flex": "number",
                                                "margin": "auto",
                                                "text": "string"
                                            },
                                            "name": "MyButton8",
                                            "designerId": "ecc6694b-fcfe-401d-895c-5e479691121d",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "f_crud.openNestedForm('InsumosPanel');"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "cda56ac0-9256-4ba7-80ae-39788773be53"
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "sec-btn",
                                                "iconCls": "x-fa fa-plus",
                                                "layout|flex": null,
                                                "margin": "0 0 0 10",
                                                "text": "Deposito"
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "layout|flex": "number",
                                                "margin": "auto",
                                                "text": "string"
                                            },
                                            "name": "MyButton9",
                                            "designerId": "84289060-fc5e-489d-b047-74f4cb8ba9e3",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "f_crud.openNestedForm('DepositosPanel');"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "9ecc433a-92f0-4159-bc43-fe7e86e691e4"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.panel.Panel",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "itemId": "labores_personal_tab",
                        "title": "Personal"
                    },
                    "configAlternates": {
                        "itemId": "string",
                        "title": "string"
                    },
                    "name": "MyPanel2",
                    "designerId": "653b7772-2987-468a-8121-9bfa09267bdb",
                    "cn": [
                        {
                            "type": "Ext.tab.Tab",
                            "reference": {
                                "name": "tabConfig",
                                "type": "object"
                            },
                            "codeClass": null,
                            "name": "TabConfig1",
                            "designerId": "5ee01e3d-c5a4-4c7c-a637-bb14e20b201e"
                        },
                        {
                            "type": "Ext.grid.Panel",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "header": false,
                                "itemId": "labores_personal_grid",
                                "store": "Labores_personal",
                                "title": "PersonalGrid"
                            },
                            "configAlternates": {
                                "header": "boolean",
                                "itemId": "string",
                                "store": "store",
                                "title": "string"
                            },
                            "name": "MyGridPanel6",
                            "designerId": "0958db53-fa29-4970-88e4-7a6d2737932e",
                            "cn": [
                                {
                                    "type": "Ext.view.Table",
                                    "reference": {
                                        "name": "viewConfig",
                                        "type": "object"
                                    },
                                    "codeClass": null,
                                    "name": "MyTable5",
                                    "designerId": "63c580e5-607b-41a5-88d4-f2ce2af85f5d"
                                },
                                {
                                    "type": "Ext.grid.column.Column",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "estado_registro",
                                        "hidden": true,
                                        "text": "Estado Registro"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyColumn37",
                                    "designerId": "0f45a426-4127-4464-b0ff-ad0998fe6133",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Text",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyTextField9",
                                            "designerId": "2dbe3b96-14df-4d2e-901b-1b8fc58eb58c"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "id",
                                        "hidden": true,
                                        "text": "ID",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto",
                                        "hidden": "boolean"
                                    },
                                    "name": "MyNumberColumn83",
                                    "designerId": "1890c776-dc65-4de8-a5b3-668abed9572e",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Display",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "value": "Display Field"
                                            },
                                            "configAlternates": {
                                                "value": "string"
                                            },
                                            "name": "MyDisplayField3",
                                            "designerId": "498a26a1-cd59-4b1c-9d2b-4fb04ee0ddb2"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "id_labores",
                                        "format": "00",
                                        "hidden": true,
                                        "text": "Id Labores"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyNumberColumn84",
                                    "designerId": "49e979e9-6b80-4dfc-b840-76a323f75c0d",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Display",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "value": "Display Field"
                                            },
                                            "configAlternates": {
                                                "value": "string"
                                            },
                                            "name": "MyDisplayField4",
                                            "designerId": "3ce91e8f-2cca-4798-9277-cde948f6c211"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "uid",
                                        "format": "00",
                                        "hidden": true,
                                        "text": "Uid"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyNumberColumn85",
                                    "designerId": "357b94be-c6f1-4e3e-949c-2609b2808b34",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyNumberField9",
                                            "designerId": "004544e8-f63b-477a-9bed-99f101710a22"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cod_personal",
                                        "designer|displayName": "Personal",
                                        "format": "00",
                                        "text": "Personal",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "designer|displayName": "string",
                                        "format": "string",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn86",
                                    "designerId": "dc18c44d-f8e8-4814-84c5-8b729cde3ee1",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.ComboBox",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "displayField": "nombre",
                                                "queryMode": "local",
                                                "store": "Personal",
                                                "valueField": "codigo"
                                            },
                                            "configAlternates": {
                                                "displayField": "datafield",
                                                "queryMode": "string",
                                                "store": "store",
                                                "valueField": "datafield"
                                            },
                                            "name": "MyComboBox6",
                                            "designerId": "5f544dae-3506-4ac2-bf88-8702d4b624a2"
                                        },
                                        {
                                            "type": "basicfunction",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "designer|params": [
                                                    "value, metaData, record, rowIndex, colIndex, store"
                                                ],
                                                "fn": "renderer",
                                                "implHandler": [
                                                    "return f_crud.getDisplayValue('Personal', value, 'nombre');"
                                                ]
                                            },
                                            "configAlternates": {
                                                "designer|params": "typedarray",
                                                "fn": "string",
                                                "implHandler": "code"
                                            },
                                            "name": "renderer",
                                            "designerId": "c1e61668-e14a-4f90-aaa9-e4f908b52ed9"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cod_concepto",
                                        "format": "00",
                                        "hidden": true,
                                        "text": "Concepto"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyNumberColumn87",
                                    "designerId": "0359e324-5e95-4f3d-a5e4-3be59c53b827",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyNumberField13",
                                            "designerId": "aff299e1-ace8-4ab7-bb39-d1bbba5ef474"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cantidad",
                                        "text": "Cantidad",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn88",
                                    "designerId": "f8de9048-8396-4582-9f21-3d7419a3ba2d",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "allowDecimals": false,
                                                "inputType": "tel"
                                            },
                                            "configAlternates": {
                                                "allowDecimals": "boolean",
                                                "inputType": "string"
                                            },
                                            "name": "MyNumberField14",
                                            "designerId": "6267dfee-00d2-474c-acfd-161b84c66d1a"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "precio",
                                        "text": "Precio",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn89",
                                    "designerId": "277546e5-505c-4278-b95b-d488fd12978e",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "inputType": "tel"
                                            },
                                            "configAlternates": {
                                                "inputType": "string"
                                            },
                                            "name": "MyNumberField15",
                                            "designerId": "26f23459-ad51-46fc-b366-52724fb7bbea"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "importe",
                                        "text": "Importe",
                                        "width": "20%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn92",
                                    "designerId": "f51f62a9-895d-48b7-983f-2d166f670506",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "inputType": "tel"
                                            },
                                            "configAlternates": {
                                                "inputType": "string"
                                            },
                                            "name": "MyNumberField16",
                                            "designerId": "85ab760d-5d2b-4192-b033-8ff287706a98"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.plugin.CellEditing",
                                    "reference": {
                                        "name": "plugins",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "clicksToEdit": 1
                                    },
                                    "configAlternates": {
                                        "clicksToEdit": "number"
                                    },
                                    "name": "MyCellEditingPlugin6",
                                    "designerId": "612a6bbf-7653-464e-94cb-94437d85035d"
                                },
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onGridpanelSelectionChange1",
                                        "implHandler": [
                                            "this.down(\"#labores_personal_grid\").record = selected[0];"
                                        ],
                                        "name": "selectionchange",
                                        "scope": "me"
                                    },
                                    "configAlternates": {
                                        "fn": "string",
                                        "implHandler": "code",
                                        "name": "string",
                                        "scope": "string"
                                    },
                                    "name": "onGridpanelSelectionChange1",
                                    "designerId": "e0fcafcf-0cb0-49e5-83a5-dfeffb774e03"
                                },
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onLabores_personal_gridBeforeRender",
                                        "implHandler": [
                                            "f_crud.renderGridWidth(component);"
                                        ],
                                        "name": "beforerender",
                                        "scope": "me"
                                    },
                                    "configAlternates": {
                                        "fn": "string",
                                        "implHandler": "code",
                                        "name": "string",
                                        "scope": "string"
                                    },
                                    "name": "onLabores_personal_gridBeforeRender",
                                    "designerId": "270e5168-ee9c-4f4b-800b-f8e2e873f5e6"
                                },
                                {
                                    "type": "Ext.selection.CheckboxModel",
                                    "reference": {
                                        "name": "selModel",
                                        "type": "object"
                                    },
                                    "codeClass": null,
                                    "name": "MyCheckboxSelectionModel2",
                                    "designerId": "7a84d8b0-744d-4c9f-8e07-bde9738cbddf"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.Panel",
                            "reference": {
                                "name": "dockedItems",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "bodyPadding": 10,
                                "designer|displayName": "gridControl",
                                "dock": "bottom",
                                "flex": null,
                                "header": false,
                                "layout": "column",
                                "title": "My Form"
                            },
                            "configAlternates": {
                                "bodyPadding": "auto",
                                "designer|displayName": "string",
                                "dock": "string",
                                "flex": "number",
                                "header": "boolean",
                                "layout": "string",
                                "title": "string"
                            },
                            "name": "MyForm7",
                            "designerId": "5853ec2a-5cce-4afb-9496-117d68a41f0b",
                            "cn": [
                                {
                                    "type": "Ext.container.Container",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "cls": [
                                            "tabCtrol"
                                        ],
                                        "container|align": "stretch",
                                        "container|pack": "center",
                                        "itemId": "tabCtrolPersonal",
                                        "layout": "hbox",
                                        "layout|columnWidth": 1
                                    },
                                    "configAlternates": {
                                        "container|align": "string",
                                        "container|pack": "string",
                                        "itemId": "string",
                                        "layout": "string",
                                        "layout|columnWidth": "auto",
                                        "cls": "typedarray"
                                    },
                                    "name": "MyContainer2",
                                    "designerId": "e636be4a-f8a3-4a80-bdb3-3fc64568b9d6",
                                    "cn": [
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "",
                                                "iconCls": "x-fa fa-plus",
                                                "text": ""
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "text": "string"
                                            },
                                            "name": "MyButton3",
                                            "designerId": "1945f868-3002-4e4b-a535-cb6ea166b2a8",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "var form_panel = this.up('[cls=formpanel]');",
                                                            "var id_labores  =  form_panel.getRecord().get('id');",
                                                            "var store = Ext.getStore('Labores_personal');",
                                                            "var newrecord = Ext.create('MyApp.model.Labores_personal');",
                                                            "f_crud.secuencia(function(rtn){",
                                                            "  if (rtn !== -1){",
                                                            "    newrecord.set('id',rtn);",
                                                            "    newrecord.set('id_labores', id_labores);",
                                                            "    newrecord.set('tipo','T');",
                                                            "    store.add(newrecord);",
                                                            "  }",
                                                            "});"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "f937bbec-a64d-4395-a781-2147d4777d41"
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "",
                                                "iconCls": "x-fa fa-trash",
                                                "layout|flex": null,
                                                "margin": "0 0 0 10",
                                                "text": ""
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "layout|flex": "number",
                                                "margin": "auto",
                                                "text": "string"
                                            },
                                            "name": "MyButton4",
                                            "designerId": "b646f548-b552-4f00-8a06-cd9f8d3f12ef",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "var grid = this.up('#labores_personal_tab').down(\"#labores_personal_grid\"),",
                                                            "    ",
                                                            "/*var gridSeletedRecord = this.up('#labores_personal_tab').down(\"#labores_personal_grid\").record;",
                                                            "grid.getStore().remove(gridSeletedRecord);*/",
                                                            "gridSeletedRecords = grid.getSelection();",
                                                            "grid.getStore().remove(gridSeletedRecords);"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "7ebff83b-6e44-4a76-99b3-1ad8cd9d1033"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.container.Container",
                                    "reference": {
                                        "name": "dockedItems",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "cls": [
                                            "newButtons"
                                        ],
                                        "container|align": "middle",
                                        "container|pack": "center",
                                        "dock": "bottom",
                                        "itemId": "newButtonsPersonal",
                                        "layout": "hbox",
                                        "layout|columnWidth": 1,
                                        "margin": "20px 0 0 0 "
                                    },
                                    "configAlternates": {
                                        "container|align": "string",
                                        "container|pack": "string",
                                        "itemId": "string",
                                        "layout": "string",
                                        "layout|columnWidth": "auto",
                                        "dock": "string",
                                        "margin": "auto",
                                        "cls": "typedarray",
                                        "hidden": "boolean"
                                    },
                                    "name": "MyContainer4",
                                    "designerId": "bb3610de-02cd-4d16-a0e2-de2c26297c86",
                                    "cn": [
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "sec-btn",
                                                "iconCls": "x-fa fa-plus",
                                                "layout|flex": null,
                                                "margin": "0 0 0 10",
                                                "text": "Personal"
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "layout|flex": "number",
                                                "margin": "auto",
                                                "text": "string"
                                            },
                                            "name": "MyButton8",
                                            "designerId": "1d5faaa4-83ca-46b8-861e-1ff3aa1e30bc",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "f_crud.openNestedForm('PersonalPanel');"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "ee141966-c2ce-4604-9dc2-ae38f5aee4c1"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Ext.panel.Panel",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "itemId": "labores_maquinaria_tab",
                        "title": "Maquinaria"
                    },
                    "configAlternates": {
                        "itemId": "string",
                        "title": "string"
                    },
                    "name": "MyPanel3",
                    "designerId": "f22ef8e2-c3b7-4335-80b8-a04c7b6ce3ee",
                    "cn": [
                        {
                            "type": "Ext.tab.Tab",
                            "reference": {
                                "name": "tabConfig",
                                "type": "object"
                            },
                            "codeClass": null,
                            "name": "TabConfig2",
                            "designerId": "48748d11-6db7-4a29-a676-e2463b289ec3"
                        },
                        {
                            "type": "Ext.grid.Panel",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "header": false,
                                "itemId": "labores_maquinaria_grid",
                                "store": "Labores_maquinaria",
                                "title": "My Grid Panel"
                            },
                            "configAlternates": {
                                "header": "boolean",
                                "itemId": "string",
                                "store": "store",
                                "title": "string"
                            },
                            "name": "MyGridPanel7",
                            "designerId": "e5a5e670-714d-4a18-967d-b1cd8823d972",
                            "cn": [
                                {
                                    "type": "Ext.view.Table",
                                    "reference": {
                                        "name": "viewConfig",
                                        "type": "object"
                                    },
                                    "codeClass": null,
                                    "name": "MyTable7",
                                    "designerId": "bc84f6de-e25a-4998-9c7d-e3957dedb25a"
                                },
                                {
                                    "type": "Ext.grid.column.Column",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "estado_registro",
                                        "hidden": true,
                                        "text": "Estado Registro"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyColumn22",
                                    "designerId": "7f4238d7-f543-41b5-ac95-01a931160872",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Text",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyTextField10",
                                            "designerId": "737587d5-67ed-41e6-ab54-a4e3bd8db335"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "id",
                                        "hidden": true,
                                        "text": "ID",
                                        "width": "33%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto",
                                        "hidden": "boolean"
                                    },
                                    "name": "MyNumberColumn6",
                                    "designerId": "eab491c1-f36b-4760-a432-092af87794da",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Display",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "value": "Display Field"
                                            },
                                            "configAlternates": {
                                                "value": "string"
                                            },
                                            "name": "MyDisplayField5",
                                            "designerId": "491b3331-1f7c-45ca-b0ce-0ebf5ac6bc5c"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "id_labores",
                                        "format": "00",
                                        "hidden": true,
                                        "text": "Id Labores"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyNumberColumn42",
                                    "designerId": "2ffc3a67-a434-486b-8782-20e93a8a73ba",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Display",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "value": "Display Field"
                                            },
                                            "configAlternates": {
                                                "value": "string"
                                            },
                                            "name": "MyDisplayField6",
                                            "designerId": "d2bdb6f1-1c31-4edb-9859-61cd447a38a2"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "uid",
                                        "format": "00",
                                        "hidden": true,
                                        "text": "Uid"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "hidden": "boolean",
                                        "text": "string"
                                    },
                                    "name": "MyNumberColumn50",
                                    "designerId": "46a1f26a-9f71-4f2d-ae5f-9222349f799f",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "name": "MyNumberField12",
                                            "designerId": "c3696675-5f9a-466e-a2e0-498347920398"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cod_maquina",
                                        "format": "00",
                                        "text": "Maquina",
                                        "width": "33%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "format": "string",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn51",
                                    "designerId": "978b27ef-2023-45d8-bb9c-433f913f10cc",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.ComboBox",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "displayField": "nombre",
                                                "queryMode": "local",
                                                "store": "Maquinaria",
                                                "valueField": "codigo"
                                            },
                                            "configAlternates": {
                                                "displayField": "datafield",
                                                "queryMode": "string",
                                                "store": "store",
                                                "valueField": "datafield"
                                            },
                                            "name": "MyComboBox7",
                                            "designerId": "0c1fd11e-5de1-4fc1-8ead-2a0f8b7b5d44"
                                        },
                                        {
                                            "type": "basicfunction",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "designer|params": [
                                                    "value, metaData, record, rowIndex, colIndex, store"
                                                ],
                                                "fn": "renderer",
                                                "implHandler": [
                                                    "return f_crud.getDisplayValue('Maquinaria', value, 'nombre');"
                                                ]
                                            },
                                            "configAlternates": {
                                                "designer|params": "typedarray",
                                                "fn": "string",
                                                "implHandler": "code"
                                            },
                                            "name": "renderer",
                                            "designerId": "bfbabd90-2a89-46fe-bdf8-5b154d42c9ba"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.column.Number",
                                    "reference": {
                                        "name": "columns",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "dataIndex": "cantidad",
                                        "text": "Cantidad",
                                        "width": "33%"
                                    },
                                    "configAlternates": {
                                        "dataIndex": "datafield",
                                        "text": "string",
                                        "width": "auto"
                                    },
                                    "name": "MyNumberColumn52",
                                    "designerId": "9a50c821-df8a-4fa9-bf85-978468eb9e65",
                                    "cn": [
                                        {
                                            "type": "Ext.form.field.Number",
                                            "reference": {
                                                "name": "editor",
                                                "type": "object"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "allowDecimals": false,
                                                "inputType": "tel"
                                            },
                                            "configAlternates": {
                                                "allowDecimals": "boolean",
                                                "inputType": "string"
                                            },
                                            "name": "MyNumberField18",
                                            "designerId": "8d88ce9e-ed13-43d9-acd9-6a5b39e9a204"
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.grid.plugin.CellEditing",
                                    "reference": {
                                        "name": "plugins",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "clicksToEdit": 1
                                    },
                                    "configAlternates": {
                                        "clicksToEdit": "number"
                                    },
                                    "name": "MyCellEditingPlugin",
                                    "designerId": "0b8e09d3-9a53-4b24-86d0-71122bc502f8"
                                },
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onLabores_maquinaria_gridSelectionChange",
                                        "implHandler": [
                                            "this.down(\"#labores_maquinaria_grid\").record = selected[0];   "
                                        ],
                                        "name": "selectionchange",
                                        "scope": "me"
                                    },
                                    "configAlternates": {
                                        "fn": "string",
                                        "implHandler": "code",
                                        "name": "string",
                                        "scope": "string"
                                    },
                                    "name": "onLabores_maquinaria_gridSelectionChange",
                                    "designerId": "a4b65195-59fb-4e07-8ce2-333f9486152d"
                                },
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onLabores_maquinaria_gridBeforeRender",
                                        "implHandler": [
                                            "f_crud.renderGridWidth(component);"
                                        ],
                                        "name": "beforerender",
                                        "scope": "me"
                                    },
                                    "configAlternates": {
                                        "fn": "string",
                                        "implHandler": "code",
                                        "name": "string",
                                        "scope": "string"
                                    },
                                    "name": "onLabores_maquinaria_gridBeforeRender",
                                    "designerId": "edc49065-f3d9-4035-a97c-9bfa6bf4ca44"
                                },
                                {
                                    "type": "Ext.selection.CheckboxModel",
                                    "reference": {
                                        "name": "selModel",
                                        "type": "object"
                                    },
                                    "codeClass": null,
                                    "name": "MyCheckboxSelectionModel1",
                                    "designerId": "16a9da60-ea02-4f6e-80bf-e11176eb48a8"
                                }
                            ]
                        },
                        {
                            "type": "Ext.form.Panel",
                            "reference": {
                                "name": "dockedItems",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "bodyPadding": 10,
                                "designer|displayName": "gridControl",
                                "dock": "bottom",
                                "flex": null,
                                "header": false,
                                "layout": "column",
                                "title": "My Form"
                            },
                            "configAlternates": {
                                "bodyPadding": "auto",
                                "designer|displayName": "string",
                                "dock": "string",
                                "flex": "number",
                                "header": "boolean",
                                "layout": "string",
                                "title": "string"
                            },
                            "name": "MyForm6",
                            "designerId": "8e0a429a-b275-477c-b365-9e4107fdc8bc",
                            "cn": [
                                {
                                    "type": "Ext.container.Container",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "cls": [
                                            "tabCtrol"
                                        ],
                                        "container|align": "stretch",
                                        "container|pack": "center",
                                        "itemId": "tabCtrolMaquinaria",
                                        "layout": "hbox",
                                        "layout|columnWidth": 1
                                    },
                                    "configAlternates": {
                                        "container|align": "string",
                                        "container|pack": "string",
                                        "itemId": "string",
                                        "layout": "string",
                                        "layout|columnWidth": "auto",
                                        "cls": "typedarray"
                                    },
                                    "name": "MyContainer2",
                                    "designerId": "5e26ffff-1224-488c-93eb-e0453330f8ee",
                                    "cn": [
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "",
                                                "iconCls": "x-fa fa-plus",
                                                "text": ""
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "text": "string"
                                            },
                                            "name": "MyButton3",
                                            "designerId": "5f3c84e0-d285-46e8-8607-d4bd50133954",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "var form_panel = this.up('[cls=formpanel]');",
                                                            "var id_labores  =  form_panel.getRecord().get('id');",
                                                            "var store = Ext.getStore('Labores_maquinaria');",
                                                            "var newrecord = Ext.create('MyApp.model.Labores_maquinaria');",
                                                            "f_crud.secuencia(function(rtn){",
                                                            "  if (rtn !== -1){",
                                                            "    newrecord.set('id',rtn);",
                                                            "    newrecord.set('id_labores', id_labores);",
                                                            "    newrecord.set('tipo','T');",
                                                            "    store.add(newrecord);",
                                                            "  }",
                                                            "});"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "4bdae19b-139c-469d-a2a4-e0a604956319"
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "",
                                                "iconCls": "x-fa fa-trash",
                                                "layout|flex": null,
                                                "margin": "0 0 0 10",
                                                "text": ""
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "layout|flex": "number",
                                                "margin": "auto",
                                                "text": "string"
                                            },
                                            "name": "MyButton4",
                                            "designerId": "222a6c89-80a7-4e0b-ab4f-a0744fc328c4",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "var grid = this.up('#labores_maquinaria_tab').down(\"#labores_maquinaria_grid\"),",
                                                            "/*var gridSeletedRecord = this.up('#labores_maquinaria_tab').down(\"#labores_maquinaria_grid\").record;",
                                                            "grid.getStore().remove(gridSeletedRecord);*/",
                                                            "gridSeletedRecords = grid.getSelection();",
                                                            "grid.getStore().remove(gridSeletedRecords);"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "1315966d-230f-46f1-ae5d-96795f7d7931"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "type": "Ext.container.Container",
                                    "reference": {
                                        "name": "dockedItems",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "cls": [
                                            "newButtons"
                                        ],
                                        "container|align": "middle",
                                        "container|pack": "center",
                                        "dock": "bottom",
                                        "itemId": "newButtonsMaquinaria",
                                        "layout": "hbox",
                                        "layout|columnWidth": 1,
                                        "margin": "20px 0 0 0 "
                                    },
                                    "configAlternates": {
                                        "container|align": "string",
                                        "container|pack": "string",
                                        "itemId": "string",
                                        "layout": "string",
                                        "layout|columnWidth": "auto",
                                        "dock": "string",
                                        "margin": "auto",
                                        "cls": "typedarray",
                                        "hidden": "boolean"
                                    },
                                    "name": "MyContainer5",
                                    "designerId": "92e89f09-5f40-42ca-a172-b06885ccd3b2",
                                    "cn": [
                                        {
                                            "type": "Ext.button.Button",
                                            "reference": {
                                                "name": "items",
                                                "type": "array"
                                            },
                                            "codeClass": null,
                                            "userConfig": {
                                                "cls": "sec-btn",
                                                "iconCls": "x-fa fa-plus",
                                                "layout|flex": null,
                                                "margin": "0 0 0 10",
                                                "text": "Maquinaria"
                                            },
                                            "configAlternates": {
                                                "cls": "string",
                                                "iconCls": "string",
                                                "layout|flex": "number",
                                                "margin": "auto",
                                                "text": "string"
                                            },
                                            "name": "MyButton8",
                                            "designerId": "251d435c-a5e7-449b-a805-3c446ee733ff",
                                            "cn": [
                                                {
                                                    "type": "fixedfunction",
                                                    "reference": {
                                                        "name": "items",
                                                        "type": "array"
                                                    },
                                                    "codeClass": null,
                                                    "userConfig": {
                                                        "designer|params": [
                                                            "button",
                                                            "e"
                                                        ],
                                                        "fn": "handler",
                                                        "implHandler": [
                                                            "f_crud.openNestedForm('MaquinariaPanel');"
                                                        ]
                                                    },
                                                    "configAlternates": {
                                                        "designer|params": "typedarray",
                                                        "fn": "string",
                                                        "implHandler": "code"
                                                    },
                                                    "name": "handler",
                                                    "designerId": "95c0df83-df24-4b6f-8c60-058a72057d2c"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "type": "Ext.container.Container",
            "reference": {
                "name": "dockedItems",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "container|align": "stretch",
                "container|pack": "center",
                "dock": "bottom",
                "layout": "hbox",
                "layout|flex": null
            },
            "configAlternates": {
                "container|align": "string",
                "container|pack": "string",
                "dock": "string",
                "layout": "string",
                "layout|flex": "number"
            },
            "name": "MyContainer1",
            "designerId": "792936d0-2843-4b2c-9b1e-b8e2723b3158",
            "cn": [
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "iconCls": "x-fa fa-check",
                        "layout|flex": null,
                        "layout|margins": "",
                        "margin": 10,
                        "text": "Aceptar"
                    },
                    "configAlternates": {
                        "iconCls": "string",
                        "layout|flex": "number",
                        "layout|margins": "string",
                        "margin": "auto",
                        "text": "string"
                    },
                    "name": "MyButton6",
                    "designerId": "71cbc27c-a085-4755-aa79-f221dc7012d7",
                    "cn": [
                        {
                            "type": "fixedfunction",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "designer|params": [
                                    "button",
                                    "e"
                                ],
                                "fn": "handler",
                                "implHandler": [
                                    "",
                                    "/*MyApp.currentEditingCell.blur();*/",
                                    "var formWrapper = this.up('[cls=formpanel]');",
                                    "var tarea_cod = formWrapper.down(\"#fieldTarea\").value;",
                                    "",
                                    "formWrapper.form._record.data.cod_lote_actividad = formWrapper.parent.codigo;",
                                    "formWrapper.form._record.data.cod_lote = formWrapper.parent.cod_lote;",
                                    "",
                                    "var pk_lote_actividad = formWrapper.parent.codigo;",
                                    "var sqlJoin = \"select actividades.cod_periodo from actividades join lotes_actividades \";",
                                    "sqlJoin = sqlJoin + \"on actividades.codigo=lotes_actividades.cod_actividad \";",
                                    "sqlJoin = sqlJoin + \"where lotes_actividades.codigo = \" + pk_lote_actividad;",
                                    "f_crud.sql_select(sqlJoin, function(periodResultSet){",
                                    "  if(periodResultSet === -1 || !Array.isArray(periodResultSet)) {",
                                    "    console.log(\"Query statement: \" + sqlJoin);",
                                    "    throw \"Database error: Check your sql statement or your WebSql instance\";",
                                    "  }",
                                    "  else {",
                                    "    var query = \"select cod_establecimiento from Lotes where codigo = \" + formWrapper.parent.cod_lote;",
                                    "    formWrapper.form._record.data.cod_periodo = periodResultSet[0].cod_periodo;",
                                    "    f_crud.sql_select(query, function(resultSet){",
                                    "      if(resultSet === -1 || !Array.isArray(resultSet)) {",
                                    "        console.log(\"Query statement: \" + query);",
                                    "        throw \"Database error: Check your sql statement or your WebSql instance\";",
                                    "      }",
                                    "      else {",
                                    "        formWrapper.form._record.data.cod_establecimiento = resultSet[0].cod_establecimiento;",
                                    "        //f_crud.save_form(formWrapper);",
                                    "        if(formWrapper.getForm().isValid()) {",
                                    "          f_crud.save_form(formWrapper);",
                                    "        }",
                                    "      }",
                                    "    });",
                                    "  }",
                                    "",
                                    "});"
                                ]
                            },
                            "configAlternates": {
                                "designer|params": "typedarray",
                                "fn": "string",
                                "implHandler": "code"
                            },
                            "name": "handler",
                            "designerId": "1eeaca08-f7b8-4530-a429-2246147ac65c"
                        }
                    ]
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "iconCls": "x-fa fa-remove",
                        "layout|flex": null,
                        "margin": 10,
                        "text": "Cancelar"
                    },
                    "configAlternates": {
                        "iconCls": "string",
                        "layout|flex": "number",
                        "margin": "auto",
                        "text": "string"
                    },
                    "name": "MyButton7",
                    "designerId": "43a6ae91-f94c-467b-917f-a2a2dff62f8b",
                    "cn": [
                        {
                            "type": "fixedfunction",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "designer|params": [
                                    "button",
                                    "e"
                                ],
                                "fn": "handler",
                                "implHandler": [
                                    "f_crud.close_form(this.up(\"[cls=formpanel]\"));"
                                ]
                            },
                            "configAlternates": {
                                "designer|params": "typedarray",
                                "fn": "string",
                                "implHandler": "code"
                            },
                            "name": "handler",
                            "designerId": "bdb3249c-20d8-49e6-a9a8-a0588c3dcbd2"
                        }
                    ]
                }
            ]
        }
    ]
}