ProductionLine
Shows stations, flow and the bottleneck of a line.
When to use
- Pick a sector and name the process of each station to get fitting icons.
Examples
Textile
Loading the example
<k:ProductionLine sector="textile" title="Shirt line" unit="pcs/h" stationPress=".onPress">
<k:ProductionStation key="w" title="Weaving" process="weaving" rate="140"/>
<k:ProductionStation key="d" title="Dyeing" process="dyeing" rate="120"/>
<k:ProductionStation key="c" title="Cutting" process="cutting" rate="130" queue="40"/>
<k:ProductionStation key="s" title="Sewing" process="sewing" rate="85" queue="210"/>
<k:ProductionStation key="i" title="Ironing" process="ironing" rate="110"/>
<k:ProductionStation key="p" title="Packing" process="packing" rate="125"/>
</k:ProductionLine>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.Textile", {
onPress(event) {
Toast.show(String(event.getParameter("key")));
}
}));Automotive
Loading the example
<k:ProductionLine sector="automotive" title="Body line" unit="cars/h">
<k:ProductionStation title="Press" process="pressing" rate="42"/>
<k:ProductionStation title="Welding" process="welding" rate="38"/>
<k:ProductionStation title="Painting" process="painting" state="danger" statusText="Filter change"/>
<k:ProductionStation title="Assembly" process="assembly" state="wait" rate="36"/>
<k:ProductionStation title="Testing" process="testing" rate="40"/>
</k:ProductionLine>Food, electronics and furniture
Loading the example
<k:Stack gap="22">
<k:ProductionLine sector="food" title="Bakery"><k:ProductionStation title="Mixing" process="mixing"/><k:ProductionStation title="Baking" process="baking"/><k:ProductionStation title="Cooling" process="cooling"/><k:ProductionStation title="Packing" process="packing"/></k:ProductionLine>
<k:ProductionLine sector="electronics" title="Board line"><k:ProductionStation title="SMT" process="smt"/><k:ProductionStation title="Soldering" process="soldering"/><k:ProductionStation title="Inspection" process="inspection"/><k:ProductionStation title="Packing" process="packing"/></k:ProductionLine>
<k:ProductionLine sector="furniture" title="Sofa line"><k:ProductionStation title="Sawing" process="sawing"/><k:ProductionStation title="Sanding" process="sanding"/><k:ProductionStation title="Upholstery" process="upholstery"/><k:ProductionStation title="Shipping" process="shipping"/></k:ProductionLine>
</k:Stack>API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
title | string | Line name | |
text | string | Product or order | |
sector | string | textile, automotive, food, beverage, pharma, electronics, furniture, metal, packaging, chemical, construction or energy | |
productIcon | string | Icon of the product on the belt. Defaults to the sector | |
unit | string | Rate unit, such as pcs/h | |
showBottleneck | boolean | true | Whether to mark the slowest running station |
Aggregations
| Name | Type | Description |
|---|---|---|
stations | ProductionStation[] | Stations in order |
Events
| Name | Type | Description |
|---|---|---|
stationPress | key: string | A station was pressed |
Methods
| Name | Description |
|---|---|
getBottleneck(): ProductionStation | undefined | The slowest running station. None when all rates match. |
ProductionStation
A production station.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Key | |
title | string | Name | |
process | string | Process, such as weaving, dyeing, cutting, sewing, pressing, welding, painting, assembly, robot, baking, smt, inspection or packing | |
icon | string | Replaces the process icon | |
state | string | info | info running, success done, wait waiting, danger stopped, none idle |
statusText | string | Status text | |
rate | float | 0 | Rate |
queue | int | 0 | Items waiting in front |