The Equipment Schedule view is a mix between the status chart, gantt chart, and a calendar view. It conveys a lot of information about equipment, including current status, production schedule, production status, scheduled and unexpected downtime.
The equipment schedule is powered by four datasets. Information is retrieved from the datasets by column name, case-insensitive. The order of the columns is not important. Optional columns may be omitted.
The "Items" Dataset
Describes the "items" or "cells" to display schedules for. Each entry in this dataset will become a row of the chart.
Name | Type | Optional | Description |
---|---|---|---|
ID | Any | N | The identifier for this item. May be any type, will referenced by each entry in the Scheduled Events dataset. |
Label | String | N | The text to display in the header. |
Foreground | Color | Y | Text color. |
Background | Color | Y | Background color. |
StatusImagePath | String | Y | A path to an image to display to the right of the header label. |
The "Scheduled Items" Dataset
Lists the scheduled events for each item described in the "Items" dataset. Each scheduled event can have a colored lead, or change-over time, a label, a background color, and a progress.
Name | Type | Optional | Description |
---|---|---|---|
EventId | String | Y | An identifier for the event, used for event selection. |
ItemId | Any | N | The ID of the item to correlate this event with. If no such item is found, the event won't be shown. |
Label | String | N | The text ot display in the event's box. |
StartDate | Date | N | The start-time for the event. |
EndDate | Date | N | The end-time for the event. |
Foreground | Color | Y | The text color of the event. |
Background | Color | Y | The background color of the event. |
LeadTime | Integer | Y | Time, in seconds, to display as lead time. |
LeadColor | Color | Y | The color for the lead time, if any. |
PctDone | Number | Y | A value from 0 to 100 to be displayed as a progress bar, use -1 to hide progress bar. |
The "Downtime" Dataset
Entries in this dataset will be displayed as simple colored overlays on top of the events, correlated against an item defined in the "Items" dataset.
Name | Type | Optional | Description |
---|---|---|---|
ItemId | Any | N | The ID of the item to correlate this downtime event with. If no such item is found, the downtime event won't be shown. |
StartDate | Date | N | The start-time for the downtime event. |
EndDate | Date | N | The end-time for the downtime event. |
Color | Color | Y | The color to use, typically transparent. |
Layer | Integer | Y | 0 or 1, with 0 meaning that the rectangle gets painted below the events, and 1 means it will be painted above the events. |
The "Breaks" Dataset
Entries in this dataset will be displayed as colored underlays beneath all events.
Name | Type | Optional | Description |
---|---|---|---|
StartDate | Date | N | The start-time for the break event. |
EndDate | Date | N | The end-time for the break event. |
Color | Color | Y | The color to use. |
Name | Description | Property Type | Scripting | Category | |
---|---|---|---|---|---|
Border | The border surrounding this component. Options are: No border, Etched (Lowered), Etched (Raised), Bevel (Lowered), Bevel (Raised), Bevel (Double), Button Border, Field Border, Line Border, and Other Border.
| Border | .border | Common | |
Break Events | Scheduled breaks, which will appear as downtime for all items. | Dataset | .breakEvents | Data | |
Current Time Color | The color of the current time indicator. Can be chosen from color wheel, chosen from color palette, or entered as RGB or HSL value. See Color Selector. | Color | .nowColor | Appearance | |
Downtime Events | Downtime events correlated to a specific item. | Dataset | .downtimeEvents | Data | |
Drag Enabled | Controls whether or not scheduled events can be dragged for rescheduling. | boolean | .dragEnabled | Behavior | |
Enabled | If disabled, a component cannot be used. | boolean | .componentEnabled | Common | |
End Date | The end of the time range to display. | Date | .endDate | Data | |
Event Border | The normal border for a scheduled event. | Border | .eventBorder | Appearance | |
Event Font | The font to use for the event labels. | Font | .eventFont | Appearance | |
Event Margin | The margin to leave visible above and below a scheduled event. | int | .scheduledEventMargin | Appearance | |
Header Background | The color of the background for the header timeline. See Color Selector. | Color | .headerBackground | Appearance | |
Header Font | The font of the text in the header timeline. | Font | .headerFont | Appearance | |
Header Item Font | The font to use for the header items' labels. | Font | .itemFont | Appearance | |
Header Text Color | The color of the text in the header timeline. See Color Selector. | Color | .headerTextColor | Appearance | |
Items | The cells, or equipment items, to have their schedules displayed. | Dataset | .items | Data | |
Line Color | The color of separating lines in the schedule. | Color | .lineColor | Appearance | |
Name | The name of this component. | String | .name | Common | |
Progress Bar Background | The background color for the event progress bars. See Color Selector. | Color | .progressBackground | Appearance | |
Progress Bar Border | The border color for the event progress bars. See Color Selector. | Color | .progressBorder | Appearance | |
Progress Bar Fill | The color for 'done' portion the event progress bars. See Color Selector. | Color | .progressFill | Appearance | |
Resize Enabled | Controls whether or not scheduled events resized for duration changes. | boolean | .resizeEnabled | Behavior | |
Row Height | The height of each event's schedule row. | int | .lineHeight | Appearance | |
Schedule Background | The background color of the schedule area. See Color Selector. | Color | .scheduleBackground | Appearance | |
Scheduled Events | The scheduled events for all configured items. | Dataset | .scheduledEvents | Data | |
Selected Event Border | The border for a selected scheduled event. | Border | .selectedEventBorder | Appearance | |
Selected Event ID | The ID of the selected event. | String | .selectedEvent | Data | |
Start Date | The beginning of the time range to display. | Date | .startDate | Data | |
Visible | If disabled, the component will be hidden. | boolean | .visible | Common |
Returns a date time representing a point in time at the mouse event position.
Event Object - A mouse event object.
Date - A datetime, representing a point in time on the chart where the mouse event occurred. |
Called when the user drags a segment on the schedule background.
Component self - A reference to the component that is invoking this function. int itemID - The ID of the equipment item of the row where the user dragged. Date startDate - The datetime corresponding to where the user started dragging. Date endDate - The datetime corresponding to where the user ended dragging. Event Object event - The mouse event.
Nothing |
Called when the user clicks on a scheduled event. Use event.clickCount to detect double clicks.
Component self - A reference to the component that is invoking this function. int itemID - The ID of the equipment item of the event that was clicked on. int eventId - The ID of the event that was clicked on. Event Object event - The mouse event.
Nothing |
Called when the user drags and drops a scheduled event. It is up to this script to actually alter the underlying data to reflect the schedule change.
Component self - A reference to the component that is invoking this function. int eventId - The ID of the scheduled event that was moved. int oldItemId - The ID of the item this event was originally correlated against. int newItemId - The ID of the item whose schedule the event was dropped on. Date oldStartDate - The original starting datetime of the event. Date newStartDate - The new starting datetime of the event. Date newEndDate - The new ending datetime of the event.
Nothing |
Called when the user right-clicks on a scheduled event. This would be the appropriate time to create and display a popup menu.
Component self - A reference to the component that is invoking this function. int itemId - The ID of the equipment item of the event that was right-clicked on. int eventId - The ID of the event that was right-clicked on. Event Object event - The mouse event that caused the popup trigger.
Nothing |
Called when the user drags the edge of an event to resize its time span. It is up to this script to actually alter the underlying data to reflect the schedule change.
Component self - A reference to the component that is invoking this function. int eventId - The ID of the scheduled event that was resized. int itemId - The ID of the item this event is correlated against. Date oldStartDate - The original starting datetime of the event. Date oldEndData - The original ending datetime of the event. Date newStartDate - The new starting datetime of the event. Date newEndDate - The new ending datetime of the event.
Nothing |
Called when the user right-clicks outside of an event. This would be the appropriate time to create and display a popup menu.
Component self - A reference to the component that is invoking this function. int itemId - The item ID of the equipment line that was clicked on (if any). Event Object event - The mouse event that caused the popup trigger.
Nothing |
The Equipment Schedule contains a lot information about Machines 1-4 from May 18 through May 20 such as equipment status, the production schedule, production status, and schedule and unscheduled downtime. It provides a view into the status of equipment on the production floor in realtime and scheduled work planned for three days. It uses four datasets: Items, Scheduled Events, Downtime Events, and Break Events. Each dataset is shown below with it's associated raw data. You'll notice each piece of equipment has a lead time or change-over time, a unique Order number for the run, background color and displays a progress bar. Equipment downtime entries are displayed as colored overlays on top of the events. Break events with a start and end time are displayed as colored underlays beneath the events. Equipment Schedule - Items Dataset
Equipment Schedule - Scheduled Events Dataset
Equipment Schedule - Downtime Events Dataset
Equipment Schedule - Break Events
|