{
    "type": "Ext.panel.Panel",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "autoRender": true,
        "bodyBorder": false,
        "border": false,
        "container|align": "stretch",
        "designer|userClassName": "MyPanel",
        "frameHeader": false,
        "header": false,
        "height": null,
        "itemId": "myPanel",
        "layout": "hbox",
        "margin": 0,
        "minHeight": null,
        "overflowY": null,
        "resizable": false,
        "title": "Reports",
        "width": null
    },
    "configAlternates": {
        "resizable": "boolean"
    },
    "designerId": "67c20a6a-0e79-4d52-9ec1-1f777ab12a3a",
    "cn": [
        {
            "type": "Ext.grid.Panel",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "header": false,
                "itemId": "grid",
                "layout|flex": 1,
                "overflowY": "auto",
                "store": "restrictions",
                "title": "My Grid Panel"
            },
            "designerId": "ad8e8f58-1407-4cd2-9873-f32eadd48a28",
            "cn": [
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "id",
                        "text": "ID",
                        "width": 50
                    },
                    "designerId": "3ed9ee3a-1ffc-4289-ae28-9841c5d5a2ce"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "system",
                        "text": "System",
                        "width": 50
                    },
                    "designerId": "b275e484-d18e-48da-b447-e2abb9439094"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "client",
                        "text": "Client",
                        "width": 50
                    },
                    "designerId": "d24683e3-faac-4bcb-9f45-d7025e77731c"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "project",
                        "text": "Project"
                    },
                    "designerId": "8e8f8a98-7d46-4512-86ec-e9d4c7da4771"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "object_class",
                        "text": "Object Class"
                    },
                    "designerId": "c587e206-3580-474f-9d46-f074c1c3f4c1"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "object",
                        "text": "Object"
                    },
                    "designerId": "065880c0-ef3e-4911-8431-6ec8beb342d7"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "field",
                        "text": "Field"
                    },
                    "designerId": "388a201b-e6b0-405d-816c-6fb823cdf0ec"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "value",
                        "text": "Value"
                    },
                    "designerId": "678e9997-107e-4e3c-9e1c-927caa42307c"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dataIndex": "comment",
                        "flex": 1,
                        "text": "Comment"
                    },
                    "designerId": "94298032-823b-404c-b78a-3d00b455c47e"
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "align": null,
                        "dataIndex": "audit_timestamp",
                        "text": "Last change",
                        "width": 120
                    },
                    "designerId": "e16aaef1-0cab-4531-8140-c12622b0fc3f",
                    "cn": [
                        {
                            "type": "fixedfunction",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "designer|params": [
                                    "value",
                                    "metaData",
                                    "record",
                                    "rowIndex",
                                    "colIndex",
                                    "store",
                                    "view"
                                ],
                                "fn": "renderer",
                                "implHandler": [
                                    "return '<p style=\"padding:0;margin:0;line-height:1em;\"'+\r",
                                    "\t' title=\"'+ record.get('audit_user')+\r",
                                    "\t' ('+ record.get('audit_system')+'/'+record.get('audit_client')  +')\">'+value+'</p>';"
                                ]
                            },
                            "designerId": "c0ac0657-4b0a-4e9a-86aa-f06941877ff1"
                        }
                    ]
                },
                {
                    "type": "Ext.grid.column.Column",
                    "reference": {
                        "name": "columns",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "align": "center",
                        "cls": "setLeft",
                        "dataIndex": "status",
                        "text": "Status",
                        "width": 50
                    },
                    "designerId": "32f649c2-3bbb-4ff9-9b28-32e1d5ba03b1",
                    "cn": [
                        {
                            "type": "fixedfunction",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "designer|params": [
                                    "value",
                                    "metaData",
                                    "record",
                                    "rowIndex",
                                    "colIndex",
                                    "store",
                                    "view"
                                ],
                                "fn": "renderer",
                                "implHandler": [
                                    "var icon = \"light_grey.png\";\r",
                                    "var text = CCS.Translator.getText(\"Unknown\");\r",
                                    "\r",
                                    "switch(value) {\r",
                                    "\tcase 'A':\r",
                                    "\t\ticon = \"light_green.png\";\r",
                                    "\t\ttext = CCS.Translator.getText(\"Active\");\r",
                                    "\tbreak;\r",
                                    "\tcase 'I':\r",
                                    "\t\ticon = \"light_yellow.png\";\r",
                                    "\t\ttext = CCS.Translator.getText(\"Inactive\");\r",
                                    "\tbreak;\r",
                                    "\tcase 'D':\r",
                                    "\t\ticon = \"light_red.png\";\r",
                                    "\t\ttext = CCS.Translator.getText(\"Deleted\");\r",
                                    "\tbreak;\r",
                                    "}\r",
                                    "\r",
                                    "return '<img src=\"../../../common/ui/gfx/'+icon+'\" title=\"'+text+'\" alt=\"'+text+'\" />';"
                                ]
                            },
                            "designerId": "317754a7-8959-4c1f-9211-e72982dbdedf"
                        }
                    ]
                },
                {
                    "type": "Ext.grid.View",
                    "reference": {
                        "name": "viewConfig",
                        "type": "object"
                    },
                    "codeClass": null,
                    "designerId": "4df28dd0-60ea-4426-b1a8-2274eddbefcc"
                },
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "dockedItems",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "dock": "bottom"
                    },
                    "designerId": "cf62bd28-88ed-4476-9227-dd1fe7a3e951",
                    "cn": [
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "width": 10
                            },
                            "designerId": "270a4a2d-3028-49d7-841e-243eef7bc697"
                        },
                        {
                            "type": "Ext.container.Container",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "container|align": "stretch",
                                "layout": "hbox",
                                "layout|flex": null
                            },
                            "designerId": "21f86716-c68b-4bd4-9ca8-ed17702e3d66",
                            "cn": [
                                {
                                    "type": "Ext.button.Button",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "icon": "../gfx/container_add.png",
                                        "itemId": "btnCreate",
                                        "layout|flex": null,
                                        "padding": 5,
                                        "scale": "medium",
                                        "text": "Create"
                                    },
                                    "designerId": "840940ee-3bbd-4e30-9a5e-b68b57a861fa"
                                },
                                {
                                    "type": "Ext.toolbar.Spacer",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "layout|flex": 0.25,
                                        "minWidth": 10
                                    },
                                    "designerId": "efca283d-8a4c-498a-a949-b66080c8b572"
                                },
                                {
                                    "type": "Ext.button.Button",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "disabled": true,
                                        "icon": "../gfx/add.png",
                                        "itemId": "btnActive",
                                        "padding": 5,
                                        "text": "Activate"
                                    },
                                    "designerId": "1119e343-d0c9-45af-be4b-cffe288d3fff"
                                },
                                {
                                    "type": "Ext.toolbar.Spacer",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "layout|flex": null,
                                        "minWidth": 10
                                    },
                                    "designerId": "eefdc816-6d22-4286-8878-c87c2231dea9"
                                },
                                {
                                    "type": "Ext.button.Button",
                                    "reference": {
                                        "name": "items",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "disabled": true,
                                        "icon": "../gfx/remove.png",
                                        "itemId": "btnInactive",
                                        "padding": 5,
                                        "text": "Deactivate"
                                    },
                                    "designerId": "017d5f55-8247-4a2f-a2d7-01113a62f925"
                                }
                            ]
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": 1
                            },
                            "designerId": "89d83f2d-ba57-4526-979a-d3fc56cb6e32"
                        },
                        {
                            "type": "Ext.form.field.Checkbox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "boxLabel": "Global",
                                "fieldLabel": null,
                                "itemId": "global",
                                "layout|flex": null
                            },
                            "designerId": "edde858f-a213-43dd-9b53-2fb288ccd338"
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": 0.25
                            },
                            "designerId": "7eed9960-4ffa-4b1a-879d-3b1c3ef2360b"
                        },
                        {
                            "type": "Ext.form.field.Checkbox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "boxLabel": "Client",
                                "fieldLabel": null,
                                "itemId": "local",
                                "layout|flex": null,
                                "name": null
                            },
                            "designerId": "7001b4ec-297b-4094-bca1-cddcf3a0d4b9"
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": 0.25
                            },
                            "designerId": "f57e7fa9-137a-4b5d-a277-eb17af660092"
                        },
                        {
                            "type": "Ext.form.field.Checkbox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "boxLabel": "Project",
                                "fieldLabel": null,
                                "itemId": "project",
                                "layout|flex": null
                            },
                            "designerId": "8cf98cc1-32e7-4715-978a-f31dc7503d99"
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": 0.25
                            },
                            "designerId": "62bbc32a-337c-44c4-8599-c9179585e007"
                        },
                        {
                            "type": "Ext.form.field.Checkbox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "boxLabel": "Active",
                                "checked": true,
                                "fieldLabel": null,
                                "itemId": "active",
                                "layout|flex": null
                            },
                            "designerId": "31e6f356-66c0-4550-912d-52827de492b5"
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "width": 10
                            },
                            "designerId": "253ef69a-0b25-4c0e-805d-c618c83dc806"
                        }
                    ]
                }
            ]
        }
    ]
}