{
    "type": "Ext.form.Panel",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "bodyPadding": 10,
        "cls": [
            "formpanel"
        ],
        "container|align": "stretch",
        "designer|userAlias": "lotesform",
        "designer|userClassName": "LotesForm",
        "height": null,
        "initialTitle": "lote",
        "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": "MyForm3",
    "designerId": "4fa39d2f-e014-4acb-b7f3-9d9100f4eaec",
    "customConfigs": [
        {
            "group": "(Custom Properties)",
            "name": "initialTitle",
            "type": "string"
        }
    ],
    "viewControllerInstanceId": "774ce9f5-d9e4-46fb-91a2-75ee0c7871c0",
    "viewModelInstanceId": "194943ae-ad3a-4ce3-9e57-1bf90560075c",
    "cn": [
        {
            "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": "Codigo",
                "layout|flex": null,
                "name": "codigo"
            },
            "configAlternates": {
                "allowBlank": "boolean",
                "blankText": "string",
                "editable": "boolean",
                "fieldLabel": "string",
                "layout|flex": "number",
                "name": "string",
                "enableKeyEvents": "boolean"
            },
            "name": "MyTextField17",
            "designerId": "0e3047c6-6d3a-4989-8bbd-f530868385c8"
        },
        {
            "type": "Ext.form.field.Text",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "allowBlank": false,
                "blankText": "Este campo es obligatorio",
                "enableKeyEvents": true,
                "fieldLabel": "Nombre*",
                "layout|flex": null,
                "name": "nombre"
            },
            "configAlternates": {
                "allowBlank": "boolean",
                "blankText": "string",
                "fieldLabel": "string",
                "layout|flex": "number",
                "name": "string",
                "enableKeyEvents": "boolean"
            },
            "name": "MyTextField1",
            "designerId": "0f39f90e-5ca4-4ad9-9d9b-096c738b27ec"
        },
        {
            "type": "Ext.form.field.Number",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "allowBlank": false,
                "blankText": "Este campo es obligatorio",
                "decimalSeparator": null,
                "enableKeyEvents": true,
                "fieldLabel": "Superficie*",
                "inputType": "tel",
                "layout|flex": null,
                "minValue": 0,
                "name": "superficie",
                "negativeText": "Este valor debe ser positivo"
            },
            "configAlternates": {
                "allowBlank": "boolean",
                "blankText": "string",
                "fieldLabel": "string",
                "layout|flex": "number",
                "name": "string",
                "enableKeyEvents": "boolean",
                "decimalSeparator": "string",
                "minValue": "number",
                "negativeText": "string",
                "inputType": "string"
            },
            "name": "MyNumberField",
            "designerId": "3b8ae3e2-3f81-43f0-929b-58713b095319"
        },
        {
            "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": "b7256583-2347-4f39-8e0c-0f4ffcc1964d",
            "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": "3322062e-f2fd-43f3-9a29-41f44306ec6a",
                    "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.form._record.data.cod_establecimiento = formWrapper.parent.codigo;",
                                    "if(formWrapper.getForm().isValid()) {",
                                    "  f_crud.save_form(formWrapper);",
                                    "}"
                                ]
                            },
                            "configAlternates": {
                                "designer|params": "typedarray",
                                "fn": "string",
                                "implHandler": "code"
                            },
                            "name": "handler",
                            "designerId": "f02d3e1b-6610-4087-bf01-c92d08493b14"
                        }
                    ]
                },
                {
                    "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": "19110df4-4063-4bd4-91d3-9bb2675e556e",
                    "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": "3c399979-7ebb-4fcd-a39a-e314d6613fb9"
                        }
                    ]
                }
            ]
        },
        {
            "type": "basiceventbinding",
            "reference": {
                "name": "listeners",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "fn": "onFormActivate",
                "implHandler": [
                    "f_crud.setFormTitle(component);"
                ],
                "name": "activate",
                "scope": "me"
            },
            "configAlternates": {
                "fn": "string",
                "implHandler": "code",
                "name": "string",
                "scope": "string"
            },
            "name": "onFormActivate",
            "designerId": "f20e68af-c9b1-44b9-bcf0-856b07c8892a"
        }
    ]
}