NET Prog Guide
NET Prog Guide
.NET Controls
Developer Guide
Version 6.0
June, 2018
© 2018 AVEVA Group plc or its subsidiaries. All rights reserved.
The Schneider Electric industrial soft ware business and AVEVA have merged to trade as AVEVA Group
plc, a UK listed company. The Schneider Electric and Life is On trademarks are owned by Schneider
Electric and are being licensed to AVEVA by Schneider Electric.
No part of this documentation shall be reproduced, stored in a ret rieval system, or transmitted by any
means, electronic, mechanical, photocopying, rec ording, or otherwise, without the prior written
permission of AVEVA. No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AV EVA assumes no
responsibility for errors or omissions. The information in this documentation is subject to change without
notice and does not represent a commitment on the part of AVEVA. The soft ware described in this
documentation is furnished under a license agreement. This soft ware may be used or copied only in
accordance with the terms of such license agreement.
ArchestrA, Aquis, Avantis, DYNS IM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch,
PIPEPHASE, PRiSM, PRO/II, PROV IS ION, ROMeo, SIM4ME, SimCentral, SimSci, Skelta,
SmartGlance, Spiral Software, Termis, WindowMaker, WindowViewer, and Wonderware are trademarks
of AVEVA and/or its subsidiaries. An extensive listing of AVEVA trademarks can be found at:
https://sw.aveva.com/legal. All other brands may be trademarks of their respective owners.
Publication date: 6/29/2018
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 OHB. UK
https://sw.aveva.com/
For information on how to cont act sales, customer training, and technical support, see
https://sw.aveva.com/contact.
MES .NET Controls Developer Guide
Contents
Chapter 1 Using .NET Controls ......................................................................................... 21
Introduction to Using .NE T Controls ......................................................................................... 21
About .NE T Controls ............................................................................................................... 22
Organizing .NE T Controls ........................................................................................................ 22
Importing .NE T Controls .......................................................................................................... 23
MES .NET Control .dll Files................................................................................................ 25
Example of Installing the Utilization and Button Bar Controls ................................................ 26
Importing Previously Exported .NE T Controls ...................................................................... 26
Exporting .NE T Controls .................................................................................................... 26
Securing .NE T Controls ........................................................................................................... 27
Configuring .NE T Cont rol E vent Scripts .................................................................................... 27
Selected Row Changed E vent ............................................................................................ 28
Properties of the SelectedRowChanged E vent .............................................................. 29
Pre- and Post-Button Click Events ...................................................................................... 29
Properties of the PreB uttonClicked and PostButtonClicked E vents ................................. 30
Example of Configuring an E vent Script for the Utilization Control ........................................ 31
Using Controls in ArchestrA Symbols ....................................................................................... 32
Embedding . NE T Controls into a Symbol ............................................................................ 32
Configuring Cont rols .......................................................................................................... 34
Using Controls in InTouch........................................................................................................ 36
Logging On and Off Controls .............................................................................................. 36
InTouch Not Using InTouch Security ............................................................................. 36
InTouch Using InTouch Security ................................................................................... 37
Using Properties in Application Server Scripts........................................................................... 37
Using Common Control Properties ........................................................................................... 37
Docking the Controls Within a Symbol ................................................................................ 37
Logging on the Cont rols Automatically ................................................................................ 38
Logging on to Entities Automatically ................................................................................... 39
Refreshing the Controls Automatically ................................................................................ 39
Viewing and Changing the Properties of .NE T Cont rols ............................................................. 39
Example of Changing the Dock Property............................................................................. 40
Example of Changing the ControlInCharge and ButtonBarName Properties .......................... 42
Viewing Additional .NE T Control Information ............................................................................. 43
Viewing the .NE T Control Assemblies ................................................................................. 43
Viewing Class Name, Vendor, and Version of a .NE T Control .............................................. 44
Viewing Objects and Symbols Referencing .NE T Cont rols ................................................... 44
Binding .NE T Control Properties to Attributes or Element References ......................................... 45
Example of Dat a Binding in the Utilization Control ............................................................... 46
Animating .NE T Controls ......................................................................................................... 47
Version 6.0 3
MES .NET Controls Developer Guide Contents
4 Version 6.0
Contents MES .NET Controls Developer Guide
Version 6.0 5
MES .NET Controls Developer Guide Contents
6 Version 6.0
Contents MES .NET Controls Developer Guide
Version 6.0 7
MES .NET Controls Developer Guide Contents
8 Version 6.0
Contents MES .NET Controls Developer Guide
Version 6.0 9
MES .NET Controls Developer Guide Contents
Version 6.0 11
MES .NET Controls Developer Guide Contents
12 Version 6.0
Contents MES .NET Controls Developer Guide
Version 6.0 13
MES .NET Controls Developer Guide Contents
14 Version 6.0
Contents MES .NET Controls Developer Guide
16 Version 6.0
Contents MES .NET Controls Developer Guide
Version 6.0 17
MES .NET Controls Developer Guide Contents
18 Version 6.0
Contents MES .NET Controls Developer Guide
Version 6.0 19
MES .NET Controls Developer Guide
C HAPTER 1
Using .NET Controls
In This Chapter
Introduction to Using .NE T Controls ............................................................................................... 21
About .NE T Controls ..................................................................................................................... 22
Organizing .NE T Controls .............................................................................................................. 22
Importing .NE T Controls ................................................................................................................ 23
Securing .NE T Controls ................................................................................................................. 27
Configuring .NE T Cont rol E vent Scripts .......................................................................................... 27
Using Controls in ArchestrA Symbols ............................................................................................. 32
Using Controls in InTouch ............................................................................................................. 36
Using Properties in Application Server Scripts ................................................................................ 37
Using Common Control Properties ................................................................................................. 37
Viewing and Changing the Properties of .NE T Cont rols ................................................................... 39
Viewing Additional .NE T Control Information ................................................................................... 43
Binding .NE T Control Properties to Attributes or Element R eferences .............................................. 45
Animating .NE T Controls ............................................................................................................... 47
About Operator Cont rols ............................................................................................................... 47
About Data Editor Cont rols ............................................................................................................ 49
About Miscellaneous Controls........................................................................................................ 49
On-Screen Keyboard .................................................................................................................... 50
Version 6.0 21
MES .NET Controls Developer Guide Using .NET Controls
22 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
Note: If you select .NET .dll files that do not contain .NET controls, the import process ignores these and
continues at the next .dll file.
Version 6.0 23
MES .NET Controls Developer Guide Using .NET Controls
6. Click OK. The Import Client Control (s) progress dialog box appears.
Note: If the import fails, a message indicates the er ror in the Import Client Control(s) dialog box.
24 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
Version 6.0 25
MES .NET Controls Developer Guide Using .NET Controls
26 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
2. In the animation list, click Event. The right pane shows the events configuration.
3. In the Event list, select the event for which you want to execute a script. The Parameters list shows
for the selected event:
o Type: the data type of each parameter.
o Name: the name of each parameter.
4. In the script area, write the event script.
Version 6.0 27
MES .NET Controls Developer Guide Using .NET Controls
5. If y ou want to insert an event parameter in your script, click the Select Event Parameter icon. Select
the paramet er. The paramet er name is inserted into the script at the cursor position.
6. If you want to configure scripts for other events, select the event from the Event list.
You can select the following three main events from the Event list:
o SelectedRowChanged
o PreButtonClick
o PostButtonClick
7. The script area is cleared and you can write the script for the newly selected event.
8. When you are finished, save and close.
However, for scripts outside the .NE T control, a referenc e to the name of the control is required. For
example, to get access to the Queue Control displayed in the image, a referenc e to the name is required:
dim row as xceed.grid.datarow;
row = QueueControl1.FactGrid.SelectedRow;
if (row <> null) then
ProcessID = row.Cells("process_id").value;
endif;
28 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
Version 6.0 29
MES .NET Controls Developer Guide Using .NET Controls
1. If the control does not locate an existing client session, then the user is prompted to connect, and
then log on to one or more entities.
The Job Queue control displays various jobs assigned to an entity.
2. If the user selects one of the jobs, and then clicks the Start Job button on the button bar, the Start
Job button event is triggered.
The PreButtonClicked event is triggered.
In the following example, the PreButtonClicked event is captured using the e.ButtonID property of
the event.
Each button cont ains an associated ID. However, you can also create custom buttons and assign a
custom ID number to the buttons.
3. The start event is detected and the row that a user selects in the grid is retrieved.
4. The values from the selected row are read into attributes and the Start command is canceled.
If a command is canceled, the .NE T c ontrol does not execute the start transaction and calls a c ustom
script to perform the Start command to include additional transactions.
30 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
UserData
For information on the ButtonI D property, see Buttons on page 271. The ButtonDesc and UserData
properties are configured by an operat or.
The PostButtonClicked event is similar to the PreButtonClicked event. However, it is triggered after
the button command is completed and is used to perform the post condition transactions, such as
updating attributes or logging information to an external system.
Version 6.0 31
MES .NET Controls Developer Guide Using .NET Controls
32 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
7. Select the control you want to embed from the right pane and click OK.
Version 6.0 33
MES .NET Controls Developer Guide Using .NET Controls
You are now ready to configure the control or you can embed more controls.
Configuring Controls
You can configure controls in the same way as you would configure .NE T client controls embedded into
ArchestrA symbols:
Bind control properties to ArchestrA attributes, InTouch tags, properties of elements, or symbol
custom properties.
Write scripts and associate them with .NE T events.
Access .NET properties and methods from ot her elements in the ArchestrA symbol.
To bind ArchestrA attributes, InTouch tags, element properties or custom properties to
a control
1. Open the symbol in the ArchestrA Symbol Editor that contains the control.
2. Double-click the embedded control. The Edit Animations dialog box appears.
34 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
2. Double-click the embedded control. The Edit Animations dialog box appears.
Version 6.0 35
MES .NET Controls Developer Guide Using .NET Controls
6. In the left pane, select the embedded control. The right pane shows the methods and properties of
the control.
7. Select a property or method and click OK.
36 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
The Switch User dialog box appears if another user is logged on to the cont rol.
The Login dialog box appears if you are the only user using this control.
If you click Cancel on either the Switch User or Login dialog box, the control shows only the No User
button. If you click this button, either the Switch User dialog box appears (if other users are already
logged on), or the Login dialog box appears.
Version 6.0 37
MES .NET Controls Developer Guide Using .NET Controls
4. Click on the appropriate layout option to position the control in relation to the symbol.
Note: The LoginUserI D and LoginUserPa ssword fields only accept hard-coded values and not
references to the object attributes.
If the AutoLoginUsers property is set to False, you need to include a script to log on users to the
controls. For more information, see the MES Stateful API Reference online help.
To log on the software controls automatically
1. Select the control for which you want to enable aut omatic logon.
2. In the Properties Editor, locate the property AutoLoginUsers.
3. Set the value of the property to True.
38 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
Tip: This setting is useful if the symbol contains more than one control and only one of the controls is
visible at a time. Ignoring refresh events also improves performance becaus e hidden cont rols are not
refres hed. For the visible control, set the IgnoreRefreshEvents property to False so that it can show the
latest data.
Version 6.0 39
MES .NET Controls Developer Guide Using .NET Controls
40 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
3. Open the Dock property list and click the Bottom panel (highlighted below) on the layout template.
The Button Bar control is docked to the bottom of the symbol defined by the previously drawn
rectangle.
4. Select the embedded Utilization control. The Properties Editor shows all properties of the Utilization
control.
Version 6.0 41
MES .NET Controls Developer Guide Using .NET Controls
5. In the Layout property category, open the Dock property list and click the Fill panel (highlighted
below) on the layout template.
The Utilization control is resized to fill the size of the previously drawn rectangle.
42 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
Version 6.0 43
MES .NET Controls Developer Guide Using .NET Controls
2. On the Galaxy menu, click Properties. The Propertie s dialog box appears.
44 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
3. Click Referenced By. The list of objects and symbols using the .NE T control is shown.
Version 6.0 45
MES .NET Controls Developer Guide Using .NET Controls
Read/write property
Read-only property
Write-only property
Reference
The attribute or element reference the property is bound to
46 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
6. Click OK.
7. Place a button on the canvas and configure it with a boolean pushbutton animation that toggles th e
custom property URE.
8. Save and close the symbol.
9. Embed the symbol in a managed InTouch application and test the dat a binding by clicking on the
button in WindowViewer. When you do so, the ability for the Utilization control to refres h is toggled.
Version 6.0 47
MES .NET Controls Developer Guide Using .NET Controls
Audit
Shows all audit-type certifications required for a job to be complet ed and provides a way for users to
sign-off on these certifications.
Consum ption
Lists the BOM (Bill of Materials) items for the active job. It can be used to report consumption for
those BOM items, and to change their lot numbers or storage locations.
Data Log
Shows the “log” of data values recorded for the active job and allows you to enter new data values.
Folders
Allows an operator to view, edit, and print collection of files associated with a specific job. It also
allows an operat or to download and upload part programs.
Genealogy
Shows the consumption history against the running work order. These records include goods and
waste consumption. It also allows an operator to change previously reported consumption
information.
Inventory
Maintains item consumption editor and storage status of the currently logged on entity and all the
movable storage entities located at the current entity. Allows the operator to view the item
consumption editor and storage status of other entities.
Job Summary
Shows all current job information of a given entity. When multiple jobs are running at once, it
determines which job is active so that you can view and work with that job’s data.
Labor
Shows a history of the current operator’s labor activity.
Allows operators to log on, log off, change their labor codes and their entities.
Production
Reports produced items and allows the operat or to change the lot data and quantity amounts for
each job, and to include good and rejected production of the produced item and its by -products.
Allows the operator to change previously reported production information, to set up default
information for additional production, and to mark a production lot as pr ocessed.
Queue
Shows all jobs queued to an entity. Allows the operat or to change the state of jobs queued to an
entity.
Route
Shows the routing and status of all jobs of a given work order.
Spec
Shows the specifications assigned to the active job, but not assigned to any particular step. Using
this control, you can consult the minimum, maximum, and set point values, as well as any attached
files or comments/instructions. The actual value for the active job is reported here. With the
appropriate user privileges, you can change the specification guidelines, for this job only or for all
subsequent jobs.
Steps
Shows the steps of the currently running job as a procedure guide if steps have been defined for this
job.
Utilization
Shows the history of entity utilization and allows the operator to enter changes to the entity state. If
entity has the ability to track overall equipment efficiency (OEE), calculates the current OEE
percentage for the active entity, and compares that to the entity’s target OEE percentage.
48 Version 6.0
Using .NET Controls MES .NET Controls Developer Guide
Version 6.0 49
MES .NET Controls Developer Guide Using .NET Controls
On-Screen Keyboard
To assist users who do not have a physical keyboard attached to the local machine, text boxes in MES
.NET applications, such as Operator and Data Editor, include a keyboard button. Clicking this button
opens an on-screen keyboard, as shown below.
After opening the keyboard, the focus for the text entry will be to the text box associated with the
keyboard button.
You can leave the keyboard open (either displayed or minimized). However, if the keyboard is open
and you click another text box keyboard button, the focus will go to the keyboard and not to the new
text box. You must first click in the new text box before typing on the keyboard to enter text into it.
The Enter and Tab keys work just like they do on a physical keyboard.
The keyboard can be resized by clicking and dragging an edge or corner.
Depending on the Windows version, there are additional keyboard features, such as the Fade key
(making it transparent) and selectable options on the option keys. For more information about the
on-screen keyboard features, see the help topic "Use the On-Screen Key board (OSK) to type" on the
Microsoft Support web site.
To change the keyboard language
Open the Input Method menu on the system tray and select the language.
50 Version 6.0
MES .NET Controls Developer Guide
C HAPTER 2
Common Properties and Methods
In This Chapter
Common Properties ...................................................................................................................... 51
Common Methods ........................................................................................................................ 55
Common Properties
This section describes properties that are common to the following MES .NE T cont rols: Audit,
Cons umption, Counts/Duration KPI, Data Log, Entity Usage Editor, Folders, Genealogy, Inventory, Item
Cons umption Editor, Item Lot Editor, Item Production Editor, Job Step Data Editor, Job Summary, Labor
Usage Editor, OEE KPI, P roduction, Production Progress, Queue, Route, Sample Viewer, Specs, Steps,
and Utilization.
AppendSaveConfigName Property
Use the AppendSaveConfigName property to determine if the SaveConfigName property value is
appended to an entity ID.
When the configuration data (column widths or sort orders) for a control is saved to the dat abase, the
instance name for the saved configuration (specifically, this is the config_id field in t he UI_Config t able) is
the entity ID by default. The AppendSaveConfigName and SaveConfigName properties allow this
default to be changed.
If AppendSaveConfigName is set to True and the SaveConfigName is not an empty string, the
SaveConfigName is prepended to the entity ID to form the instance name for the saved
configuration.
For example, if SaveConfigName is ABC and the entity ID is 53, setting the
AppendSaveConfigName to True causes the control’s configuration data to be stored with an
instance name of ABC53.
If AppendSaveConfigName is True, but SaveConfigName is an empty string, the
AppendSaveConfigName property has no effect; the entity ID is used.
If AppendSaveConfigName is False and the SaveConfigName is not an empty string, the
SaveConfigName is used instead of the entity ID. In other words, the entity ID is not used at all in the
instance name for the saved configuration data.
For example, if SaveConfigName is set to XY Z and AppendSaveConfigName is False, the
control’s configuration data is saved wit h an instance name of XY Z.
Version 6.0 51
MES .NET Controls Developer Guide Common Properties and Methods
AutoLoginUser Property
Use the AutoLoginUser property to log an operator on the control automatically. If you set the property
AutoLoginUsers t o True, at run time either the logon dialog box appears for the control, or the current
InTouch user is logged on automatically.
If the AutoLoginUsers property is set to False, you need to configure a script to log on operators to the
controls.
AutoLogonEnt Property
Use the AutoLogonEnt property to automatically open the entity logon dialog box.
If one or more controls in your symbol require the run time operator to log on to an entity, you can set the
AutoLogonEnt property of those controls that require a logon to True.
If the AutoLogonEnt property is set to:
True, the control should automatically open the entity logon dialog box after the operator logs on to
the software.
False, you need to configure a script to log on operators to the controls.
ButtonBarName Property
Use the ButtonBarName property to associate the Button Bar control with the cont rol.
If the optional Button Bar control is to be used in association with a given control, the ButtonBarName
property must be set to the Name property of the ButtonBar instance to be used. This is required
because a form can contain multiple controls and multiple ButtonBars.
The ButtonBarName property is used to associate the correct ButtonBar with the correct control.
Example
For example, suppose a form contains bot h the Utilization and Production controls, and two ButtonBars
named "ButtonBar1" and "ButtonBar2".
If the Utilization cont rol is to be associated wit h the first of these ButtonB ars, its ButtonBarName
property must be set to "ButtonBar1".
Similarly, the Production control’s ButtonBarName property must be set to "ButtonBar2".
52 Version 6.0
Common Properties and Methods MES .NET Controls Developer Guide
ControlLicensed Property
Use the ControlLicensed property to specify that the control is licensed.
ExecuteEnabled Property
Use the ExecuteEnabled property to specify whether the Execute function is enabled.
Font Property
Use the Font property to override the fonts.
HeadingFont Property
Use the HeadingFont property to set or get the heading font of the grid associated with the control. This
property is only applicable to controls that contain a grid.
The HeadingFont property allows a different font to be used for the grid’s headings. This could be
useful, for example, to show the grid column headings with a larger or bold font.
IgnoreRefreshEvents Property
Use the IgnoreRefre shEvents property to set whether refresh events are ignored by the control. This
setting is useful if the symbol contains more than one control and only one of the controls is visible at a
time.
Ignoring refresh events also improves performance because hidden controls are not refreshed.
For the visible control, set the IgnoreRefreshEvents property to False so that it can show the lat est
data.
Version 6.0 53
MES .NET Controls Developer Guide Common Properties and Methods
LoginUserID Property
Use the LoginUserID property to specify the UserID of an operat or to log on to the control automatically.
The LoginUserPassword property must be set up and the AutoLoginUser property must be True.
String R/W
LoginUserPassword Property
Use the LoginUserPassword property to specify the password of an operator to log on to the cont rol
automatically.
The LoginUserPassword property must be set up and the AutoLoginUser property must be True.
Reading this property does not return the user's password unless the password has been previously
written though the same property. That is, it does not provide a way to access a user's password if they
are logging in normally.
LogOnEntName Property
Use the LogOnEntName property to specify the name of the entity to which an operator can
automatically log on.
The AutoLogonEnt property must be True.
LogOnSite Property
Use the LogOnSi te property to specify the site name that det ermines the entity. An operator can log on
to this entity automatically.
The LogOnSite property is required only if sites are used.
54 Version 6.0
Common Properties and Methods MES .NET Controls Developer Guide
SaveConfigName Property
Use the SaveConfigName property to set or get the instance name for the saved configuration. The
instance name can be appended to or replace the entity ID. If blank, the entity ID is used.
For more information, see AppendS aveConfigName Property on page 100.
String R/W ““
Common Methods
This section describes methods that are common to the following MES .NE T controls: Audit,
Cons umption, Counts/Duration KP I, Data Log, Entity Usage Editor, Genealogy, Inventory, Item
Cons umption Editor, Item Lot Editor, Item Production Editor, Job Step Data Editor, Job Summary, Labor
Usage Editor, OEE KPI, P roduction, Production Progress, Queue, Route, Sample Viewer, Specs, Steps,
and Utilization controls.
The Job Summary control can access all methods except the I sButtonMenuItemEnabled() met hod.
BeginInit() Method
Use the BeginInit() method to prevent the screen from being updated while a control is starting.
Syntax
BeginInit();
EndInit() Method
Use the EndInit() method to allow screen updates after the control has been started.
Syntax
EndInit();
Execute() Method
Use the Execute() method to start an external application specified in t he commandInfo parameter. If the
underlying control cont ains a grid and a row is selected in t he grid, the method can pass information from
the selected row to the external application. The method can also be used to pass gl obal information to
the external application.
This method is available by means of the Button Bar control and allows the Execute function to be
accessed in a context where a Button Bar cont rol does not exist.
For example, to place the Utilization control in a form that contains a menu, but does not contain the
Button Bar control, the method can be called by a script with corresponding menu options.
For information about how to pass global information or information from the selected row in a grid, see
Passing Information with the ButtonBar Execut e() and LaunchBrowser() Methods on page 60.
Syntax
Execute(commandInfo);
Parameter
commandInfo
A string that specifies the application being launched and any command -line information needed by
the application.
Version 6.0 55
MES .NET Controls Developer Guide Common Properties and Methods
ExecuteButtonMenuCommand() Method
Use the ExecuteButtonMenuCommand() method to execute the specified button menu command.
Syntax
result = ExecuteButtonMenuCommand(menuID, userData);
Parameters
menuI D
An integer that is the ID of the menu command to execute.
userData
The user data attached to the button menu command.
GetButtonMenuItems() Method
Use the GetButtonMenuItem s() method to return the button menu for the associated cont rol. If no
button bar is attached to the control, an empty button menu is returned.
Syntax
result=GetButtonMenuItems();
Return Value
result
A ButtonMenuArrayList of the buttons supported by the control.
Help() Method
Use the Help() method to open the online help file.
This method is available by means of the Button Bar control and allows the Help function to be accessed
in a context where a Button Bar control does not exist.
For example, to place the Utilization control in a form that contains a menu but does not contain the
Button Bar control, the method can be called by script wit h corresponding menu options.
Syntax
Help();
InitializeSuperclass() Method
Use the InitializeSuperclass() method to load the required information from the subclass (the inheriting
control). The InitializeSuperclass() method must be called in the inheriting control's constructor.
Note: This method should be used only to develop a new control bas ed on the comm on control
(FactMES.Cont rols). It should not be used to work with an existing control, such as Utilization, Production
or Queue.
There are two overloads for this method based on whether the inheriting control contains a grid or not.
Syntax for controls containing a grid
InitializeSuperClass(FactGrid, controlType, formStateButton);
Parameters
FactGrid
A reference to the wrapper class to the control's grid.
controltype
A string that defines the type of the descendant control. For example, "Util" or "Steps".
This is the screen portion of the UI_Config key for the control's configuration settings.
56 Version 6.0
Common Properties and Methods MES .NET Controls Developer Guide
formStateButton
A string that appears on the large button in the center of the control that indicates the control's state
when the cont rol is not active. For example, "No User" or "No Entity".
Syntax for controls not containing a grid
InitializeSuperClass(controlType, formStateButton);
Parameters
controltype
A string that indicates the type of the descendant control. For example, "Util" or "Steps".
This is the screen portion of the UI_Config key for the control's configuration settings.
formStateButton
A string that appears on the large button in the center of the control that indicates the control's state
when the cont rol is not active. For example, "No User" or "No Entity".
IsButtonMenuItemEnabled() Method
Use the I sButtonMenuItemEnabled() method to determine whether the specified button menu item is
enabled.
A button menu item is a Button Bar control function, for example Execute, End Job, Refres h, which is
referenced from a menu.
Syntax
result = IsButtonMenuItemEnabled(menuID);
Parameters
menuI D
A integer that indicates the ID of the button menu item.
result
A Boolean value. If True, the button menu it em is enabled. If False, the button menu item is disabled.
LaunchBrowser() Method
Use the LaunchBrow ser() method to launch the browser application specified in the commandInfo
parameter. If the underlying c ontrol contains a grid and a row is selected in the grid, the method can pass
information from the row to the application. The method can also be us ed to pass global information to the
external application.
This method is available by means of the Button B ar control and allows the LaunchBrow ser() function to
be accessed in a context where a Button Bar control does not exist.
For example, to place the Utilization control in a form that contains a menu but does not contain the
Button Bar control, the method can be called by a script with corresponding menu options.
For information about how to pass global information or information from the selected row in a grid, see
Passing Information with the ButtonBar Execut e() and LaunchBrowser() Methods on page 60.
Syntax
LaunchBrowser(commandInfo);
Parameter
commandInfo
A string that provides information needed by the specific application being launched
OpenForm() Method
Use the OpenForm () method to open an external form. This method is only available if the system
parameter, Form Program, is set up.
Version 6.0 57
MES .NET Controls Developer Guide Common Properties and Methods
This method is available by means of the Button Bar control and allows the Execute function to be
accessed in a context where a Button Bar cont rol does not exist.
For example, to place the Utilization control in a form that contains a menu but does not contain the
Button Bar control, the method can be called by a script with corresponding menu options.
Syntax
OpenForm(userData);
Parameter
userData
A string that provides the name of the form and arguments.
RefreshData() Method
Use the Refre shData() met hod to refresh the control by retrieving dynamic data from the database,
re-applying UI configuration settings, and enabling or disabling relevant buttons.
Syntax
RefreshData();
ResetAppendSaveConfigName() Method
Use the Re setAppendSaveConfigName() method to set the AppendSaveConfigName property to its
default value (True).
Syntax
ResetAppendSaveConfigName();
ResetAutoLoginUser() Method
Use the Re setAutoLoginUser() met hod to set the AutoLoginUser property to its default value (True).
Syntax
ResetAutoLoginUser();
ResetAutoLogonEnt() Method
Use the Re setAutoLogonEnt() method to set the AutoLogonEnt property to its default value (True).
Syntax
ResetAutoLogonEnt();
ResetButtonBarName() Method
Use the Re setButtonBarName() method to clear the ButtonBarName property.
Syntax
ResetButtonBarName();
ResetHeadingFont() Method
Use the Re setHeadingFont() method to set the HeadingFont property to its default value (MS Sans
Serif, 9.75 pt).
Syntax
ResetHeadingFont();
58 Version 6.0
Common Properties and Methods MES .NET Controls Developer Guide
ResetIgnoreRefreshEvents() Method
Use the Re setIgnoreRefre shEvents() method to set the Re setIgnoreRefre shEvents property to its
default value (False).
Syntax
ResetIgnoreRefreshEvents();
ResetSaveConfigName() Method
Use the Re setSaveConfigName() method to set the SaveConfigName property to its default value
(empty string).
Syntax
ResetSaveConfigName();
SetGraphicSite() Method
Use the SetGraphicSite() met hod to set the Graphic Site object used to get the InTouch User ID and
Domain.
Note: This method is called by InTouc h to set up the ability to log on the current InTouch user. We do not
recommend using this method in scripting.
Syntax
SetGraphicSite(site);
Parameter
site
IGraphicSite the indicates the object representing the Graphic Site.
SwitchUser() Method
Use the SwitchUser() method to open the Switch User dialog box. The Switch User dialog box is used
to set the currently active operator. If anot her operator logs on, the user interface is changed
appropriately. For example, the new operator's language is used.
This method is available by means of the Button Bar control and allows the SwitchUser function to be
accessed in a context where a Button Bar cont rol does not exist.
For example, to place the Utilization control in a form which cont ains a menu, but does not contain the
Button Bar control, the method could be called by script wit h corresponding menu options.
Syntax
SwitchUser();
TranslateColumnHeadings() Method
Use this method to translate the grid column heading strings, which can contain an embedded string ID.
If the column heading is blank, use a default.
This method translates the grid column heading strings and the grid title. These strings can contain an
embedded string ID. An angle bracket delimited integer is appended to the string, which ref erences a
string_id in the Language table. If a column heading is blank, a default string is used.
Syntax
TranslateColumnHeadings(FactGrid);
Version 6.0 59
MES .NET Controls Developer Guide Common Properties and Methods
Parameter
FactGrid
A string to specify the ID of the grid whose column headings and title are to be translated.
60 Version 6.0
Common Properties and Methods MES .NET Controls Developer Guide
qty_rejected
The quantity rejected for the current job.
note s
Notes for the current job
Version 6.0 61
MES .NET Controls Developer Guide
C HAPTER 3
Audit Control
In This Chapter
Introduction to the Audit Control ..................................................................................................... 63
Configuring the Audit Control ......................................................................................................... 63
Properties of the Audit Control ....................................................................................................... 64
Methods of the Audit Control ......................................................................................................... 64
Version 6.0 63
MES .NET Controls Developer Guide Audit Control
Note: The Audit control corresponds to the Audi t tab of MES Operator. For more information, see the
Audit Tab section in the MES Operator Guide or online help.
AuthorizeEnabled Property
Use the AuthorizeEnabled property to get a Boolean value indicating whet her an operator can sign off
on a certification.
RefreshEnabled Property
Use the Refre shEnabled property to get a Boolean value indicating whether this control can be
refres hed or not. This control cannot be refreshed if the operator is not logged on to an MES application
or any MES entity.
64 Version 6.0
Audit Control MES .NET Controls Developer Guide
Syntax
SignOff();
Version 6.0 65
MES .NET Controls Developer Guide
C HAPTER 4
Button Bar Control
In This Chapter
Introduction to the Button Bar Control ............................................................................................. 67
Configuring the Button Bar Cont rol ................................................................................................. 67
Properties of the Button Bar Control ............................................................................................... 69
Methods of the Button Bar Control ................................................................................................. 74
Note: Due to limitations in Microsoft .NE T Framework, you must place the Button Bar control on the
canvas before you embed the control it is referencing.
Version 6.0 67
MES .NET Controls Developer Guide Button Bar Control
6. Click near the rectangle where you want to paste the Button Bar control. The Button Bar control is
pasted on the canvas.
68 Version 6.0
Button Bar Control MES .NET Controls Developer Guide
You assign controls to Button Bar buttons by setting the ShowAllControl sButton property to False and
the ControlInCharge property to the control name.
Control C1 Control C2
ButtonBarName = B1 ButtonBarName = B1
Buttons for C2
Note: You must change the ControlInCharge property at runtime to enable buttons for any specific
control.
AllowConfiguration Property
Use the AllowConfiguration property to set or get whether the Configure Button Bar dialog box is
available at run time.
This property is set by the controls using the Button Bar control and is base d on the operat or’s
permissions.
Set this property to True to permit the operator to right-click on the Button Bar control, click Configure,
and open the Configure Button Bar dialog box.
Version 6.0 69
MES .NET Controls Developer Guide Button Bar Control
BackColor Property
Use the BackColor property to set the color of the background of the area on which the buttons are
placed.
ButtonSize Property
Use the ButtonSize property to set or get the size (in pixels) of buttons. Button dimensions are in the
form widt h, height.
ControlInCharge Property
Use the ControlInCharge property to set or get the ID of the control that currently has control of the
Button Bar control. This property is also set by the controls when they become the active control.
DefaultButtonBackColor Property
Use the DefaultButtonBackColor property to set or get the default background color of buttons.
DefaultButtonForeColor Property
Use the DefaultButtonForeColor property to set or get the default text color of button captions.
70 Version 6.0
Button Bar Control MES .NET Controls Developer Guide
Dock Property
Use the Dock property to set or get the docking location of the control. Possible values are Top, Bottom,
Left, Right, None.
If the Dock property is set to anything but None, you must draw a rectangle on the symbol before the
Button Bar control is placed in the symbol.
The rectangle defines the symbol size that enables the Button Bar control to dock properly.
ForeColor Property
Use the ForeColor property to set or get the foreground color us ed to show text and graphics in the
control.
HorizontalBoundary Property
Use the HorizontalBoundary property to set or get the horizontal separation (in pixels) between the top
and bottom of the buttons and the edge of the control.
Integer R/W 0
HorizontalSeparation Property
Use the HorizontalSeparation property to set or get the horizontal separation (in pixels) between
buttons. Only applicable when the Dock property is set to Top, Bottom, or None.
Integer R/W 0
NumButtonLines Property
Use the Num ButtonLine s property to set or get the number of:
Rows of buttons if the Dock property is set to Top or Bottom.
Columns of buttons if the Dock property is set to Left or Right.
Version 6.0 71
MES .NET Controls Developer Guide Button Bar Control
Integer R/W 1
ScrollButtonBackColor Property
Use the ScrollButtonBackColor property to set or get the background color of the scroll buttons.
ScrollButtonForeColor Property
Use the ScrollButtonForeColor property to set or get the text and graphics color used on the scroll
buttons.
ScrollButtonHeight Property
Use the ScrollButtonHeight property to set or get the height (in pixels) of scroll buttons. This property is
only applicable when the Dock property is set to Left, Right, or None.
Integer R/W 16
ScrollButtonWidth Property
Use the ScrollButtonWidth property to set or get the width (in pixels) of scroll buttons. This property is
only applicable when the Dock property is set to Top, Bottom, or None.
Integer R/W 16
ShowAllControlButtons Property
Use the ShowAllControlButtons property to set or get whether the Button Bar control:
Shows the buttons for all the controls registered with it (set True).
Only shows the buttons for the cont rol currently in charge of the Button Bar cont rol (set False).
72 Version 6.0
Button Bar Control MES .NET Controls Developer Guide
Size Property
Use the Size property to set or get the size of the control in pixels. Dimensions are expressed as widt h,
height.
String R/W
SpacerHeight Property
Use the SpacerHeight property to set or get the height (in pixels ) of the button separation line. This
property is only applicable when the Dock property is set to Left or Right.
Integer R/W 32
SpacerWidth Property
Use the SpacerWidth property to set or get the width (in pixels) of the button separation line. This
property is only applicable when the Dock property is set to Top or Bottom.
Integer R/W 32
UserButtonExecutionLevel Property
Use the UserButtonExecutionLevel property to set or get the operator's button execution level.
The UserButtonExecutionLevel property is set by the controls using the Button Bar control and is
based on the operator’s permissions.
The UserButtonExecutionLevel property must be greater than or equal to a button's execution level in
order for the button to be enabled. The button's execution level is set on the configuration dialog or when
the button is added to the Button Bar control.
Integer R/W 1
VerticalBoundary Property
Use the VerticalBoundary property to set or get the vertical separation (in pixels) bet ween the left and
right of the buttons and the edge of the cont rol.
Version 6.0 73
MES .NET Controls Developer Guide Button Bar Control
Integer R/W 0
VerticalSeparation Property
Use the VerticalSeparation property to set or get the vertical separation (in pix els) between buttons.
Only applicable when the Dock property is set to Left or Right.
Integer R/W 0
EnableButton() Method
Use the EnableButton() method to enable or disable the named button associated with the specified
control.
Syntax
result = ButtonEnabled(controlID, buttonID, enabled);
Parameters
controlID
A string that indicates the ID of the control associated wit h the Button Bar control.
buttonID
An integer that indicates the ID of the button. For more information, see Buttons on page 271.
Note: If you omit this parameter, all buttons associated wit h the specified control are enabled or dis abled.
enabled
A Boolean value that indicates whether to enable (1) or disable (0) the button.
IsButtonEnabled() Method
Use the I sButtonEnabled() method to loop through all buttons in the Button Bar control looking for the
button specified by the supplied information. If the button is found, the enabled status is returned. If it is
not found, False is returned.
Syntax
result = IsButtonEnabled(controlID, buttonID, userData);
Parameters
controlID
A string that indicates the ID of the control associated wit h the Button Bar control.
buttonID
An integer that indicates the ID of the button. For more information, see Buttons on page 271.
userData
An object that provides the user data of the button.
74 Version 6.0
Button Bar Control MES .NET Controls Developer Guide
result
A Boolean value. The value is True if button is found and the button is enabled; otherwise the value is
False.
ResetAllowConfiguration() Method
Use the Re setAllowConfiguration() method to res et the AllowConfiguration property to its default
value of True.
Syntax
ResetAllowConfiguration();
ResetBackColor() Method
Use the Re setBackColor() method to reset the BackColor property to the default background color for
a control.
Syntax
ResetBackColor();
ResetButtonSize() Method
Use the Re setButtonSize() method to reset the button size (in pixels) to the default value of 64x64.
Syntax
ResetButtonSize();
ResetControlInCharge() Method
Use the Re setControlInCharge() method to reset the ControlInCharge property to an empty string.
Syntax
ResetControlInCharge();
ResetDefaultButtonBackColor() Method
Use the Re setDefaultButtonBackColor() method to reset the DefaultButtonBackColor property to
default background color for a control.
Syntax
ResetDefaultButtonBackColor();
ResetDefaultButtonForeColor() Method
Use the Re setDefaultButtonForeColor() method to reset the DefaultButtonForeColor property to
default foreground color for a control.
Syntax
ResetDefaultButtonForeColor();
ResetDock() Method
Use the Re setDock() method to reset the Dock property value to Top.
Syntax
ResetDock();
Version 6.0 75
MES .NET Controls Developer Guide Button Bar Control
ResetForeColor() Method
Use the Re setForeColor() method t o reset the ForeColor property to the default foreground c olor of the
control.
Syntax
ResetForeColor();
ResetHorizontalBoundary() Method
Use the Re setHorizontalBoundary() method to reset the HorizontalBoundary property to a value of 0.
Syntax
ResetHorizontalBoundary();
ResetHorizontalSeparation() Method
Use the Re setHorizontalSeparation() method to reset the HorizontalSeparation property to a value of
0.
Syntax
ResetHorizontalSeparation();
ResetNumButtonLines() Method
Use the Re setNumButtonLines() method to reset the Num ButtonLine s property to the value of 1.
Syntax
ResetNumButtonLines();
ResetScrollButtonBackColor() Method
Use the Re setScrollButtonBackColor() method to reset the ScrollButtonBackColor property to
default background color for a control.
Syntax
ResetScrollButtonBackColor();
ResetScrollButtonForeColor() Method
Use the Re setScrollButtonForeColor() method to res et the ScrollButtonForeColor property to default
foreground color for a control.
Syntax
ResetScrollButtonForeColor();
ResetScrollButtonHeight() Method
Use the Re setScrollButtonHeight() method to reset the ScrollButtonHeight property to 16.
Syntax
ResetScrollButtonHeight();
ResetScrollButtonWidth() Method
Use the Re setScrollButtonWidth() method to reset the ScrollButtonWidth property to 16.
Syntax
ResetScrollButtonWidth();
76 Version 6.0
Button Bar Control MES .NET Controls Developer Guide
ResetShowAllControlsButtons() Method
Use the Re setShowAllControl sButtons() method to reset the ShowAllControl sButtons property to
True.
Syntax
ResetShowAllControlsButtons();
ResetSize() Method
Use the Re setSize() method to reset the Size property.
If the Button Bar control is laid out horizontally, the height is set to the number of button lines times the
button height plus two times the horizontal boundary.
If the Button Bar control is laid out vertically, the width is set to the number of button lines times the width
of the buttons plus two time the vertical boundary.
Syntax
ResetSize();
ResetSpacerHeight() Method
Use the Re setSpacerHeight() method to res et the SpacerHeight property to 32.
Syntax
ResetSpacerHeight();
ResetSpacerWidth() Method
Use the Re setSpacerWidth() method to reset the SpacerWidth property to 32.
Syntax
ResetSpacerWidth();
ResetUserButtonExecutionLevel() Method
Use the Re setUserButtonExecutionLevel() method to reset the UserButtonExecution property to 1.
Syntax
ResetUserButtonExecutionLevel();
ResetVerticalBoundary() Method
Use the Re setVerticalBoundary() method to reset the VerticalBoundary property to a value of 0.
Syntax
ResetVerticalBoundary();
ResetVerticalSeparation() Method
Use the Re setVerticalSeparation() method to reset the VerticalSeparation property to a value of 0.
Syntax
ResetVerticalSeparation();
SetButtonColor() Method
Use the SetButtonColor() met hod t o set the background and foreground colors of all buttons associated
with the specified control.
Version 6.0 77
MES .NET Controls Developer Guide Button Bar Control
Syntax
SetButtonColor(controlID[, buttonID], backColor, foreColor);
Parameters
controlID
A string that indicates the ID of the control associated wit h the Button Bar control.
buttonID
An integer that indicates the ID of the button. If this parameter is omitted, all the buttons for this
control are affected. For more information, see Buttons on page 271.
back Color
The color to use for the button’s background.
foreColor
The color to use for the button’s foreground.
UnregisterControl() Method
Use the UnregisterControl() method to remove controls associated with the button bar. All the control
buttons are removed, and the cont rol will no longer appear on the run time configuration dialog.
Syntax
UnregisterControl(controlID)
Parameters
controlID
A string that indicates the ID of the control associated wit h the Button Bar control.
78 Version 6.0
MES .NET Controls Developer Guide
C HAPTER 5
Consumption Control
In This Chapter
Introduction to the Consumption Control ......................................................................................... 79
Configuring the Consumption Control ............................................................................................. 79
Properties of the Consumption Cont rol ........................................................................................... 80
Methods of the Cons umption Control ............................................................................................. 81
Version 6.0 79
MES .NET Controls Developer Guide Consumption Control
Open or launch a form, if the Path to Form Program system parameter is set.
This control corresponds to the BOM tab of MES Operat or. For more information, see the BOM Tab
section in the MES Operator Guide or MES online help.
AddConsEnabled Property
Use the AddConsEnabled property to determine if the Add Consumption button and functionality is
enabled.
ConsWasteEnabled Property
Use the ConsWa ste Enabled property to determine if the Consumption Waste button and functionality
is enabled.
FilterEnabled Property
Use the FilterEnabled property to determine if the Filter button and functionality is enabled.
ItemAttributesEnabled Property
Use the ItemAttribute sEnabled property to determine if the Item Attribute s button and functionality is
enabled.
OpenFormEnabled Property
Use the OpenForm Enabled property to determine if the Open Form button and functionality is enabled.
80 Version 6.0
Consumption Control MES .NET Controls Developer Guide
SetLotDataEnabled Property
Use the SetLotDataEnabled property to determine if the Set Lot Data button and functionality is
enabled.
AddConsumption() Method
Use the AddConsumption() method to open the form for adding consumption.
Syntax
AddConsumption();
ConsWaste() Method
Use the ConsWaste() met hod to open the form for consumption waste.
Syntax
ConsWaste();
Show_BOMStep_Filter_Dialog() Method
Use the Show_BOMStep_Filter_Dialog() method to open a dialog box for specifying Invent ory Filter.
Syntax
Show_BOMStep_Filter_Dialog();
SetCurrentConsLotData() Method
Use the SetCurrentConsLotData() method to open the form to set the current Lot information.
Syntax
SetCurrentConsLotData();
SelectRowByKey() Method
Use the SelectRowByKey() method to search and select the first row in the grid that matches the
specified work order, operation, sequence, and BOM position. If no such row is found and the
selectFirstRowAs Default parameter is set to True, the first row in the grid is selected. Otherwise the
previous row selection is not changed.
Syntax
result = SelectRowByKey(string woId, string operId, int seqNo,
int bomPos, bool selectFirstRowAsDefault);
Version 6.0 81
MES .NET Controls Developer Guide Consumption Control
Parameters
woId
A string value that is the work order ID to match.
operId
A string value that is the operation ID to match.
seqNo
An integer value that is the sequenc e number to match.
bomPos
An integer value that is the BOM position to match.
selectFirstRowAs Default
A Boolean value that is set to True if the first row must be selected when there is no match. It is set to
False if the row selection must not change when there is no match.
Return Value
result
A Boolean value that is True if a match is found; otherwise it returns False.
82 Version 6.0
MES .NET Controls Developer Guide
C HAPTER 6
Counts/Duration KPI Control
In This Chapter
Introduction to the Counts/Duration KPI Control .............................................................................. 83
Using the Counts/Duration KP I Control ........................................................................................... 83
Properties of the Counts/Duration KPI Cont rol ................................................................................ 85
Methods of the Counts/Duration KP I Control ................................................................................... 90
E vents of the Counts/Duration KPI Control ..................................................................................... 91
Version 6.0 83
MES .NET Controls Developer Guide Counts/Duration KPI Control
At design time or run time, when configuring filters, a Filter dialog exists to help coordinate the setting of
several properties at once. This Filter dialog can be invoked at design time by selecting the browse
button next to the TypeFilter property. At run time, it is invoked by calling the Filter() method or using
the button bar.
At run time, the control is refreshed whenever a UtilizationStateChanged event is detected from the
MES database if utilization states are being displayed, or when an UtilizationReasonChanged event is
detected from the MES database if reason groups or reasons are being displayed. This event is handled
internally by the control. The control is also refreshed when the CountsAndDurationControlStyle or
CountsAndDurationGraphType property is set. Setting the other properties will not cause an aut omatic
refres h, so you will need to call the Refre shData() method (for more information on this method, see
RefreshData() Method on page 58). If durations are being displayed, the control can also be refres hed
based on a timer that is set to the value of the DurationRefre shRate property. The
IgnoreRefreshEvents property can be set to True to avoid unwanted refreshes from occurring while you
are setting properties.
The Counts/Duration KPI control has a context menu that allows a user with the proper permissions to
save the configuration of the control to the database for either a specific entity, all the logged on entities,
or as a default. Only the button bar setup and the current filter settings will be saved as configuration
data.
Switching Entities
The Counts/Duration KPI control shows information only for the current entity or the display entity. If the
Job Summary control is included in the form, you can use it to change the current entity. You can also
change the current entity by using a script.
84 Version 6.0
Counts/Duration KPI Control MES .NET Controls Developer Guide
CDKPIFilter.FilterEndOffset Property
The CDKPIFilter.FilterEndOffset property specifies the end of the filter period relative to now. This filter
value is only legitimate when the TypeFilter property is set to Custom. If the TypeFilter property is not
set to Custom, this property is set to 0 if the type is ThisHour, LastNHours, CurrentShift, Current Day,
CurrentWeek, or CurrentMonth; it is set to 1 if the type is LastShift, Yesterday, LastWeek, or
LastMonth. The value of this property should always be less than the value of the
CDKPIFilter.FilterStartOffset property and great er than or equal to 0.
Integer R/W 0
CDKPIFilter.FilterStartOffset Property
The CDKPIFilter.FilterStartOffset property specifies the start of the filter period relative to now. This
filter value is only legitimate when the TypeFilter property is set to Custom. If the TypeFilter property is
not set to Custom, this property is set to 1 if the type is ThisHour, CurrentShift, CurrentDay,
CurrentWeek, or CurrentMonth; it is set to 2 if the type is LastShift, Yesterday, LastWeek, or LastMonth.
It is set to N if the type is set to LastNHours. The value of this property should always be greater than the
value of the CDKPIFilter.FilterEndOffset property and should always be greater than or equal to 1.
Integer R/W 1
CDKPIFilter.FilterTime Property
The CDKPIFilter.FilterTime property specifies the time unit for a custom filter type. This filter value is
only legitimate when the TypeFilter property is set to Custom. If the TypeFilter property is not set to
Custom, this property is set to a value that matches the type (hour if type is ThisHour or LastNHours;
Shift is type is CurrentShift or LastShift; Day if type is CurrentDay or Yesterday; Week if type is
CurrentWeek or LastWeek; or Month if type is CurrentMonth or LastMonth).
When this property is set to hour, the results will include data for 0 or more entire hour periods, relative to
the current time. For all other settings (Shift, Day, Week, Month or Y ear), the results will start at the
beginning of the time unit specified by the CDKPIFilter.FilterStartOffse t property.
Version 6.0 85
MES .NET Controls Developer Guide Counts/Duration KPI Control
CDKPIFilter.TypeFilter Property
The CDKPIFilter.TypeFilter property specifies which filter to use including a custom filter. If LastNHours
is selected, you will also need to set the FilterDuration property. If Custom is selected, you will also
need to set the CDKPIFilter.FilterTime, CDKPIFilter.FilterStartOffset, and
CDKPIFilter.FilterEndOffset properties.
ChartBackColor Property
Use the ChartBackColor property to get and set the background color of the chart.
Color R/W
ControlStyle Property
The ControlStyle property is an enumeration type that specifies whether the control is showing counts,
duration, or both. If Counts is chosen, the number of times a State, Reason Group, or Reason was
chosen within t he time period set by the filter is displayed on the graph. If Duration is chos en, the amount
of time spent in a State, Reason Group, or Reason is displayed on the graph. If CountsWithDuration is
chosen, a group of two bars for each State, Reason Group, or Reason is displayed on the graph with the
top bar being the counts and the bottom bar being the duration. If DurationWithCounts is chosen, a group
of t wo bars for each State, Reason Group, or Reason is displayed on the graph with the top bar being the
duration and the bottom bar being the counts. When either CountsWithDuration or Du rationWithCounts
is chosen, the graph is sorted by the top bar in the grouping.
86 Version 6.0
Counts/Duration KPI Control MES .NET Controls Developer Guide
GraphType Property
The GraphType property specifies the type of data that will be shown in the Pareto graph (see the table
below for the list of choices ). If UtilStates is selected, each bar in the graph represents the counts or
duration of a utilization state. If ReasonGroups is selected, each bar in the graph repres ents the counts
or duration of a reason group. If Reasons is selected, each bar in the graph represents the counts or
duration of a reason.
DisplayEntity Property
When the Di splayEntity property is set to a specific entity name, the control will use that entity as the
source of the data instead of the currently logged in entity. This will enable multiple KPI controls to exist
on the same screen, each one showing values for a different entity (dashboard setup).
Dynamic entity names can be configured through the symbol editor by data -binding the tag reference or
custom property in the reference column.
If this property is set to null or an empty string, the currently logged in entity will be used as the source of
data.
DurationRefreshRate Property
The DurationRefre shRate property specifies the amount of time in minutes between refreshes. This
property is only legitimate when the CountsAndDurationControlType property is set to Duration. This
property must have a value greater than or equal to zero. If the value is set to 0, the graph will only
refres h when there is a change in utilization.
Integer R/W 5
Version 6.0 87
MES .NET Controls Developer Guide Counts/Duration KPI Control
FilterDefaultsFromDB Property
The FilterDefaultsFrom DB property controls whether the default filter settings (TypeFilter,
FilterDuration, CDKPIFilter.FilterTime, CDKPIFilter.FilterStartOffset, and
CDKPIFilter.FilterEndOffset properties) are established during design time or if they will be pulled in
from the MES database during run time. If this property is set to False, the default filter s ettings will not be
loaded from the database. If the property is set to True, the default filter settings will be pulled from the
MES databas e. In this case, the design -time setting of the filter properties is disabled.
FilterDuration Property
The FilterDuration property specifies the N in the Last N Hours filter type. The value of this property is
only legitimate when the TypeFilter property is set to Last N Hours.
Integer R/W 0
FilterEnabled Property
The FilterEnabled property indicates whether the Filter() met hod may be called. If it is set to False, the
Filter() method may not be called. This property is set by the control whenever the state of the control
changes. It will be set to False if there is no MES session, no user, or no entity. At all other times it should
be set to True.
LabelFont Property
Use the LabelFont property to set or get the font for the labels in a bar chart.
The font size can be up t o 30 pt. It should be adjusted t o a size that is appropriate for the size of t he chart.
The font size can be set to more than 9 pt for controls whose ControlStyle property is set to Counts or
Duration by not CountsWithDuration or DurationWithCounts.
Font R/W
LabelFontColor Property
Use the LabelFontColor property to set the font color for the labels in a bar chart.
88 Version 6.0
Counts/Duration KPI Control MES .NET Controls Developer Guide
Color R/W
(System.Drawing.Color)
NumberOfBars Property
The NumberOfBars property specifies the maximum number of bars for individual utilization states,
reason groups, or reasons that will appear on the graph. The number of bars is an upper limit for the
number of bars shown. If there is not enough data to show that many bars, fewer will be displayed. If
there are more values than the number of bars, another bar will be added showing the sum of the
remaining values.
Integer R/W 5
OEEStatusFilter Property
The OEEStatusFilter property determines what filtering, if any, will be performed based on utilization
status (Runtime and Downtime).
ReasonGroupColors Property
The Rea sonGroupColors property is an array with a size equal to the value of the NumberOfBars
property plus one for the summary bar. When displaying utilization states and reasons, the colors for the
bars come from the dat abas e. Since reason groups do not have colors defined in the database, this
property allows the us er to s pecify the bar colors when displaying reason groups. The colors will not map
to a particular reason group, but instead will specify what color by bar position.
ValueFont Property
Use the ValueFont property to set the font for the values in a bar chart.
Font R/W
Version 6.0 89
MES .NET Controls Developer Guide Counts/Duration KPI Control
ValueFontColor Property
Use the ValueFontColor property to set the font color for the values in a bar chart.
Color R/W
(System.Drawing.Color)
Filter () Method
The Filter() method can only be called when the FilterEnabled property is set to True. Call this method
to display the same Filter dialog box that is used to set properties at design -time wit h one additional list
for setting the OEE Status Filter.
Syntax
Filter();
FillSampleDataCountsDuration() Method
Use the FillSampleDataDuration() method to fill the sample data for the Bar Chart at design time.
Syntax
FillSampleDataCountsDuration();
GetButtonMenuItems() Method
Use the GetButtonMenuItem s() method to retrieve the button menu for the Utilization control. If no
Button Bar control is associated with the Utilization control, an empty button menu is returned.
Syntax
result = GetButtonMenuItems();
IntializeBarGraph() Method
Use the IntializeBarGraph() method to initialize the Bar Graph at constructor.
Syntax
InitalizeBarGraph();
RefreshDisplay() Method
Use the Refre shDi splay() met hod t o refresh and updat e the display in t he control where the data source
to the bar chart is assigned.
This method updates the display only if the dat abase of CaDViewData class is updated.
Syntax
RefreshDisplay();
90 Version 6.0
Counts/Duration KPI Control MES .NET Controls Developer Guide
Syntax
UpdateDisplay();
OnClick() event
The OnClick() event is fired when the user clicks on any bar on the OEE KPI control. When fired, the
graph type displayed will change based on the bar that was clicked on. If reason groups are being
displayed, clicking on a reason group will update the graph with the reason data for the selected reason
group using the same filters. The CountsAndDurationGraphType property will not be changed; the
users will have to catch the click event if they want to update the UI to indicate that reas ons are being
displayed. If the graph is displaying the reasons for a particular reason group, the UI must provide a
means for getting back to displaying the reason groups. If reasons are being displayed and a reason is
clicked on, the graph will change to display the utilization states associated with the reason. If utilization
states are being display ed and a state is clicked on, the graph will change to display the reason groups
that the utilization state is part of. Again, the same filters will be applied and the
CountsAndDurationGraphType property will not be changed.
Syntax
OnClick();
Version 6.0 91
MES .NET Controls Developer Guide
C HAPTER 7
Data Log Control
In This Chapter
Introduction to the Data Log Control ............................................................................................... 93
Configuring the Data Log Cont rol ................................................................................................... 93
Properties of the Data Log Control ................................................................................................. 94
Methods of the Data Log Control ................................................................................................... 96
Version 6.0 93
MES .NET Controls Developer Guide Data Log Control
curEnt Property
Use the curEnt property to return a reference to the current Ent object for the current logged on user.
curUser Property
Use the curUser property to return a reference to the current User object for the currently logged on
user.
Font Property
Use the Font property to change the font of each constituent control to that is specified for the "whole"
control in design mode. This property overrides the master control Font property.
Font R/W 0
IsSaveNeeded Property
Use the I sSaveNeeded property to indicate whet her the data needs to be saved.
LotNo Property
Use the LotNo property to get the current lot number for which to retrieve data.
94 Version 6.0
Data Log Control MES .NET Controls Developer Guide
MaxValues Property
Use the MaxValues property to ret urn t he maximum number of value fields (16 or 48) for the current data
log group. If a current group does not exist, this property returns 0.
NewRowEnabled Property
Use the NewRowEnabled property to specify whether the Insert Row button action is enabled.
RemoveEnabled Property
Use the RemoveEnabled property to specify whether the Remove button action is enabled.
SaveEnabled Property
Use the SaveEnabled property to specify whether the Save button action is enabled.
StepNo Property
Use the StepNo property to get the current step number for whic h to take data.
SublotNo Property
Use the SublotNo property to get the current sublot number for which to take data.
Version 6.0 95
MES .NET Controls Developer Guide Data Log Control
ToggleChartEnabled Property
Use the ToggleChartEnabled property to specify whether the Toggle Chart button action is enabled or
not.
AddNewRow() Method
Use the AddNewRow() method to add a new row to the data log grid for a new set of data log samples.
Syntax
AddNewRow(int stepNo, string lotNo, string subLotNo,
string stepDesc);
Parameters
stepNo
An integer value, if not Null, that is the current step number to which this dat alog row applies.
lotNo
An integer value, if not Null, that is current lot number to which this datalog row applies.
subLotNo
An integer value, if not Null, that is current sublot number to whic h this datalog row applies.
stepDesc
A string value, if not Null, that is current step description to which this datalog row applies.
CheckAndSave() Method
Use the CheckAndSave() method to verify if any data needs to be saved. It prompts the user if a save is
required, and saves the data upon user action if the user chooses.
Syntax
CheckAndSave();
DeleteDataLogRow() Method
Use the DeleteDataLogRow() method to delete the selected row from the relevant Data Log
table—Data_Log_16 table or Data_Log_48 table.
Syntax
DeleteDataLogRow();
96 Version 6.0
Data Log Control MES .NET Controls Developer Guide
SaveRows() Method
Use the SaveRows() method to save all the data log rows that are edited or inserted. This method
checks if the data log row must be saved in Data_Log_16 table or Data_Log_48 table.
Syntax
SaveRows();
SelectRowByKey() Method
Use the SelectRowByKey() method to select the specified row in the grid. If the row is not found
optionally, the last row is selected based on a paramet er. If the specified row cannot be found and the
selectLastRowAsDefault parameter is False, then the existing selected row is left and a False value is
returned. If a new row is selected, it enables/disables any buttons based on this new selection.
Syntax
result = SelectRowByKey(rowID, selectLastRowAsDefault);
Parameters
rowI D
An integer that is the row ID of the selected row.
selectLastRowAsDefault
A Boolean value that is the last row if the row is not found.
Return Value
result
A Boolean value that is True, if the row ID is found; otherwise it returns False.
Version 6.0 97
MES .NET Controls Developer Guide
C HAPTER 8
Entity Usage Editor Control
In This Chapter
Introduction to the Entity Usage Editor Control ................................................................................ 99
Configuring the Entity Usage Editor Control .................................................................................... 99
Properties of the Entity Usage Editor Contr ol .................................................................................. 99
Methods of the Entity Usage Editor Control .................................................................................. 100
The Entity Usage Editor is based on the Entity Use tab in the MES Data Editor. From the editor, you can
filter, edit, insert, delete, and refresh records during run time. For more information, see the Entity Use
Tab section of the MES Dat a Editor Guide or MES online help.
Version 6.0 99
MES .NET Controls Developer Guide Entity Usage Editor Control
AppendSaveConfigName Property
The AppendSaveConfigName property is an override of the AppendSaveConfigName property and
cannot be browsed. This property cannot be browsed because the configuration data is always saved by
a user.
SaveConfigName Property
The SaveConfigName property is an override of the SaveConfigName property and cannot be
browsed. This property cannot be browsed because the configuration data is always saved by a user.
C HAPTER 9
Folders Control
In This Chapter
Introduction to the Folders Control ............................................................................................... 101
Configuring the Folders Control ................................................................................................... 101
Properties of the Folders Control ................................................................................................. 102
Methods of the Folders Control .................................................................................................... 103
CompareEnabled Property
Use the CompareEnabled property to set or get whether the Compare command is available at run
time.
EditEnabled Property
Use the EditEnabled property to set or get whether the Edit command is available at run time.
FilterEnabled Property
Use the FilterEnabled property to set or get whether the Filter command is available at run time.
PrintEnabled Property
Use the PrintEnabled property to set or get whether the View command is available at run time.
UseLargeTreeIcons Property
Use the UseLargeTreeIcons property to set or get a value to indicat e whether large icons are used on
the folders tree. The value is set to True if the cont rol us es large icons, and set to False if the control uses
small icons.
ViewEnabled Property
Use the ViewEnabled property to set or get whether the View command is available at run time.
ApplyFilter() Method
Use the ApplyFilter() method to set filter values and display the folders tree based on the filter values. If
a null value is passed, the current filter value does not change. If an empty string is passed as a filter
value, the filter is cleared. This method affects the control if no job is running on the current entity.
Syntax
ApplyFilter(itemClassIDFilter, itemClassDescFilter, itemIDFilter,
itemDescFilter, operIDFilter, operDescFilter, entIDFilter, verIDFilter,
udf1Filter, udf2Filter, fileFilter);
Parameters
itemClassIDFilter
A string value of the Item Class ID filter. You need to pass null to use the current value.
itemClassDescFilter
A string value of the Item Class description filter. You need to pass null to use the current value.
itemIDFilter
A string value of the Item ID filter. You need to pass null to use the current value.
itemDescFilter
A string value of the Item description filter. You need to pass null to use the current value.
operIDFilter
A string value of the operation ID filter. You need to pass null to use the current value.
operDescFilter
A string value of the operation description filter. You need to pass null to use the current value.
entIDFilter
A string value of the entity ID filter. The string must cont ain a number or an empty string. Y ou need to
pass null to use the current value.
verIDFilter
A string value of the folder version ID filter. You need to pass null to use the current value.
udf1Filter
A string value of the first user-defined filter. You need to pass null to use the current value.
udf2Filter
A string value of the second user-defined filter. You need to pass null to use the current value.
fileFilter
A string value of the file filter. Only folders containing a matching file are displayed. You need to pass
null to use the current value.
Edit() Method
Use the Edit() met hod to check if a row is selected in the grid, and t hen to check if you have the edit level
permission for t he selected file. If t he check is successful, the EditFile() method in the Documents class
invok es the editor for the selected file type.
Syntax
Edit();
Filter() Method
Use the Filter() met hod to specify folder filter. If you apply the filter, the RefreshData() method reloads
the folders tree.
Syntax
Filter();
Print() Method
Use the Print() method to check if a row is selected in the grid, and then to check if you have the view
level permission for editing the selected file. If the check is successful, the PrintFile() method in the
Documents class prints the file.
Syntax
Print();
ResetUseLargeTreeIcons() Method
Use the Re setUseLargeTreeIcons() method to reset the UseLargeTreeIcons property to its default
value of False.
Syntax
ResetUseLargeTreeIcons();
SelectRowByKey() Method
Use the SelectRowByKey() method to select the row in the grid cont aining the file path. If the file is not
found and the selectFirstRowAsDef ault parameter is set, the first row in the grid is selected. Otherwise,
the current row selection remains unchanged.
Syntax
result = SelectRowByKey(fileSource, filePath, selectFirstRowAsDefault);
Parameters
fileSource
An enumeration type { ItemFile= 0, WorkOrderFile=1, FolderFile=2, FolderEntity=3, RunEntity=4}
that is a file source to determine whether the file is an Item file, a Work Order file, a Folder file
(specifies a file for the Entity for which the folder was built) or a Run Entity (specifies a file for the
current Entity on which the job is running).
filePath
A file path that is the path of the selected file.
selectFirstRowAs Default
A Boolean value that is set to True to select the first row if the specified pat h is not found.
Return Value
result
A Boolean value that is True if the row containing the file pat h is found; otherwis e, it returns False.
View() Method
Use the View() method to check if a row is selected in the grid, and then to check if you have the view
level permission for the selected file. If the check is successful, the ViewFile() method in the Documents
class invokes the viewer for the selected file type.
Syntax
View();
C HAPTER 10
Genealogy Control
In This Chapter
Introduction to the Genealogy Control .......................................................................................... 107
Configuring the Genealogy Control .............................................................................................. 107
Properties of the Genealogy Control ............................................................................................ 108
Methods of the Genealogy Control ............................................................................................... 108
The Filter Genealogy By buttons allow the operator to limit the consumption data displayed based on
users or shifts.
The operator can use the Genealogy control to:
Reduce consumption in the current job.
Change the reason the item was consumed by the job. This is known as "Reclassify".
Refresh the Genealogy control.
Switch the active user.
Open the Help window.
Open or launch a form, if the Path to Form Program system parameter is set.
The Genealogy control corresponds to the Genealogy tab of the MES Operator application. For more
information, see the Genealogy Tab section in the MES Operator Guide or MES online help.
OpenFormEnabled Property
Use the OpenForm Enabled property to determine if the Open Form button and functionality is enabled.
ReclassifyConsEnabled Property
Use the Recla ssifyConsEnabled property to determine if the Recla ssify Consumption button is
enabled to change the reason of the item that is consumed by a job.
ReduceConsEnabled Property
Use the Reduce ConsEnabled property to determine if the Reduce Consumption button is enabled to
reduce consumption of items in the current job.
ReduceConsumption() Method
Use the Reduce Consumption() method to open the form for reducing consumption.
Syntax
ReduceConsumption();
ReclassifyConsumption() Method
Use the Recla ssifyConsumption() method to open the form for reclassifying consumption.
Syntax
ReclassifyConsumption();
SelectRowByKey() Method
Use the SelectRowByKey() method to search for the specified row ID in the grid. If the row ID is found,
the row is selected. If the row ID is not found and the SelectFirstRowAsDefault parameter is set to True,
the first row is selected; otherwise the row selection is not changed.
Syntax
result = SelectRowByKey(int rowID, bool selectFirstRowAsDefault);
Parameters
rowI D
An integer value that indicates the row ID of a row in the item_prod table.
selectFirstRowAs Default
A Boolean value that is set to True if the first row must be selected when the row ID is not found. It is
set to False, if the row selection must not change when the row ID is not found.
Return Value
result
A Boolean value that is True if the row ID is found; otherwise it returns False.
C HAPTER 11
Inventory Control
In This Chapter
Introduction to the Inventory Control ............................................................................................. 111
Configuring the Inventory Control ................................................................................................. 111
Properties of the Inventory Control ............................................................................................... 113
Methods of the Inventory Control ................................................................................................. 113
ClearEntityTreeFilter() Method
Use the ClearEntityTreeFilter() method to clear the entity tree filter and to refresh the control so that the
entity tree displays all the entities.
Syntax
ClearEntityTreeFilter();
ClearInventoryFilter() Method
Use the ClearInventoryFilter() method to clear the inventory filter and to refresh the inventory grid.
Syntax
ClearInventoryFilter();
ResetAllowMultipleSection() Method
Use the Re setAllowMultipleSection() method to reset the AllowMultipleSection property to its default
value (True).
Syntax
ResetAllowMultipleSection();
ResetShowEntityTree() Method
Use the Re setShowEntityTree() method to reset the default value (True) to the ShowEntityTree
property.
Syntax
ResetShowEntityTree();
ResetShowStorageStatusGrid() Method
Use the Re setShowStorageStatusGrid() method to reset the default value (True) to the
ShowStorageStatusGrid property.
Syntax
ResetShowStorageStatusGrid();
ResetUseLargeTreeIcons() Method
Use the Re setUseLargeTreeIcons() method to reset the UseLargeTreeIcons property to its default
value of False.
Syntax
ResetUseLargeTreeIcons();
SetEntityTreeFilter() Method
Use the SetEntityTreeFilter() method to set the entity tree, bas ed on the specified array of entity IDs.
The specified entity IDs must appear at the top level of the entity tree and you must have view permission
for the invent ory of entities. This method refreshes the control so that the entity tree displays only the
specified entities.
Syntax
SetEntityTreeFilter(int [] entIDs);
Parameter
entIDs
An integer array holding the IDs of the entities, which must appear in the entity tree.
SetInventoryFilter() Method
Use the SetInventoryFilter() method to set the inventory filter and then to refresh the data in the
inventory grid to reflect the change in the filter. You can set any of the parameters, except the
recurseE ntities parameter, to Null.
Syntax
SetInventoryFilter(string itemClassID, string itemClassDesc, string itemID,
string itemDesc,string lotNo, string expiryDate, int [] gradeCodes, int []
statusCodes,
bool recurseEntities);
Parameters
itemClassID
A string that holds the filter setting for the item class ID.
itemClassDesc
A string that holds the filter setting for the item class description.
itemID
A string that holds the filter setting for the item ID.
itemDesc
A string that holds the filter setting for the item description.
lotNo
A string that holds the filter setting for the lot number.
expiryDate
A string that holds the filter setting for the expiry date.
gradeCodes
An integer array that holds grade codes, which may be empty.
statusCodes
An integer array that holds status codes, which may be empty.
recurseE ntities
A Boolean that is True if the invent ory for the entities located at the selected entity must be displayed.
SelectRowByKey() Method
Use the SelectRowByKey() method to search for the specified row ID in the grid. If the row ID is found,
the row is selected. If the row ID is not found and the SelectFirstRowAsDefault parameter is set to True,
the first row is selected; otherwise the row selection is not changed.
Syntax
result = bool SelectRowByKey(int rowID, bool selectFirstRowAsDefault);
Syntax (with overload)
result = public bool SelectRowByKey(int [] rowIDs,
bool selectFirstRowAsDefault);
Parameters
rowI D
An integer value that is the row ID of a row in the Item_Inv table.
selectFirstRowAs Default
A Boolean value that is set to True if the first row must be selected when there is no match. It is set to
False, if the row selection must not change when there is no match.
Return Value
result
A Boolean value that is True if the row ID is found; otherwise it returns False.
C HAPTER 12
Item Consumption Editor Control
In This Chapter
Introduction to the Item Consumption Editor Cont rol ...................................................................... 117
Configuring the Item Consumption Edit or Control .......................................................................... 117
Properties of the Item Consumption Editor Control ........................................................................ 117
Methods of the Item Consumption Editor Control .......................................................................... 118
AppendSaveConfigName Property
The AppendSaveConfigName property is an overridden property that cannot be browsed. This
property is made nonbrowsable for you to always save the configuration data.
SaveConfigName Property
The SaveConfigName property is an overridden property that cannot be browsed. This property cannot
be brows ed to allow you to always save the configuration data.
C HAPTER 13
Item Lot Editor Control
In This Chapter
Introduction to the Item Lot Editor Cont rol ..................................................................................... 119
Configuring the Item Lot Editor Control ......................................................................................... 119
Properties of the Item Lot Editor Control ....................................................................................... 120
Methods of the Item Lot Editor Control ......................................................................................... 120
To insert a new lot or sublot in the Item Lot Editor control during run time
1. In the left pane, highlight the item, lot, or sublot where you want to insert the new lot or sublot.
2. In the Button Bar for the Item Lot Editor control, click Insert. The Insert dialog box appears.
3. In the Name box, type the name of the lot or sublot you want to insert.
4. Click OK.
To change the parent of a lot or sublot in the Item Lot Editor control during run time
1. In the left pane, highlight the lot or sublot for which you want to change the parent.
2. In the Button Bar for the Item Lot Editor control, click Change Parent. The Change Parent dialog
box appears.
3. In the left pane of the Change Parent dialog box, highlight the new parent.
4. Click OK.
To rename a lot or sublot in the Item Lot Editor control during run time
1. In the left pane, select the lot or sublot you want to rename.
2. In the Button Bar for the Item Lot Editor control, click Rename. The Rename dialog box appears.
3. In New Name, enter the name you want to assign to the lot or sublot.
4. Click OK. The select lot or sublot is renamed in all occurrences of the MES database.
To delete an existing lot or sublot in the Item Lot Editor control during run time
1. In the left pane, highlight the item, lot, or sublot you want to delet e
2. In the Button Bar for the Item Lot Editor control, click Delete. A confirmation dialog box appears.
3. Click OK. The currently selected lot or sublot deleted from the Item Class tree and MES database. In
addition, all child lots and sublots are deleted from the Item Class tree and MES database.
To refresh records in the Item Lot Editor control during run time
In the Button Bar for the Item Lot Editor control, click Refresh. The data in the control is updat ed.
C HAPTER 14
Item Production Editor Control
In This Chapter
Introduction to the Item Production Editor Control ......................................................................... 121
Configuring the Item Production Editor Control ............................................................................. 121
Properties of the Item Production Editor Co ntrol............................................................................ 121
Methods of the Item Production Editor Control .............................................................................. 122
AppendSaveConfigName Property
The AppendSaveConfigName property is an override of the AppendSaveConfigName property and
cannot be browsed. This property cannot be browsed because the configuration data is always saved by
a user.
SaveConfigName Property
The SaveConfigName property is an override of the SaveConfigName property and cannot be
browsed. This property cannot be browsed because the configuration data is always saved by a user.
GetQuantityForDownstreamOperation() Method
Use the GetQuantityForDownstreamOperation() method to compute the total quantity produced for an
operation that is immediately downstream from the specified job and lot.
Syntax
result = GetQuantityForDownstreamOperation(woID,operID, seqNo, lotNo,
sublotNo);
Parameters
woID
A string that is the work order ID of a job.
operID
A string that is the operation ID of a job.
seqNo
An integer that is the sequence number of a job.
lotNo
A string that is the lot number.
sublotNo
A string that is the sublot number.
Return Value
result
A floating point number that is the total quantity for the downstream operation.
GetTotalQuantityForOperation() Method
Use the GetTotalQuantityForOperation() met hod to compute the total quantity produced for the
specified operation. The operation can be split amongst multiple jobs that have the same work order ID,
operation ID, lot number, and sublot number.
Syntax
result = GetTotalQuantityForOperation(woID,operID, seqNo, lotNo, sublotNo);
Parameters
woID
A string that is the work order ID of a job.
operID
A string that is the operation ID of a job.
seqNo
An integer that is the sequence number of a job.
lotNo
A string that is the lot number.
sublotNo
A string that is the sublot number.
Return Value
result
A floating point number that is the total quantity for the specified operation.
C HAPTER 15
Job Step Data Editor Control
In This Chapter
Introduction to the Job Step Data Editor Control ............................................................................ 125
Configuring the Job Step Data Editor Cont rol ................................................................................ 125
Properties of the Job Step Data Editor Control .............................................................................. 125
Methods of the Job Step Data E ditor Control ................................................................................ 126
AppendSaveConfigName Property
The AppendSaveConfigName property is an override of the AppendSaveConfigName property and
cannot be browsed. This property cannot be browsed because the configuration data is always saved by
a user.
SaveConfigName Property
The SaveConfigName property is an override of the SaveConfigName property and cannot be
browsed. This property cannot be browsed because the configuration data is always saved by a user.
C HAPTER 16
Job Summary Control
In This Chapter
Introduction to the Job Summary Controls .................................................................................... 127
Configuring the Job Summary Control .......................................................................................... 127
Using the Job Summary Control .................................................................................................. 127
Properties of the Job Summary Control ........................................................................................ 128
Methods of the Job Summary Cont rol .......................................................................................... 128
Switching Entities
If the operator is going to be logged on to more than one entity, you can use the Job Summary control to
allow the operat or to select the current entity in one of the following ways:
Clicking an entity name in the title bar and selecting a different entity from the list of entities that the
operator is currently logged on to.
Clicking the Logon Entity button and using the entity selector to log on to one or more entities.
The Job Summary control only shows information for the current entity.
If the current entity can only run one job at a time, the Job Summary control shows the job information for
the job that is currently running on the entity.
If t he current entity can run more than one job at a time, the Job Summary control shows a grid. Each row
on the grid corresponds to a job currently running on the entity.
The Job Summary control contains a single push button the operator can use to open the notes editor.
The Job Summary control does not have a Button Bar control associated with it.
DisplayTitlebar Property
Set the Di splayTitlebar property to True if the control should show the title bar wit h the entity name to
use as the entity selector.
InitEntitySelect() Method
Use the InitEntitySelect() method to display the entity list dialog, which allows you to do the following:
Select a different entity to use as the current entity
Log on or log off entities
Log off job, if job-based login is used
If an entity can capture utilization, the defined color of the utilization state of the entity is used for the text
of the entity name.
Syntax
InitEntitySelect();
ResetDisplayTitleBar() Method
Use the Re setDi splayTitleBar() method to reset the Di splayTitleBar property to the default of True.
When the Di splayTitleBar property is True, the title bar showing th e current entity name with link to the
entity select list is shown on the Job Summary Control.
Syntax
ResetDisplayTitleBar();
SelectRowByKey() Method
Use the SelectRowByKey() method to search for the specified job in the grid and select the row
containing the job. If the job is not found, the first row of the grid is selected by default.
Syntax
result = SelectRowByKey(Job, SelectFirstRowAsDefault);
Parameters
job
A string containing the work order ID + "_" + the operation ID + "_" + the sequence number of the job.
SelectFirstRowAsDefault
A Boolean value that specifies whether to select the first row as default. The first row is always
selected by default if the job is not found.
Return Value
result
A Boolean value that is True, if the row containing the job is found; otherwise it returns False.
C HAPTER 17
Labor Usage Editor Control
In This Chapter
Introduction to the Labor Usage Editor Control .............................................................................. 131
Configuring the Labor Usage Editor Control .................................................................................. 131
Properties of the Labor Usage Editor Control ................................................................................ 131
Methods of the Labor Usage Editor Control .................................................................................. 132
AppendSaveConfigName Property
The AppendSaveConfigName property is an override of the AppendSaveConfigName property and
cannot be browsed. This property cannot be browsed because the configuration data is always saved by
a user.
SaveConfigName Property
The SaveConfigName property is an override of the SaveConfigName property and cannot be
browsed. This property cannot be browsed because the configuration data is always saved by a user.
C HAPTER 18
OEE KPI Control
In This Chapter
Introduction to the OEE KPI Control ............................................................................................. 133
Using the OEE KPI Control .......................................................................................................... 134
Properties of the OEE KPI Control ............................................................................................... 134
Methods of the OEE KPI Control .................................................................................................. 141
At run time, the control is refreshed whenever an OEEChanged event is detected from the MES
database. This event is handled int ernally by the control. The control is also refreshed when various
properties are set (such as ControlStyle, TypeFilter, and so on). To prevent a refresh from occurring in
the middle of setting the filters, the control supports the common IgnoreRefre shEvents property and
Refre shData() method scheme. For more information on this method, see RefreshData() Method on
page 58.
The OEE KPI control has a context menu that allows a user with the proper permissions to save the
configuration of the control to the database for either a specific entity, all the logged on entities, or as a
default. Only the button bar setup and the curr ent filter settings will be saved as configuration data.
To use the OEE KPI control, the operator must log on to a session and select one or more entities, or set
the Di splayEntity property which will use the display entity as the source of the data.
Switching Entities
The OEE KP I cont rol shows information only for the current entity. If the Job Summary cont rol is included
in the form, you can use it to change the current entity. You can also change the current entity by using a
script.
CurrentValue Property
The CurrentValue property indicates the current value for the configured KPI.
DisplayEntity Property
When the Di splayEntity property is set to a specific entity name, the control will use that entity as the
source of the data instead of the currently logged in entity. This will enable multiple KPI controls to exist
on the same screen, each one showing values for a different ent ity (dashboard setup).
Dynamic entity names can be configured through the symbol editor by data -binding the tag reference or
custom property in the reference column.
If this property is set to null or an empty string, the currently logged in entity will be used as the source of
data.
FilterDefaultsFromDB Property
The FilterDefaultsFrom DB property controls whether the default filter settings (TypeFilter,
FilterDuration, OEEKPIFilter.FilterTime, OEEKPIFilter.FilterStartOffset, and
OEEKPIFilter.FilterEndOffset properties ) are established during design time or if they will be pulled in
from the MES database during run time. If this property is set to False, the default filter s ettings will not be
loaded from the database. This could be suitable when the control is running within ArchestrA – the
default filter would be set during design-time. If t he property is set to True, the default filter settings will be
pulled from either the UI_Config table or the UI_Config_Default table during run time. In this case, the
design-time setting of the properties is disabled.
FilterEnabled Property
The FilterEnabled property indicates whether the Filter() met hod may be called. If it is set to False, the
Filter() method may not be called. This property is set by the control whenever the state of the control
changes. It will be set to False if there is no MES session, no user, or no entity. At all other times it should
be set to True.
FirstZoneColor Property
The FirstZoneColor property indicates the color to use when a value is in the first zone. When using a
dial, the background of the dial should be displayed in this color if the value is within the first zone. When
using a bar graph, the bar should be this color if the value is within the first zone.
FirstZoneCutoff Property
The FirstZoneCutoff property indicates the cutoff for the worst values. The first zone runs from 0 to
FirstZoneCut off. This value must be great er than or equal to 0 and less than or equal to 100 and it must
be less than or equal to the value of SecondZoneCutoff.
Double R/W 40
GaugeBackColor Property
Use the GaugeBackColor property to set the color of the dial area for the dial control and the
background of the bar control.
Color R/W
GaugeBorderColor Property
Use the GaugeBorderColor property to set the color of the border for both the dial control and the bar
control.
Color R/W
GaugeBorderVisible Property
Use the GaugeBorderVi sible property to set the visibility of the border of the dial control and the bar
control.
Color R/W
GaugeFillColor Property
Use the GaugeFillColor property to set the color of the area that surrounds the dial control view.
Color R/W
GaugeForeColor Property
Use the GaugeForeColor property to set the color of the text on the dial control and the bar control. For
the dial control, this property also sets the color for the minor and major tick marks.
Color R/W
GaugeGradientEnabled Property
Use the GaugeGradientEnabled property to set the visibility of the gradient for the dial control and the
bar control. For the dial control, this property enables or disables the gradient over the dial area. For the
bar cont rol, it enables or disables the gradient of the bar elements on the graph.
GaugeMarkerFont Property
Use the GaugeMarkerFont property to set the font properties for the marker values. You can use this
property to separately configure the dial cont rol and the bar control. For the dial c ontrol, this property also
sets the font for the value label.
Font R/W
GaugeTitleFont Property
Use the GaugeTitleFont property to set the font properties for the title label. You can use t his property to
separately configure the dial control and the bar control.
Font R/W
GaugeTitleTextVisible Property
Use the GaugeTitleTextVisible property to set the visibility of the title label for the dial control and the
bar cont rol.
GaugeValueTextVisible Property
Use the GaugeValueTextVisible property to set the visibility of the value label for the dial control.
KPIControlStyle Property
The KPI ControlStyle property is an enumeration type that specifies how the data is displayed. The
control will either dis play the data on a dial or in a bar graph. If a dial is being us ed, the position of the
needle will be set according to the value being displayed (as determined by the KPIType property) and a
tick mark made at the target value. If a bar graph is being used, there will be a bar for the value being
displayed and another bar for the associated target value.
KPIType Property
The KPIType property indicates whether the OEE, Quality, Availability, or Performance will be displayed
for the specified filter period.
OEEKPIFilter.FilterDuration Property
The OEEKPIFilter.FilterDuration property specifies the N in the Last N Hours filter type. The value of
this property is only legitimate when the TypeFilter property is set to Last N Hours.
Integer R/W 0
OEEKPIFilter.FilterEndOffset Property
The OEEKPIFilter.FilterEndOffse t property specifies the end of the filter period relative to now. This
filter value is only legitimate when the TypeFilter property is set to Custom. If the TypeFilter property is
not set to Custom, this property is set to:
0 if the type is ThisHour, LastNHours, CurrentShift, CurrentDay, CurrentWeek, or CurrentMonth
1 if the type is LastShift, Yesterday, LastWeek, or LastMonth
The value of this property should always be less than the value of the FilterStartOffset property and
greater than or equal to 0.
Integer R/W 0
OEEKPIFilter.FilterStartOffset Property
The OEEKPIFilter.FilterStartOffset property specifies the start of the filter period relative to now. This
filter value is only legitimate when the TypeFilter property is set to Custom. If the TypeFilter property is
not set to custom, this property is set to:
1 if the type is ThisHour, CurrentShift, CurrentDay, CurrentWeek, or CurrentMonth;
2 if the type is LastShift, Yesterday, LastWeek, or LastMonth
N if the type is set to LastNHours
The value of this property should always be greater than the value of the FilterEndOffset property and
should always be greater than or equal to one.
Integer R/W 1
OEEKPIFilter.FilterTimeUnit Property
The OEEKPIFilter.FilterTimeUnit property specifies the time unit for a custom filter type. This filter
value is only legitimate when the TypeFilter property is set to Custom. If the TypeFilter property is not
set to custom, this property is set to value that matches the type (hour if type is ThisHour or LastNHours;
Shift type is CurrentShift or LastShift; Day if type is Current Day or Yesterday; Week if type is
CurrentWeek or LastWeek; or Month if type is CurrentMonth or LastMonth).
When this property is set to Hour, the results will include data for 0 or more entire hour periods, relative to
the current time. For all other settings (Shift, Day, Week, Month, or Year), the results will start at the
beginning of the time unit specified by the FilterStartOffse t property.
OEEKPIFilter.FilterType Property
The OEEKPIFilter.FilterType property specifies which filter to use including a custom filter. If
LastNHours is selected, you will also need to set the FilterDuration property. If Custom is selected, you
will also need to set the OEEKPIFilter.FilterTime, OEEKPIFilter.FilterStartOffse t, and
OEEKPIFilter.FilterEndOffset properties.
SecondZoneColor Property
The SecondZoneColor property indicates the color to use when a value is the second zone. When
using a dial, the background of the dial should be displayed in this color if the value is within the second
zone. When using a bar graph, the bar should be this color if the value is within the second zone.
SecondZoneCutoff Property
The SecondZoneCutOff property indicates the cutoff for t he middle values. Values that are greater t han
the FirstZonePercent and less than or equal to the SecondZoneCutoff in the second zone. The value
of SecondZone Cutoff must be greater than or equal to 0 and less than or equal to 100 and it must be
greater than or equal to the value of FirstZoneCutoff.
Double R/W 80
TargetValue Property
The TargetValue property indicates the target value for the configured KPI.
ThirdZoneColor Property
The ThirdZoneColor property indicates the color to use when a value is the third zone. A value is in the
third zone if it is great er than the value of the SecondZoneCutoff property and less than or equal to 100.
When using a dial, the background of the dial should be displayed in this color if the value is within the
third zone. When using a bar graph, the bar should be this color if the value is within the third zone.
Filter() Method
The Filter() method can only be called when the FilterEnabled property is set to True. Call this method
to bring up the Filter dialog box.
Syntax
Filter();
C HAPTER 19
Production Control
In This Chapter
Introduction to the Production Cont rol .......................................................................................... 143
Configuring the P roduction Control .............................................................................................. 143
Using the Production Control ....................................................................................................... 144
Properties of the Production Control ............................................................................................. 144
Methods of the Production Control ............................................................................................... 145
AddAssignSerialNumbersEnabled Property
Use the AddAssignSerialNumbersEnabled property to determine if Add/Assign Serial Numbers
button and functionality is enabled.
AddProdEnabled Property
Use the AddProdEnabled property to determine if the Add Production button and functionality is
enabled.
ProcessEnabled Property
Use the Proce ssEnabled property to determine if the Proce ss button and functionality is enabled.
ReduceProdEnabled Property
Use the ReduceProdEnabled property to determine if the Reduce Production button and functionality
is enabled.
RejectsEnabled Property
Use the RejectsEnabled property to determine if the Recla ssify Production button and functionality is
enabled.
SetLotDataEnabled Property
Use the SetLotDataEnabled property to determine if the Set Lot Data button and functionality is
enabled.
TransferSerialNumbersEnabled Property
Use the TransferSerialNumbersEnabled property to determine if the Transfer Serial Numbers button
and functionality is enabled.
ViewItemAttributesEnabled Property
Use the ViewItemAttributesEnabled property to determine if the View Item Attributes button and
functionality is enabled.
AddAssignSerialNumbers() Method
The AddAssignSerialNumbers() met hod can only be called when the
AddAssignSerialNumbersEnabled property is True. Use the AddAssignSerialNumbers() method to
open the Add/Assi gn Serial Numbers dialog box to add, assign, or unassign serial numbers to the
currently selected work order for the serialized item it produces.
Syntax
AddAssignSerialNumbers();
AddProduction() Method
The AddProduction() method can only be called when the AddProductionEnabled property is True.
Use the AddProduction() method to open a dialog box that allows entering either of good or rejected
production. The dialog box will contain fields to set the amount of production to be added, to select the
reason code to associate with the production being added and the item that is being produced, the lot,
and the storage location for the produced item.
If there are defaults for any of these fields, they will be filled in when the dialog box is opened. Entering a
quantity and clicking the Save button will add the good or rejected production for the reason.
Syntax
AddProduction();
ItemAttributes() Method
The ItemAttributes() method can only be called when the ItemAttribute sEnabled property is True. Use
the ItemAttribute s() method to open a dialog box that allows for the ent ering of item attribute values
and/or notes.
Syntax
ItemAttributes();
Process() Method
Use the Proce ss() method to open a dialog box that allows marking a production lot as processed.
Syntax
Process();
ReduceProduction() Method
The ReduceProduction() method can only be called when the ReduceProductionEnabled property is
True. Use the ReduceProduction() method to open a dialog box that allows the reduction of previously
entered production. The dialog box will contain a field to set the amount of production to be reduced. It
will also display the reason code, the item produced, the lot, and the storage l oc ation for the produc ed
item. Entering a quantity and clicking the OK button will reduce the previous production quantity.
Syntax
ReduceProduction();
RejectProduction() Method
The RejectProduction() method can only be called when the RejectProductionEnabled property is
True. Us e the RejectProduction() method to open the Reclassi fy Production dialog box that allows
the reclassification of previously entered production. The dialo g box will cont ain fields to set the amount
of production to be changed, to select the reason code to associate with the production being changed,
the item that is being produced, the lot, and the storage location for the produced item. The previously
recorded values for thes e fields will be filled in when the dialog box is opened. Entering a quantity and
clicking the OK button will update the production.
Syntax
RejectProduction();
SelectRowByKey() Method
Use the SelectRowByKey() method to search for the specified row ID in the grid. If the row ID is found,
the row is selected.
If the row ID is not found and the SelectFirstRowAsDefault parameter is set to True, the first row is
selected; otherwise the row selection is not changed.
Syntax
result = SelectRowByKey(rowID, selectFirstRowAsDefault);
Parameters
rowI D
An integer that indicates the row ID of a row in the item_prod table.
selectFirstRowAs Default
A Boolean value that is set to True if the first row should be selected if the row ID is not found or set
to False if the row selection should not be changed if the row ID is not found.
Return Value
result
A Boolean value that is True, if the row ID is found, otherwise it returns False.
SetLotData() Method
Use the SetLotData() method to open the Set Lot Data dialog box that allows setting of lot data for the
current job. This is used to set the production information prior to adding production so that calls to
consumption will also record the produced lot number. There must be a current user logged on to at l east
one entity, and the current entity must be running a job. If the lot data is changed, the grid is refreshed.
Syntax
SetLotData();
TransferSerialNumbers() Method
Use the TransferSerialNumbers() method to open the Transfer Serial Numbers dialog box to allow
transferring of serialized parts from one inventory location to anot her.
Syntax
TransferSerialNumbers();
C HAPTER 20
Production Progress Control
In This Chapter
Introduction of the Production Progress Control ............................................................................ 149
Using the Production Progress Control ......................................................................................... 149
Properties of the Production Progress Control .............................................................................. 151
E vents of the Production Progress Control ................................................................................... 155
There is also a tick mark showing the t arget production. If the projected production is less than the target,
the control displays a warning to the user to indicate that the target production will not be reached. This
warning should not be shown until the user has reported some quantities for the shift. The control has
120 scale markings on it with every 10th marking, starting with the 0t h mark, being a larger mark. The
scale has no fixed meaning. The Target tick mark is always placed at the 100 mark, and the scale is
calculated from there.
The TargetQuantity or a TargetRate and TargetRateUnits can be set at run time, resulting in the other
target values being recalculated using the new value and the cont rol being refres hed based on the new
target. See section on Setting Target Values on page 151. The control also refreshes when the current
job changes or the job quantity of the current job changes.
Switching Entities
The Production P rogress Control shows information only for the current job on the current entity. If the
Job Summary control is included in the form, you can use it to change the current entity. You can also
change the current entity by using a script.
Switching Jobs
The Production P rogress control shows information only for the current job and the current shift. If the
Job Summary control is included in the form, and the current entity can run multiple jobs, and it currently
has multiple jobs running, you can use the Job Summary control to change the current job by selecting a
different job on the grid. The Queue control and Utilization control can also be used to c hange the current
job if they are on the form. To do this, the current job would be ended using the Stop Job button that
appears on the button bar of both of these controls. Then, on the Queue control, another job would be
selected from t he grid and t he Start Job button would be pushed. The selected job will be started and set
as the current job. On the Utilization control, the user would start a data entry job by clicking the Start
Job button, which will open a dialog for entering data entry job information. Setting the information to the
appropriate dat a entry job and clicking OK will start the job. You can also change the current job by using
a script.
BatchSize Property
The BatchSize property indicates the quantity of items in each batch. Since the TargetRate property is
expressed in terms of batches per time unit or time unit per batch, the batch size is required to determine
the target quantity.
Double R/W 1
Data.CurrentProduction Property
The Data.CurrentP roduction property exposes the value being used to draw the bar on the graph for
the current production.
Data.Deviation Property
The Data.Deviation property exposes the deviation bet ween target and projected productions.
DeviationfromPlannedFont Property
The DeviationfromPlannedFont property sets or gets the font for the Deviation from Planned legend.
Font R/W
DisplayProjectedDetails Property
The Di splayProjectedDetails property specifies the visibility of the projected quantity indicator.
Boolean R/W
FirstZoneColor Property
The FirstZoneColor property indicates the color to use when a value is in the first zone. The actual bar
will be displayed using this color.
FirstZonePercent Property
The FirstZonePercent property indicates the cutoff for the worst values. If the projected production is
below the target quantity by a percent age that is greater then or equal to this percent age, the actual bar
will be display ed using the color specified by the FirstZoneColor property. This value must be between
0 and 100 and it must be greater than the value of the SecondZonePercent property.
Double R/W 5
GaugeTextFont Property
The GaugeTextFont property sets or gets the font for the Gauge text.
Font R/W
ProductionUnitOfMeasure Property
The ProductionUnitOfMeasure property specifies how many batches are being produced in a given
time period. The possible values are Batch esPerSecond (0), BatchesPerMinut e (1), BatchesPerHour
(2), SecondsPerB atch (3), MinutesPerB atch (4), and HoursPerB atch (5). The first three values specify
that N batches are made every (second, minute, or hour), while the last three specify that it takes N
(seconds, minut es, or hours) to make a batch. Without units, the TargetRate is a meaningless number.
ProjectedProduction Property
The ProjectedProduction property exposes the value being used to draw the bar on the graph for the
projected production.
SecondZoneColor Property
The SecondZoneColor property indicates the color to use when a value is the second zone. The actual
bar will be displayed using this color.
SecondZonePercent Property
The SecondZonePercent property indicates the cutoff for the middle values. If the projected production
is below the target quantity by a percentage that is less than the value of the FirstZonePercent but
greater than this percent, the actual bar will be displayed using the color specified by the
SecondZoneColor property. This value must be bet ween 0 and 100 and it must be less than the value of
FirstZonePercent property.
Double R/W 0
TargetBarColor Property
The TargetBarColor property specifies the color to use when drawing the target bar on the graph.
TargetQuantity Property
The TargetQuantity property provides one of two ways to specify the target for the operator. If the
TargetQuantity is set, the TargetRate is calculated at run time by dividing the TargetQuantity by the
length of the shift or the duration from the beginning of the current job to the end of the shift if the job
begins after the shift has started. If this property is set at design-time, the TargetRate is set to 0.
Double R/W 0
TargetRate Property
The TargetRate property provides one of two ways to specify the target for the operator. If the
TargetRate is set, the TargetQuantity is calculated at run time by multiplying the TargetRate with either
the length of the shift or the duration from the beginning of the current job to the end of the shift if the job
begins after the shift has started. If this property is set at design-time, the TargetQuantity is set to 0.
Double R/W 0
TargetRateFromDB Property
The TargetRateFromDB property is a flag indicating whether or not the target rate will be set by the rate
in the MES database for the current job. If this is set to True, the TargetRate,
ProductionUnitOfMea sure, and BatchSize properties will be set by getting the values from the MES
database and the TargetQuantity property will be calculated from the TargetRate. If it is set to False,
either the TargetQuantity property or the TargetRate property must be set at design time or run time to
get the production target.
TargetUnreachable Property
The TargetUnreachable property exposes a flag indicating whether or not the projected production is
less than the target. It is set to True if the projected production is less than the target. It is set to False if
the projected production is greater than or equal to the target or if no production has been reported for
the shift.
ThirdZoneColor Property
The ThirdZone Color property indicates the color to use for the actual bar when a value is in the third
zone. A value is in the third zone if the projected production is below the target quantity by a percentage
that is less than or equal to the value of the SecondZonePercent or if t he projected production is greater
than the target quantity.
ValueLegendLabelFont Property
The ValueLegendLabelFont property sets or gets the font for the V alue Legend labels.
Font R/W
ValueLegendValueBackColor Property
The ValueLegendValueBackColor property sets or gets the font for the Value Legend values.
Color R/W
ValueLegendValueColor Property
The ValueLegendValueColor property sets or gets the font for the Value Legend values.
Color R/W
ValueLegendValueFont Property
The ValueLegendValueFont property sets or gets the font for the Value Legend values.
Font R/W
TargetQuantityChanged Event
The TargetQuantityChanged event is raised by the Production Progress Control when the value of the
TargetQuantity property changes. When this event occurs, the TargetRate is recalculated using the
new target value, and the control will force a refresh of its data using the new value.
TargetRateChanged Event
The TargetRateChanged event is raised by the Production Progress Control when the value of the
TargetRate property changes. When this event occurs, the TargetQuantity will be recalc ulated using
this new target value and the control will force a refresh of it's data using the new value.
Target Rate Changed Raised by: - Cont rol Refresh Control with
values from the database.
C HAPTER 21
Queue Control
In This Chapter
Introduction to the Queue Control ................................................................................................ 157
Configuring the Queue Cont rol .................................................................................................... 157
Properties of the Queue Control ................................................................................................... 158
Methods of the Queue Control ..................................................................................................... 163
Switching Entities
By default, the Queue control shows the job queue information for the current entity.
The operator can use the Job Summary control to select the current entity. This is the default behavi or.
The job queue for other entities that the operator has access to can be shown by selecting the other
entity in the Accessible Entities list.
Functionality is limited when viewing the job queue of an entity other than the current entity.
AttributesEnabled Property
Use the Attribute sEnabled property to determine if the Job Attribute s button is enabled.
The Attribute sEnabled property is also used in the methods PopupJobAttrsDlg() and
PopupItemAttrsDlg() to determine if the attributes can be viewed.
BatchJobBGColorOption Property
Use the BatchJobBGColorOption property to specify the background color to use for linked jobs. This is
an enumeration of the batch job color options available to the Queue Control to concurrently run batches
of jobs.
The MatchSupervisor option sets the batch job color options according to what was configured in
Supervisor for the Queue window in this executable.
The PredefinedPastel option uses the predefined pastel color scheme defined within the Queue control.
Enum Setting
0 System.Drawing.Color. Thistle
1 System.Drawing.Color.Violet
2 System.Drawing.Color.LightSteelBlue
3 System.Drawing.Color.Lavender
4 System.Drawing.Color.LightCyan
5 System.Drawing.Color.Khaki
6 System.Drawing.Color.MistyRose
7 System.Drawing.Color.Moccasin
8 System.Drawing.Color.LightPink
9 System.Drawing.Color.LightSalmon
10 System.Drawing.Color.PowderBlue
11 System.Drawing.Color.LightSkyBlue
12 System.Drawing.Color.PaleGreen
13 System.Drawing.Color.PeachP uff
14 System.Drawing.Color.PaleGoldenrod
15 System.Drawing.Color.LightGoldenrodYellow
The Custom option allows the operator to specify custom colors as a design-time property of the control.
There is a predefined limit of 16 different colors. After that, colors are reused for batches.
BatchJobBGCustomColors Property
Use the BatchJobBGCustom Colors property to specify the custom background colors of linked jobs if
the BatchJobBGColorOption property is set to Custom.
ColumnHeaderBackColor Property
Use the ColumnHeaderBackColor property to specify the background color of the column header row
when the current entity is selected.
ColumnHeaderBackColorDifferentEnt Property
Use the ColumnHeaderBackColorDifferentEnt property to specify the background color of the column
header row when the current entity is NOT selected in the combobox.
ColumnHeaderForeColor Property
Use the ColumnHeaderForeColor property to specify the foreground color of the column header row.
EndJobEnabled Property
Use the EndJobEnabled property to determine if the functionality of the End Job button is enabled.
The default value is False, but is set to True in the EnableDi sableButtons() method if the selected job is
running and the operator has the privilege to end jobs.
The EndJobEnabled property also indicates whether or not the selected job on the Queue grid c an be
completed because the method can be called directly without using the button on the Button Bar control.
FlowDiagramEnabled Property
Use the FlowDiagramEnabled property to determine if the functionality of the View Flow Diagram
button is enabled.
The default value is False, but it is set to True in the EnableDisableButtons() method if a job is selected
on the queue grid.
The FlowDiagramEnabled property also indicates if a job flow diagram can be shown bec ause the
method can be called directly without using the button on the Button Bar control.
Font Property
Use the Font property to allow the font property of the controls on the Queue control to be changed.
ItemAttributesEnabled Property
Use the ItemAttribute sEnabled property to determine if the functionality of the Job Attribute s button is
enabled. The Job Attribute s dialog box allows the operator to view the attributes of the item of the
selected job.
The default value is False, but the value is changed to True in the EnableDisableButtons() method if a
job is selected on the queue grid.
The ItemAttribute sEnabled property also indicat es if the Item Attribute s dialog box can be shown
because the method can be called directly without using the button on the Button Bar control.
NotesEnabled Property
Use the Note sEnabled property to determine if the functionality of the Note s button is enabled. The
Note s button opens the Note s dialog box to view the not es for the selected job.
The default value is False, but the value is changed to True in the EnableDisableButtons() method if a
job is selected on the queue grid.
Version 6.0 161
MES .NET Controls Developer Guide Queue Control
The Note sEnabled property also indicates if a notes editor can be shown because the met hod can be
called directly without using the button on the Button B ar control.
PauseJobEnabled Property
Use the PauseJobEnabled property to determine if the functionality of the Pause Job button is enabled.
This button allows the operator to put the selected job into a Suspended, New, or Onhold state.
The default value is False, but the value is changed to True in the EnableDisableButtons() method if a
job is selected on the queue grid and the job is in a running or suspended state, or it is on hold and the
operator has the privilege to take a job off of hold.
The PauseJobEnabled property also indicates if the selected job can be paused because the method
can be called directly without using the button on the button bar.
PreviewBomEnabled Property
Use the PreviewBomEnabled property to determine if the button to open the Job BOM dialog box for
the selected job is enabled.
The default value is False, but the value is changed to True in the EnableDisableButtons() method if a
job is selected on the queue grid and the job contains job BOM data for a BOM position that is greater
then zero.
The PreviewBomEnabled property also indicates if a Job BOM dialog box can be shown because the
method can be called directly without using the button on the Button Bar control.
ReadyJobEnabled Property
Use the ReadyJobEnabled property to determine if the button to ready the selected job is enabled.
The default value is False, but the value is changed to True in the EnableDisableButtons() method if a
job is selected on the queue grid and the operat or has the privilege to ready a job, and the selected job is
running or suspended, or it is complete and the operator has the privilege to uncomplet e a job, or the job
is on hold and the operator has the privilege to take a job off of hold.
The ReadyJobEnabled property also indicates if the selected job can be put in a ready state because
the method can be called directly without using the button on the Button Bar cont rol.
StartJobEnabled Property
Use the StartJobEnabled property to determine if the functionality of the Start Job button is enabled.
The Start Job button allows the operator to start the selected job.
The default value is False, but the value is changed to True in the EnableDisableButtons() method if a
job is selected on t he queue grid and the job is not running or canceled, and the entity has the capacity to
run this job, and the operator has the privilege to override the queue or the selected job is the next job in
the queue.
The StartJobEnabled property indicates if the selected job can be started because the method can be
called directly without using the button on the Button B ar control.
StartSomeEnabled Property
Use the StartSomeEnabled property to determine if the functionality of the Start Some button is
enabled. The Start Some dialog box allows the selected job to be split with the specified amount being
set as the start quantity of the split job and then starts the split job.
The default value is False, but the value is changed to True in the EnableDisableButtons() method if a
job is selected on t he queue grid and the job is not running or canceled, and the entity has the capacity to
run this job, and the operator has the privilege to override the queue or the selected job is the next job in
the queue.
The StartSomeEnabled property indicates if the selected job can be split and started because the
method can be called directly without using the button on the Button Bar control.
ApplyDefaultSortParameters() Method
Use the ApplyDefaultSortParameters() met hod to apply the sort criteria configured in Supervisor for
the current entity's Queue.
Syntax
ApplyDefaultSortparameters();
CreateWO() Method
Use the CreateWO() method to open the Create a job from shortage dialog box. The Create a job
from shortage dialog box allows an operator to select an item short age on the entity to create a work
order for, and then opens the form for creating the work order from the proc ess used to create the item.
This method returns True if the dialog box opens.
Syntax
CreateWO();
EnableDisableButtons() Method
Use the EnableDisableButtons() method to enable or disable the buttons on the Button Bar control
associated with the Queue cont rol. The buttons are enabled or disabled depending on the current
context.
Syntax
EnableDisableButtons();
EndJob() Method
Use the EndJob() method to end the specified job if the following conditions exist:
The job is in a running or in a suspended state.
The operator is authorized to end jobs.
The required quantity for the job has been met.
Syntax
EndJob(woId,operId,seqNo,woDesc,jobDesc,statusNotes,canAppendNotes,
canReplaceNotes,qtyGood,qtyRejected,qtyStart,qtyReqd,selJobState,
userCancelled[,concurrentLink]);
Parameters
woID
A string that indicates the work order ID of the job to be ended.
operID
A string that indicates the operation ID of the job to be ended.
seqNo
An integer that represents the sequence number of the job to be ended.
woDesc
A string that indicates the work order description used in the confirmation dialog box.
jobDesc
A string that indicates the Job description used in the confirmation dialog box.
statusNotes
A string that holds the status notes of the job that are shown in the confirmation dialog. These notes
can be appended to or edited on this dialog if the operator has the privileges to do so.
canAppendNotes
A Boolean value that is True if this operat or can append to the Status Not es in the confirmation dialog
box.
canReplaceNotes
A Boolean value that is True if this operator can replace the Status Notes in the confirmation dialog
box.
qtyGood
A double data type value that indicates the total produced quantity for this job that are good.
qtyRejected
A double data type value that indicates the total produced quantity for this job that are rejected.
qtyStart
A double data type value that indicates the start quantity for this job. The quantit y produced can not
be less then this amount when ending the job.
qtyReqd
A double data type value that indicates the total required quantity for this job. This quantity must be
met in order to end the job.
selJobState
An enumeration data type that indicates the state of the job selected to be ended. The enumerated
data type can have the following values:
o NoJob (A value to set a current job state property to JobStates, if no job is running)= -1
o New (A job that is scheduled but not yet ready to run) = 1
o Ready ( A job that is ready to run) = 2
o Running (A job that is currently running on an entity) = 3
o Complete (A job that has finished) = 4
o Suspended (A job that has not run to completion, but is no longer running on an enti ty) = 5
o Onhold (A job that is no longer ready to run) = 6
o Canc elled (A job that no longer needs to be run) = 7
userCanc elled
A Boolean value that is returned as True if the operator cancels this action when prompted for
confirmation.
concurrentLink
An integer value for the specified job that is used to determine if this is a batch of jobs or not. If this
value is great er than zero and other jobs in the queue contain the same value, then this job is a part
of a batch. This is an optional paramet er and the default value is 0.
IsPartOfBatch() Method
Use the I sPartOfBatch() method to check the queue of the current entity to determine if there are any
jobs in that queue with a concurrent link value that matches a specified value.
Syntax
boolResult=IsPartOfBatch(ConcurrentLink);
Parameter
concurrentLink
An integer that is used to determine if a job is part of a batch of jobs.
If there is more then one job in the current entities queue wit h this concurrent link value, True is
returned signifying that the job is part of a batch. Otherwise, False is returned signifying that the job is
not in a batch.
JobLogOff() Method
Use the JobLogOff() method to open the Job Log Off dialog box if the current operator has a Job Based
Login Required restriction and is logged on to the selected job.
Syntax
JobLogOff(woID, operID, seqNo);
Parameters
woId
A string that indicates the work order ID used to identify the job that the operator is to be logged off
from.
operId
A string that is used to identify the job that the operator is to be logged off from.
seqNo
An integer that is used to identify the job that the operator is to be logged off from.
LoadConfigSettings() Method
Use the LoadConfigSettings() method to load and apply the previously saved UI configuration settings
from the database for the specified entity or the default UI settings for t his control type. This includes both
the grid and Button Bar cont rol settings.
Syntax
LoadConfigSettings(UseDefaults);
Parameter
useDefaults
A Boolean value specifying whether the default configuration should be loaded. If it is False, the
configuration for the current entity is loaded and applied.
ParseConfigSettings() Method
Use the ParseConfigSettings() method to parse an XML string containing the configuration settings
and to save the grid configuration settings and Button Bar control configuration settings into separate
strings.
Syntax
ParseConfigSettings (configSettings);
Parameter
configSettings
An XML string that contains the configuration settings for the control.
The separat e strings for the grid configuration and Button Bar control configuration are set to empty
strings if there is an error in parsing the configSettings string.
PauseJob() Method
Use the PauseJob() method to pause the specified job if the following conditions exist:
The job is in a running or in a suspended state.
The operator is authorized to end jobs.
The job is On Hold and the operator has the privilege to take a job off hold.
Syntax
PauseJob(woId,operId,seqNo,woDesc,jobDesc,statusNotes,canAppendNotes,
canReplaceNotes,selJobState,editTime,userCancelled
[,concurrentLink]);
Parameters
woID
A string that indicates the work order ID of the job to be ended.
operID
A string that indicates the operation ID of the job to be ended.
seqNo
An integer that represents the sequence number of the job to be ended.
woDesc
A string that indicates the WO description used in the confirmation dialog box.
jobDesc
A string that indicates the Job description used in the confirmation dialog box.
statusNotes
A string that holds the status notes of the job that are shown in the confirmation dialog box. These
notes can be appended to or edited on this dialog box if the operator has the privileges to do so.
canAppendNotes
A Boolean value that is True if t he operator can append to the Status Notes in the confirmation dialog
box.
canReplaceNotes
A Boolean value that is True if the operator can replace the Status Notes in the confirmation dialog
box.
selJobState
An enumeration data type that indicates the state of the selected job, which is to be ended. The
enumerated data type can have the following values:
o NoJob (A value to set a current job state property to JobStates, if no job is running)= -1
o New (A job that is scheduled but not yet ready to run) = 1
o Ready ( A job that is ready to run) = 2
o Running (A job that is currently running on an entity) = 3
o Complete (A job that has finished) = 4
o Suspended (A job that has not run to completion, but is no longer running on an entity) = 5
o Onhold (A job that is no longer ready to run) = 6
o Canc elled (A job that no longer needs to be run) = 7
editTime
A string that indicates the last edit time for the specified job to ensure the operator is working on the
latest data for the job.
userCanc elled
A Boolean value that is returned as True if the operator cancels this action when prompted for
confirmation.
concurrentLink
An integer value for the specified job that is used to determine if this is a batch of jobs or not. If this
value is greater than 0 and other jobs in the queue contain the same value, then this job is part of a
batch. This is an optional parameter and the default value is 0.
PopupAddAssignSerialNumbersDlg() Method
Use the PopupAddAssignSerialNumbersDlg() method to open the Add/ Assign Serial Numbers
dialog box to add, assign, or unassign serial numbers to the currently selected work order for the
serialized item it produc es.
Syntax
PopupAddAssignSerialNumbersDlg(woID, itemID, operID);
Parameters
woId
A string that indicates the work order ID that the serial numbers are to be ass igned to.
itemId
A string that indicates the item ID that is being produced and is used to determine the number of
serial numbers that can be assigned.
operId
A string that identifies the job that the serial numbers are assigned to.
PopupItemAttrsDlg() Method
Use the PopupItemAttrsDlg() method to open the Item Attribute s dialog box for the item specified to
view and edit the attributes of the item if the Attribute sEnabled property is True.
Syntax
PopupItemAttrsDlg(itemID);
Parameter
itemID
A string that indicates the item whose attributes are to be viewed and edited.
PopupJobAttrsDlg() Method
Use the PopupJobAttrsDlg() method to open the Job Attribute s dialog box for the job specified to
show the attributes of the job if the Attribute sEnabled property is True.
Syntax
PopupJobAttrsDlg(woID, operID, seqNo, jobDesc);
Parameters
woId
A string that indicates the work order ID used to identify the job whose attributes are shown.
operId
A string that indicates the operation ID used to identify the job whose attribut es are shown.
seqNo
An integer t hat represents the sequence number used t o identify the job whose attributes are shown.
jobDesc
A string that indicates the job description of the job whose attributes are shown. The description
appears in the title bar of the Job Attribute s dialog box.
PopupJobBOMDlg() Method
Use the PopupJobBOMDlg() method to open the Job BOM dialog box for the job specified to show the
BOM of the job if the PreviewBomEnabled property is True.
Syntax
PopupJobBOMDlg(woID, operID, seqNo, jobDesc);
Parameters
woId
A string that indicates the work order ID used to identify the job whose BOM is shown.
operId
A string that indicates the operation ID used to identify the job whose BOM is shown.
seqNo
An integer that represents the sequence number used to identify the job whose BOM is shown.
jobDesc
A string that indicates the job description of the job whose BOM is shown. The description appears in
the title bar of the BOM grid.
PopupJobLinksDlg() Method
Use the PopupJobLinksDlg() method to open the Job Link dialog box if the current operator has the
privilege to modify batches. All the jobs in the queue for the current entity that are not running, completed,
or canceled are displayed. The jobs can then be selected to link them together into a batch of jobs.
Syntax
PopupJobLinksDlg();
PopupJobSplitDlg() Method
Use the PopupJobSplitDlg() met hod to open the Job Split dialog box to split the specified job if the
amount of good production reported for it so far is less than the good quantity that is required. The entity
to split the job to and the quantity that is to be assigned to the new job from the quantity left to be
produced on the specified job can be specified before splitting.
Syntax
PopupJobSplitDlg(woID, operID, seqNo, jobDesc, reqdQty, prodQty, processID);
Parameters
woId
A string that indicates the work order ID used to identify the job to be split.
operId
A string that indicates the operation ID used to identify the job to be split.
seqNo
An integer that represents the sequence number to identify the job to be split.
jobDesc
A string that indicates the job description of the job to be split. The descripti on appears in the title on
the split job dialog box.
reqdQty
A double data type that represents the required quantity of the job to be split. Used to determine how
much quantity is left to split.
prodQty
A double data type that represents the quantity already produced for the job to be split. Used to
determine how much quantity still needs to be produc ed that can be split.
processId
A string that indicates the process ID of the job to be split. The process ID is used to retrieve the
entities that can run this operation to allow the entity the split is to be assigned to be selected on the
Job Split dialog box.
PopupNotesDlg() Method
Use the PopupNotesDlg() method to open the Note s dialog box to show the notes of the specified job if
the Note sEnabled property is True.
Syntax
PopupNotesDlg(notes, woID, operID, seqNo, itemID);
Parameters
notes
A string that indicates the current job notes of the specified job.
woId
A string that indicates the work order ID used to identify the job whose notes are shown.
operId
A string that indicates the operation ID used to identify the job whose notes are shown.
seqNo
An integer that represents the sequence No to identify the job whose not es are shown.
itemID
A string that indicates the item ID of the job. If specified, the item notes of the job are viewable by
selecting the Item Note s option on the Notes dialog box.
PopupStartSomeDlg() Method
Use the PopupStartSomeDlg() method to open the Start Some dialog box to split the specified job and
start the split job if the StartSomeEnabled property is True.
Syntax
PopupStartSomeDlg(woID, operID, seqID, jobDesc, batchSize, startQty, reqdQty,
prodQty);
Parameters
woId
A string that indicates the work order ID used to identify the job that is to be split.
operId
A string that indicates the operation ID used to identify the job that is to be split.
seqNo
An integer that represents the sequence number to identify the job that is to be split.
jobDesc
A string that indicates the job description of the job that is to be split. The description appears in the
title of the Start Some dialog box.
batchSize
A double data type that indicates the batch size of the job that is to be split. A batch is used to
determine the standard production time for a given amount of product. Standard production times are
expressed either in time per batch, or batches per time. For example, assume that you want to track
all of the cookies that are baked during a shift as a group, and that you want to determine the cookie
production’s OEE. That calculation is based on the batch size and the batch production rate. If a
batch size is 100 cookies and it takes 20 minutes to bake a batch of cookies, then up to 24 batches of
cookies could be baked during an 8-hour shift, or a maximum of 2,400 cookies in a lot.
startQty
A double data type that indicates the start quantity of the job that is to be split. The start quantity of
the split job defaults to half of this value. The start quantity of the split job can be edited on the Start
Some dialog box, but can not exceed this amount.
reqdQty
A double data type that indicates the required quantity of the job that is to be split. This quantity is
used to determine how much quantity is left to produce and the default quantity of the spl it job is set
to half of this amount. This quantity can be edited on the Start Some dialog box, but can not exceed
this amount.
prodQty
A double data type that indicates the produced quantity of the job that is to be split. This quantity is
used to determine how much quantity is left to produce.
PopupTransferSerialNumbersDlg() Method
Use the PopupTransferSerialNumbersDlg() method to open the Transfer Serial Numbers dialog box
to allow for the trans ferring of serialized parts from one inventory location to another.
Syntax
PopupTransferSerialNumbersDlg();
PromptForProdQtys() Method
Use the PromptForProdQtys() method to open the Add Production dialog box to prompt for
production quantities for the currently selected job on the Queue control.
Syntax
PromptForProdQtys();
ReadyJob() Method
Use the ReadyJob() met hod to set the state of the specified job to Ready if the following conditions are
True:
The Ready Job button is enabled.
An operator is currently logged on.
Syntax
ReadyJob(woID, operID, seqNo, editTime);
Parameters
woId
A string that indicates the work order ID used to identify the job that is to be readied.
operId
A string that indicates the operation ID used to identify the job that is to be readied.
seqNo
An integer that represents the sequence number that is used to identify the job that is to be readied.
editTime
A string that indicates the last edit time for the specified job to ensure this operat or is acting on the
latest data for the job.
ResetBatchJobBGCustomColors() Method
Use the Re setBatchJobBGCustomColors() method to reset the BatchJobBGColorOption property
to its default value depending on the BatchJobColorOption that is set.
Syntax
ResetBatchJobBGCustomColors();
ResetBatchJobColorOptions() Method
Use the Re setBatchJobColorOptions() method to res et the BatchJobColorOption property to the
default of PredefinedPastel.
Syntax
ResetBatchJobColorOptions();
RestoreGridUISettings() Method
Use the RestoreGridUISettings() method to reapply the current loaded and cached grid settings for this
entity if the grid configuration is not empty. This method also translates the column headings.
Syntax
RestoreGridUISettings();
SelectFirstRunningJob() Method
Use the SelectFirstRunningJob() method to select the row in the grid corres ponding to the first running
job. If none of the above are valid, then the first row in the grid is selected.
Syntax
SelectFirstRunningJob(selectFirstJobAsDefault);
Parameter
selectFirstJobAsDefault
A Boolean value that, if True, tells the method to select the first job if no jobs are running.
SelectRowByKey() Method
Use the SelectRowByKey() method to select the row in the grid corresponding to t he specified job. If the
row is not found, the method optionally selects the first row based on a parameter.
If the specified job cannot be found and the selectFirstRowAsDefault parameter is False, then leave the
existing selected rows as is and return False.
If a new job is selected, a call is made to enable/disable any buttons based on this new selection.
Syntax
result = SelectRowByKey(woID, operID, seqNo, selectFirstRowAsDefault);
Parameters
woId
A string that indicates the work order ID used to identify the job that is to be selected.
operId
A string that indicates the operation ID used to identify the job that is to be selected.
seqNo
An integer that represents the sequence number used to ident ify the job that is to be selected.
selectFirstRowAs Default
A Boolean value that, if True, signifies to select the first row if the specified job is not found.
Return Value
result
A Boolean value that is True, if a match is found; otherwise it returns False.
SerializeConfigSettings() Method
Use the SerializeConfigSettings() method to retrieve the configuration settings from the grid and
associated Button Bar control associated with the Queue control and to create and return an XML string
containing all current configuration settings.
Syntax
SerializeConfigSettings();
SetFilterColumns() Method
Use the SetFilterColumns() method to apply a comma-separat ed list or string array of filter columns and
their filter values to the grid.
Syntax
SetFilterColumns(FilterColumnList, FilterColumnValues);
Parameters
FilterColumnList
A comma-separated list of filter columns (no spac es after comma)/string array of filter columns.
FilterColumnValues
A comma-separated list of filter values (no spaces after comma)/string array of filter column values.
SetGroupByColumns() Method
Use the SetGroupByColumns() method to apply a comma-separated list of Group By columns to the
grid and to group rows toget her which share common values in the Group By column(s).
Syntax
SetGroupByColumns(groupByList);
Parameter
groupB yList
A comma-separated list of columns, with no spaces after commas, by which to group the grid.
SetSortColumns() Method
Use the SetSortColumns() method to apply a comma-separat ed list or string array of sort columns to
the grid and to sort the grid according to the specified columns.
Syntax
SetSortColumns(sortColumn[, sortColumnDirection]);
Parameters
sortColumn
A comma-separat ed list (with no spaces after commas) or a string array of columns by which to sort
the grid.
sortColumnDirection
An array of Xceed.Grid.SortDirection values that defines the sort column direction as either
ascending or descending. The default sort direction is ascending. You can use this parameter only if
sortColum is a string array.
ShowWOFlowDiagram() Method
Use the ShowWOFlowDiagram() method to open the Job Flow Diagram dialog box to show the flow
diagram for the specified work order if the corresponding button is enabled.
Syntax
ShowWOFlowDiagram(woId);
Parameter
woId
A string that indicates the work order that the job flow diagram that is shown is for.
StartJob() Method
Use the StartJob() method to start the specified job on the current entity if the following conditions exist:
The _start Job flag is True.
An operator is currently logged on.
The operator is logged on to at least one entity.
The maximum number of jobs is not already running or entity can run jobs concurrently.
C HAPTER 22
Route Control
In This Chapter
Introduction to the Route Control ................................................................................................. 175
Configuring the Route Control...................................................................................................... 175
Properties of the Route Cont rol .................................................................................................... 176
Methods of the Rout e Control ...................................................................................................... 176
The Route control corresponds to the Route tab of the MES Operator application. For more information,
see the Route Tab section in the MES Operat or Guide or online help.
RefreshEnabled Property
Use the Refre shEnabled property to determine whether this control can be refreshed. This cont rol is not
refres hed if a user is not logged on to any entity or MES database. This is an overridden property.
C HAPTER 23
Sample Viewer Control
In This Chapter
Introduction to the Sample Viewer Cont rol .................................................................................... 177
Configuring the Sample Viewer Control ........................................................................................ 177
Using the Sample Viewer Control................................................................................................. 178
Properties of the Sample Viewer Cont rol ...................................................................................... 190
Methods of the Sample Viewer Control ......................................................................................... 196
E vents of the Sample Viewer Cont rol ........................................................................................... 198
In addition to viewing the current, past, and future samples, an operat or can perform the following tasks
using the buttons in the button bar, listed by buttons from left to right:
Edit a sample's lot number, sublot number, segment requirement ID, segment response ID, or
priority.
Specify that a sample has been pulled.
Specify that a sample that had been previously pulled but for which no results were entered is no
longer considered to be pulled.
Indicate whether a sample is considered to be finalized.
Enter new results or edit previously entered results for the characteristics that are associated with a
current or past sample.
Launch the SPC Chart control to display the results of measurements taken for a particular
characteristic.
Canc el a sample (this button is not shown above, as it is not included on the button bar by default)
Filter the set of samples displayed.
Open the MES online help, which includes MES Operator help topics.
Refresh the Sample Viewer control contents.
The top grid displays a list of samples that meet the specified filter conditions. You can select a sample
record to view the results in the lower grid, and expand it to view list of characteristics in it. Yo u can also
view and hide the columns in the sample table in the S ample Viewer. You can view the following columns
in the Sample Viewer:
Sample name
Entity
Item
Job information
o Work order
o Operation
o Sequence number
Sample status
Sample ID, generated by the system to uniquely identify the sample
Cont ext information from the specification, which generated the sample
Sample plan frequency
S95 segment requirement and segment response
Lot/Sublot
Requested time
Warning time
Expiry time
Pulled by operator and time
Selecting Context
In the Sample Viewer, you can select a sample, the characteristics associated with a sample, and the
results for the characteristics. When a new sample or characteristic is selected, an event is raised by the
Sample Viewer to notify that the selected context has changed.
Users click the Edit Sample button to open the Edi t Sample dialog box.
Pulling Samples
The Sample Viewer allows users to specify that a sample has been pulled, if they have the required
permission to modify the sample information.
A sample is said to be pulled when it is selected from the other samples for rec ording the time required
for measurement. It is not necessary to tell t he system that a sample was pulled to record measurements
for it. A sample can be pulled only if it is yet to be pulled and the sample status is Ready or Ready
Warning.
Users click the Pull Sample button to mark the selected sample as Pulled. The Sample Pulled
Date dialog box appears.
The pulled date defaults to the current date and time. Users can manually change the date and time, or
click the Browse button to display the Enter a Date and Time dialog box.
Unpulling Samples
The Sample Viewer allows users to specify that a pulled sample is no longer pulled, if they have the
required permission t o modify the sample information. A sample can be unpulled only if it is pulled and no
results have been collected for the characteristics associated with the sample.
Users click the Unpull Sample button to mark the selected sample as no longer pulled.
Users click the Toggle Sample Final Flag button to toggle the selected sample's Final flag on and
off.
Users click the SPC Chart button to open the chart for the selected characteristic. For information
about implementing and using the SPC Chart control, see SPC Chart Control on page 199.
Users click the Edit Results button to open the Edit Sample Results dialog box.
The Edit Sample Results dialog box allows users to navigat e through the grid such that it works best
when you enter the characteristic results.
The following tasks can be performed:
From the list, select a characteristic for the sample.
Find: Click Find to move focus within the grid to the column (or row if characteristics are displayed
as rows) that contains the selected characteristic. The cursor moves to the first available result
record for the selected characteristic.
Enter in Data Editor moves to next...: Control the behavior of where the focus moves to next after
a result value is entered. Choose whether the Enter key moves the focus in the grid to the next
characteristic for the same result value or the next result value for the same characteristi c.
Show Characteristics in the grid as...: Select whether characteristics are listed as columns or
rows. By default, the res ult number is shown as the first column in the grid and then the
characteristics are listed in the remaining columns. If Rows is selected, the characteristic names are
listed in rows in the first column of the table and the result numbers are listed in the remaining
columns.
Navigate to the previous or next sample by clicking the Previous or Next buttons.
If the resulting characteristic is a variable type, the following tasks can be performed:
Set the value for an existing result
Add new res ults and set the value for the new res ults
If the characteristic has a maximum sample size set, users can add the res ults until the total number of
results equals the maximum number of samples for the characteristic.
If the resulting characteristic is an attribute type, the following tasks can be performed:
Set the count value for the attribute.
For counted attributes, the count value is the total number of defects in the entire sample. For binary
attributes, the count value is the number of defective units in the sample. This value cannot be larger
than the sample size.
Set the sample size, if the sample size of the attribute characteristic is not fixed.
When a sample that contains both variable and attribute characteristics is edited, additional rows
available for the variable characteristics are disabled for all attribute characteristics.
If the characteristic has upper or lower reasonable values defined by a QM specification, these values
are enforced when the data is entered. Users can also record the equipment that is used to measure the
characteristic result data.
The following tasks must be performed after entering or editing the results:
Save the characteristic result data.
Check the dat a for rule violations before saving it. The user is prompted to verify the data if any rule
violations are found.
When entering data, any individual results outside the specification limits must be saved or cancelled. At
this point, the system only checks specification limits and not rule violations.
It is also possible for a user other than the user who entered the results (e.g., a supervisor) to enter their
username and password to verify the result entries.
The user information entered during this ve rific ation process is logged in the Verified By field of the
sample table.
The run rules are tested (if the result that is added or updated meets the minimum sample size for
characteristic) and sample_result is updat ed if any violations occur.
The sample_result must be set as follows:
Good: Indicates that the sample is in control and all the results are within spec ification limits.
OOC: Indicat es the following:
o An entire sample is in or out of cont rol.
o No measurements entered for the sample are out of specification.
o No monitored characteristics are out of control.
OOS: Indicates the following:
o At least one measurement entered is out of specification.
o No measurements entered for key or critical characteristics are out of specification and no key or
critical characteristics are out of control.
OOC KEY: Indic ates the following:
o The sample is out of control and is for a key characteristic.
o No measurements entered for key characteristics are out of specification.
o No measurements entered for key or c ritical characteristics are out of specification and no critical
characteristics are out of control.
OOS KEY: Indicates the following:
o At least one measurement entered is out of specification and is for a key characteristic.
o No measurements entered for critical characteristics are out of specification and no critical
characteristics are out of control.
OOC CRITI CAL: Indicates the following:
o The sample is out of control for a critical characteristic.
o No measurements entered for critical characteristics are out of specification.
OOS CRITICAL: Indicates at least one measurement entered is out of specification and is for a
critical characteristic.
Canceling a Sample
The Sample Viewer allows users to cancel a sample if all of the following conditions are true:
They have permission to edit samples
The sample does not have a status of Future or Canc eled
The sample has not been finalized
The Cancel button is not included in the Sample Viewer button bar by default. The user can
right-click the button bar area and click Configure to open the Configure Bar Button dialog box and
add the Cancel button to the bar.
Users click the Filter button to open the Set Filters dialog box.
o Complete
o Complete Late
o Canc elled
Pulled By
Specifies the details of the user who has mark ed a sample as pulled.
Enti ty Cla ss or Entity
Specifies the entity class or the entity to which the samples to be displayed are assigned. This
depends on the setting of the EntityFilterRe striction property.
Item or Item Category
Specifies the item or the item category to whic h the samples to be displayed are assigned.
Work Order
Specifies the work order of the job that generated the sample.
Operation
Specifies the operation of the job that generated the sample.
Sequence Number
Specifies the sequence number of the job that generated the sample.
When the filter is applied, the Sample Viewer is refreshed using the new filters to display the samples.
The following figure shows the relation bet ween some of the Sample parameter colors and their
appearance in an example list of samples in Sample Viewer.
The following table includes a description of each sample status and its default color.
Ready The current time is greater than or equal to the Light grey
requested time, less than or equal t o the ex piration
time, and the warning interval is not Null. If the
current time value is less than the sample
requested time and the warning interval, the
sample pulled time is NULL, and there are no
results.
Ready Warning The current time is less than or equal to the Dark grey
expiration time, the sample pulled time is Null, the
current time is greater than the sample requested
time and the warning interval, and there are no
results.
Complete Late The time at which at least one original result in the Dark blue
sample at or below the minimum number is
recorded, is greater than the expiration time and
there are enough results for every characteristic.
Canc eled The user decided not to make measurem ents for Brown
this sample.
The following table includes a description of each characteristic status and its default color.
Characteristic
Status Description Default Color
Characteristic
Status Description Default Color
The following table includes a description of each result out -of-specification status and its default color.
CancelSampleEnabled Property
Use the CancelSampleEnabled property to determine if a sample can be canc eled.
The Cancel button will be enabled if a sample is selected, the selected sample does not have a status of
Future or Canceled, the Final flag for the selected sample is not set, and the logged -in user has
permission to edit samples.
EditResultsEnabled Property
Use the EditResul tsEnabled property to determine if sample results can be modified.
The selected result can be modified when the sample is not mark ed as Final, Missed, or Future. You
must also have the required permission to add and modify the sample information.
EditSampleEnabled Property
Use the EditSampleEnabled property to determine whether samples can be modified.
You can modify a selected sample when it has not been marked as Final, Missed, or Future. You must
also have the required permission to modify the sample information.
EndTimeFilter Property
Use the EndTimeFilter property to filter the samples based on the sample request time being less than
or equal to this value. The filter method displays the samples that match the end time value of the s ample
request time, which is lesser than or equal to the time entered as the filtering criteria. This is a run -time
property.
You can set this property to Null.
EntityFilter Property
Use the EntityFilter property to filter the samples based on the entity or entity class with which they are
associated. The filter method displays the samples that have an entity and any of its descendants that
match the filtering criteria. The valid values for this property are determined by the
Enti tyFilterRe striction property. This is a run-time property.
You can set this property to Null if the EntityFilterRe striction property is set to None.
EntityFilterRestriction Property
Use the EntityFilterRe stri ction property to determine the setting of the entity filter. This is a design-time
property.
If the RequireEntityLogon property is set to True, you can set this property to one of the following:
Current entity (1)
Current entity or storage entities (2)
Logged on entities (3)
Logged on entities or storage entities (4)
If the RequireEnti tyLogon property is set to False, the EntityFilterRe striction property must be set to
None (0). If the RequireEntityLogon property is set to True, this property cannot be set to None.
FilterEnabled Property
Use the FilterEnabled property to specify whether the filtering option is enabled for the samples.
This option will be disabled if the control is not in A vailable state.
ItemCategoryNameFilter Property
Use the ItemCategoryNameFilter property to filter the samples bas ed on the item category with which it
is associated. The filter displays the samples with item ID whose item category exactly matches the
filtering criteria. This is a run-time property.
You can set this property to Null.
ItemFilter Property
Use the ItemFilter property to filter the samples based on the item ID with which it is associated. The
filter met hod displays the sample that exactly matches the filtering criteria. This is a run -time property.
You can set this property to Null.
LaunchSpcChartEnabled Property
Use the LaunchSpcChartEnabled property to determine whether or not the LaunchSpcChart
command is enabled. This command is enabled when a characteristic is selected.
OperationFilter Property
Use the OperationFilter property to filter the samples based on the job which generates the samples in
the viewer. The filter contains the string filt er to match any operation that matches the string entered for
the filter. It is possible to search for operation IDs that contain specified characters. For example, to
return all samples for operations that contain the letters Op1, you must provide the string Op1% for the
value.
You can set this property to Null.
PullSampleEnabled Property
Use the PullSampleEnabled property to determine whether the PullSample command is enabled.
A sample can be pulled when the sample status is Ready or Ready Warning and the sample is yet to be
pulled. You must have the required permission to edit the sample information to pull a sample.
RequireEntityLogon Property
Use the RequireEntityLogon property to specify whether an entity logon is required for the Sample
Viewer control. This is a design-time property.
RefreshRate Property
Use the Refre shRate property to specify the polling rat e, in minutes, to check the MES database for new
data. You can disable this property by setting the value of the polling rate to 0. This is a design-time and
a run-time property. When a new filt er is applied, the current refresh rate value will be used to set up the
rate at which the grid is refreshed; changing the value of the Refre shRate property will only take effect
after applying a new filter.
You cannot set this property to Null.
SampleNameFilter Property
Use the SampleNameFilter property to filter the samples shown in the Sample Viewer control. The filter
method displays the samples that match the sample name entered as the filt ering criteria. This is a
run-time property. It is possible to search for sample names that contain spec ified characters. For
example, for SQL Server to return all samples that start with the letters Blender, you must provide the
string Blender% for the value.
SpcChartEnabled Property
Use the SpcChartEnabled property to check if the SPC chart button is enabled or not. This property
returns a value True if LaunchSpcChart() method is enabled.
StartTimeFilter Property
Use the StartTimeFilter property to filter the samples based on the sample request time being greater
than or equal to this value. The filter method displays the samples that match the start time value of the
sample request time, which is greater than or equal to the time entered as the filtering criteria. This is a
run-time property.
You can set this property to Null.
StatusFilter Property
Use the StatusFilter property to filter the samples based on the following values:
Future (0)
Ready (1)
Ready Warning (2)
Missed (3)
In Progress (4)
Late (5)
Complete (6)
Complete Late (7)
Canc elled (8)
The filter supports selection of multiple values. This is a run-time property.
ToggleSampleFinalFlagEnabled Property
Use the ToggleSampleFinalFlagEnabled property to determine whether the ToggleSampleFinalFlag
command is enabled.
This command is enabled if a past sample is selected and you have the required permission to modify
the final state of the sample.
UnpullSampleEnabled Property
Use the UnpullSampleEnabled property to determine whether the UnpullSample command is
enabled.
This command is enabled when the sample has been pulled and no results have been generated for any
of the characteristics associated with the sample. You must have the required permission to edit the
sample information to unpull a sample.
UserFilter Property
Use the UserFilter property to filter the samples based on t he details of the user who marked the s ample
as pulled. The filter method displays the user details value that is an exact match of the filtering criteria.
This is a run-time property.
You can set this property to Null.
WorkOrderFilter Property
Use the WorkOrderFilter to filter the samples based on the job that generates the samples in the viewer.
The filter contains the string filter to match any work order that matches the string entered for the filter. It
is possible to search for work order IDs that contain specified characters. For example, to return all
samples with work order IDs having ABC as the ending letters, you must provide the string %ABC for the
value.
You can set this property to Null.
CancelSample() Method
Use the CancelSample() method to cancel the currently selected sample. The CancelSampleEnabled
property must be set to True for this method to be successful.
The Sample Viewer calls the Cancel() method in the Sample class in the Stateless API to cancel the
sample. If the API met hod returns an error, the error is displayed to the user after it has been translated
into the user’s language. If the AP I method successfully cancels the sample, the Sample Viewer updates
the display.
Syntax
CancelSample();
EditSampleInfo() Method
Use the EditSampleInfo() method to open the Edi t Sample dialog box for editing the currently selected
sample. The EditSampleEnabled property must be set to True for this method to be successful.
Syntax
EditSampleInfo();
EditSampleResults() Method
Use the EditSampleResults() method to open the Edit Sample Results dialog box for modifying the
results of the currently selected sample or characteristic. The Edi tRe sultsEnabled property must be set
to True for this method to be successful.
Syntax
EditSampleResults();
Filter() Method
Use the Filter() met hod to enable the filter editing mode in the Sample Viewer. The FilterEnabled
property must be set to True for this method to be successful.
Syntax
Filter();
LaunchSpcChart() Method
Use the LaunchSpcChart() method to dis play an SPC chart of the characteristic selected within a
sample. The SP C chart uses the language of the user c urrently logged in to the Sample Viewer control.
The total number of samples and the number of points per page displayed in the chart are based on the
QM specification setting linked to the selected characteristic. If there is no setting for the total numb er of
points, all points meeting the filt er criterion are displayed. If there is no setting for the number of points
per page, then 18 points are display ed by default.
The type of chart displayed on the SPC chart control, when called by the Sample Viewer c ontrol, is the
default chart of the selected characteristic. Based on the filter flags of the selected characteristic, the
information set on the Sample Viewer’s Filter dialog is sent to the SPC Chart control. These filters, sent
from the Sample Viewer to the SP C Chart control, contain the following information:
Entity
Item
Work order
Operation
These filt ers are a subset of the filters that are used by the SPC Chart control.
For this method to be successful, you must set the LaunchSpcChartEnabled property to True.
Syntax
LaunchSpcChart();
PullSample() Method
Use the isPullSample parameter of the PullSample() method to set the user who pulled the sample and
the sample pull time in a date and time edit or. By default, the current date and time is set as the sample
pull time and the currently logged on user as the user who pulled the sample. The PullSampleEnabled
property must be set to True for this method to be successful.
When the isPullSample parameter is set to True, a dialog box is displayed for the user to modify the date.
This method is useful when you monitor the screen. The sample pulled with the current dat e and time is
not marked automatically.
If the sample is already pulled, the sample will be set as not pulled as long as no results have been
collected for the sample. The isPullSample parameter must be set to False to unpull the sample. If it is
set to True and the sample is already pulled, then this method will ret urn doing nothing.
Syntax
PullSample(isPullSample);
SelectRowByKey() Method
Use the SelectRowByKey() method to search for the specified sample ID in the grid. If the sample ID is
found, the row is selected. If the sample ID is not found and the SelectFirstRowAs Default parameter is
set to True, the first row is selected; otherwise the row selection is not changed. This method returns a
Boolean value that is True if the sample ID is found; otherwise it returns False.
Syntax
result = bool SelectRowByKey(int sampleId);
Parameter
sampleId
An integer that indicates the sample ID of a row in the sample table.
Return Value
result
A Boolean value that is True, if a match is found; otherwise it returns False.
ToggleFinalFlag() Method
Use the ToggleFinalFlag() method to mark a sample as final or to clear the final flag.
If the selected sample is not marked as Final, this method sets the final flag against the sample. On
setting the final flag, the res ults and characteristics associated with the sample cannot be edited.
If the selected sample is marked as Final, the method clears the final flag and enables editing of the
results and characteristics associated with the sample.
This method updates the database information immediately. You do not have to save the information.
The ToggleSampleFinalFlagEnabled property must be set to True for this method to be successful.
Syntax
ToggleFinalFlag();
ValidEntityFilter() Method
Use the ValidEntityFilter() method to validate the entity specified against the EntityFilterRestriction
parameter to determine if it is within the restriction type. If the entity is not within the Entity Filter
restriction or cannot collect quality data, an error message appears and the method returns False. If the
entity is within the Entity Filter restriction, it returns True.
Syntax
bool ValidEntityFilter(int entId, EntityFilterRestrictionType
entityFilterRestriction);
Parameters
entId
An integer value that indicates the ID of the entity to be validated.
entityFilterRestriction
An enumeration value that indicates the filter restriction to be validated against.
SelectedRowChanged Event
The SelectedRowChanged event is raised by the Sample Viewer control on startup of the control and
when a different sample row or characteristic row in the top grid is selected by a user. The event is not
raised when selecting a result in the bottom grid. This event indicates which sample and, if applicable,
which characteristic has been selected.
The SelectedRowChanged event has two read-only properties, SampleID and CharacteristicID.
When a different sample row is selected, the SampleID property is set to the sample ID of the newly
selected row, and the Characteri sticI D property is set to -1.
When a different characteristic row is selected, the SampleID and Characteri sticI D properties are
set to the sample ID and characteristic ID of the newly selected row.
StatusChanged Event
The StatusChanged event is raised by the Sample Viewer control when a sample status changes to
Ready or to Ready Warning. The eve nt indicates the change in the status of a sample.
C HAPTER 24
SPC Chart Control
In This Chapter
Introduction to the SPC Chart Cont rol .......................................................................................... 199
Using the SPC Chart Control ....................................................................................................... 200
Runtime Interaction with the Chart ............................................................................................... 205
Properties of the SPC Chart Control ............................................................................................. 211
Methods of the SPC Chart Control ............................................................................................... 241
Retrieving Data
When the Di splayChart() method is called, the SPC Chart control ret rieves the specified characteristic's
sample results that match the specified filter criteria. The retrieved data is sorted by the
requested_time_utc column of the sample table.
The SPC Chart control checks the MES database for new samples at an interval defined in the
Refre shRate property.
If one or more results are added to any samples that match the filter criteria since the last check, the SPC
Chart is updated. If the number of points on the chart is equal to the configured value of the
NumberOfPointsFilter property, the control does the following:
Delet es the first point
Adds the new point
Replots the chart
If new results are added to an existing sample, the control recalculates the point and replots the chart.
The chart is also updated when other events relat ed to chart data occur, such as sample data being
updated, marking a data point to be ignored or as a control move, or adding a note to a data point.
Displaying Data
The SPC Chart control generally plots one point for each sample. You can also use the control to plot a
chart (IX + MR chart, MA & MR chart, or MA & MS chart) for samples where each result produces a new
point. For samples with more than one res ult, the average is calculated and plotted. Each point in the
chart is connected to the next with a line. If the PrimaryPlotMeasurementValues property is set, the
measurement values for each point are represented with a different shape on the y -axis.
The sample request time is plotted on the x-axis and the sample value is plotted on the y-axis. If the
plotted points do not fit on a single page, a scroll bar appears at the bottom of the control. You can plot
two types of charts for the samples — primary charts and secondary charts. The histograms, if displayed,
appear to the left of the chart.
Chart Types
The SPC Chart control supports displaying characteristics of all types. The following is the list of chart
types support ed for specific characteristic type:
A Binary Attribute characteristic can be displayed as a PercentDefective (p) chart or
NumberDefective (np) chart.
A Counted Attribute characteristic can be displayed as a NumberOfDefects (c) chart, DefectsPerUnit
(u) chart, or DefectsPerMillionOpportunities (DPMO) chart.
A Variable characteristic can be displayed as a XB arRange (XB arR) chart, XBarSigma (XB arS )
chart, MovingA verageMovingRange (MA Range) chart, MovingA verageSigma (MASigma) chart, or
XIndividualRange (Ix Ir) chart.
Depending on the chart type and configuration of the variable characteristic, the following are the
additional limitations:
PercentDefective (p) and DefectsPerUnit (u)
The p and u charts are ratio charts that can have a variable sample size in the denominator. As such,
it is recommended to set control limits with either standard values or auto-calculated.
If preset limits are used, the chart requires the "single point outside control limits" rule to be enabled
so that the fixed control limits are applied to the chart. If the QM specification does not have this rule
enabled, the SP C Chart control will enable the rule on the chart only. The rule checking within the
MES databas e will not use the single point outside control limits rule, unless the QM Specification
has this rule enabled. However, the chart will, which can lead to inconsistencies in what is recorded
in the MES database and what is shown in the SPC Chart.
X Bar
This chart plots samples that have multiple results per sample. If all the samples for the characteristic
have only one reading per sample, a blank chart is displayed.
X Bar Range
This chart is designed for fixed sample sizes. However, the chart does support plotting samples
where the number of results in the sample is less than or greater than the standard sample size.
Because the sample size is artificially the same, all samples will have the same control limits applied
to them. When using fix ed control limits, the chart supports asymmetric upper and lower limits. When
using standard values or auto-calculated control limits, the chart will have symmetric upper and lower
limits.
X Bar Sigma
This chart does support variable sample sizes so the c ontrol limits can change from point to point. To
accomplish this, the chart sets limits based on a center line and standard mean ( Use standard values
option). If the characteristic being plotted has fixed limits, these limits are trans ferred into a center
line and a standard mean value for the upper control limit and for the lower control limit. The chart
supports asymmetric upper and lower control limits.
Moving Average
This chart starts plotting with the first result received and adjusts the control limits accordingly until
the number of points plotted is equal to the number of results used in the moving average calculation.
If two or more samples to be plotted have the same sample request time, then one second is added
to the times for each plotted point after the first.
Determining and Displaying Control Limits
For all variable characteristic chart types, the control limits are calculated by the chart based on the
center line and standard deviation.
An upper and lower sigma are support ed, so fixed limits can be unbalanc ed. The upper sigma is
calculated by subtracting the mean from the upper control limit and dividing by 3. The lower sigma is
calculated by subtracting the lower control limit from the mean and dividing by 3. The normal sample
size does not factor into this equation. If either the upper control limit, lower control limit, or mean are
missing, the control limits are automatically calculated from the data.
When the characteristic definition has single -side cont rol limits, the control rule violations displayed
in the chart might not reflect the control rules calculated by the MES system [recorded in the MES
database and reported to the Sample Recording Object (SRO) if one exists].
When calculating the lower control limit for an attribute or range chart, a negative calculated value is
not displayed and does not factor into calculated control rule violations.
*This control rule is the only one not based on a trend (T) that can be violated by a combination of points on either side of the center
line. All the other control rules require the specif ied number of points on the same side of the center line.
The control rules are evaluated bas ed on the priority order specified in the Spc_Rule table. The chart
displays control lines for the enabled control rules as defined below:
If rule IDs 1,2, or 3 are enabled, control lines are drawn at two standard deviat ions from the center
line.
If rule IDs 4 or 7 are enabled, control lines are drawn at one standard deviation from the center line.
Rule IDs 5, 6, 8, 9, 10, 11, and 12 have no effect on the control lines.
Note: The control limits (at +/- 3 standard deviations) are always displayed on the chart.
The alarm text is used to indicate control rule violations as defined below:
H, if the violation occurs above the center line
L, if the violation occurs below the cent er line
B, if the violation occurs on both sides of the center line
T, if t he violation is a trend and is not dependent on t he position of the points relative to the center line
In the following example, all of the chart areas except for the Primary chart have been toggled off using
the buttons.
Zooming on a Chart
If the EnableCollapsibleToggles property has been set to True, a Zoom (Z) toggle button will appear at
the lower right corner of the chart window. Clicking the Z toggle button causes a zoom window to replace
the horizontal scrollbar. A user can then scroll a zoomed area of the charts by dragging the transparent
blue zoom window.
The zoomed area can be increased or decreased by dragging the left or right edge of the zoom window.
If the number of points in the display exceeds the initial setup value for the number of data points, the
table is temporarily removed to prevent overlap of the table columns. If the number of data points is
reduced to the initial number of points or less than the initial number, the table will reappear.
2. Select the appropriat e cause group and cause, and then click OK.
The selected cause is assigned to the sample res ult, which is indicated by an open parenthesis
character that appears below the sample point.
Click N or Y in the column of the Note s row directly above the sample point in the chart.
The note displays above the N or Y value.
The sample point is removed from the chart and a question mark (?) annotation appears at the
sample position at the top of the chart. The chart will rescale if the chart MinY and MaxY properties
have not been set to a specific value. The ignored sample point will not be evaluated in control limit
testing or in auto-calculations for control limits and y-axis range.
AlarmPointColor Property
Use the AlarmPointColor property to specify the color used for sample points that violate a control rule.
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
The symbol used to plot an alarm data point in the chart is controlled by the OutOfLimitsPointS ymbol
property. If the alarm highlighting for chart symbols is turned on (the default; see ColorPointsInAlarm
Property on page 214), the color of a sample point that violates a control rule will change to the color
defined by this property.
You cannot set this property to Null.
CharacteristicNameFilter Property
Use the Characteri sticNameFilter property to specify the characteristic for which the chart is to be
plotted. This property filters samples with characteristic that match the specified criteria. This is a
design-time and a run-time property.
The following figure highlights the selected ch aracteristic as shown in the chart header area.
The Characteri sticNameFilter property is the only required property of the control. If all the other filters
are Null, and the chart is refreshed or the Di splayChart() method is called, the system reads the filter
settings from the MES database.
If you set this property to Null, you cannot display the chart.
ChartTitle Property
Use the ChartTi tle property to specify a title for the chart. This is a design-time and a run-time property.
The following figure highlights the title as shown in the chart header area.
If you set this property to Null, the SPC chart is untitled. If there is no title, the title space is collapsed,
allowing more vertical space for the other displayed chart elements.
ChartType Property
Use the ChartType property to specify the type of chart for plotting the data points or set the chart type to
Default to use the chart configured in MES database for the characteristic or the characteristic/QM
Specification link if the characteristic setting has been overridden. You can set the chart type to a valid
value that is listed along with the ChartType enumeration.
For variable sample sizes, you can use the following chart types:
XBarR (Mean and Range, 2)
XBarSigma (Mean and Sigma, 3)
IxIr (Individual X and Moving Range, 5)
MARange (Moving A verage and Range, 7)
MASigma (Moving A verage and Sigma, 8)
For binary attribute characteristics, you can use the following chart types:
Percent Defective (p, 16)
NumberDefective (np, 17)
For counted attribute characteristics, you can use the following chart types:
NumberofDefectives (c, 19)
DefectsperUnit (u, 18)
DefectsperMillionOpport unities (DPMO, 20)
The following figure highlights the selected chart type as shown in the chart header area.
You must ensure that the values assigned to chart types match the values in the default_chart column of
the characteristic table. The Default chart type is assigned a value of 0. This is a design -time and a
run-time property.
Example code for setting this property is:
SpcChartControl1.ChartType = FactMES.Controls.ChartType.PercentDefective;
You cannot set this property to Null.
ColorPointsInAlarm Property
Use the ColorPointsInAlarm property to specify whether or not the chart should display a sample point
that has violated a cont rol rule using the alarm color. The alarm color is determined by the
AlarmPointColor properties (see AlarmP ointColor P ropert y on page 211).
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
You cannot set this property to Null.
DataPointColor Property
Use the DataPointColor property to specify the color used for sample points in the chart graph. This is a
design-time and run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
The following figure highlights an ex ample data point in green.
DisplayChartEnabled Property
Use the Di splayChartEnabled property to determine whether or not the Di splayChart() method is
enabled. This property is set to True if a characteristic is passed to the control. Otherwise, it is set to
False. This is a run-time property.
You cannot set this property to Null.
DisplayXaxisLabelChanges Property
Use the Di splayXaxisLabelChanges property to specify whether or not to display labels along the
x-axis of the chart whenever the sample value changes. For example, if the XaxisLabel property is set to
WorkOrderID, each time there is a change in the work order ID, an x -axis label will be displayed.
The following figure shows an example of x-axis labels being applied on selected dates when the s ample
value changed.
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
This property works with t he Di splayXaxisLabelFrequency property to det ermine how frequently labels
are displayed along the x-axis.
If t he Di splayXaxisLabelChanges property is False, x-axis labels are displayed at the s ample value
frequency specified by the Di splayXaxisLabelFrequency property.
If the Di splayXaxisLabelChanges property is True, x-axis labels are displayed whenever the x-axis
sample value changes and at the sample value frequency specified by the
Di splayXaxisLabelFrequency property.
You cannot set this property to Null.
DisplayXaxisLabelFrequency Property
Use the Di splayXaxisLabelFrequency property to specify the sample value frequency at which labels
are displayed along the x-axis of the chart. For ex ample, the default value 5 means that every fifth
sample plotted in the SPC Chart will have a label along the x -axis.
The following figure shows an example of x-axis labels being applied at a frequency of every 5 samples.
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
This property works with the Di splayXaxisLabelChanges property to determine how frequently labels
are displayed along the x-axis.
If t he Di splayXaxisLabelChanges property is False, x-axis labels are displayed at the s ample value
frequency specified by the Di splayXaxisLabelFrequency property.
If the Di splayXaxisLabelChanges property is True, x-axis labels are displayed whenever the x-axis
sample value changes and at the sample value frequency specified by the
Di splayXaxisLabelFrequency property.
You cannot set this property to Null.
Int32 R/W 5
EnableCollapsibleToggles Property
Use the EnableCollapsibleToggles property to have collapsible toggle buttons and a zoom toggle
button appear on the chart. The collapsible toggle buttons allow users to hide areas of the chart and
toggle t hem back on again. See Toggling A reas of the Chart Window On and Off on page 206. The zoom
toggle button allows users zoom on a chart. See Zooming on a Chart on page 207.
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
You cannot set this property to Null.
EndTimeFilter Property
Use the EndTimeFilter property to filter samples with request time less than or equal to the specified
criteria. This property converts the local date/time to UTC standard time. This is a run-time property.
You can set this property to Null.
EntityIdFilter Property
Use the EntityIdFilter property to filter samples with entity ID that match the specified criteria. This
property will be ignored if the SiteNameFilter property or EntityNameFilter property are specified. This
is a run-time property.
You can set this property to Null.
EntityNameFilter Property
Use the EntityNameFilter property along with the SiteNameFilter property to determine an entity. This
property filters samples with entity ID that match the specified criteria. This is a run -time property.
The following figure highlights the specified entity as shown in the chart header area.
Read/ Default
Graph Posi tion Property Description Data Type Write Value
The following figure indicates to what edges of the graph the position properties apply.
Note that the sides of the graph are considered to begin and end with the grid, and do not take into
account labels that might display outside of the graph grid. Therefore, use care when adjusting these
settings:
Too small a value for GraphStartX will cause the chart to overlap with the histogram or will cause the
values in the table to overlap with the labels.
Too large a value for GraphStopPosX will cause the control line labels to be lost off the right-side of
the control.
Too large a value for GraphBottomPos will cause the x-axis labels to be lost off the bottom of the
control.
HeaderLevel Property
Use the HeaderLevel property to specify how much information is included in the chart header. This is a
design-time and a run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
The available levels are:
None
Do not include header information in the chart.
Minimal
Includes the dat e, characteristic, chart type, and item.
Most
Includes the Minimal information, plus item description, operation, entity, operator, and test
equipment.
All
Includes the Most information, plus specification limits, units of measure, and gage.
The following figure shows an example of the header level set to Most.
ItemCategoryIdFilter Property
Use the ItemCategoryIdFilter property to filter samples wit h item ID whose item category ID matches
the specified criteria. This property will be ignored if the ItemCategoryNameFilter property is specified.
This is a run-time property.
You can set this property to Null.
ItemCategoryNameFilter Property
Use the ItemCategoryNameFilter property to filter samples with item ID whose item category matches
the specified criteria. This is a run-time property.
You can set this property to Null.
ItemIdFilter Property
Use the ItemIdFilter property to filter samples with item ID that match the specified criteria. This is a
run-time property.
The following figure highlights the specified item as shown in the chart header area.
LanguageStrings Property
Use the LanguageStrings property to provide the SPC Chart control with an object for translating
strings. You must use this property to provide the translation object because there is no user logged on to
the control. This is a run-time property.
You can pass the translation object to the SPC Chart cont rol in the following ways.
If your InTouch application is using ot her MES controls that require a user login, use the following script
to use the logged in user’s translation object:
dim clienSession as aaFactMES.aaClientSession;
dim result as aaFactMES.Result;
result = aaFactMES.ClientSession.GetInstance();
if (result.Exception <> null) then
‘ Log or display an error
else
clientSession = result.Value;
if (clientSession.curUser <> null) then
spcChartControl.LanguageStrings =
clientSession.curUser.LangStrings;
else
spcChartControl.LanguageStrings = null;
endif;
endif;
If your InTouch application is not using other MES controls, use the following script to get a language
translation object:
dim clientsession as aaFactMES.aaClientSession;
dim result as aaFactMES.result;
dim languageId as integer;
dim langStrings as aaFactMES.aaLangStrings;
‘ Set the language ID to your user’s language. This must be a valid language ID
in the MES database.
languageId=1000;
result=aaFactMES.aaclientsession.GetInstance();
if (result.Exception<>null) then
LogMessage(result.Exception.Message);
else
clientsession=result.value;
result = clientsession.GetLangStringsObject(languageId);
if (result.Exception<>null) then
LogMessage(result.Exception.Message);
else
langStrings = result.Value;
SpcChartControl1.LanguageStrings=langStrings.ClientAPIClass;
endif;
endif;
This script must be called before calling the Di splayChart() method. If you want to change the language
after calling the Di splayChart() method, then you will have to call Di splayChart() again before you will
see the language change.
You can set this property to Null. If the LanguageStrings property is set to Null, the strings are not
translated. Instead, the strings are displayed in the language used by the developer.
LineAttributeColor Property
Use the LineAttributeColor property to specify the color used for plot lines in the graph. This is a
design-time and run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
The following figure highlights a plot line.
NumberOfPointsFilter Property
Use the NumberOfPointsFilter property to specify the maximum number of data points that can be
plotted on the chart. If the PointsPerPage property value is less than the NumberOfPointsFilter value,
a scroll bar appears below the chart to indicate that there are additional points to plot. This is a run -time
property.
The following figure shows a scroll bar appearing in the control, indic ating that the number of po ints per
page is less than the number of total points in the chart.
OperationIdFilter Property
Use the OperationIdFilter property to filter samples with operation ID that match the specified criteria.
This property must be used in conjunction with t he Proce ssIDFilter property. This is a run-time property.
The following figure highlights the specified operation as shown in the chart header area.
OutOfLimitsPointSymbol Property
Use the OutOfLimitsPointSymbol property to specify the shape to be used for sample points that
violat e a control rule. To specify the size of the shape, see OutOfLimitsPointSymbolSize Property on
page 224.
The following figure points to an example alarm point using a star shape.
OutOfLimitsPointSymbolSize Property
Use the OutOfLimitsPointSymbolSize property to specify the size of the shape (in points) to be used
for sample points that violate a control rule. To specify the shape to use, see OutOfLimitsPointSymbol
Property on page 223.
Reas onable shape sizes range from 1 to 50.
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
The size used to plot a data point in the chart is fixed at 10 pixels. If the alarm highlighting for chart
symbols is turned on (t he default; see ColorP ointsInAlarm Property on page 214), the size of a sample
point that violates a control rule will change to the size defined by this property.
You cannot set this property to Null.
Int R/W 10
PlotPrimaryMeasurementValues Property
Use the PlotPrimaryMeasurementValues property to specify whet her or not to display the
measurement values for each point, along with the average value point, on the primary chart. This
property affects only the charts that display an average of multiple measurements within a sample such
as an XB ar Range chart. This is a design -time and a run-time property.
The following figure shows measurement values displayed as blue Xs.
PointsPerPage Property
Use the PointsPerPage property to specify the number of points that can be displayed on the graph at a
given time. If the PointsPerPage value is less than the NumberOfPointsFilter value, a scroll bar
appears below the chart to indicate that there are additional points to plot. This is a design-time and a
run-time property.
The following figure shows a scroll bar appearing in the control, indic ating that the number of points per
page (20) is less than the number of total points in the chart.
Int32 R/W 18
Note that the number of decimals that have been set in MES Client for a characteristic's results can
cause the dat a displayed in the table to overlap, depending on the number of points per page that has
been set. If this is occurring, either reduce the number of decimals or reduce the number of points per
page.
If no value is supplied for one or both of these properties, the values will be calculated from the sample
result data.
You can set this property to Null.
ProcessIdFilter Property
Use the Proce ssIdFilter property to filter samples with process ID that match the specified criteria. This
property should be used in conjunction with the OperationIDFilter property. This is a run-time property.
You can set this property to Null.
RefreshRate Property
Use the Refre shRate property to specify the polling rat e, in minutes, to check the MES database for new
data. You can dis able this property by setting the value of the polling rate to zero. This is a design -time
and a run-time property. However, changing the value will not update the chart refresh rate until the next
time the Di splayChart() method is called.
You cannot set this property to Null.
ResetFiltersEnabled Property
Use the Re setFiltersEnabled property to determine whether or not the filter properties can be reset.
This property is set to True if a characteristic is passed to the control. Otherwise, it is set to False. This is
a run-time property.
You cannot set this property to Null.
If no value is supplied for one or both of these properties, the values will be calculated from the sample
result data.
SegmentRequirementIdFilter Property
Use the SegmentRequirementIdFilter property to filter samples that contain the specified string in the
segment requirement ID. This is a run -time property.
You can set this property to Null.
SegmentResponseIdFilter Property
Use the SegmentResponseIdFilter property to filter samples that contain the specified string in the
segment response ID. This is a run-time property.
You can set this property to Null.
ShowAlarmIndicators Property
Use the ShowAlarmIndicators property to specify whether or not the chart should show the alarm
indicators row in the table. This is a design -time and a run-time property. However, changing the value
will not updat e the chart until the next time the chart is refreshed or the Di splayChart() method is called.
If set, an alarm indicator row will be added to the table that includes one or two of the following i ndicators
above each sample point in the chart. When two indicators are used, the first is for the primary chart and
the second is for the secondary chart.
-, if no control rule violation occurred.
H, if the violation occurred above the center line
L, if the violation occurred below the center line
B, if the violation occurred on both sides of the center line
T, if t he violation is a trend and is not dependent on t he position of the points relative to the center line
The following figure highlights indicators in the Alarm row of the table:
ShowCalculatedValues Property
Use the ShowCalculatedValues property to specify whether or not to show the upper and lower chart
plotted value rows in the table. The names of the rows will change depending on the type of chart being
plotted. For example, the top chart row label will be MA when plotting a Moving A verage chart. X Bar
charts will also include a SUM row.
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
The following figure shows an example of calculated values rows in a table.
ShowControlMove Property
Use the ShowControlMove property to specify whether or not to display the Toggle Control Move
menu option in the sample point context menu (see the figure below and Mark ing a Sample Point as a
Cont rol Move on page 210). This is a design-time and a run-time property.
This property will be ignored if the UserId property is set to any value except Null. If the UserId property
is set, then the availability of the Toggle Control Move menu item will depend on the user’s privilege
settings. See UserId Property on page 239.
You cannot set this property to Null.
ShowCpkValues Property
Use the ShowCpkValues property to specify whether or not to display the Cpk row in the table. This is a
design-time and a run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
For Cpk values to be calculated, the characteristic must have upper and lower specification limits.
You cannot set this property to Null.
ShowCpValues Property
Use the ShowCpValues property to specify whether or not to display the Cp row in the table. This is a
design-time and a run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
The following figure shows the Cp row included in the table.
For Cp values to be calculated, the characteristic must have upper and lower specification limits.
ShowIgnoreSample Property
Use the ShowIgnoreSample property to specify whether or not to display the Toggle Ignore Sample
menu option in the sample point context menu (see the figure below and Mark ing a Sample Point to Be
Ignored in Sample Calculations on page 210). This is a design-time and a run-time property.
This property will be ignored if the UserId property is set to any value except null. If the UserId property
is set, then the availability of the Toggle Ignore Sample menu item will depend on the us er’s privilege
settings. See UserId Property on page 239.
You cannot set this property to Null.
ShowNotesIndicators Property
Use the ShowNote sIndicators property to specify whether or not to display the notes indicator row in
the table. This is a design-time and a run-time property. However, changing the value will not updat e the
chart until the next time the chart is refreshed or the Di splayChart() method is called.
The Notes row will display Y if the sample point has a note and N if it does not have a note. Notes can be
either entered by a user (see Adding a Note to a Sample Point on page 209) or because a cause has
been assigned to the sample point (the cause description is displayed as a note).
The following figure shows the Notes row included in the table.
ShowPpkValues Property
Use the ShowPpkValues property to specify whether or not to display the Ppk row in the table. This is a
design-time and a run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
For Ppk values to be calculated, the characteristic must have upper and lower specification limits.
You cannot set this property to Null.
ShowPpValues Property
Use the ShowPpValues property to specify whether or not to display the Pp row in the table. This is a
design-time and a run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
The following figure shows the Pp row included in the table.
For Pp values to be calculated, the characteristic must have upper and lower specification limits.
You cannot set this property to Null.
ShowPrimaryChart Property
Use the ShowPrimaryChart property to specify whether or not to display the primary chart. This is a
design-time and a run-time property. The following table summarizes the chart types and the
corresponding primary charts:
X-B ar R Mean
IX & MR Individual
ShowPrimaryHistogram Property
Use the ShowPrimaryHi stogram property to specify whether or not to display the primary histogram
beside the primary chart. The primary histogram is displayed only if the ShowPrimaryChart property is
set to True. This is a design-time and a run-time property.
The following figure highlights the primary histogram included with the primary chart.
ShowResultValues Property
Use the ShowRe sultValues property to specify whether or not to dis play one or more result values rows
in the table. For example, an X B ar R chart with five individual results per plot point would show five
additional rows labeled Sample #x above the calculated values rows. This is a design-time and a
run-time property. However, changing the value will not update the chart until the next time the chart is
refres hed or the Di splayChart() method is called.
The following figure shows example result value rows in the table.
ShowSampleSizes Property
Use the ShowSampleSizes property to specify whether or not to display the sample sizes rows in the
table. This is a design-time and a run-time property. However, changing the value will not update the
chart until the next time the chart is refreshed or the Di splayChart() method is called.
The following figure shows an example sample size row in the table.
ShowSecondaryChart Property
Use the ShowSecondaryChart property to specify whether or not to display the secondary chart. This is
a design-time and a run-time property. The following table summarizes the chart types and the
corresponding secondary charts:
Chart Ty pe Chart
Chart Ty pe Chart
X-B ar R Range
p-chart N/A
np-chart N/A
c-chart N/A
u-chart N/A
DPMO N/A
ShowSecondaryHistogram Property
Use the ShowSecondaryHi stogram property to specify whether or not to display the secondary
histogram beside the secondary chart. The secondary histogram is displayed only if the
ShowSecondaryChart property is set to True. This is a design -time and a run-time property.
The following figure highlights the secondary histogram included with the secondary chart.
ShowTable Property
Use the ShowTable property to specify whether or not to display the table in the chart. This is a
design-time and a run-time property. However, changing the value will not update the chart until the next
time the chart is refreshed or the Di splayChart() method is called.
When this property is set to false, the following rows will not be shown in the data table above the chart
graph:
All Header rows
Time row
Individual result row
Calculat ed Values row
Sample Size row
However, if the following properties are enabled, their rows will still be shown in the table even if the
ShowTable property is set to False:
Notes
Alarm
You cannot set this property to Null.
ShowTimes Property
Use the ShowTimes property to specify whether or not to display the sample request time row in the
table. This is a design-time and a run-time property. However, changing the value will not update the
chart until the next time the chart is refreshed or the Di splayChart() method is called.
The following figure shows the Time row included in the table.
ShowZones Property
Use the ShowZone s property to have the chart color coded into three zones corresponding to the
number of standard deviations from the center line.
The inner zone between +1 and –1 standard deviation shows in green and is enabled whenever a
rule is enabled that uses the 1 standard deviation limit.
The second zone is bet ween +1 and +2 standard deviations and between –1 and –2 standard
deviations and shows in yellow. It is enabled when there is a rule enabled that uses the 2 standard
deviation limit (often referred to as the warning limit).
The final outer zone is between +2 and +3 standard deviations and between –2 and –3 standard
deviations and shows in red. This zone is enabled when the out -of-control rule is enabled.
If one or more of the zones are not enabled, the next level zone will fill in the missing zone's area. For
example, if the out-of-cont rol limit rule is the only rule applied to a chart and ShowZones is enabled, the
entire area bet ween the cont rol limits will be colored red.
This is a design-time and a run-time property. However, changing the value will not update the chart until
the next time the chart is refres hed or the Di splayChart() method is called.
You cannot set this property to Null.
SiteNameFilter Property
Use the SiteNameFilter property along with the EntityNameFilter property to determine an entity. This
property filters samples with entity ID that match the specified criteria. This is a run -time property.
You can set this property to Null, only if sites are not used.
SpareNFilter Properties
Use the Spare1Filter through Spare4Filter properties to filter samples that contain the specified string in
the spare1 through spare4 columns of the sample table. These are run-time properties.
You can set these properties to Null.
StartTimeFilter Property
Use the S tartTimeFilter property to filter samples with request time greater than or equal to the specified
criteria. This property converts the local date/time to UTC standard time. This is a run-time property.
You can set this property to Null.
TableAlarmEmphasis Property
Use the TableAlarmEmpha si s property to specify how to display alarm indicators in t he table for s ample
points that violate a control rule. This is a design-time and a run-time property. However, changing the
value will not update the chart until the next time the chart is refreshed or the Di splayChart() method is
called.
The possible alarm highlight values are:
None
Alarm conditions are not indicat ed in the table.
Text
The text appears in the alarm color.
Outline
The cells in the table are outlined in the alarm color.
Bar
The cells in the table are filled in with the alarm color.
The alarm color is determined by the AlarmPointColor property; see AlarmPointColor Property on page
211.
The following figures shows the table alarm emphasis for the outline and bar highlight types.
TableBackgroundColor Property
Use the TableBackgroundColor property to specify the color used for the table background. This is a
design-time and a run-time property.
You cannot set this property to Null.
TableStripeColor Properties
Use the TableStripeColor properties to specify the color used for alternating rows in the table. The color
for the other rows will be the table background color. This is a design-time and a run-time property.
The following figure shows the table stripes set to cyan. The table background color is set to white.
UserId Property
Use the UserId property to specify the MES user. The user’s privileges will determine if the sample point
context menu will enable the us er to mark samples as a control move or to be ignored in calculations.
This is a design-time and a run-time property.
If this property is set to Null, access to privileged actions will either be controlled by other properties (see
ShowControlMove Property on page 229 and ShowIgnoreSample Property on page 230) or access will
be denied. If a non-existent user is supplied, access to privileged actions will be denied.
WorkOrderIdFilter Property
Use the WorkOrderIdFilter property to filter samples that contain the specified string in the work order
ID. This is a run-time property.
You can set this property to Null.
XAxisLabel Property
Use the XAxi sLabel property to specify the text label to use for the sample points on the x -axis of the
chart graph. This is a design-time and a run-time property. However, changing the value will not update
the chart until the next time the chart is refreshed or the Di splayChart() method is called.
The possible values for this property are:
Date
DateTime
EntityName
Equipment
FrequencyName
Item
LotNumber
OperationId
PlanName
PulledBy
PulledByDate
QMSpecificationName
SampleName
SampleNumber (Default value)
SampleS pare1
SampleS pare2
SampleS pare3
SampleS pare4
SegmentRequirementId
SegmentRes ponseId
SubLotNumber
Time
VerifiedBy
WorkOrderId
The following figure shows the label set to Dat e.
XAxisLabelRotation Property
Use the XAxi sLabelRotation property to specify the angle of rot ation value (in degrees) that should be
applied to x-axis labels. This is a design-time and a run-time property. However, changing the value will
not update the chart until the next time the chart is refreshed or the Di splayChart() method is called.
Valid values behave as follows:
Null results in the label being at 0° (horizontal text with a direction from left to right) unless the labels
will overlap, in which case the appropriate angle will be calculated automatically.
0 results in fixed horizontal text. Labels will not be rot ated if they overlap.
Posi tive values rotate the labels counterclockwise. For example, 90 results in vertical text turned
90° counterclockwise (text direction is bottom to top).
Negative values rot ate the labels clockwise. For example, -90 results in vertical text turned 90°
clockwise (text direction is top to bottom).
The following figure shows the label rotated using a value of 45 (t hat is, 45° counterclockwise).
ClearFilters() Method
Use the ClearFilters() method to clear the dat a on the chart and to set the value of the following filter
properties to Null:
SiteNameFilter
Enti tyNameFilter
Enti tyIdFilter
ItemIdFilter
ItemCategoryIdFilter
ItemCategoryNameFilter
WorkOrderIdFilter
OperationIdFilter
ProcessIdFilter
SegmentRequirementIdFilter
SegmentResponseIdFilter
StartTimeFilter
EndTimeFilter
NumberOfPointsFilter
Spare1Filter
Spare2Filter
Spare3Filter
Spare4Filter
Syntax
SPCChartControl1.ClearFilters();
DisplayChart() Method
Use the Di splayChart() method to fetch the filtered data and display the chart. If this method is called
without passing a characteristic, the control displays an appropriate error message.
Syntax
SPCChartControl1.DisplayChart();
ResetFilters() Method
Use the Re setFilters() method to set the value of the following filt er properties to the most recent sample
result of the characteristic:
Enti tyIdFilter
ItemIdFilter
WorkOrderIdFilter
OperationIdFilter
ProcessIdFilter
SegmentRequirementIdFilter
SegmentResponseIdFilter
Spare1Filter
Spare2Filter
Spare3Filter
Spare4Filter
This method also sets the value of the following filter properties to Null:
SiteNameFilter
Enti tyNameFilter
StartTimeFilter
EndTimeFilter
NumberOfPointsFilter
ItemCategoryNameFilter
ItemCategoryIDFilter
Syntax
SPCChartControl1.ResetFilters();
C HAPTER 25
Spec Control
In This Chapter
Introduction to the Spec Control ................................................................................................... 243
Configuring the Spec Control ....................................................................................................... 243
Properties of the Spec Control ..................................................................................................... 243
Methods of the Spec Control ....................................................................................................... 245
This control corresponds to the Specs tab of the MES Operator application. For more information, see
the Specs Tab section in the MES Operator Guide or online help.
EditSpecificationsEnabled Property
Use the EditSpecificationsEnabled property to get whether specifications can be edited.
RefreshEnabled Property
Use the Refre shEnabled property to get whether this control can be refreshed or not. This control
cannot be refreshed if the user has not logged into MES, or the user has not logged on to any entity.
UpdateJobSpecsEnabled Property
Use the UpdateJobSpecsEnabled property to get whether job specs can be updated.
UpdateTemplateSpecsEnabled Property
Use the UpdateTemplateSpecsEnabled property to get whether template specs can be updated.
ViewSpecDocumentEnabled Property
Use the ViewSpecDocumentEnabled property to set or get whether specification documents can be
viewed.
Xceed.Grid.RowSelectedJobSpecGroupRow Property
Use the Xceed.Grid.RowSelectedJobSpecGroupRow property to get the currently selected job spec
group row from the grid. This property is set to Null if there are no rows in the grid or if none of the rows in
the grid are selected. It returns the first selected row from the grid if more than 1 row is s elected.
PopUpEditSpecDlg() Method
Use the PopUpEditSpecDlg() method to open the Edit Specification dialog box and edit specification
details. If the current user does not have privileges, then a list of alternate users is shown to edit
specification details.
Syntax
PopUpEditSpecDlg();
SelectRowByKey(Int32,String) Method
Use the SelectRowByKey(Int32,String) method to select a row in the grid using the specified
parameters. If a row for the specified paramet er is not found in the grid, then the row selection is
unchanged.
Syntax
result = SelectRowByKey(StepNo, SpecId);
Parameters
StepNo
An integer value that represents a step_no value from the job_spec table.
SpecId
A string value that represents a spec_id value from the job_s pec table.
Return Value
result
A Boolean value that is True, if a match is found; otherwise it returns False.
SelectRowByKey(Int32,String,Boolean) Method
Use the SelectRowByKey(Int32,String,Boolean) method to select a row in the grid using the specified
parameters. If a row for the specified paramet er is found and the selectFirstRowAsDef ault parameter is
set to True, the first row in the grid is selected. Otherwise the previous row selection is not c hanged.
Syntax
result = SelectRowByKey(StepNo, SpecId, SelectFirstRowAsDefault);
Parameters
StepNo
An integer value that represents a step_no value from the job_spec table.
SpecId
A string value that represents a spec_id value from the job_s pec table.
SelectFirstRowAsDefault
A Boolean value that indicates whether the first row in the grid should be selected, if the specified
parameters does not exist in the grid. This paramet er should be s et to False if the row selection is not
changed in a case when the specified paramet ers are not found in the grid.
Return Value
result
A Boolean value that is True, if a match is found; otherwise it returns False.
UpdateSpecValues() Method
Use the UpdateSpecValues() method to update job spec values or template spec values.
Syntax
result = UpdateSpecValues(buttonClicked);
Parameters
buttonClick ed
A button set that updates the job spec values.
C HAPTER 26
Steps Control
In This Chapter
Introduction to the Steps Control .................................................................................................. 247
Configuring the Steps Cont rol ...................................................................................................... 247
Properties of the Steps Control .................................................................................................... 248
Methods of the Steps Control ...................................................................................................... 250
ActionEnabled Property
Use the ActionEnabled property to specify whether the Action function is enabled.
AuthorizeEnabled Property
Use the AuthorizeEnabled property to specify whether the Authorize function is enabled.
BypassEnabled Property
Use the Bypa ssEnabled property to specify whether the Bypass function is enabled.
CompleteEnabled Property
Use the CompleteEnabled property to specify whether the Complete function is enabled.
EventEnabled Property
Use the EventEnabled property to specify whether the Job E vents function is enabled.
LoginEnabled Property
Use the LoginEnabled property to specify whether the Login function is enabled.
LogoutEnabled Property
Use the LogoutEnabled property to specify whether the Logout function is enabled.
ReworkEnabled Property
Use the ReworkEnabled property to specify whether the Rework function is enabled.
SetLotDataEnabled Property
Use the SetLotDataEnabled property to specify whether the Set Lot Data function is enabled.
ShowListEnabled Property
Use the ShowLi stEnabled property to specify whether the Show Operator List function is enabled.
ViewEnabled Property
Use the ViewEnabled property to specify whether the View Doc ument function is enabled.
Authorize() Method
Use the Authorize() method to allow a certification for sign-off.
Syntax
Authorize();
DisplayJobEventDialog() Method
Use the Di splayJobEventDialog() method to open the dialog box that allows entry of user-defined job
events.
Predefined job events cannot be entered via this dialog box.
Syntax
DisplayJobEventDialog();
ExecuteStepAction() Method
Use the ExecuteStepAction () method to perform the action associated wit h the currently selected step.
Syntax
ExecuteStepAction();
LaunchCurrentStepDocument () Method
Use the LaunchCurrentS tepDocument() method to launch the step document displayed in the
selected grid row.
Syntax
LaunchCurrentStepDocument();
LogoutCurrentStep() Method
Use the LogoutCurrentStep() method to log out of the selected step.
Syntax
LogoutCurrentStep();
OnLotNoChanged() Method
Use the OnLotNoChanged() method to trigger the LotNoChanged event by invoking the relevant
delegates.
Syntax
result = OnLotNoChanged(e);
Parameter
e
An event argument that is used to determine if a Save or a Save As Default is done.
OnStepDataEntered() Method
Use the OnS tepDataEntered() method to trigger the StepDataEntered event by invoking the relevant
delegates.
Syntax
result = OnStepDataEntered(e);
Parameter
e
An event argument that is used to determine if a Save or a Save As Default is done.
OnStepGroupChanged() Method
Use the OnS tepGroupChanged() method to trigger the StepGroupChanged event by invoking the
relevant delegates.
Syntax
result = OnStepGroupChanged(e);
Parameter
e
An event argument that is used to determine if a Save or a Save As Default is done.
OnStepStateChanged() Method
Use the OnS tepStateChanged() method to trigger the S tepStateChanged event by invoking the
relevant delegates.
Syntax
result = OnStepStateChanged(e);
Parameter
e
An event argument that is used to determine if a Save or a Save As Default is done.
PopupAnalogEntry() Method
Use the PopupAnalogEntry() method to open an analog entry dialog box.
Syntax
PopupAnalogEntry(Control, minValue, maxValue, minValueUsed, maxValueUsed,
limitWarning);
Parameters
Cont rol
A control that contains a reference to the cont rol into which the analog value (possibly blank) is
placed.
minValue
A Decimal minimum allowed value.
maxV alue
A Decimal maximum allowed value.
minValueUsed
A Boolean value that if set to False, the minimum allowed value is ignored.
maxV alueUsed
A Boolean value that if set to False, the maximum allowed value is ignored.
limitWarning
A Boolean value that if set to True, the user is warned if they enter a value outside t he allowed range.
They have the option to accept the value, even though the value is outside the range.
PopupRadioButtonEntry() Method
Use the PopupRadioButtonEntry() met hod to open a radio button selection dialog box.
Syntax
PopupRadioButtonEntry(Control, ds);
Parameters
Cont rol
A control that contains a reference to the cont rol into which the label associated with the selected
radio button is placed.
ds
A dataset, from the Job_Step_Choices table, that defines the set of radio buttons to display.
ProcessDataTypeForSelectedLot() Method
Note: This method is not intended for customer use; it is intended for MES internal use only.
This method updates the step data that is displayed in the specified grid row with the data value in the
specified row from the JobStep table.
Syntax
ProcessDataTypeForSelectedLot(gridRow, jobStepRow);
Rework() Method
Use the Rework() method to open the Steps to Rework dialog box, which allows rework for steps.
Syntax
Rework();
SetLotData() Method
Use the SetLotData() method to set the lot data for the current job. There must be a current user logged
into at least one entity, and the current entity must be running a job. The PopupSetProdLotDataDlg()
method is called, passing along the information about the current job. If the lot data is changed, the grid
is refreshed.
Syntax
SetLotData();
ShowOperatorsOnThisStep() Method
Use the ShowOperatorsOnThi sStep() method to show a list of all operat ors logged into the currently
selected step.
Syntax
ShowOperatorsOnThisStep();
StepBypass() Method
Use the StepBypa ss() method to bypass the currently selected step.
Syntax
StepBypass();
StepComplete() Method
Use the StepComplete() met hod to complete the currently selected step .
Syntax
StepComplete();
StepLogin() Method
Use the StepLogin() method to log on to the currently selected step.
Syntax
StepLogin();
C HAPTER 27
Utilization Control
In This Chapter
Introduction to the Utilization Control ............................................................................................ 255
Configuring the Utilization Control ................................................................................................ 255
Using the Utilization Control ........................................................................................................ 256
Properties of the Utilization Control .............................................................................................. 263
Methods of the Utilization Control................................................................................................. 268
This control corresponds to the Util/OEE tab of the MES Operator application. For more information, see
the Util/OEE Tab section in the MES Operator Guide or online help.
The Utilization control provides for four types of filtering: time-based, event state, minimum duration, and
status. Time-based filtering limits data bas ed on a specified period of time or number of events. E vent
State filtering limits data based on whet her the event was acknowledged, unacknowledged or it can be
set to both to not filter by event state. Minimum duration filtering limits data bas ed on a duration by only
showing those events that lasted as least as long as the minimum duration. Status filtering limits data
based on the utilization status (that is, run time or downtime). Any combination of these four types of
filters may be employed. A description of the current filter will be displayed in the control, so the user will
always know what filter criteria are being used. For further detail on filtering, see Configuring the Filters
on page 258.
The Multiple Selection for Reason Entry function is provided to allow the user to select multiple grid rows
in the Utilization cont rol which have a reas on pending and set the final reason for a series of pending
rows, or allow the user to select multiple grid rows in the Utilization which are non-pending and edit the
final reas on. For more information, see Multiple Selection for Reason Entry/Editing on page 259.
The comments of a selected reason or multiple selected reasons can be changed without chan ging
anything else about the reason by use the EditComments() method or t he Edit Comment button on the
button bar. Both calling the method and pus hing the button will bring up a dialog allowing the editing of
the comments associated wit h one or more reasons. For more information, see Methods of the Utilization
Cont rol on page 268 and Buttons on page 271.
Good or rejected production can be added for a selected reason using the AddProduction() method or
the AddProduction button o the button bar if the AddProduction button is enabled. Both will open a
dialog box that allows the user to enter the amount of production to be added. For more information, see
Methods of the Utilization Control on page 268 and Buttons on page 271.
Switching Entities
The utilization control displays entity utilization data for the current entity. The current entity can be
switched in one of three ways.
Adding a Job Summary control to the symbol
Through script
By using the EntitySelect control that is part of the Utilization control. The EntitySelect control is a
combo box that lists all entities that the current user is logged onto. It also contains an entity logon
button that will allow the user to log onto or off of entities. The entity that is selected in the combo box
will become the new current entity.
Filter button
When clicked, the Utilization control's Filter() method is called to open the filter dialog. If the operator
sets a new filter, the Utilization cont rol is refreshed. If the Utilization controls FilterEnabled property
is False, this button is disabled.
Add Production button
When clicked, the Utilization control's AddProduction() method is called to open the add production
dialog box. This dialog box is used to add good or rejected quantities. The us er can enter a
production amount as well as set the item information, the reason code to associate wit h the
production, the lot, and the storage information. Any fields that have default values will be set to
these default values when the dialog is opened. Clicking Save will save the good or rejected
production.
Edit Comment button
When clicked, the Utilization control's EditComment() method is called to open the Edi t Comment
dialog box. The comments text box on the dialog box will contain the comments of the selected
reason or reasons if multiple reasons are selected and all have the same comments. If multiple
reasons are selected and the comments are not the same for each, the Comments text box will
contain <various> to let the user know that the comments are not the same for all selected
reasons. The operator can edit the comments of the selected reasons without editing anything else
about the reason by typing new comments into the Comments text box and clicking OK. The new
comments will be saved to each of the selected reasons as this point.
2. Click the Util/OEE tab and select a row from the Utilization grid.
3. Right -click the Button Bar and click Configure. The Configure Button Bar window appears. You
can view the Utilization Split button in the Available Buttons pane.
3. Configure the Start Time and End Time for the new events.
4. Click Save. The new utilization events are added to the Utilization grid.
Splitting an Event
You can split the selected utilization event by using the following commands:
Split Before: You can use this command to split the s elected event into two events, each having half
the duration of the selected event. After executing this command, the first half of the event becomes
the selected event. The Start Time and End Time for the new events are calculated as follows:
First New E vent Start Time: same as that of the selected event
Second New E vent Start Time: Start time of the first new event +
(duration of the selected event/2)
All the other settings of the new events, except the start and end times, are the same as that of the
selected event.
Note: The Split Before command is disabled if the selected event cannot be edited.
Split After: You can use this command to split the selected event into two events, each having half
the duration of the selected event. After executing this command, the second half of the event
becomes the selected event. The Start Time and End Time for the new events are calculated as
follows:
First New E vent Start Time: same as that of the selected event
Second New E vent Start Time: Start time of the first new event +
(duration of the selected event/2)
All the other settings of the new events, except the start and end times, are the same as that of the
selected event.
Note: The Split After command is disabled if the selected event cannot be edit ed.
You can delete the selected utilization event by using the following commands:
Delete Before: You can use this command to combine the selected event with the previous event.
After executing this command, the selected event is deleted and the previous event bec omes the
selected event. The duration of the deleted event is added to the duration of the selected event. The
Utilization Reason and Comments of the deleted event are retained by the selected event.
Note: The Delete Before command is disabled if the selected event cannot be edited or if it is the first
event that can be edited.
Delete After: You can use this command to combine the selected event wit h the next event. After
executing this command, the selected event is deleted and the next event becomes the select ed
event. The start time of the deleted event becomes the start time of the selected event. The
Utilization Reason and Comments of the deleted event are retained by the selected event.
Note: The Delete Before command is disabled if the selected event cann ot be edited or if it is the last
event that can be edited.
AddProductionEnabled Property
The AddProductionEnabled property indicat es whether the AddProduction() method may be called. If
it is set to False, the AddProduction() method may not be called. This property is set by the control
whenever the state of the control changes.
AutoSelNewEvents Property
The AutoSelNewEvents property determines the behavior of the control when new events occur. If this
property is True, a newly added event is automatically selected in the control's grid. If it is False, the
event which currently selected will continue to be selected when new e vents occur.
EditFinalReasonEnabled Property
Use the EditFinalReasonEnabled property to determine if the Edit Final Reason function is enabled.
EndJobEnabled Property
Use the EndJobEnabled property to determine if the End Job function is enabled.
FilterDefaultsFromDB Property
The FilterDefaultsFrom DB property controls whether the default filter settings(UtilTimeFilterType,
UtilStatusFilter, FilterLastNEvents, UtilizationFilter.FilterLastNHours, UtilFilterUnAck, and
UtilizationFilter.FilterMinDuration properties) are established during design time or if they will be
pulled in from the MES database during run time. If this property is set to False, the default filter settings
will not be loaded from the database. If the property is set to True, the default filter settings will be pulled
from the MES database during run time. In this case, the design-time settings of the properties are
disabled.
FilterEnabled Property
The FilterEnabled property specifies if the Filter() method is available. This read-only property will work
in the same manner as the other function -enabled properties. That is, when the property is False, the
corresponding function (the filter dialog box in this case) will not be available.
This property is set by the cont rol whenever the state of the control changes. It will be set to False if there
is no MES session, no user, or no entity. At all other times, it should be set to True.
SetPastReasonEnabled Property
Use the SetPastRea sonEnabled property to determine if the Set Past Reason function is enabled.
SetReasonEnabled Property
Use the SetReasonEnabled property to determine if the Set Reason function is enabled.
StartDEJobEnabled Property
Use the StartDEJobEnabled property to determine if the Start Data Entry Job function is enabled.
StartDEJobProdRateFieldVisible Property
Use the StartDEJobProdRateFieldVisible property to get or set the visibility of the Production Rate
box in the Start Job Data Entry dialog box. If set to False, the Production Rate box is not shown in the
dialog box.
StartDEJobUOMFieldVisible Property
Use the StartDEJobUOMFieldVisible property to get or set the visibility of the Unit of Measure box in
the Start Job Data Entry dialog box. If set to False, the Unit of Measure box is not shown in the dialog
box.
UtilRefreshEnabled Property
Use the UtilRefre shEnabled property to temporarily allow or prevent the operator from refreshing the
control. If set to False, the operator cannot refresh the cont rol and any refresh requests submitted to the
control are ignored.
UtilizationFilter.FilterEndOffset Property
The UtilizationFilter.FilterEndOffset property specifies the end of the filter period relative to now. This
filter value is only legitimate when the UtilTimeFilterType property is set to Custom. If the
UtilTimeFilterType property is not set to Custom, this property is:
Set to 0 if the type is ThisHour, LastNHours, LastNE vents, CurrentShift, Current Day, CurrentWeek,
or CurrentMonth.
Set to 1 if the type is LastShift, Yesterday, LastWeek, or LastMonth.
The value of this property should always be less than the value of the UtilizationFilter.FilterStartOffset
property and greater than or equal to 0.
Integer R/W 0
UtilizationFilter.FilterLastNEvents Property
The UtilizationFilter.FilterLastNEvents property is only applicable if the UtilTimeFilterType property
is set to LastNEvents. It determines how many events will be included in the control when the data is
displayed.
UtilizationFilter.FilterLastNHours Property
The UtilizationFilter.FilterLastNHours property is only applicable if the UtilTimeFilterType property is
set to LastNHours. Only those events wh ose event time falls within the last N hours, where N is the value
of this property, will be included in the control when the data is displayed.
UtilizationFilter.FilterMinDuration Property
The UtilizationFilter.FilterMinDuration property specifies the amount of time that had to be spent in the
event in order to consider the event. Only events with a duration that is greater than or equal to the value
of this property will be included. This value must be greater than or equal to 0.
Integer R/W 0
UtilizationFilter.FilterStartOffset Property
The UtilizationFilter.FilterStartOffse t property specifies the start of the filter period relative to now. This
filter value is only legitimate when the UtilTimeFilterType property is set to Custom. If the
UtilTimeFilterType property is not set to Custom, this property is:
Set to 1 if the type is ThisHour, CurrentShift, Current Day, CurrentWeek, or CurrentMonth
Set to 2 if the type is LastShift, Yesterday, LastWeek, or LastMonth.
Set to N if the type is set to LastNE vents or LastNHours.
The value of this property should always be greater than the value of the
UtilizationFilter.FilterEndOffset property and should always be great er than or equal 1.
Integer R/W 0
UtilizationFilter.FilterTime Property
The UtilizationFilter.FilterTime property specifies the time unit for a custom filter type. This filter value
is only legitimate when the UtilTimeFilterType is set to Custom. If the UtilTimeFilterType property is
not set to Custom, this property is set to the value that matches the type:
Hour if type is ThisHour or LastNHours
Shift if type is ThisShift or LastShift
Day if type is CurrentDay or Yesterday
Week if type is CurrentWeek or LastWeek
Month if type is CurrentMonth or LastMont h
When this property is set to Hour, the results will include data for 0 or more entire hour periods, relative to
the current time. For all other settings (Shift, Day, Week, Month, or Year), the results will start at the
beginning of the time unit specified by the UtilizationFilter.FilterStartOffset property.
UtilizationFilter.UtilFilterUnAck Property
The UtilizationFilter.UtilFilterUnAck property specifies whether unacknowledged events,
acknowledged events, or both types of events should be shown.
UtilizationFilter.UtilStatusFilter Property
The UtilizationFilter.UtilStatusFilter property determines what filtering, if any, will be performed based
on utilization status (that is, Run Time and Down Time).
UtilizationFilter.UtilTimeFilterType Property
The UtilizationFilter.UtilTimeFilterType property determines what time-based filtering, if any, will be
performed on the data.
UtilizationSplitEnabled Property
The UtilizationSplitEnabled property determines whether or not UtilizationSplit command is enabled.
This property is set to True if the command is enabled. Otherwis e it is set to False.
AddProduction() Method
The AddProduction() method can only be called when the AddProductionEnabled property is True.
Call this method to open a dialog box that allows for the entering either of good or rejected production.
The dialog box contains fields to set the amount of production to be added and to select the reason code
to associate with the production being added, the item that is being produced, the lot, and the storage
location for the produced item. If there are defaults for any of these fields, they will be filled in when the
dialog box is opened. Entering a quantity and clicking the Save button will add the good or rejected
production for the selected reason.
Syntax
AddProduction();
EditComment() Method
The EditComment() method can only be called when at least one row is selected on the Utilization
control's grid. Calling this method will open a dialog box that allows the edit ing of the comments for one or
more reasons without changing anything else about the reason. The dialog box will show the current
comments for the selected reas on or the selected reasons if multiple reasons are selected and the
comments are the same. If multiple reasons are selected and the comments are not the same for all, then
the Comments field will contain <various> to let the user know that the selected reasons do not all
have the same comments. The user can then edit the displayed comment and save it . If multiple reasons
are selected, the new comments will be saved to eac h even if the reasons did not have the same
comments initially.
Syntax
EditComment();
EditFinalReason() Method
Use the Edi tFinalReason() method to open the Edit Final Reason dialog box. The operator can edit the
final reas on of the currently selected grid row.
Syntax
EditFinalReason();
EndJob() Method
Use the EndJob() method to end the currently running job.
Syntax
EndJob();
Filter() Method
The Filter() method can only be called when the FilterEnabled property is set to True. Call this method
to open the same Filter dialog box that is used to set properties at design time.
Syntax
Filter();
GetButtonMenuItems() Method
Use the GetButtonMenuItem s() method to retrieve the button menu for the Utilization control. If no
Button Bar control is associated with the Utilization control, an empty button menu is returned.
Syntax
result = GetButtonMenuItems();
Parameter
result
The ButtonMenuArrayList for the Utilization control.
GetOEEExecData() Method
Use the GetOEEExecData() method to read the OEE Exec data for the specified entity. OEE Exec data
is the extra configuration data required for an entity which is capable of tracking OEE data.
Syntax
result = GetOEEExecData(entID);
Parameters
entID
The entity whose OEE Exec data is to be retrieved.
result
A dataset containing dat a for the specified entity from the OEE_Exec table.
SetPastReason() Method
Use the SetPastRea son() method to open the Set Past Reason dialog box. The operator can set the
reason and an optional comment for the currently selected reason-pending row in the grid.
Syntax
SetPastReason();
SetReason() Method
Use the SetReason() method to open the Set Reason dialog box. The operator can change the current
reason on the current entity.
Syntax
SetReason();
StartDEJob() Method
Use the StartDEJob() met hod to open the dialog box for starting a data ent ry job.
Syntax
StartDEJob();
UtilizationSplit() Method
Use the UtilizationSplit() method to open the Utilization Split dialog box. You can split the selected
utilization reason and/or change the comments and reason code.
Syntax
UtilizationSplit();
A PPENDIX A
Buttons
In This Appendix
Introduction to Buttons ................................................................................................................ 272
Action ........................................................................................................................................ 273
Accept Job ................................................................................................................................. 273
Add Consumption ....................................................................................................................... 273
Add Production ........................................................................................................................... 273
Authorize.................................................................................................................................... 274
Add/Assign SNo's ....................................................................................................................... 274
BOM Preview ............................................................................................................................. 274
Bypass....................................................................................................................................... 274
Copy Row .................................................................................................................................. 275
Complete ................................................................................................................................... 275
Create Work Order ..................................................................................................................... 275
Delet e Lot and Sublots ................................................................................................................ 276
Delet e Rows ............................................................................................................................... 276
Edit ............................................................................................................................................ 276
EditComment ............................................................................................................................. 276
Edit Reason ............................................................................................................................... 277
Edit Results ................................................................................................................................ 277
Edit Row .................................................................................................................................... 277
Edit Sample................................................................................................................................ 278
Edit Specs.................................................................................................................................. 278
End Job ..................................................................................................................................... 278
Entity Logon ............................................................................................................................... 278
E vent ......................................................................................................................................... 279
Execute...................................................................................................................................... 279
File Filter .................................................................................................................................... 279
Filter .......................................................................................................................................... 279
Help ........................................................................................................................................... 280
Insert Entity Usage Row .............................................................................................................. 280
Insert Job Detail Row .................................................................................................................. 280
Insert Lot or Sublot ..................................................................................................................... 280
Insert New Row .......................................................................................................................... 281
Job Attributes ............................................................................................................................. 281
Job Logoff .................................................................................................................................. 281
Launch Browser.......................................................................................................................... 281
Link Jobs.................................................................................................................................... 282
Log In ........................................................................................................................................ 282
Log Out ...................................................................................................................................... 282
Login ......................................................................................................................................... 282
Logout ....................................................................................................................................... 283
Lot Attributes .............................................................................................................................. 283
New Row ................................................................................................................................... 283
Notes ......................................................................................................................................... 283
Open/Launch Form ..................................................................................................................... 284
Pause Job .................................................................................................................................. 284
Print ........................................................................................................................................... 284
Process...................................................................................................................................... 285
Pull Sample ................................................................................................................................ 285
Receive Inventory ....................................................................................................................... 285
Reclassify .................................................................................................................................. 285
Reduce Consumption.................................................................................................................. 286
Reduce Production ..................................................................................................................... 286
Refresh ...................................................................................................................................... 286
Rejects....................................................................................................................................... 286
Remove ..................................................................................................................................... 287
Rename Lot or Sublot ................................................................................................................. 287
Rework ...................................................................................................................................... 287
Save Row .................................................................................................................................. 287
Scrap ......................................................................................................................................... 288
Set Lot Data ............................................................................................................................... 288
Set Past Reason......................................................................................................................... 288
Set Reason ................................................................................................................................ 288
Show List ................................................................................................................................... 289
SPC Chart .................................................................................................................................. 289
Split Job ..................................................................................................................................... 289
Split Lot...................................................................................................................................... 289
Start Job .................................................................................................................................... 290
Start Some ................................................................................................................................. 290
Switch User ................................................................................................................................ 290
Toggle Chart .............................................................................................................................. 291
Toggle Sample Final Flag............................................................................................................ 291
Trans fer In.................................................................................................................................. 291
Trans fer Out ............................................................................................................................... 291
Trans fer Serial Numbers ............................................................................................................. 292
UnPull Sample............................................................................................................................ 292
Update Job Spec. Values ............................................................................................................ 292
Update Template Spec. Values ................................................................................................... 292
Utilization Split ............................................................................................................................ 293
View .......................................................................................................................................... 293
View Flow Diagram ..................................................................................................................... 293
View Item Attributes .................................................................................................................... 293
Waste ........................................................................................................................................ 294
Introduction to Buttons
The buttons that are available to be used with .NE T control methods are listed and described here.
The description includes:
The button ID
The language ID
The button's tooltip
The language ID of the button's tooltip
Which controls can use the button
The tooltip shown for each button is the tooltip for the default language, English. The tooltip text can be
replaced by setting up a new language and configuring the button bar.
Look in the Ui_Button database table for ID, language string, and tooltip information.
Action
The Action button executes the step action.
Button ID 251
Language ID 702
Accept Job
The Accept Job button marks a job as ready to run.
Button ID 40
Language ID 4473
Add Consumption
The Add Consumption button opens the dialog box for adding consumption.
Button ID 82
Language ID 3675
Add Production
The Add Production button opens a dialog box that allows for the entering either of good or rejected
production. The dialog box contains fields to set the amount of production to be added and to select the
reason code to associate with the production being added, the item t hat is being produc ed, the lot, and
the storage location for the produc ed item. If there are defaults for any of these fields, they will be filled in
when the dialog box is opened. Entering a quantity and clicking the Save button will add the good or
rejected production for the reason.
Button ID 60
Language ID 3674
Authorize
The Authorize button opens the Inspector dialog box which allows to authenticate a user.
Button ID 224
Language ID 4483
Tooltip Authorize
Add/Assign SNo's
The Add/Assign SNo’ s button opens the Add/Assign Serial Numbers dialog box for users to add
serial numbers and assign existing serial numbers to a job.
Button ID 316
Language ID 5357
BOM Preview
The BOM Preview button opens the BOM Preview dialog box to view the components needed for the
selected job and relevant information for each.
Button ID 238
Language ID 2967
Bypass
The Bypa ss button skips the step.
Button ID 254
Language ID 2047
Copy Row
The Copy Row button opens the Edit dialog box to create a new row. The new row is populated with the
data from the selected row.
Button ID 314
Language ID 5033
Complete
The Complete button accepts and completes the step.
Button ID 253
Language ID 705
Button ID 49
Language ID 1755
Button ID 323
Language ID 5375
Delete Rows
The Delete Rows button deletes one or more selected rows.
Button ID 313
Language ID 5028
Edit
The Edit button opens the editor to edit the selected file.
Button ID 265
Language ID 58
EditComment
The EditComment button opens a dialog box that shows the current comments for the selected reason
or the selected reas ons if multiple reasons are selected and the comments are the same. If multiple
reasons are selected and the comments are not the same for all, then the comments field will contain
<various> to let the user k now that the selected reasons do not all have the same comments. The user
can then edit the displayed comment and save it. If multiple reasons are selected, the new comments will
be saved to each even if the reasons did not have the same comments initially.
Button ID 317
Language ID 1
Edit Reason
The Edit Reason button opens the Edit Final Reason dialog box to change the final reason for the
currently selected grid row.
Button ID 294
Language ID 4805
Edit Results
The Edit Re sults button enables the editing mode for sample results.
Button ID 330
Language ID 7212
Edit Row
The Edit Row button opens the Edit dialog box for the selected row. For the Entity Usage Editor, this can
be a master (entity usage) row or a det ail (job) row.
Button ID 311
Language ID 5026
Edit Sample
The Edit Sample button enables the editing mode for sample information.
Button ID 326
Language ID 7208
Edit Specs
The Edit Specs button enables the editing mode for specification det ails.
Button ID 291
Language ID 3953
End Job
The End Job button ends a job.
For the Queue control, the End Job button ends the selected job.
For the Utilization control, the End Job button ends the current job.
Button ID 42
Language ID 370
Entity Logon
The Entity Logon allows the operator to log in to another machine.
Button ID 161
Language ID 4480
Event
The Event button opens a dialog box for entering a job event.
Button ID 255
Language ID 4176
Execute
The Execute button starts a program which is specified in the us er data for the button.
Button ID 12
Language ID 2095
File Filter
The File Filter button opens a dialog box to enter file filter for the folders tree.
Button ID 262
Language ID 3600
Filter
The Filter button opens a filter dialog box to filter the data shown on the control.
Button ID 24
Language ID 3122
Help
The Help button opens the help file.
Button ID 4
Language ID 62
Button ID 319
Language ID 5389
Button ID 320
Language ID 5390
Button ID 321
Language ID 5373
Button ID 312
Language ID 5027
Job Attributes
The Job Attribute s button opens the Job Attribute s dialog box for viewing, editing, and deleting job
attributes for the selected job.
Button ID 239
Language ID 2515
Job Logoff
The Job Logoff button logs the operator off the current dialog box.
Button ID 325
Language ID 5436
Launch Browser
The Launch Brow ser button opens the web page specified in the user data of the button.
Button ID 245
Language ID 4489
Link Jobs
The Link Jobs button opens the Select Jobs to Batch dialog box to select jobs to link together into a
batch.
Button ID 268
Language ID 4207
Log In
The Login button allows another operator to log on.
Button ID 6
Language ID 4468
Log Out
The Log Out button allows the operat or to log off.
Button ID 7
Language ID 4469
Login
The Login button allows operat or to log on to the step.
Button ID 225
Language ID 1253
Logout
The Logout button logs the operator off the step.
Button ID 226
Language ID 4484
Lot Attributes
The Lot Attribute s button displays lot attribut es.
Button ID 250
Language ID 2056
New Row
The New Row button opens a dialog box to add a row for the new set of data log samples.
Button ID 220
Language ID 4481
Notes
The Note s button opens a read-only dialog box for viewing the job, work order, or item notes for the
selected job and item it produces.
Button ID 227
Language ID 600
Open/Launch Form
The Open/Launch Form button opens the form specified in the user data. This button is only available
when the system parameter Path to form program is set.
Button ID 27
Language ID 4472
Pause Job
The Pause Job button pauses the selected job.
Button ID 43
Language ID 3993
Print
The Print button prints the selected file.
Button ID 201
Language ID 4
Process
The Proce ss button marks the selected production record as processed.
Button ID 62
Language ID 604
Pull Sample
The Pull Sample button opens a dialog box to modify the sample pull time.
Button ID 327
Language ID 7209
Receive Inventory
The Receive Inventory button enables receiving inventory from an external location.
Button ID 309
Language ID 5021
Reclassify
The Recla ssify button opens a dialog box to change the grade and status of the selected lot.
Button ID 102
Language ID 1832
Reduce Consumption
The Reduce Consumption button reduces the consumption for the selected row.
Button ID 241
Language ID 4488
Reduce Production
The Reduce Production button opens the Reduce Production dialog box to reduce the amount of
production reported in the selected production record.
Button ID 240
Language ID 4487
Refresh
The Refre sh button refreshes the control’s data.
Button ID 21
Language ID 945
Rejects
The Rejects button opens the Reclassi fy Production dialog box for rejecting some or all of the selected
production records.
Button ID 61
Language ID 1070
Remove
The Remove button deletes the selected Data Log row.
Button ID 101
Language ID 717
Button ID 324
Language ID 5376
Rework
The Rework button opens the Rework dialog box, which allows rework for steps.
Button ID 264
Language ID 1818
Save Row
The Save Row button saves the Data Log row.
Button ID 221
Language ID 4482
Scrap
The Scrap button removes all or some of the items from the inventory of the selected storage location.
Button ID 104
Language ID 4427
Button ID 84
Language ID 4288
Button ID 124
Language ID 4479
Set Reason
The Set Reason button opens the Set Reason dialog box, which allows the current reason on the
current entity to be changed.
Button ID 122
Language ID 4477
Show List
The Show List button displays the list of operators logged int o step.
Button ID 222
Language ID 3515
SPC Chart
The SPC Chart button displays an SPC chart.
Button ID 331
Language ID 7213
Split Job
The Split Job button opens the Split Job dialog box for splitting the selected job into two jobs.
Button ID 267
Language ID 1770
Split Lot
The Split Lot button splits items from the selected row into another lot.
Button ID 105
Language ID 4560
Start Job
The Start Job button starts a job.
For the Queue control, the Start Job button starts the selected job.
For the Utilization control, the Start Job button opens the Start Data Entry Job dialog box.
Button ID 41
Language ID 3992
Start Some
The Start Some button allows for the splitting off of required production quantity into a new job that is
then started on the active entity.
Button ID 310
Language ID 5022
Switch User
The Switch User button opens the Switch User dialog box to allow:
Switching between operators
Logging on new operators
Logging off existing operators
Changing the password of selected operators
Button ID 9
Language ID 1377
Toggle Chart
The Toggle Chart button switches between grid display and chart display.
Button ID 228
Language ID 4485
Button ID 329
Language ID 7211
Transfer In
The Transfer In button transfers inventory from another entity to the selected storage location.
Button ID 100
Language ID 1863
Transfer Out
The Transfer Out button trans fers inventory from the selected entity to another storage location.
Button ID 103
Language ID 1826
Button ID 318
Language ID 5372
UnPull Sample
The UnPull Sample button sets the sample pull time and pulled by fields for the selected sample to Null.
Button ID 328
Language ID 7210
Button ID 292
Language ID 3991
Button ID 293
Language ID 3997
Utilization Split
The Utilization Split button opens the Utilization Split dialog box for editing the duration and shift
information of the split events.
Button ID 332
Language ID 7380
View
The View button displays the document.
Button ID 200
Language ID 3126
Button ID 223
Language ID 1006
For the Production control, the item produced by the current job is used.
Button ID 229
Language ID 4497
Waste
The Waste button opens the dialog box for ent ering waste consumption for the selected item.
Button ID 83
Language ID 1071
Index
. A
.NET controls
Accept Job button • 273
animating • 47 Action button • 273
Application Server scripts, using properties ActionEnabled property (Steps control) • 248
in • 37 Add Consumption button • 273
ArchestrA symbol, docking in • 37 Add Production button • 273
Add/Assign SNo's button • 274
ArchestrA symbols, using in • 32
AddAssignSerialNumbers() method (Production
ArchestrA, exporting from • 26
control) • 146
ArchestrA, importing into • 22, 23 AddAssignSerialNumbersEnabled property
assemblies, viewing • 43 (Production cont rol) • 144
class name, viewing • 44 AddConsEnabled property (Consumption
control) • 80
common met hods • 55
AddConsumption() met hod (Consumption
common properties • 51 control) • 81
common properties, using • 37 AddNewRow() method (Dat a Log control) • 96
configuring event scripts • 27 AddProdEnabled property (Production control) •
entitiies, logging on automatically • 39 144
AddProduction() method (Production control) •
InTouch, using in • 32
146
introduction • 21, 22 AddProduction() method (Utilization control) •
logging on automatically • 38 268
MES Data Editor controls • 49 AddProductionEnabled property (Utilization
control) • 263
MES Operator cont rols • 47
AlarmPointColor property (SPC Chart control) •
miscellaneous controls • 49
211
objects referencing, viewing • 44 AllowConfiguration property (Button Bar control)
organizing • 22 • 69
properities, binding • 45 animations
DisplayEntity property (OEE KPI cont rol) • 87 EnableCollapsibleToggles property (SPC Chart
DisplayJobE ventDialog() method (Steps control) • 216
control) • 250 EnableDisableButtons() met hod (Queue
DisplayProjectedDetails property (Production control) • 164
Progress control) • 152 End Job button • 278
Display Titlebar property (Job Sumary control) • EndInit() method (common methods) • 55
128 EndJob() method (Queue control) • 164
Display XaxisLabelChanges property (SPC EndJob() method (Utilization control) • 269
Chart control) • 215 EndJobE nabled property (Queue control) • 160
Display XaxisLabelFrequency property (SPC EndJobE nabled property (Utilization control) •
Chart control) • 216 263
Dock property (Button Bar cont rol) • 71 EndTimeFilter property (Sample Viewer control)
DurationRefreshRate property • 191
(Counts/Duration KPI control) • 87 EndTimeFilter property (SPC Chart control) •
216
Entity Logon button • 278
E Entity Usage Editor cont rol
Edit button • 276
configuring • 99
Edit Reason button • 277
Edit Results button • 277 methods • 100
Edit Row button • 277 properties • 99
Edit Sample button • 278 EntityFilter property (Sample Viewer control) •
Edit Specs button • 278 191
Edit() method (Folders control) • 104 EntityFilterRestriction property (Sample Viewer
EditComment button • 276 control) • 191
EditComment() method (Utilization control) • EntityIdFilter property (SPC Chart control) • 217
269 EntityNameFilter property (SPC Chart control) •
EditEnabled property (Folders control) • 102 217
EditFinalReason() method (Utilization control) • E vent button • 279
269 event scripts
EditFinalReasonEnabled property (Utilization configuring • 27
control) • 263
configuring example • 31
editing results
pre- and post-button click events • 29
sample viewer, processing results • 184
selected row changed event • 28
sample viewer, verifying result entries • 184
selected row changed event, properties • 29
Verify Write option, sample plan • 184
E ventEnabled property (Steps control) • 248
EditResultsEnabled property (Sample Viewer
Execute button • 279
control) • 190
Execute() method (c ommon methods) • 55
EditSampleE nabled property (Sample Viewer
ExecuteButtonMenuCommand() method
control) • 191
(common methods) • 56
EditSampleInfo() method (Sample Viewer
ExecuteEnabled property (common properties )
control) • 196
• 53
EditSampleResults() method (Sample Viewer
ExecuteStepAction () method (Steps control) •
control) • 196
250
EditSpecificationsEnabled property (Spec
control) • 243
EnableButton() method (B utton Bar cont rol) • 74
F G
File Filter button • 279 GaugeBackColor property (OEE KPI control) •
FillSampleDataDuration() method 136
(Counts/Duration KPI control) • 90 GaugeBorderColor property (OEE KPI control) •
Filter button • 279 136
Filter() method (Counts/Duration KPI control) • GaugeBorderVisible property (OEE KPI control)
90 • 136
Filter() method (Folders control) • 104 GaugeFillColor property (OEE KPI cont rol) •
Filter() method (OEE KPI cont rol) • 141 136
Filter() method (Sample Viewer control) • 196 GaugeForeColor property (OEE KPI control) •
Filter() method (Utilization control) • 269 137
FilterDefaultsFromDB property GaugeGradientEnabled property (OEE KPI
(Counts/Duration KPI control) • 88 control) • 137
FilterDefaultsFromDB property (OEE KPI GaugeMarkerFont property (OEE KPI control) •
control) • 135 137
FilterDefaultsFromDB property (Utilization GaugeTextFont property (Production Progress
control) • 264 control) • 152
FilterDuration property (Counts/Duration KPI GaugeTitleFont property (OEE KPI control) •
control) • 88 137
FilterEnabled property (Consumption control) • GaugeTitleTextVisible property (OEE KPI
80 control) • 137
FilterEnabled property (Counts/Duration KPI GaugeValueTextVisible property (OEE KPI
control) • 88 control) • 138
FilterEnabled property (Folders control) • 102 Genealogy control
FilterEnabled property (OEE KPI control) • 135 configuring • 107
FilterEnabled property (Sample Viewer control)
methods • 108
• 192
properties • 108
FilterEnabled property (Utilization cont rol) • 264
GetButtonMenuItems() method (common
FirstZoneColor property (OEE KPI control) •
136 methods ) • 56
GetButtonMenuItems() method
FirstZoneColor property (Production Progress
(Counts/Duration KPI control) • 90
control) • 152
FirstZoneCut off (OEE KPI control) • 136 GetButtonMenuItems() method (Utilization
control) • 269
FirstZoneP ercent property (Production
GetOEEExecDat a() method (Utilization control)
Progress control) • 152
FlowDiagramEnabled property (Queue control) • 269
GetQuantityForDownstreamOperation()
• 161
method (Item Production Editor control) • 122
Folders control
Get TotalQuantityForOperation() method (Item
configuring • 101
Production Editor control) • 122
methods • 103 GraphBottomP os property (SPC Chart cont rol) •
properties • 102 217
Font property (common properties) • 53 GraphStart X property (SPC Chart control) • 217
Font property (Data Log control) • 94 GraphStopPos X property (SPC Chart control) •
Font property (Queue control) • 161 217
ForeColor property (Button Bar control) • 71
ResetButtonSize() met hod (Button Bar control) ResetUs eLargeTreeIcons() method (Folders
• 75 control) • 104
ResetControlInCharge() method (Button Bar ResetUs eLargeTreeIcons() method (Inventory
control) • 75 control) • 104
ResetDefaultButtonBackColor() method (Button ResetUs erButtonExecutionLevel() method
Bar control) • 75 (Button Bar control) • 77
ResetDefaultButtonForeColor() method (B utton ResetVerticalBoundary() method (Button Bar
Bar control) • 75 control) • 77
ResetDis play TitleBar() method (Job Sumary ResetVerticalSeparation() method (Button Bar
control) • 129 control) • 77
ResetDock() method (B utton Bar control) • 75 Rework button • 287
ResetFilters () method (SPC Chart control) • 242 ReworkEnabled property (Steps control) • 249
ResetFiltersEnabled property (SPC Chart Rout e control
control) • 226 configuring • 175
ResetForeColor() method (B utton Bar control) •
methods • 176
76
ResetHeadingFont() method (c ommon properties • 176
methods ) • 58
ResetHorizontalBoundary() method (B utton Bar S
control) • 76 sample points in SPC chart
ResetHorizontalSeparation() method (Button
adding a note to • 209
Bar control) • 76
Reset IgnoreRefreshE vents() method (common assigning a cause to • 208
methods ) • 59 marking as a control move • 210
ResetNumButtonLines() method (Button Bar marking to be ignored in sample
control) • 76 calculations • 210
ResetSaveConfigName() method (common Sample Viewer
methods ) • 59 context, selecting • 180
ResetScrollB uttonBackColor() met hod (Button
logging on to • 178
Bar control) • 76
ResetScrollB uttonForeColor() method (B utton result entries, editing • 183
Bar control) • 76 result entries, processing • 184
ResetScrollB uttonHeight() met hod (Button Bar result entries, verifying • 184
control) • 76 sample, marking as final • 182
ResetScrollB uttonWidth() method (Button Bar
samples, canceling • 185
control) • 76
ResetShowAllControlsButtons() method samples, color-c oding • 187
(Button Bar control) • 77 samples, displaying • 178
ResetShowE ntityTree() method (Inventory samples, editing • 181
control) • 114
samples, filtering • 185
ResetShowStorageStatusGrid() method
samples, pulling • 181
(Inventory control) • 114
ResetSize() method (Button Bar control) • 77 samples, unpulling • 182
ResetSpacerHeight() method (Button Bar SPC Chart, launching • 182
control) • 77 Verify Write option, sample plan • 184
ResetSpacerWidth() method (B utton Bar Sample Viewer control
control) • 77
SetLotData() method (Steps control) • 252 ShowRes ultValues property (SPC Chart
SetLotDataEnabled property (Consumption control) • 232
control) • 81 ShowS ampleSizes property (SPC Chart
SetLotDataEnabled property (Production control) • 233
control) • 145 ShowS econdary Chart property (SPC Chart
SetLotDataEnabled property (Steps control) • control) • 233
249 ShowS econdary Histogram property (SP C Chart
SetPastReason() method (Utilization control) • control) • 234
270 ShowTable property (SPC Chart control) • 235
SetPastReasonEnabled property (Utilization ShowTimes property (SPC Chart control) • 235
control) • 264 ShowWOFlowDiagram() method (Queue
SetReas on() method (Utilization control) • 270 control) • 173
SetReas onEnabled property (Utilization control) ShowZones property (SPC Chart control) • 236
• 264 Signoff() method (Audit cont rol) • 64
SetSortColumns () method (Queue control) • SiteNameFilter property (SPC Chart control) •
173 236
Show List button • 289 Size property (Button Bar control) • 73
Show_BOMStep_Filter_Dialog() method SpacerHeight property (Button Bar control) • 73
(Consumption control) • 81 SpacerWidth property (Button Bar cont rol) • 73
ShowAlarmIndicators property (SPC Chart SpareNFilter properties (SPC Chart control) •
control) • 227 237
ShowAllControlB uttons property (Button Bar SPC Chart
control) • 72 cause, assigning to a sample point • 208
ShowCalculatedV alues property (SPC Chart
chart types • 202
control) • 228
ShowControlMove property (SPC Chart control) colored zones for standard deviations • 236
• 229 control rule violations, displaying • 203
ShowCpkValues property (SPC Chart control) • data, displaying • 201
229 data, retrieving • 200
ShowCpV alues property (SPC Chart control) •
hiding and showing areas • 206
229
ShowIgnoreS ample property (SPC Chart note, adding to a sample point • 209
control) • 230 sample point, marking as a control move •
ShowListEnabled property (Steps control) • 249 210
ShowNot esIndicators property (SPC Chart sample point, marking to be ignored in
control) • 230 sample calculations • 210
ShowOperat orsOnThisStep() method (Steps zooming on • 207
control) • 252
SPC Chart button • 289
ShowP pkValues property (SPC Chart control) •
SPC Chart control
231
methods • 241
ShowP pValues property (SPC Chart control) •
231 properties • 211
ShowP rimaryChart property (SPC Chart runtime interaction • 205
control) • 231 using • 200
ShowP rimaryHistogram property (SPC Chart SpcChartEnabled property (Sample Viewer
control) • 232 control) • 194
Spec control
configuring • 243
methods • 245 T
properties • 243 TableAlarmEmphasis property (SPC Chart
Split Job button • 289 control) • 237
Split Lot button • 289 TableB ackgroundColor property (SPC Chart
split utilization control) • 238
deleting after • 261 TableStripeColor properties (SPC Chart control)
• 238
deleting before • 261
TargetBarColor property (Production Progress
splitting after • 261 control) • 153
splitting before • 261 TargetQuantity property (Production Progress
Start Job button • 290 control) • 154
Start Some button • 290 TargetQuantityChanged event (Production
StartDEJob() method (Utilization cont rol) • 270 Progress control) • 156
StartDEJobE nabled property (Utilization TargetRate property (Production Progress
control) • 264 control) • 154
StartDEJobP rodRat eFieldVisible property TargetRateChanged event (Production
(Utilization cont rol) • 265 Progress control) • 156
StartDEJobUOMFieldVisible property TargetRateFromDB property (Production
(Utilization cont rol) • 265 Progress control) • 154
StartJob() method (Queue control) • 173 TargetUnreachable property (Production
StartJobEnabled property (Queue control) • 163 Progress control) • 154
StartSomeEnabled property (Queue control) • TargetValue property (OEE KPI control) • 140
163 ThirdZoneColor property (OEE KPI control) •
StartTimeFilter property (Sample Viewer 141
control) • 194 ThirdZoneColor property (Production Progress
StartTimeFilter property (SPC Chart control) • control) • 155
237 Toggle Chart button • 291
StatusChanged event (S ample Viewer cont rol) • Toggle Sample Final Flag button • 291
198 ToggleChartEnabled property (Data Log
StatusFilter property (Sample Viewer control) • control) • 96
194 ToggleFinalFlag() method (Sample Viewer
StepBypass() method (Steps control) • 252 control) • 197
StepComplet e() method (Steps control) • 253 ToggleSampleFinalFlagEnabled property
StepLogin() method (Steps control) • 253 (Sample Viewer cont rol) • 195
StepNo property (Data Log control) • 95 Trans fer In button • 291
Steps control Trans fer Out button • 291
configuring • 247 Trans fer Serial Number button • 292
methods • 250 Trans ferSerialNumbers() method (Production
control) • 147
properties • 248
Trans ferSerialNumbersEnabled property
storage entity status • 112
(Production cont rol) • 145
SublotNo property (Data Log control) • 95
Translat eColumnHeadings() method (common
Switch User button • 290
methods ) • 59
SwitchUser() method (common methods) • 59
symbols, referencing .NE T cont rols • 44
UtilizationFilter.FilterMinDuration property
(Utilization cont rol) • 266
U UtilizationFilter.FilterStartOffset property
UnPull Sample button • 292
(Utilization cont rol) • 266
UnpullSampleEnabled property (Sample
UtilizationFilter.FilterTime property (Utilization
Viewer control) • 195
control) • 267
UnregisterControl() met hod (B utton Bar control)
UtilizationFilter. UtilFilterUnAck property
• 78
(Utilization cont rol) • 267
Update Job Spec. Values button • 292
UtilizationFilter. UtilStatusFilter property
Update Template Spec. Values button • 292
(Utilization cont rol) • 267
UpdateDisplay() method (Counts/Duration KP I
UtilizationFilter. UtilTimeFilterType property
control) • 90
(Utilization cont rol) • 268
UpdateJobSpecsEnabled property (Spec
UtilizationSplit() method (Utilization control) •
control) • 244
270
UpdateSpecValues() method (S pec control) •
UtilizationSplitEnabled property (Utilization
246
control) • 268
UpdateTemplat eSpecsEnabled property (Spec
UtilRefreshEnabled property (Utilization control)
control) • 244
• 265
UseLargeTreeIcons property (Folders control) •
103
UserButtonExecutionLevel property (Button Bar V
control) • 73 ValidEntityFilter() method (Sample Viewer
UserFilter property (Sample Viewer control) • control) • 198
195 ValueFont property (Counts/Duration KPI
UserId property (SPC Chart control) • 239 control) • 89
Utilization control ValueFontColor property (Counts/Duration KPI
Button Bar control, associating • 257 control) • 90
ValueLegendLabelFont property (Production
configuring • 255
Progress control) • 155
entities, switching • 257
ValueLegendValueBackColor property
events, splitting • 261 (Production Progress control) • 155
filtering records • 258 ValueLegendValueColor property (Production
methods • 268 Progress control) • 155
ValueLegendValueFont property (Production
properties • 263
Progress control) • 155
reasons, mutliple selections • 259 VerticalBoundary property (Button Bar control) •
split functionality, configuring • 259 73
split functionality, using • 261 VerticalSeparation property (Button Bar control)
• 74
using • 256
Utilization Split button • 293 View button • 293
View Flow Diagram button • 293
UtilizationFilter.FilterEndOffset property
View Item Attributes button • 293
(Utilization cont rol) • 265
UtilizationFilter.FilterLastNE vents property View() method (Folders control) • 105
ViewEnabled property (Folders cont rol) • 103
(Utilization cont rol) • 266
ViewEnabled property (Steps control) • 249
UtilizationFilter.FilterLastNHours property
(Utilization cont rol) • 266 ViewItemAttribut esEnabled property
(Production cont rol) • 145
W
Waste button • 294
WorkOrderFilter to filter (Sample Viewer
control) • 195
WorkOrderIdFilt er property (SPC Chart control)
• 239
X
XAxisLabel property (SPC Chart control) • 239
XAxisLabelRotation property (SPC Chart
control) • 240
Xceed.Grid.RowSelectedJobSpecGroupRow
property (Spec control) • 244