{
    "type": "Ext.app.Controller",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userClassName": "GridController"
    },
    "designerId": "23d51b1c-ed02-4d29-be19-f9e198853759",
    "cn": [
        {
            "type": "basicfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "FID"
                ],
                "fn": "downloadFile",
                "implHandler": [
                    "console.log(FID);\r",
                    "\r",
                    "var url = \"../../service/archive_download.php\";\r",
                    "\r",
                    "//var par = Ext.Object.toQueryString(params);\r",
                    "var par = \"id=\"+FID;\r",
                    "// Open sapevent in hidden container\r",
                    "this.getEmptyContainer().update('<iframe src=\"'+url+\"?\"+par+'\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border-color: white;\" id=\"hiddenIFrame\"></iframe>');\r",
                    ""
                ]
            },
            "designerId": "35262d92-cabc-4971-9363-c994b18244a6"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "emptyContainer",
                "selector": "#emptyContainer"
            },
            "designerId": "0e2181ae-1472-492e-8d9a-dd1b4fc8bcec"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "gridPanel",
                "selector": "#GridPanel"
            },
            "designerId": "edca0838-eb90-4db8-9d81-bf4cc4d7be8d"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "invoiceDateField",
                "selector": "#invoiceDateField"
            },
            "designerId": "717793cd-f03d-4cb6-a0b4-258f5b2fd216"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "periodDateField",
                "selector": "#periodDateField"
            },
            "designerId": "3cf4680e-a44b-4176-a709-f2a55a1f2366"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "amountField",
                "selector": "#amountField"
            },
            "designerId": "4820ac75-dd58-4995-bc0c-8b9dc5d060ba"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "fileUploadField",
                "selector": "#fileUploadField"
            },
            "designerId": "4e4cff27-2b08-480e-979b-90afc9049aa1"
        }
    ]
}