{
  "eventsAndFunctions": [
    {
      "algorithm": {
        "parameters": [],
        "statements": [
          {
            "command": "ReadModel",
            "modelVariableName": "region",
            "variableName": "region"
          },
          {
            "children": [
              {
                "command": "Disable",
                "widgetName": "txtCode"
              },
              {
                "command": "SetValue",
                "expression": "^region.code",
                "widgetName": "txtCode"
              },
              {
                "command": "SetValue",
                "expression": "^region.name",
                "widgetName": "txtName"
              },
              {
                "command": "SetValue",
                "expression": "^region.description",
                "widgetName": "textDescription"
              },
              {
                "command": "SetValue",
                "expression": "^region.geoInfo",
                "widgetName": "textGeoInfo"
              }
            ],
            "command": "If",
            "expression": "IsNotNull(^region) && IsNotNull(region.id)"
          }
        ],
        "typeReturn": "any",
        "variables": [
          {
            "name": "region",
            "type": "ExtPresales.Region"
          }
        ]
      },
      "name": "main_init"
    }
  ],
  "model": [
    {
      "name": "region",
      "required": false,
      "type": "ExtPresales.Region"
    }
  ],
  "root": {
    "children": [
      {
        "children": [
          {
            "children": [
              {
                "binding": "region.code",
                "label": "[[Code]]",
                "last": true,
                "mandatory": true,
                "name": "txtCode",
                "size": 2,
                "widget": "TextBox"
              },
              {
                "binding": "region.name",
                "label": "[[Name]]",
                "last": true,
                "mandatory": true,
                "name": "txtName",
                "size": 2,
                "widget": "TextBox"
              },
              {
                "binding": "region.description",
                "label": "[[Description]]",
                "last": true,
                "name": "textDescription",
                "size": 2,
                "widget": "TextBox"
              },
              {
                "binding": "region.geoInfo",
                "label": "[[GeoInfo]]",
                "last": true,
                "name": "textGeoInfo",
                "size": 2,
                "widget": "TextBox"
              }
            ],
            "cssClass": "blz-area-default blz-border-top blz-border-right blz-border-left blz-border-bottom blz-border-radius",
            "layout": "form"
          }
        ],
        "cssClass": "blz-padding-top-large blz-padding-right-large blz-padding-left-large blz-padding-bottom-large",
        "layout": "fit"
      }
    ],
    "layout": "responsive"
  },
  "routing": null,
  "unused": []
}