{
  "custom": {},
  "params": {
    "site": ""
  },
  "propConfig": {
    "params.site": {
      "paramDirection": "input",
      "persistent": true
    }
  },
  "props": {
    "defaultSize": {
      "height": 819,
      "width": 1400
    }
  },
  "root": {
    "children": [
      {
        "children": [
          {
            "meta": {
              "name": "mesObjectSelector"
            },
            "position": {
              "basis": "470px"
            },
            "propConfig": {
              "props.displayText": {
                "binding": {
                  "config": {
                    "path": "this.props.selectedMESObject.equipmentPath"
                  },
                  "transforms": [
                    {
                      "code": "\tif value:\n\t\treturn \u0027\u0027\n\telse:\n\t\treturn \u0027Select Line\u0027",
                      "type": "script"
                    }
                  ],
                  "type": "property"
                }
              },
              "props.parentMESObjectPath": {
                "binding": {
                  "config": {
                    "path": "view.params.site"
                  },
                  "transforms": [
                    {
                      "code": "\treturn \u0027*\\\\\u0027 + value",
                      "type": "script"
                    }
                  ],
                  "type": "property"
                }
              },
              "props.selectedMESObject.equipmentPath": {
                "onChange": {
                  "enabled": null,
                  "script": "\t#this is to overcome a UI bug related to MES-4790\n\t\n\tif self.parent.parent.getChild(\"SplitContainer\").getChild(\"FlexContainer\").getChild(\"mesScheduleSelector\").position.display \u003d\u003d True:\n\t\tself.parent.parent.getChild(\"SplitContainer\").getChild(\"FlexContainer\").getChild(\"mesScheduleSelector\").props.equipmentPath \u003d currentValue.value"
                }
              }
            },
            "props": {
              "includeMESLineObjects": true,
              "showEquipmentPath": true
            },
            "type": "mes.production.mesObjectSelector"
          },
          {
            "meta": {
              "name": "lbl_spacer0"
            },
            "position": {
              "basis": "50px"
            },
            "type": "ia.display.label"
          },
          {
            "meta": {
              "name": "lbl_start"
            },
            "position": {
              "basis": "84px"
            },
            "props": {
              "text": "Start Date"
            },
            "type": "ia.display.label"
          },
          {
            "meta": {
              "name": "dt_startDate"
            },
            "position": {
              "basis": "170px",
              "shrink": 0
            },
            "props": {
              "formattedValue": "May 5, 2024 2:24 PM",
              "placeholder": "Select Start Date",
              "style": {
                "margin": 10
              },
              "value": {
                "$": [
                  "ts",
                  192,
                  1715030689583
                ],
                "$ts": 1714944289583
              }
            },
            "type": "ia.input.date-time-input"
          },
          {
            "meta": {
              "name": "lbl_end"
            },
            "position": {
              "basis": "84px"
            },
            "props": {
              "text": "End Date"
            },
            "type": "ia.display.label"
          },
          {
            "meta": {
              "name": "dt_endDate"
            },
            "position": {
              "basis": "170px",
              "shrink": 0
            },
            "props": {
              "formattedValue": "May 11, 2024 2:24 PM",
              "placeholder": "Select End Date",
              "style": {
                "margin": 10
              },
              "value": {
                "$": [
                  "ts",
                  192,
                  1715030689583
                ],
                "$ts": 1715462689583
              }
            },
            "type": "ia.input.date-time-input"
          },
          {
            "meta": {
              "name": "lbl_spacer"
            },
            "position": {
              "basis": "50px"
            },
            "type": "ia.display.label"
          },
          {
            "meta": {
              "name": "chk_showClosedWO"
            },
            "position": {
              "basis": "260px"
            },
            "props": {
              "text": "Show Closed Work Orders"
            },
            "type": "ia.input.checkbox"
          }
        ],
        "meta": {
          "name": "flx_date"
        },
        "position": {
          "basis": "45 px",
          "shrink": 0
        },
        "props": {
          "wrap": "wrap"
        },
        "type": "ia.container.flex"
      },
      {
        "children": [
          {
            "children": [
              {
                "children": [
                  {
                    "meta": {
                      "name": "RadioGroup"
                    },
                    "position": {
                      "basis": "35px"
                    },
                    "props": {
                      "radios": [
                        {
                          "selected": true,
                          "text": "Schedule View",
                          "value": "Schedule View"
                        },
                        {
                          "selected": false,
                          "text": "Schedule Selector",
                          "value": "Schedule Selector"
                        }
                      ],
                      "value": "Schedule View"
                    },
                    "type": "ia.input.radio-group"
                  }
                ],
                "meta": {
                  "name": "flx_scheduleSelector"
                },
                "position": {
                  "basis": "70px"
                },
                "props": {
                  "direction": "column"
                },
                "type": "ia.container.flex"
              },
              {
                "meta": {
                  "name": "mesScheduleView"
                },
                "position": {
                  "basis": "300px",
                  "grow": 1
                },
                "propConfig": {
                  "position.display": {
                    "binding": {
                      "config": {
                        "expression": "{../flx_scheduleSelector/RadioGroup.props.value} \u003d \u0027Schedule View\u0027"
                      },
                      "type": "expr"
                    }
                  },
                  "props.endDate": {
                    "binding": {
                      "config": {
                        "path": "..../flx_date/dt_endDate.props.value"
                      },
                      "type": "property"
                    }
                  },
                  "props.equipmentPathFilter": {
                    "binding": {
                      "config": {
                        "path": "..../flx_date/mesObjectSelector.props.selectedMESObject.equipmentPath"
                      },
                      "type": "property"
                    }
                  },
                  "props.startDate": {
                    "binding": {
                      "config": {
                        "path": "..../flx_date/dt_startDate.props.value"
                      },
                      "type": "property"
                    }
                  }
                },
                "props": {
                  "excludeEquipmentPath": "Enterprise\\El Dorado Hills\\Packaging Area\\",
                  "timelineItemStyles": {
                    "operationStyles": {
                      "operationManualCompleteStyle": {
                        "backgroundColor": "#4C9C2E",
                        "borderBottomLeftRadius": 5,
                        "borderBottomRightRadius": 5,
                        "borderStyle": "groove",
                        "borderTopLeftRadius": 5,
                        "borderTopRightRadius": 5,
                        "color": "#FFFFFF"
                      },
                      "operationManualInProcessStyle": {
                        "backgroundColor": "#D98F48",
                        "borderBottomLeftRadius": 5,
                        "borderBottomRightRadius": 5,
                        "borderStyle": "none",
                        "borderTopLeftRadius": 5,
                        "borderTopRightRadius": 5,
                        "color": "#FFFFFF",
                        "fontFamily": "Verdana"
                      },
                      "operationManualIncompleteStyle": {
                        "borderBottomLeftRadius": 5,
                        "borderBottomRightRadius": 5,
                        "borderStyle": "none",
                        "borderTopLeftRadius": 5,
                        "borderTopRightRadius": 5,
                        "color": "#FFFFFF",
                        "fontFamily": "Verdana"
                      }
                    }
                  },
                  "tooltipStyle": {
                    "fontFamily": "Roboto",
                    "fontSize": "15px"
                  }
                },
                "type": "mes.production.scheduleView"
              },
              {
                "meta": {
                  "name": "mesScheduleSelector"
                },
                "position": {
                  "basis": "500px",
                  "grow": 1
                },
                "propConfig": {
                  "position.display": {
                    "binding": {
                      "config": {
                        "expression": "{../flx_scheduleSelector/RadioGroup.props.value} \u003d \u0027Schedule Selector\u0027"
                      },
                      "type": "expr"
                    },
                    "onChange": {
                      "enabled": null,
                      "script": "\tif currentValue.value:\n\t\tself.props.equipmentPath \u003d self.parent.parent.parent.getChild(\"flx_date\").getChild(\"mesObjectSelector\").props.selectedMESObject.equipmentPath\n\telse:\n\t\tself.props.equipmentPath \u003d \u0027\u0027"
                    }
                  },
                  "props.endDate": {
                    "binding": {
                      "config": {
                        "path": "..../flx_date/dt_endDate.props.value"
                      },
                      "type": "property"
                    }
                  },
                  "props.startDate": {
                    "binding": {
                      "config": {
                        "path": "..../flx_date/dt_startDate.props.value"
                      },
                      "type": "property"
                    }
                  }
                },
                "props": {
                  "fillResizeMode": true,
                  "includeAutoActive": true,
                  "includeAutoComplete": true,
                  "includeAutoIncomplete": true,
                  "includeManualComplete": true,
                  "operationsRequestUuid": "a0a4bee3-62b3-4eaa-85b8-59c2311cf4d1",
                  "operationsResponseUuid": "aacb9c14-6c72-4f10-bc24-ebeef4cb93aa",
                  "tableColumns": [
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "description",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "description",
                      "order": 1,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Description",
                      "width": 150,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "scheduledBegin",
                      "dataFormat": "yyyy-MM-dd HH:mm:ss",
                      "dataType": "date",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "scheduledBegin",
                      "order": 2,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Scheduled Begin",
                      "width": 90,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "scheduledEnd",
                      "dataFormat": "yyyy-MM-dd HH:mm:ss",
                      "dataType": "date",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "scheduledEnd",
                      "order": 3,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Scheduled End",
                      "width": 90,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "actualBegin",
                      "dataFormat": "yyyy-MM-dd HH:mm:ss",
                      "dataType": "date",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "actualBegin",
                      "order": 4,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Actual Begin",
                      "width": 90,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "actualEnd",
                      "dataFormat": "yyyy-MM-dd HH:mm:ss",
                      "dataType": "date",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "actualEnd",
                      "order": 5,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Actual End",
                      "width": 90,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "state",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "state",
                      "order": 6,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "State",
                      "width": 100,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "center",
                      "alignVertical": "middle",
                      "columnName": "percentComplete",
                      "dataFormat": "0.00%",
                      "dataType": "number",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "percentComplete",
                      "order": 7,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Percent Complete",
                      "width": 100,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "operationsRequestUuid",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": true,
                      "include": true,
                      "name": "operationsRequestUuid",
                      "order": 8,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Operations Request UUID",
                      "width": 100,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "operationsResponseUuid",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": true,
                      "include": true,
                      "name": "operationsResponseUuid",
                      "order": 9,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Operations Response UUID",
                      "width": 100,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "workOrderUuid",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": true,
                      "include": true,
                      "name": "workOrderUuid",
                      "order": 10,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Work Order UUID",
                      "width": 100,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "workOrder",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "workOrder",
                      "order": 11,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Work Order",
                      "width": 100,
                      "wordWrapEnabled": true
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "operationsRequestUuid",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "operationsRequestUuid",
                      "order": 12,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Operations Request UUID",
                      "width": 100,
                      "wordWrapEnabled": false
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "operationsResponseUuid",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "operationsResponseUuid",
                      "order": 13,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Operations Response UUID",
                      "width": 100,
                      "wordWrapEnabled": false
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "workOrderUuid",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "workOrderUuid",
                      "order": 14,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Work Order UUID",
                      "width": 100,
                      "wordWrapEnabled": false
                    },
                    {
                      "align": "left",
                      "alignVertical": "middle",
                      "columnName": "workOrder",
                      "dataFormat": "",
                      "dataType": "string",
                      "fixed": "none",
                      "hidden": false,
                      "include": true,
                      "name": "workOrder",
                      "order": 15,
                      "searchEnabled": true,
                      "sortingEnabled": true,
                      "title": "Work Order",
                      "width": 100,
                      "wordWrapEnabled": false
                    }
                  ]
                },
                "type": "mes.production.mesScheduleSelector"
              }
            ],
            "meta": {
              "name": "FlexContainer"
            },
            "position": {
              "position": "bottom"
            },
            "props": {
              "direction": "column"
            },
            "type": "ia.container.flex"
          },
          {
            "meta": {
              "name": "mesWorkOrderTable"
            },
            "position": {
              "position": "top"
            },
            "propConfig": {
              "props.closedBeginDate": {
                "binding": {
                  "config": {
                    "path": ".../flx_date/dt_startDate.props.value"
                  },
                  "type": "property"
                }
              },
              "props.closedEndDate": {
                "binding": {
                  "config": {
                    "path": ".../flx_date/dt_endDate.props.value"
                  },
                  "type": "property"
                }
              },
              "props.showClosedWorkOrder": {
                "binding": {
                  "config": {
                    "path": ".../flx_date/chk_showClosedWO.props.selected"
                  },
                  "type": "property"
                }
              },
              "props.tableColumns[10].include": {
                "binding": {
                  "config": {
                    "path": "page.props.dimensions.viewport.width"
                  },
                  "transforms": [
                    {
                      "code": "\treturn value \u003e 800",
                      "type": "script"
                    }
                  ],
                  "type": "property"
                }
              },
              "props.tableColumns[8].include": {
                "binding": {
                  "config": {
                    "path": "page.props.dimensions.viewport.width"
                  },
                  "transforms": [
                    {
                      "code": "\treturn value \u003e 800",
                      "type": "script"
                    }
                  ],
                  "type": "property"
                }
              },
              "props.tableColumns[9].include": {
                "binding": {
                  "config": {
                    "path": "page.props.dimensions.viewport.width"
                  },
                  "transforms": [
                    {
                      "code": "\treturn value \u003e 800",
                      "type": "script"
                    }
                  ],
                  "type": "property"
                }
              },
              "props.tableHeaderStyle.fontSize": {
                "binding": {
                  "config": {
                    "path": "page.props.dimensions.viewport.width"
                  },
                  "transforms": [
                    {
                      "code": "\tif value \u003c 600:\n\t\treturn 10\n\treturn 15",
                      "type": "script"
                    }
                  ],
                  "type": "property"
                }
              }
            },
            "props": {
              "fillResizeMode": true,
              "selectedRow": 3,
              "style": {
                "fontFamily": "Roboto"
              },
              "tableColumns": [
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "workOrder",
                  "dataFormat": "",
                  "dataType": "string",
                  "fixed": "none",
                  "hidden": false,
                  "include": true,
                  "name": "workOrder",
                  "order": 1,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Work Order",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "workOrderUuid",
                  "dataFormat": "",
                  "dataType": "string",
                  "fixed": "none",
                  "hidden": false,
                  "include": false,
                  "name": "workOrderUuid",
                  "order": 2,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Work Order UUID",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "material",
                  "dataFormat": "",
                  "dataType": "string",
                  "fixed": "none",
                  "hidden": false,
                  "include": true,
                  "name": "material",
                  "order": 3,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Material",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "materialUuid",
                  "dataFormat": "",
                  "dataType": "string",
                  "fixed": "none",
                  "hidden": false,
                  "include": false,
                  "name": "materialUuid",
                  "order": 4,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Material UUID",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "workOrderQuantity",
                  "dataFormat": ",0",
                  "dataType": "number",
                  "fixed": "none",
                  "hidden": false,
                  "include": true,
                  "name": "workOrderQuantity",
                  "order": 5,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Work Order Quantity",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "scheduledQuantity",
                  "dataFormat": ",0",
                  "dataType": "number",
                  "fixed": "none",
                  "hidden": false,
                  "include": true,
                  "name": "scheduledQuantity",
                  "order": 6,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Scheduled Quantity",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "actualQuantity",
                  "dataFormat": ",0",
                  "dataType": "number",
                  "fixed": "none",
                  "hidden": false,
                  "include": true,
                  "name": "actualQuantity",
                  "order": 7,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Actual Quantity",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "remainingQuantity",
                  "dataFormat": ",0",
                  "dataType": "number",
                  "fixed": "none",
                  "hidden": false,
                  "include": true,
                  "name": "remainingQuantity",
                  "order": 8,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Remaining Quantity",
                  "width": 100,
                  "wordWrapEnabled": false
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "dueDate",
                  "dataFormat": "yyyy-MM-dd HH:mm:ss",
                  "dataType": "date",
                  "fixed": "none",
                  "hidden": false,
                  "name": "dueDate",
                  "order": 9,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Due Date",
                  "width": 90,
                  "wordWrapEnabled": false
                },
                {
                  "align": "center",
                  "alignVertical": "middle",
                  "columnName": "closed",
                  "dataFormat": "",
                  "dataType": "boolean",
                  "fixed": "none",
                  "hidden": false,
                  "name": "closed",
                  "order": 10,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Closed",
                  "width": 100,
                  "wordWrapEnabled": true
                },
                {
                  "align": "left",
                  "alignVertical": "middle",
                  "columnName": "closedDate",
                  "dataFormat": "yyyy-MM-dd HH:mm:ss",
                  "dataType": "date",
                  "fixed": "none",
                  "hidden": false,
                  "name": "closedDate",
                  "order": 11,
                  "searchEnabled": true,
                  "sortingEnabled": true,
                  "title": "Closed Date",
                  "width": 90,
                  "wordWrapEnabled": false
                }
              ],
              "tableGridLinesVertical": false,
              "tableHeaderStyle": {
                "fontFamily": "Roboto"
              },
              "tableStyle": {
                "fontFamily": "Roboto"
              },
              "treeStyle": {
                "fontFamily": "Roboto"
              }
            },
            "type": "mes.production.mesWorkOrderTable"
          }
        ],
        "meta": {
          "name": "SplitContainer"
        },
        "position": {
          "basis": "200px",
          "grow": 1
        },
        "props": {
          "orientation": "vertical"
        },
        "type": "ia.container.split"
      }
    ],
    "events": {
      "system": {
        "onStartup": {
          "config": {
            "script": "\tself.getChild(\"flx_date\").getChild(\"dt_startDate\").props.value \u003d system.date.addDays(system.date.now(),-1)\n\tself.getChild(\"flx_date\").getChild(\"dt_endDate\").props.value \u003d system.date.addDays(system.date.now(), 5)\n\tself.getChild(\"SplitContainer\").getChild(\"FlexContainer\").getChild(\"mesScheduleView\").props.readOnly \u003d False\n\tself.getChild(\"SplitContainer\").getChild(\"mesWorkOrderTable\").props.enableAdd \u003d True\n\tself.getChild(\"SplitContainer\").getChild(\"mesWorkOrderTable\").props.enableEdit \u003d True\n\tself.getChild(\"SplitContainer\").getChild(\"FlexContainer\").getChild(\"mesScheduleSelector\").props.runControlMenuEnabled  \u003d True"
          },
          "scope": "G",
          "type": "script"
        }
      }
    },
    "meta": {
      "name": "root"
    },
    "props": {
      "direction": "column",
      "style": {
        "margin": 5
      }
    },
    "type": "ia.container.flex"
  }
}