{
  "custom": {},
  "events": {
    "system": {
      "onStartup": {
        "config": {
          "script": "\n\tself.getChild(\"root\").getChild(\"Header\").getChild(\"DateContainer\").getChild(\"endDate\").props.value \u003d system.date.now()\n\tself.getChild(\"root\").getChild(\"Header\").getChild(\"DateContainer\").getChild(\"startDate\").props.value  \u003d system.date.addHours(system.date.now(),-8)"
        },
        "scope": "G",
        "type": "script"
      }
    }
  },
  "params": {},
  "permissions": {
    "securityLevels": [
      {
        "children": [],
        "name": "Authenticated"
      }
    ],
    "type": "AnyOf"
  },
  "props": {
    "defaultSize": {
      "height": 1080,
      "width": 2051
    }
  },
  "root": {
    "children": [
      {
        "children": [
          {
            "children": [
              {
                "meta": {
                  "name": "Label"
                },
                "position": {
                  "basis": "50px",
                  "display": false,
                  "grow": 1
                },
                "propConfig": {
                  "props.text": {
                    "binding": {
                      "config": {
                        "path": "..../BodyContainer/sideBar/mesAnalysisSelector.props.message"
                      },
                      "type": "property"
                    }
                  }
                },
                "type": "ia.display.label"
              },
              {
                "meta": {
                  "name": "Icon",
                  "tooltip": {
                    "enabled": true,
                    "style": {
                      "fontSize": 15,
                      "padding": 2,
                      "textAlign": "left"
                    },
                    "width": 200
                  }
                },
                "position": {
                  "basis": "30px"
                },
                "propConfig": {
                  "meta.tooltip.text": {
                    "binding": {
                      "config": {
                        "path": "../Label.props.text"
                      },
                      "type": "property"
                    }
                  },
                  "meta.visible": {
                    "binding": {
                      "config": {
                        "path": "../Label.props.text"
                      },
                      "transforms": [
                        {
                          "code": "\treturn value !\u003d \u0027\u0027",
                          "type": "script"
                        }
                      ],
                      "type": "property"
                    }
                  },
                  "props.color": {
                    "binding": {
                      "config": {
                        "path": "../Label.props.text"
                      },
                      "transforms": [
                        {
                          "code": "\tif \u0027Calculating\u0027 in value:\n\t\treturn \u0027#3C3FC3\u0027\n\treturn \u0027#CF1F1F\u0027",
                          "type": "script"
                        }
                      ],
                      "type": "property"
                    }
                  },
                  "props.path": {
                    "binding": {
                      "config": {
                        "path": "../Label.props.text"
                      },
                      "transforms": [
                        {
                          "code": "\tif \u0027Calculating\u0027 in value:\n\t\treturn \u0027material/autorenew\u0027\n\treturn \u0027material/add_alert\u0027",
                          "type": "script"
                        }
                      ],
                      "type": "property"
                    }
                  }
                },
                "type": "ia.display.icon"
              },
              {
                "meta": {
                  "name": "mesObjectSelector"
                },
                "position": {
                  "basis": "350px",
                  "grow": 1
                },
                "props": {
                  "includeMESLineCellObjects": true,
                  "includeMESLineObjects": true,
                  "includeMESLocationObjects": true,
                  "selectedMESObject": {
                    "childCount": -1
                  },
                  "showEquipmentPath": true
                },
                "type": "mes.production.mesObjectSelector"
              }
            ],
            "meta": {
              "name": "flx_message"
            },
            "position": {
              "basis": "350px",
              "grow": 1
            },
            "type": "ia.container.flex"
          },
          {
            "children": [
              {
                "meta": {
                  "name": "Label"
                },
                "props": {
                  "style": {
                    "fontFamily": "Roboto",
                    "marginLeft": 15,
                    "marginRight": 15,
                    "textAlign": "right"
                  },
                  "text": "From"
                },
                "type": "ia.display.label"
              },
              {
                "meta": {
                  "name": "startDate"
                },
                "props": {
                  "formattedValue": "May 6, 2024 7:14 AM",
                  "placeholder": "Start Date",
                  "style": {
                    "marginLeft": 15,
                    "marginRight": 15
                  },
                  "value": {
                    "$": [
                      "ts",
                      192,
                      1715033677009
                    ],
                    "$ts": 1715004877009
                  }
                },
                "type": "ia.input.date-time-input"
              },
              {
                "meta": {
                  "name": "Label_0"
                },
                "props": {
                  "style": {
                    "fontFamily": "Roboto",
                    "marginLeft": 15,
                    "marginRight": 15,
                    "textAlign": "right"
                  },
                  "text": "To"
                },
                "type": "ia.display.label"
              },
              {
                "meta": {
                  "name": "endDate"
                },
                "props": {
                  "formattedValue": "May 6, 2024 3:14 PM",
                  "placeholder": "End Date",
                  "style": {
                    "marginLeft": 15,
                    "marginRight": 15
                  },
                  "value": {
                    "$": [
                      "ts",
                      192,
                      1715033676995
                    ],
                    "$ts": 1715033676994
                  }
                },
                "type": "ia.input.date-time-input"
              }
            ],
            "meta": {
              "name": "DateContainer"
            },
            "position": {
              "grow": 1
            },
            "props": {
              "justify": "center"
            },
            "type": "ia.container.flex"
          },
          {
            "children": [
              {
                "events": {
                  "dom": {
                    "onClick": {
                      "config": {
                        "script": "\t#self.getSibling(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/AnalysisTable\u0027\n#\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/AnalysisTable\u0027\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"mesAnalysisTable\").position.display \u003d True\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").position.display \u003d False"
                      },
                      "scope": "G",
                      "type": "script"
                    }
                  }
                },
                "meta": {
                  "name": "icon_table"
                },
                "position": {
                  "basis": "50px"
                },
                "props": {
                  "path": "material/table_view",
                  "style": {
                    "cursor": "pointer",
                    "marginLeft": 20,
                    "marginRight": 20
                  }
                },
                "type": "ia.display.icon"
              },
              {
                "events": {
                  "dom": {
                    "onClick": {
                      "config": {
                        "script": "\t#self.getSibling(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/PieChart\u0027\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").position.display \u003d True\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/PieChart\u0027\n\t\n\tself.parent.hideAnalysisTable()"
                      },
                      "scope": "G",
                      "type": "script"
                    }
                  }
                },
                "meta": {
                  "name": "icon_pie"
                },
                "position": {
                  "basis": "50px"
                },
                "props": {
                  "path": "material/pie_chart",
                  "style": {
                    "cursor": "pointer",
                    "marginLeft": 20,
                    "marginRight": 20
                  }
                },
                "type": "ia.display.icon"
              },
              {
                "events": {
                  "dom": {
                    "onClick": {
                      "config": {
                        "script": "\t#self.getSibling(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/BarChart\u0027\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").position.display \u003d True\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/BarChart\u0027\n\tself.parent.hideAnalysisTable()"
                      },
                      "scope": "G",
                      "type": "script"
                    }
                  }
                },
                "meta": {
                  "name": "icon_bar"
                },
                "position": {
                  "basis": "50px"
                },
                "props": {
                  "path": "material/bar_chart",
                  "style": {
                    "cursor": "pointer",
                    "marginLeft": 20,
                    "marginRight": 20
                  }
                },
                "type": "ia.display.icon"
              },
              {
                "events": {
                  "dom": {
                    "onClick": {
                      "config": {
                        "script": "\t#self.getSibling(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/TimeChart\u0027\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").position.display \u003d True\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/TimeChart\u0027\n\tself.parent.hideAnalysisTable()"
                      },
                      "scope": "G",
                      "type": "script"
                    }
                  }
                },
                "meta": {
                  "name": "icon_chart"
                },
                "position": {
                  "basis": "50px"
                },
                "props": {
                  "path": "material/show_chart",
                  "style": {
                    "cursor": "pointer",
                    "marginLeft": 20,
                    "marginRight": 20
                  }
                },
                "type": "ia.display.icon"
              },
              {
                "events": {
                  "dom": {
                    "onClick": {
                      "config": {
                        "script": "\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").position.display \u003d True\n\tself.parent.parent.parent.getChild(\"BodyContainer\").getChild(\"tablePieBar\").props.path \u003d \u0027Page/Embedded/Utilities/Pareto\u0027\n\tself.parent.hideAnalysisTable()"
                      },
                      "scope": "G",
                      "type": "script"
                    }
                  }
                },
                "meta": {
                  "name": "icon_pareto"
                },
                "position": {
                  "basis": "50px"
                },
                "props": {
                  "path": "material/multiline_chart",
                  "style": {
                    "cursor": "pointer",
                    "marginLeft": 20,
                    "marginRight": 20
                  }
                },
                "type": "ia.display.icon"
              },
              {
                "events": {
                  "dom": {
                    "onClick": {
                      "config": {
                        "documentTitle": "Analysis",
                        "target": "View"
                      },
                      "scope": "C",
                      "type": "request-print"
                    }
                  }
                },
                "meta": {
                  "name": "icon_print"
                },
                "position": {
                  "basis": "50px"
                },
                "props": {
                  "path": "material/local_printshop",
                  "style": {
                    "cursor": "pointer",
                    "marginLeft": 20,
                    "marginRight": 20
                  }
                },
                "type": "ia.display.icon"
              }
            ],
            "meta": {
              "name": "IconContainer"
            },
            "position": {
              "basis": "200px",
              "grow": 1
            },
            "props": {
              "justify": "flex-end"
            },
            "scripts": {
              "customMethods": [
                {
                  "name": "hideAnalysisTable",
                  "params": [],
                  "script": "\t# implement your method here\n\tself.parent.parent.getChild(\"BodyContainer\").getChild(\"mesAnalysisTable\").position.display \u003d False"
                }
              ],
              "extensionFunctions": null,
              "messageHandlers": []
            },
            "type": "ia.container.flex"
          }
        ],
        "meta": {
          "name": "Header"
        },
        "props": {
          "style": {
            "marginBottom": 15
          }
        },
        "type": "ia.container.flex"
      },
      {
        "children": [
          {
            "children": [
              {
                "meta": {
                  "name": "Label"
                },
                "position": {
                  "basis": "50px"
                },
                "props": {
                  "style": {
                    "backgroundColor": "#336ead"
                  }
                },
                "type": "ia.display.label"
              },
              {
                "meta": {
                  "name": "mesAnalysisSelector"
                },
                "position": {
                  "grow": 1
                },
                "propConfig": {
                  "props.endDate": {
                    "binding": {
                      "config": {
                        "path": "..../Header/DateContainer/endDate.props.value"
                      },
                      "type": "property"
                    }
                  },
                  "props.filterParams[0].value": {
                    "binding": {
                      "config": {
                        "path": "..../Header/flx_message/mesObjectSelector.props.selectedMESObject.equipmentPath"
                      },
                      "type": "property"
                    }
                  },
                  "props.selectedAnalysisName": {
                    "onChange": {
                      "enabled": null,
                      "script": "\tfilter \u003d system.mes.object.filter.createFilter()\n\tfilter.setEnableStateName(\u0027ENABLED\u0027)\n\tfilter.setMESObjectTypeName(\u0027Line\u0027)\n\tallLines \u003d {}\n\tfor line in system.mes.searchMESObjects(filter):\n\t\tallLines[str(line.getName()) + \" Run Summary\"] \u003d str(line.getMESObject().getEquipmentPath())\n\tif(currentValue.value in allLines):\t\n\t\toperation \u003d system.mes.getCurrentOperation(allLines[currentValue.value])\n\t\tif(operation is not None):\n\t\t\tself.parent.parent.parent.getChild(\"Header\").getChild(\"DateContainer\").getChild(\"startDate\").props.value \u003d operation.getPropertyValue(\"BeginDateTime\")\n\t\t\tself.parent.parent.parent.getChild(\"Header\").getChild(\"DateContainer\").getChild(\"endDate\").props.value \u003dsystem.date.now()\n\t\telse:\n\t\t\tstart \u003d system.mes.getTagCollectorPastTimeStamp(allLines[currentValue.value],\"Equipment Operation UUID\",\"\",2,system.date.now())\n\t\t\tend \u003d system.mes.getTagCollectorPastTimeStamp(allLines[currentValue.value],\"Equipment Operation UUID\",\"\",1,system.date.now())\n\t\t\tself.parent.parent.parent.getChild(\"Header\").getChild(\"DateContainer\").getChild(\"startDate\").props.value \u003d start\n\t\t\tself.parent.parent.parent.getChild(\"Header\").getChild(\"DateContainer\").getChild(\"endDate\").props.value \u003d end"
                    }
                  },
                  "props.startDate": {
                    "binding": {
                      "config": {
                        "path": "..../Header/DateContainer/startDate.props.value"
                      },
                      "type": "property"
                    }
                  }
                },
                "props": {
                  "buttonStyle": {
                    "margin": 2.5
                  },
                  "data": {
                    "$": [
                      "ds",
                      192,
                      1715031023551
                    ],
                    "$columns": []
                  },
                  "drillDownOptions": {
                    "$": [
                      "ds",
                      192,
                      1715031023551
                    ],
                    "$columns": []
                  },
                  "executionTime": 26,
                  "filterParams": [
                    {
                      "param": "eqPath",
                      "type": "string"
                    }
                  ],
                  "listHeaderStyle": {
                    "paddingBottom": 2.5,
                    "paddingRight": 2.5,
                    "paddingTop": 2.5
                  }
                },
                "type": "mes.production.mesAnalysisSelector"
              }
            ],
            "meta": {
              "name": "sideBar"
            },
            "position": {
              "basis": "300px"
            },
            "props": {
              "direction": "column"
            },
            "type": "ia.container.flex"
          },
          {
            "meta": {
              "name": "tablePieBar"
            },
            "position": {
              "display": false,
              "grow": 1
            },
            "propConfig": {
              "props.params.Title": {
                "binding": {
                  "config": {
                    "path": "../sideBar/mesAnalysisSelector.props.selectedAnalysisName"
                  },
                  "type": "property"
                }
              },
              "props.params.data": {
                "binding": {
                  "config": {
                    "path": "../sideBar/mesAnalysisSelector.props.data"
                  },
                  "type": "property"
                }
              }
            },
            "props": {
              "path": "Page/Embedded/Utilities/PieChart",
              "style": {
                "overflow": "visible"
              }
            },
            "type": "ia.display.view"
          },
          {
            "events": {
              "component": {
                "backEvent": {
                  "config": {
                    "script": "\tselectorComponent \u003d self.parent.getChild(\"sideBar\").getChild(\"mesAnalysisSelector\")\n\tselectorComponent.prevDrillDown()"
                  },
                  "scope": "G",
                  "type": "script"
                },
                "drillDownEvent": {
                  "config": {
                    "script": "\tselectorComponent \u003d self.parent.getChild(\"sideBar\").getChild(\"mesAnalysisSelector\")\n\tselectorComponent.drillDown(event.compareBy, event.filter)"
                  },
                  "scope": "G",
                  "type": "script"
                }
              }
            },
            "meta": {
              "name": "mesAnalysisTable"
            },
            "position": {
              "basis": "1000px",
              "grow": 1
            },
            "propConfig": {
              "props.data": {
                "binding": {
                  "config": {
                    "path": "../sideBar/mesAnalysisSelector.props.data"
                  },
                  "type": "property"
                }
              },
              "props.toolbarTitle": {
                "binding": {
                  "config": {
                    "path": "../sideBar/mesAnalysisSelector.props.selectedAnalysisName"
                  },
                  "type": "property"
                }
              }
            },
            "props": {
              "allowExport": true,
              "drillDownOptions": {
                "$": [
                  "ds",
                  192,
                  1696951599660
                ],
                "$columns": []
              },
              "fillResizeMode": true,
              "previousDrilldownEnabled": true,
              "style": {
                "overflow": "visible"
              },
              "tableColumns": [
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "nodata",
                  "dataFormat": "",
                  "dataType": "string",
                  "fixed": false,
                  "hidden": false,
                  "include": false,
                  "name": "nodata",
                  "order": 0,
                  "originalTitle": "",
                  "searchEnabled": false,
                  "sortingEnabled": false,
                  "title": "",
                  "width": 0,
                  "wordWrapEnabled": false
                }
              ]
            },
            "type": "mes.production.mesAnalysisTable"
          }
        ],
        "meta": {
          "name": "BodyContainer"
        },
        "position": {
          "grow": 1
        },
        "type": "ia.container.flex"
      },
      {
        "children": [
          {
            "meta": {
              "name": "lbl_breadcrumb"
            },
            "position": {
              "basis": "32px"
            },
            "propConfig": {
              "props.text": {
                "binding": {
                  "config": {
                    "path": ".../BodyContainer/sideBar/mesAnalysisSelector.props.drillDownBreadCrumb"
                  },
                  "type": "property"
                }
              }
            },
            "type": "ia.display.label"
          }
        ],
        "meta": {
          "name": "flx_breadcrumb"
        },
        "position": {
          "basis": "40px",
          "shrink": 0
        },
        "props": {
          "direction": "column"
        },
        "type": "ia.container.flex"
      }
    ],
    "meta": {
      "name": "root"
    },
    "props": {
      "direction": "column",
      "style": {
        "backgroundColor": "",
        "margin": 15
      }
    },
    "type": "ia.container.flex"
  }
}