{
    "type": "Ext.app.Controller",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userClassName": "Check"
    },
    "designerId": "ee76c885-cd24-4ef7-9831-154b025c35cf",
    "cn": [
        {
            "type": "basicfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "data"
                ],
                "fn": "formatText",
                "implHandler": [
                    "var controller = MyApp.app.getController('ShowDetails');\r",
                    "if(!Ext.isEmpty(data.mitigation_description)) {\r",
                    "\tcontroller.showText(this.getCheckDescription(), data.mitigation_description);\r",
                    "}\r",
                    "if(!Ext.isEmpty(data.mitigation_purpose)) {\r",
                    "\tcontroller.showText(this.getCheckPurpose(), data.mitigation_purpose);\r",
                    "}\r",
                    "if(!Ext.isEmpty(data.mitigation_execution)) {\r",
                    "\tcontroller.showText(this.getCheckExecution(), data.mitigation_execution);\r",
                    "}\r",
                    "if(!Ext.isEmpty(data.mitigation_parameters)) {\r",
                    "\tcontroller.showText(this.getCheckParameters(), data.mitigation_parameters);\r",
                    "}\r",
                    "if(!Ext.isEmpty(data.mitigation_documentation)) {\r",
                    "\tcontroller.showText(this.getCheckDocumentation(), data.mitigation_documentation);\r",
                    "}\r",
                    "if(!Ext.isEmpty(data.mitigation_reaction)) {\r",
                    "\tcontroller.showText(this.getCheckReaction(), data.mitigation_reaction);\r",
                    "}\r",
                    "if(!Ext.isEmpty(data.gdpr_text)) {\r",
                    "\tcontroller.showText(this.getCheckGDPR(), data.gdpr_text);\r",
                    "}\r",
                    "\r",
                    "if(Ext.isEmpty(data.ac_risk)) {\r",
                    "\tthis.getCheckAcRiskId().hide();\r",
                    "}\r",
                    "\r",
                    "\r",
                    "this.getCheckFilesGrid().getStore().load({\r",
                    "\tcallback: function(records, request, success) {\r",
                    "\t\tif(records.length > 0) {\r",
                    "\t\t\tthis.getCheckFilesGrid().show();\r",
                    "\t\t\tthis.getCheckFiles().down('label').show();\r",
                    "\t\t\tthis.getCheckFiles().show();\r",
                    "\t\t\tthis.getCheckFiles().doLayout();\r",
                    "\t\t}\r",
                    "\t},\r",
                    "\tscope: this\r",
                    "});\r",
                    ""
                ]
            },
            "designerId": "c0333e7c-a919-4e75-9eff-72d4c10fcedc"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkDescription",
                "selector": "#checkDescription"
            },
            "designerId": "706a56d6-c847-4f75-815c-72e037a80988"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkPurpose",
                "selector": "#checkPurpose"
            },
            "designerId": "2c75dea1-ba50-4858-a60e-77e1d831d48e"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkExecution",
                "selector": "#checkExecution"
            },
            "designerId": "76e42822-e98b-4776-b590-d86cea9edce7"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkParameters",
                "selector": "#checkParameters"
            },
            "designerId": "6eba8561-85bd-4d50-bfdd-8024e6eafc1d"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkDocumentation",
                "selector": "#checkDocumentation"
            },
            "designerId": "89913298-6c06-4e49-93f3-b144736a6165"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkReaction",
                "selector": "#checkReaction"
            },
            "designerId": "4d38c0e0-6a6f-48e5-910f-5fd13671bf0f"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkGDPR",
                "selector": "#checkGDPR"
            },
            "designerId": "19f36bb1-3e33-4399-8cda-c8fc8b7e9f5b"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkFiles",
                "selector": "#checkFiles"
            },
            "designerId": "8769753d-ffe9-4a5b-afbd-520a828218fb"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkFilesGrid",
                "selector": "#checkFilesGrid"
            },
            "designerId": "9b10854f-7f78-4fd0-8d73-d7b371009838"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "checkAcRiskId",
                "selector": "#checkAcRiskId"
            },
            "designerId": "b08b892b-41c6-4bc5-8236-3871e7025389"
        }
    ]
}