Revision A
Last Revision: 11/12/08
Copyright
2008 Invensys Systems, Inc. All Rights Reserved.
All rights reserved. No part of this documentation shall be reproduced, stored in a
retrieval system, or transmitted by any means, electronic, mechanical,
photocopying, recording, or otherwise, without the prior written permission of
Invensys Systems, Inc. No copyright or patent liability is assumed with respect to
the use of the information contained herein. Although every precaution has been
taken in the preparation of this documentation, the publisher and the author
assume no responsibility for errors or omissions. Neither is any liability assumed
for damages resulting from the use of the information contained herein.
The information in this documentation is subject to change without notice and does
not represent a commitment on the part of Invensys Systems, Inc. The software
described in this documentation is furnished under a license or nondisclosure
agreement. This software may be used or copied only in accordance with the terms
of these agreements.
Invensys Systems, Inc.
26561 Rancho Parkway South
Lake Forest, CA 92630 U.S.A.
(949) 727-3200
http://www.wonderware.com
For comments or suggestions about the product documentation, send an e-mail
message to productdocs@wonderware.com.
Trademarks
All terms mentioned in this documentation that are known to be trademarks or
service marks have been appropriately capitalized. Invensys Systems, Inc. cannot
attest to the accuracy of this information. Use of a term in this documentation
should not be regarded as affecting the validity of any trademark or service mark.
Alarm Logger, ActiveFactory, ArchestrA, Avantis, DBDump, DBLoad, DT Analyst,
Factelligence, FactoryFocus, FactoryOffice, FactorySuite, FactorySuite A2, InBatch,
InControl, IndustrialRAD, IndustrialSQL Server, InTouch, MaintenanceSuite,
MuniSuite, QI Analyst, SCADAlarm, SCADASuite, SuiteLink, SuiteVoyager,
WindowMaker, WindowViewer, Wonderware, Wonderware Factelligence, and
Wonderware Logger are trademarks of Invensys plc, its subsidiaries and affiliates.
All other brands may be trademarks of their respective owners.
Contents
Welcome.......................................... 19
Documentation Conventions.............................................19
Technical Support .............................................................20
10
11
12
13
RestoreControlsVisibility() Method.............................442
RestoreControlsVisibilityFromDefaults() Method......444
RestoreTabsVisibilityFromDefaults() Method............445
SaveControlsVisibility() Method .................................446
SaveControlsVisibilityAsDefaults() Method ...............447
SaveTabsVisibility() Method........................................448
SaveTabsVisibilityAsDefaults() Method .....................450
SaveUIConfigDefaultValue() Method .........................451
SaveUIConfigDefaultValues() Method........................452
SaveUIConfigValue() Method ......................................453
SaveUIConfigValues() Method ....................................455
User Class ........................................................................456
User Constructor ..........................................................456
AddUserToGroups () Method .......................................457
ChangePassword() Method ..........................................458
CloneUser() Method .....................................................459
GetEntList() Method ....................................................460
IsUserLoggedIntoJob() Method (Int32, String, String,
Int32) ........................................................................461
IsUserLoggedIntoJob() Method (String, String, Int32)....
462
IsUserLoggedOntoEnt() Method .................................463
JobBasedLogin() Method..............................................464
LogoffEnt Method.........................................................465
LogoffEntList() Method................................................465
LogOffJob() Method......................................................466
LogOffJobWithDialog() Method...................................468
LogonEnt() Method.......................................................469
LogonEntList() Method (Int32[]) .................................470
LogonEntList() Method (String, DataTable)...............471
LogonEntWithDialog() Method (Boolean)...................472
LogonEntWithDialog() Method (Boolean, Object) ......473
LogonEntWithDialog() Method (Boolean, Object, String)
474
LogOnJob() Method ......................................................475
MayAccessEntity() Method ..........................................477
RefreshCurUserStatusRecordset() Method ................478
RefreshCurUserStatusRecordset Method (DataSet)..478
SaveEntList() Method ..................................................479
UpdateUser() Method...................................................480
curEnt Property............................................................481
EntList Property...........................................................482
EntsStatusInfo Property ..............................................482
14
15
16
17
SetFont() Method..........................................................588
SetTextFromKeyPad() Method (Control, String) .......589
SetTextFromKeyPad() Method (Control, String, Int32) ..
590
ShowHelpFile() Method ...............................................591
ShowJobFlowDiagram() Method .................................591
TranslateForm() Method (Control)..............................592
TranslateForm() Method (Control, ILanguageStrings)....
593
UtilRawReason Class......................................................594
AddUtilRawReasonLink() Method ..............................594
Delete() Method ............................................................595
DeleteUtilRawReasonLink() Method ..........................596
GetAllUtilRawReasonLinks() Method ........................597
GetAllUtilRawReasonLinks() Method ........................598
GetAllUtilRawReasonLinks() Method ........................599
GetAllUtilRawReasonLinks() Method ........................600
GetAllUtilRawReasonLinks() Method ........................600
GetUtilRawReasons() Method .....................................601
GetUtilRawReasons() Method .....................................602
Refresh() Method ..........................................................603
Save() Method ...............................................................604
UtilReason Class .............................................................604
Delete() Method ............................................................604
GetUtilReasons() Method.............................................605
LoadHashTableWithUtilReasonData() Method .........605
Refresh() Method ..........................................................606
Save() Method ...............................................................606
UtilReasonGrp Class.......................................................607
Delete() Method ............................................................607
GetUtilReasonGroups() Method ..................................608
Refresh() Method ..........................................................608
Save() Method ...............................................................609
UtilState Class ................................................................610
Delete() Method ............................................................610
GetAllStates() Method..................................................610
GetStateDataFromComboBoxEntry() Method ...........611
PopulateComboBoxWithEntStates() Method .............612
Refresh() Method ..........................................................613
Save() Method ...............................................................613
18
19
Welcome
This guide shows you how to use the Factelligence Client API
within the ArchestrA Integrated Development Environment
(IDE) to develop and customize ArchestrA scripts.
You can view this document online or you can print it, in part
or whole, by using the print feature in Adobe Acrobat Reader.
This guide assumes you know how to use Microsoft Windows,
including navigating menus, moving from application to
application, and moving objects on the screen. If you need
help with these tasks, see the Microsoft online help.
In some areas of the Industrial Application Server, you can
also right-click to open a menu. The items listed on this menu
change, depending on where you are in the product. All items
listed on this menu are available as items on the main
menus.
Documentation Conventions
This documentation uses the following conventions:
Convention
Used for
Initial Capitals
Bold
Monospace
20
Welcome
Technical Support
Wonderware Technical Support offers a variety of support
options to answer any questions on Wonderware products
and their implementation.
Before you contact Technical Support, refer to the relevant
section(s) in this documentation for a possible solution to the
problem. If you need to contact technical support for help,
have the following information ready:
21
Chapter 2
Introduction to Factelligence
API Scripts in ArchestrA
22
AddAttrArrayList
aaAddAttrArrayList
ClientSession
aaClientSession
Users
aaUsers
Click OK.
23
Function name
Function parameters
24
25
On the left pane, locate the function for which you want
to determine the return result data type.
In the syntax for Visual Basic, read the data type of the
return result. In this example it would be Boolean.
26
27
Chapter 3
Using the Factelligence Client API
Sample Script
Init
Log on to an entity.
LogonEnt
ShowEntityData
GetCurrentUserInfo
UserChanged
Monitor events.
MonitorEvents
LogOffEnt
Term
28
Using Sessions
The key to writing script for Factelligence is the session.
In order to use any Factelligence functionality, you must first
create a session.
EntityName
The EntityName attribute is a string used as an input
argument to several scripts.
UserChanged
The UserChanged attribute is a string that is set by the
MonitorEvents script to trigger the UserChanged script.
LogonEntTrig
The LogonEntTrig attribute is a Boolean value that ,
when set to TRUE, triggers the LogonEnt script.
LogoffEntTrig
The LogoffEntTrig attribute is a Boolean value that,
when set to TRUE, triggers the LogOffEnt script.
GetCurUserInfoTrig
The GetCurUserInfoTrig is a Boolean value that, when
set to TRUE, triggers the GetCurrentUserInfo script.
ShowEntityDataTrig
The ShowEntityDataTrig is a Boolean value that, when
set to TRUE, triggers the ShowEntityData script.
Creating Sessions
You use the aaFactMES.aaClientSession object to create and
manage a Factelligence session. There is only one
aaFactMES.aaClientSession object created for an
application, but there may be many references to that object.
You get a reference to the object by calling the
aaFactMES.aaClientSession.GetInstance method. The first
time this method is called, it creates the object; all
subsequent calls return a reference to that object.
For an example, see the Example: Init Script on page 29.
Using Sessions
29
Starting Sessions
After you create an aaFactMES.aaClientSession object, you
can use it to start a Factelligence session with the
Factelligence middleware. The Factelligence middleware
requires a session in order for most functions to work.
30
Logging on to Entities
After the user logs in, the user will need to log on to one or
more entities. If you are using Factelligence controls in your
application, they can be set up to display a dialog for allowing
the user to log onto one or more entities.
Using Sessions
31
32
Using Sessions
33
34
Using Sessions
35
36
Using Sessions
37
Next;
if (entNameList.Length > 0) then
LogMessage("The user is logged onto the following Entities: " + entNameList);
else
LogMessage("The user is not logged onto any entities");
endif;
LogMessage("***********************************************");
endif;
38
Ending Sessions
When the application is terminating, you can use the code in
the Term script shown below to end the session. If you do not
end a session, the Factelligence Service cleans it up as soon
as it determines that the session is stale.
Web Access
39
Web Access
Wonderware Factelligence provides a variety of extensibility
capabilities to application authors, enabling access to the
core business logic, runtime data, and historical data store at
the heart of the product. The Web Access feature exposes the
Factelligence Middleware functionality through a
standardized Web Service.
Note It is assumed that the reader and the application
programmer have a solid understanding and working knowledge of
the Factelligence Client API.
40
Web Access
41
responseStream.Close();
reader.Close();
request = null;
response = null;
QueryStream = null;
responseStream = null;
reader = null;
42
43
Chapter 4
API Classes
Attrs Class
The Attrs class contains methods that retrieves and sets
various attributes within the Factelligence system.
Attrs Constructor
The Attrs Constructor initializes a new instance of the Attrs
class.
AddLotAttrs() Method
The AddLotAttrs() method adds the specified attribute to the
specified lot with an initial value.
Syntax
[C#]
public static void AddLotAttrs(
string itemId,
string lotNo,
int attrId,
string initialValue
)
[C++]
44
public:
static void AddLotAttrs(
String itemId,
String lotNo,
int attrId,
String initialValue
)
[J#]
public static void AddLotAttrs(
string itemId,
string lotNo,
int attrId,
string initialValue
)
[JScript]
public static function AddLotAttrs(
itemId : String,
lotNo : String,
attrId : int,
initialValue : String
)
Parameters
itemId
Holds the item ID used to identify the lot.
lotNo
Holds the lot number to identify the lot.
attrId
Holds the attribute ID to initialize for this lot.
initialValue
Holds the attribute value for this lot.
Exceptions
[C#]
public static int GetAttrID(
string attrName
)
Attrs Class
45
[C++]
public:
static int GetAttrID(
String attrName
)
[J#]
public static int GetAttrID(
string attrName
)
[JScript]
public static function GetAttrID(
attrName : String
) : int
Parameter
attrName
Holds the name of the attribute to look up.
Return Value
[C#]
public static int GetAttrID(
string attrName,
Nullable<int> attr_grp
)
[C++]
public:
static int GetAttrID(
String attrName,
Nullable<int> attr_grp
)
[J#]
public static int GetAttrID(
string attrName,
Nullable<int> attr_grp
)
46
[JScript]
public static function GetAttrID(
attrName : String,
attr_grp : Nullable<int>
) : int
Parameters
attrName
Holds the name of the attribute to look up.
attr_grp
Holds the attribute group type.
Return Value
Exception
GetAttrs() Method
The GetAttrs() method returns a DataSet containing all the
attributes defined on to the system.
Syntax
[C#]
[C++]
public:
static DataSet GetAttrs()
[J#]
[JScript]
public static
Return Value
Exceptions
GetAttrSet() Method
The GetAttrSet() method returns a DataSet containing all of
the possible attribute values for the given attribute name.
Attrs Class
47
Syntax
[C#]
public static DataSet GetAttrSet(
string attrName
)
[C++]
public:
static DataSet GetAttrSet(
String attrName
)
[J#]
public static DataSet GetAttrSet(
string attrName
)
[JScript]
public static function GetAttrSet(
attrName : String
) : DataSet
Parameter
attrName
Attribute name.
Return Value
GetAttrsVisibleInInv Method
The GetAttrsVisibleInInv() method returns a DataSet
containing all the attributes defined on the system that are
visible in inventory.
Syntax
[C#]
[C++]
public:
static DataSet GetAttrsVisibleInInv()
[J#]
48
[JScript]
public static
DataSet
function GetAttrsVisibleInInv() :
Return Value
Exceptions
[C#]
public static Attrs.attrValue GetAttrValue(
string attrName,
string tableName,
string filterField,
string filterValue
)
[C++]
public:
static
String
String
String
String
)
Attrs.attrValue GetAttrValue(
attrName,
tableName,
filterField,
filterValue
[J#]
public static Attrs.attrValue GetAttrValue(
string attrName,
string tableName,
string filterField,
string filterValue
Attrs Class
49
[JScript]
public static function GetAttrValue(
attrName : String,
tableName : String,
filterField : String,
filterValue : String
) : Attrs.attrValue
Parameters
attrName
Attribute name.
tableName
"Attribute" table name to be read, for example "item_attr"
for item attributes.
filterField
First filter field to be used, for example "item_ID".
filterValue
First filter value associated with the first filter field.
Return Value
[C#]
public static Attrs.attrValue GetAttrValue(
string attrName,
string tableName,
string filterField,
string filterValue,
string filterField1,
50
string filterValue1
)
[C++]
public:
static
String
String
String
String
String
String
)
Attrs.attrValue GetAttrValue(
attrName,
tableName,
filterField,
filterValue,
filterField1,
filterValue1
[J#]
public static Attrs.attrValue GetAttrValue(
string attrName,
string tableName,
string filterField,
string filterValue,
string filterField1,
string filterValue1
)
[JScript]
public static function GetAttrValue(
attrName : String,
tableName : String,
filterField : String,
filterValue : String,
filterField1 : String,
filterValue1 : String
) : Attrs.attrValue
Parameters
attrName
Attribute name.
tableName
"Attribute" table name to be read, for example "item_attr"
for item attributes.
filterField
First filter field to be used, for example "item_ID".
filterValue
First filter value associated with the first filter field.
filterField1
Second filter field to be used, for example "item_ID".
filterValue1
Second filter value associated with the second filter field.
Return Value
Returns an AttrValue object for the specified attribute.
Attrs Class
51
Exceptions
[C#]
public static Attrs.attrValue GetAttrValue(
string attrName,
string tableName,
string filterField,
string filterValue,
string filterField1,
string filterValue1,
string filterField2,
string filterValue2
)
[C++]
public:
static
String
String
String
String
String
String
String
String
)
Attrs.attrValue GetAttrValue(
attrName,
tableName,
filterField,
filterValue,
filterField1,
filterValue1,
filterField2,
filterValue2
[J#]
public static Attrs.attrValue GetAttrValue(
52
string
string
string
string
string
string
string
string
attrName,
tableName,
filterField,
filterValue,
filterField1,
filterValue1,
filterField2,
filterValue2
[JScript]
public static function GetAttrValue(
attrName : String,
tableName : String,
filterField : String,
filterValue : String,
filterField1 : String,
filterValue1 : String,
filterField2 : String,
filterValue2 : String
) : Attrs.attrValue
Parameters
attrName
Attribute name.
tableName
"Attribute" table name to be read, for example "item_attr"
for item attributes.
filterField
First filter field to be used, for example "item_ID".
filterValue
First filter value associated with the first filter field.
filterField1
Second filter field to be used, for example "item_ID".
filterValue1
Second filter value associated with the second filter field.
filterField2
Third filter field to be used, for example "item_ID".
filterValue2
Third filter value associated with the third filter field.
Return Value
Exceptions
Attrs Class
53
[C#]
public static DataSet GetEntAttrs(
int entId
)
[C++]
public:
static DataSet GetEntAttrs(
int entId
)
[J#]
public static DataSet GetEntAttrs(
int entId
)
[JScript]
public static function GetEntAttrs(
entId : int
) : DataSet
Parameter
entId
Holds the entity for which attributes are requested.
Return Value
[C#]
54
[C++]
public:
static DataRow GetEntAttrs(
int entId,
int attrId
)
[J#]
public static DataRow GetEntAttrs(
int entId,
int attrId
)
[JScript]
public static function GetEntAttrs(
entId : int,
attrId : int
) : DataRow
Parameters
entId
Holds the entity for which the attribute is requested.
attrId
Holds the attribute ID requested for this entity.
Return Value
GetJobAttrs() Method
The GetJobAttrs() method gets the job attributes for the
specified job. A job is specified by a work order ID, an
operation ID, and an operation sequence number.
Syntax
[C#]
public static DataSet GetJobAttrs(
string woId,
string operId,
int seqNo
Attrs Class
55
[C++]
public:
static DataSet GetJobAttrs(
String woId,
String operId,
int seqNo
)
[J#]
public static DataSet GetJobAttrs(
string woId,
string operId,
int seqNo
)
[JScript]
public static function GetJobAttrs(
woId : String,
operId : String,
seqNo : int
) : DataSet
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
Return Value
GetLotAttrs() Method
The GetLotAttrs() method retrieves lot attributes based on
the itemId, lotNo, and attrId parameters. Use nulls for any
parameter not needed.
Syntax
56
[C#]
public static DataSet GetLotAttrs(
string itemId,
string lotNo,
object attrId
)
[C++]
public:
static
String
String
Object
)
DataSet GetLotAttrs(
itemId,
lotNo,
attrId
[J#]
public static DataSet GetLotAttrs(
string itemId,
string lotNo,
object attrId
)
[JScript]
public static function GetLotAttrs(
itemId : String,
otNo : String,
attrId : Object
) : DataSet
Parameters
itemId
Optionally filters the DataSet to an individual item's lot
number attributes.
lotNo
Optionally filters the DataSet to an individual lot number's
attributes.
attrId
Optionally filters the DataSet to a single lot number
attribute.
Return Value
Exceptions
Attrs Class
57
GetWOAttrs() Method
The GetWOAttrs() method gets the work order attributes for
the specified work order. Caller must catch any exception if
this call fails.
Syntax
[C#]
public static DataSet GetWOAttrs(
string woId
)
[C++]
public:
static DataSet GetWOAttrs(
String woId
)
[J#]
public static DataSet GetWOAttrs(
string woId
)
[JScript]
public static function GetWOAttrs(
woId : String
) : DataSet
Parameter
woId
Holds the job's work order ID.
Return Value
Exceptions
58
[C++]
public:
static void PopupItemAttributes(
String itemID
)
[J#]
public static void PopupItemAttributes(
string itemID
)
[JScript]
public static function PopupItemAttributes(
itemID : String
)
Parameter
itemID
Holds the ID of the item for which to view/edit attributes.
[C#]
public static void PopupItemAttributes(
string itemID,
bool viewOnly
)
[C++]
public:
static void PopupItemAttributes(
String itemID,
bool viewOnly
)
Attrs Class
59
[J#]
public static void PopupItemAttributes(
string itemID,
bool viewOnly
)
[JScript]
public static function PopupItemAttributes(
itemID : String,
viewOnly : bool
)
Parameters
itemID
Holds the ID of the item for which to view/edit attributes.
viewOnly
Holds a flag indicating whether or not the user should only
be allowed to view the attributes.
[C#]
public static void PopupJobAttrsDlg(
string woId,
string operId,
int seqNo,
string jobDesc
)
[C++]
public:
static void PopupJobAttrsDlg(
String woId,
String operId,
int seqNo,
String jobDesc
60
[J#]
public static void PopupJobAttrsDlg(
string woId,
string operId,
int seqNo,
string jobDesc
)
[JScript]
public static function PopupJobAttrsDlg(
woId : String,
operId : String,
seqNo : int,
jobDesc : String
)
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
jobDesc
Holds the description of the job.
[C#]
public static void PopupJobAttrsDlg(
string woId,
string operId,
int seqNo,
Attrs Class
61
string jobDesc,
ColumnList columns
)
[C++]
public:
static void PopupJobAttrsDlg(
String woId,
String operId,
int seqNo,
String jobDesc,
ColumnList columns
)
[J#]
public static void PopupJobAttrsDlg(
string woId,
string operId,
int seqNo,
string jobDesc,
ColumnList columns
)
[JScript]
public static function PopupJobAttrsDlg(
woId : String,
operId : String,
seqNo : int,
jobDesc : String,
columns : ColumnList
)
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
jobDesc
Holds the description of the job.
columns
Holds the list of columns in the queue grid.
62
Syntax
[C#]
public static void PopupLotNoAttributes(
string itemID,
string lotNo
)
[C++]
public:
static void PopupLotNoAttributes(
String itemID,
String lotNo
)
[J#]
public static void PopupLotNoAttributes(
string itemID,
string lotNo
)
[JScript]
public static function PopupLotNoAttributes(
itemID : String,
lotNo : String
)
Parameters
itemID
Holds the ID of the item which makes up half the key for
viewing and editing the attributes.
lotNo
Holds the lot number which makes up half the key for
viewing and editing the attributes.
Attrs Class
63
[C#]
public static void PopupLotNoAttributes(
string itemID,
string lotNo,
bool viewOnly,
ColumnList columns
)
[C++]
public:
static void PopupLotNoAttributes(
String itemID,
String lotNo,
bool viewOnly,
ColumnList columns
)
[J#]
public static void PopupLotNoAttributes(
string itemID,
string lotNo,
bool viewOnly,
ColumnList columns
)
[JScript]
public static function PopupLotNoAttributes(
itemID : String,
lotNo : String,
viewOnly : bool,
columns : ColumnList
)
Parameters
itemID
Holds the ID of the item which makes up half the key for
viewing and editing the attributes.
lotNo
Holds the lot number which makes up half the key for
viewing and editing the attributes.
viewOnly
Holds a flags whether attributes window should be view
only.
columns
Holds the list of columns in the inventory grid.
64
[C#]
public static bool SetAttrValue(
string attrName,
object attrVal,
string lastEdit,
string modId,
string tableName,
string filterField,
string filterValue,
bool bAdd
)
[C++]
public:
static bool SetAttrValue(
String attrName,
Object attrVal,
String lastEdit,
String modId,
String tableName,
String filterField,
String filterValue,
bool bAdd
)
[J#]
public static bool SetAttrValue(
string attrName,
object attrVal,
string lastEdit,
string modId,
string tableName,
string filterField,
string filterValue,
bool bAdd
Attrs Class
65
[JScript]
public static function SetAttrValue(
attrName : String,
attrVal : Object,
lastEdit : String,
modId : String,
tableName : String,
filterField : String,
filterValue : String,
bAdd : bool
) : bool
Parameters
attrName
Attribute name.
attrVal
Attribute value.
lastEdit
Last edit time.
modId
Mod ID.
tableName
"Attribute" table name to be read, for example "item_attr"
for item attributes.
filterField
First filter field to be used, for example "item_ID".
filterValue
First filter value associated with the first filter field.
bAdd
Set true if the attribute is being added or false if the
attribute is being updated.
Return Value
66
Syntax
[C#]
public static bool SetAttrValue(
string attrName,
object attrVal,
string lastEdit,
string modId,
string tableName,
string filterField,
string filterValue,
string filterField1,
string filterValue1,
bool bAdd
)
[C++]
public:
static bool SetAttrValue(
String attrName,
Object attrVal,
String lastEdit,
String modId,
String tableName,
String filterField,
String filterValue,
String filterField1,
String filterValue1,
bool bAdd
)
[J#]
public static bool SetAttrValue(
string attrName,
object attrVal,
string lastEdit,
string modId,
string tableName,
string filterField,
string filterValue,
string filterField1,
string filterValue1,
bool bAdd
Attrs Class
67
[JScript]
public static function SetAttrValue(
attrName : String,
attrVal : Object,
lastEdit : String,
modId : String,
tableName : String,
filterField : String,
filterValue : String,
filterField1 : String,
filterValue1 : String,
bAdd : bool
) : bool
Parameters
attrName
Attribute name.
attrVal
Attribute value.
lastEdit
Last edit time.
modId
Mod ID.
tableName
"Attribute" table name to be read, for example "item_attr"
for item attributes.
filterField
First filter field to be used, for example "item_ID".
filterValue
First filter value associated with the first filter field.
filterField1
Second filter field which can be used, for example
"item_ID".
filterValue1
Second filter value associated with the second filter field.
bAdd
Set true if the attribute is being added or false if the
attribute is being updated.
Return Value
68
[C#]
public static bool SetAttrValue(
string attrName,
object attrVal,
string lastEdit,
string modId,
string tableName,
string filterField,
string filterValue,
string filterField1,
string filterValue1,
string filterField2,
string filterValue2,
bool bAdd
)
[C++]
public:
static
String
Object
String
String
String
String
String
String
String
String
bool SetAttrValue(
attrName,
attrVal,
lastEdit,
modId,
tableName,
filterField,
filterValue,
filterField1,
filterValue1,
filterField2,
Attrs Class
69
String filterValue2,
bool bAdd
)
[J#]
public static bool SetAttrValue(
string attrName,
object attrVal,
string lastEdit,
string modId,
string tableName,
string filterField,
string filterValue,
string filterField1,
string filterValue1,
string filterField2,
string filterValue2,
bool bAdd
)
[JScript]
public static function SetAttrValue(
attrName : String,
attrVal : Object,
lastEdit : String,
modId : String,
tableName : String,
filterField : String,
filterValue : String,
filterField1 : String,
filterValue1 : String,
filterField2 : String,
filterValue2 : String,
bAdd : bool
) : bool
Parameters
attrName
Attribute name.
attrVal
Attribute value.
lastEdit
Last edit time.
modId
Mod ID.
tableName
"Attribute" table name to be read, for example "item_attr"
for item attributes.
filterField
First filter field to be used, for example "item_ID".
70
filterValue
First filter value associated with the first filter field.
filterField1
Second filter field to be used, for example "item_ID".
filterValue1
Second filter value associated with the second filter field.
filterField2
Third filter field to be used, for example "item_ID".
filterValue2
Third filter value associated with the third filter field.
bAdd
Set true if the attribute is being added or false if the
attribute is being updated.
Return Value
SetLotAttrs() Method
The SetLotAttrs() method adds or updates lot attributes.
LastEditAt is passed for updates to determine the lot
attribute record that is to be updated.
Syntax
[C#]
public static void SetLotAttrs(
string itemId,
string lotNo,
int attrId,
string attrValue,
string notes,
string lastEditAt
)
[C++]
public:
static void SetLotAttrs(
String itemId,
String lotNo,
int attrId,
ClientSession Class
71
String attrValue,
String notes,
String lastEditAt
)
[J#]
public static void SetLotAttrs(
string itemId,
string lotNo,
int attrId,
string attrValue,
string notes,
string lastEditAt
)
[JScript]
public static function SetLotAttrs(
itemId : String,
lotNo : String,
attrId : int,
attrValue : String,
notes : String,
lastEditAt : String
)
Parameters
itemId
Hold the item ID identifying the lot.
lotNo
Holds the lot number identifying the lot.
attrId
Holds the ID of the attribute to set.
attrValue
Holds the value of the attribute.
notes
Holds the notes for the attribute.
lastEditAt
Holds the last edit datetime. Only required for updates;
pass null for adds.
Exceptions
ClientSession Class
The ClientSession class manages the Factelligence MES
session for an application. You can use it to start a session
with the Factelligence middleware, and log users into the
session. The ClientSession object has a property to indicate
Wonderware Factelligence Client API Reference Guide
72
the current user. Through the users, you can access the
entities that the users are logged on to and through the
entities, you access the jobs that are running on the entities.
There is only one ClientSession object for an application, and
the object exists from the time it is created until the
application ends. You get a reference to the ClientSession
object by calling the GetInstance() static method. The first
call to this method creates the ClientSession object.
ChangePassword() Method
The ChangePassword() method invokes the Change Password
dialog to allow the user to change their password. If the user
does not cancel the dialog, the user's password is changed to
the new password.
Syntax
[C#]
public bool ChangePassword(
string userId,
bool forceChange
)
[C++]
public:
bool ChangePassword(
String userId,
bool forceChange
) sealed
[J#]
public bool ChangePassword(
string userId,
bool forceChange
)
[JScript]
public function ChangePassword(
userId : String,
forceChange : bool
) : bool
Parameters
userId
Holds the ID of the user whose password is being changed.
ClientSession Class
73
forceChange
Holds a flag which is set true if a user must change their
password the next time they log on.
Return Value
Exceptions
ClearFormLoginStatus() Method
The ClearFormLoginStatus() method removes the form's name
from the Form Login Status collection. The form name is
used when there are multiple Factelligence controls on a
form that may request a log on. If the user cancels one login
request, the user should not be presented with login requests
from the rest of the controls on the form. This method should
be called when the form is being destroyed.
Syntax
[C#]
public void ClearFormLoginStatus(
string formName
)
[C++]
public:
void ClearFormLoginStatus(
String formName
) sealed
[J#]
public void ClearFormLoginStatus(
string formName
)
[JScript]
public function ClearFormLoginStatus(
formName : String
)
Parameter
formName
Holds the name of the form which is being destroyed.
74
CloseChildForms() Method
The CloseChildForms() method closes all open dialogs. This
method not works inside of InTouch.
Syntax
[C#]
public void CloseChildForms(
Form form
)
[C++]
public:
void CloseChildForms(
Form form
) sealed
[J#]
public void CloseChildForms(
Form form
)
[JScript]
public function CloseChildForms(
form : Form
)
Parameter
form
Holds the Form to close and search for children.
[C#]
[C++]
public:
void EndSession() sealed
[J#]
ClientSession Class
75
[[JScript]#]
public
function EndSession()
Exceptions
[C#]
public DataRow GetCurUserCurEntInfo(
int entID,
int jobPos
)
[C++]
public:
DataRow GetCurUserCurEntInfo(
int entID,
int jobPos
) sealed
[J#]
public DataRow GetCurUserCurEntInfo(
int entID,
int jobPos
)
[JScript]
public function GetCurUserCurEntInfo(
entID : int,
jobPos : int
) : DataRow
Parameters
entID
Holds the ID of the entity.
jobPos
Holds the job position of the entity.
76
Return Value
[C#]
public DataSet GetCurUserCurEntInfo(
object jobPos,
object entityID
)
[C++]
public:
DataSet GetCurUserCurEntInfo(
Object jobPos,
Object entityID
) sealed
[J#]
public DataSet GetCurUserCurEntInfo(
object jobPos,
object entityID
)
[JScript]
public function GetCurUserCurEntInfo(
jobPos : Object,
entityID : Object
) : DataSet
Parameters
jobPos
Holds an optional parameter used to specify the Job
Position. Pass a null to not specify a job position or an
integer representing the job position.
ClientSession Class
77
entityID
Holds an optional parameter used to specify the Entity ID.
Pass a null to not specify an entity or an integer
representing the entity ID. If no entity is specified, the
current entity for the user is used.
Return Value
GetDS() Method
The GetDS() method gets a DataSet based on the XML
containing a call to the middleware.
Syntax
[C#]
public DataSet GetDS(
string xmlRequest
)
[C++]
public:
DataSet GetDS(
String xmlRequest
) sealed
[J#]
public DataSet GetDS(
string xmlRequest
)
[JScript]
public function GetDS(
xmlRequest : String
) : DataSet
Parameter
xmlRequest
Holds an XML string containing a middleware request.
Return Value
Exceptions
78
GetDSbySQL() Method
The GetDSbySQL() method gets a new DataSet based on the
SQL statement passed as a parameter.
Syntax
[C#]
public DataSet GetDSbySQL(
string sql
)
[C++]
public:
DataSet GetDSbySQL(
String sql
) sealed
[J#]
public DataSet GetDSbySQL(
string sql
)
[JScript]
public function GetDSbySQL(
sql : String
) : DataSet
Parameter
sql
Holds the SQL statement to execute.
Return Value
Exceptions
GetInstance() Method
The GetInstance() method is a class level method that returns
a client session object. The first time this method is called it
creates the ClientSession object. Thereafter, it returns the
ClientSession object created by the first call. The
ClientSession object is the main entry point into the
Factelligence Client API. It holds the list of logged in users
and the current user.
ClientSession Class
79
Syntax
[C#]
[C++]
public:
static ClientSession GetInstance()
[J#]
[[JScript]#]
public static
ClientSession
function GetInstance() :
Returns
GetLangStringsObject() Method
The GetLangStringsObject() method returns a LangStrings
object for the specified language. The LangStrings object
contains the language strings used by Factelligence for UI
and error messages.
Syntax
[C#]
[C++]
public:
LangStrings GetLangStringsObject(
int langId
) sealed
[J#]
[JScript]
public
function GetLangStringsObject(
80
langId : int
) : LangStrings
Parameter
langId
Holds the ID of the language to get.
Return Value
GetServerTime() Method
The GetServerTime() method returns the time from the
Database server.
Syntax
[C#]
[C++]
public:
DateTime GetServerTime() sealed
[J#]
[JScript]
public
Return Value
Exceptions
Login() Method
The Login() method attempts to log the specified user on to
the Factelligence session without prompting the user for a
user ID or password. The user's ID and password are passed
to the session as parameters. The session must exist or the
log on attempt fails.
Syntax
ClientSession Class
81
[C#]
public void Login(
string userId,
string password
)
[C++]
public:
void Login(
String userId,
String password
) sealed
[J#]
public void Login(
string userId,
string password
)
[[JScript]#]
public function Login(
userId : String,
password : String
)
Parameters
userId
Hold the ID of the user logging on to the Factelligence
session.
password
Holds the password of the user logging on to the
Factelligence session.
Exceptions
Remarks
82
Syntax
[C#]
[C++]
public:
bool LoginWithDialog(
String formName
) sealed
[J#]
[JScript]
public
function LoginWithDialog(
formName : String
) : bool
Parameter
formName
Holds the name of the form requesting the login. Pass an
empty string "" to log on additional users.
Return Value
ClientSession Class
83
[C#]
[C++]
public:
bool LoginWithDialog(
String formName,
bool confirmCancel,
bool disableCancel
) sealed
[J#]
[JScript]
public
function LoginWithDialog(
formName : String,
confirmCancel : bool,
disableCancel : bool
) : bool
Parameters
formName
Holds the name of the form requesting the login. Pass an
empty string "" to log on additional users.
confirmCancel
Holds a true/false flag to set whether the 'cancel' is
confirmed in the login dialog.
disableCancel
Holds a true/false flag to set whether the 'cancel' button is
displayed on the login dialog.
84
Return Value
[C#]
[C++]
public:
bool LoginWithDialog(
String formName,
bool confirmCancel,
bool disableCancel,
bool showAlwaysLoginCheckbox
) sealed
[J#]
ClientSession Class
85
[JScript]
public
function LoginWithDialog(
formName : String,
confirmCancel : bool,
disableCancel : bool,
showAlwaysLoginCheckbox : bool
) : bool
Parameters
formName
Holds the name of the form requesting the login. Pass an
empty string "" to log on additional users.
confirmCancel
Holds a true/false flag to set whether the 'cancel' is
confirmed in the login dialog.
disableCancel
Holds a true/false flag to set whether the 'cancel' button is
displayed on the login dialog.
showAlwaysLoginCheckbox
Holds a true/false flag to set whether the 'Always login as
this user' checkbox should be shown if the system
parameter allows it.
Return Value
86
[C#]
[C++]
public:
bool LoginWithDialog(
String formName,
bool confirmCancel,
bool disableCancel,
bool showAlwaysLoginCheckbox,
String versionNumber
) sealed
[J#]
[JScript]
public
function LoginWithDialog(
formName : String,
confirmCancel : bool,
disableCancel : bool,
showAlwaysLoginCheckbox : bool,
versionNumber : String
) : bool
Parameters
formName
Holds the name of the form requesting the login. Pass an
empty string "" to log on additional users.
ClientSession Class
87
confirmCancel
Holds a true/false flag to set whether the 'cancel' is
confirmed in the login dialog.
disableCancel
Holds a true/false flag to set whether the 'cancel' button is
displayed on the login dialog.
showAlwaysLoginCheckbox
Holds a true/false flag to set whether the 'Always login as
this user' checkbox should be shown if the system
parameter allows it.
versionNumber
Holds the version number to display on the dialog.
Return Value
LogOffAllUsers() Method
The LogOffAllUsers() method logs off all users without any
prompts.
Syntax
[C#]
[C++]
public:
void LogOffAllUsers() sealed
[J#]
[[JScript]#]
public
function LogOffAllUsers()
LogOffCurrentUser() Method
The LogOffCurrentUser() method logs out the current user
from the session and opens the switch user dialog to login
another user.
Syntax
[C++]
88
public:
void LogOffCurrentUser() sealed
[J#]
[JScript]
public
function LogOffCurrentUser()
Exceptions
[C#]
public void LogOffUser(
string userID
)
[C++]
public:
void LogOffUser(
String userID
) sealed
[J#]
[JScript]
public
function LogOffUser(
userID : String
)
Parameter
userID
Holds the ID of the user who is to be logged out.
Exceptions
ClientSession Class
89
[C#]
public void LogOffUser(
string userId,
bool askForConfirmation
)
[C++]
public:
void LogOffUser(
String userId,
bool askForConfirmation
) sealed
[J#]
[JScript]
public
function LogOffUser(
userId : String,
askForConfirmation : bool
)
Parameters
userId
Holds the ID of the user who is to be logged out.
askForConfirmation
If true, a confirmation dialog displays asking the user if
they are sure they want to log off. If false, no confirmation
dialog appears.
Exceptions
90
OnRefreshControls() Method
The OnRefreshControls() method causes the current user's
entity status to be refreshed and causes a RefreshControls
event to be fired.
Syntax
[C#]
[C++]
public:
void OnRefreshControls() sealed
[J#]
[JScript]
public
function OnRefreshControls()
PopupConfigureMiddlewareAccess() Method
The PopupConfigureMiddlewareAccess() method opens a
dialog to configure the Middleware Access method. The
dialog offers DCOM and HTTP as options.
Syntax
[C#]
[C++]
public:
void PopupConfigureMiddlewareAccess() sealed
[J#]
[JScript]
public
function PopupConfigureMiddlewareAccess()
ClientSession Class
91
[C#]
[C++]
public:
bool PopupSwitchUserDialog(
String SwitchUserTo,
String formName
) sealed
[J#]
[JScript]
public
function PopupSwitchUserDialog(
SwitchUserTo : String,
formName : String
) : bool
Parameters
SwitchUserTo
Holds the ID of the user to select in the list of users. Pass
empty string if no user should be selected.
formName
Holds the name of the calling form. Pass empty string if the
method is not being called from a form.
Return Value
92
[C#]
[C++]
public:
bool PopupSwitchUserDialog(
String SwitchUserTo,
String formName,
bool autoLogonEnts
) sealed
[J#]
[JScript]
public
function PopupSwitchUserDialog(
SwitchUserTo : String,
formName : String,
autoLogonEnts : bool
) : bool
ClientSession Class
93
Parameters
SwitchUserTo
Holds the ID of the user to select in the list of users. Pass
emtpy string if no user should be selected.
formName
Holds the name of the calling form. Pass empty string if the
method is not being called from a form.
autoLogonEnts
Set true, if the form to log the new user onto an entity
should display after a new user logs in, and false if it should
not.
Return Value
ReadTextFile() Method
The ReadTextFile() method returns the contents of the
specified text file from the configured Projects folder on the
server.
Syntax
[C#]
[C++]
public:
String ReadTextFile(
String fileName
) sealed
[J#]
[JScript]
public
function ReadTextFile(
fileName : String
) : String
94
Parameters
fileName
Holds the file name including any extension, assuming the
configured projects folder as the parent folder.
Return Value
Exceptions
RefreshCurUserStatusDataSet() Method
The RefreshCurUserStatusDataSet method updates the current
user's entity status. It creates a recordset that contains the
job information for all entities that the user is logged on. This
recordset can be retrieved by calling the
GetCurUserCurEntInfo() method.
Syntax
[C#]
[C++]
public:
void RefreshCurUserStatusDataSet() sealed
[J#]
[JScript]
public
function RefreshCurUserStatusDataSet()
Exceptions
RegisterDNCControl() Method
The RegisterDNCControl() method registers a DNC control for
status updates from the DNC system. DNC status is only
checked if there is at least one control registered for updates.
Syntax
[C#]
ClientSession Class
95
[C++]
public:
void RegisterDNCControl(
Control control
) sealed
[J#]
[JScript]
public
function RegisterDNCControl(
control : Control
)
Parameter
control
Holds a reference with the DNC Control.
RemoveControlFromSingleSignOn() Method
The RemoveControlFromSingleSignOn() method removes the
control from the list of controls using single sign-on.
Syntax
[C#]
public void RemoveControlFromSingleSignOn(
Control control
)
[C++]
public:
void RemoveControlFromSingleSignOn(
Control control
) sealed
[J#]
96
[JScript]
public
function RemoveControlFromSingleSignOn(
control : Control
)
Parameter
control
Holds a reference to the control no longer using single
sign-on.
SaveTextFile() Method
The SaveTextFile() method saves a text file into the
configured Projects folder on the server.
Syntax
[C#]
public void SaveTextFile(
string fileName,
string contents
)
[C++]
public:
void SaveTextFile(
String fileName,
String contents
) sealed
[J#]
[JScript]
public
function SaveTextFile(
fileName : String,
contents : String
)
ClientSession Class
97
Parameters
fileName
Holds the file name including any extension, assuming the
configured projects folder as the parent folder.
contents
Holds the text based contents to save.
Exceptions
[C#]
public void SendXMLCmd(
string xmlCmd
)
[C++]
public:
void SendXMLCmd(
String xmlCmd
) sealed
[J#]
[JScript]
public
function SendXMLCmd(
xmlCmd : String
)
Parameter
xmlCmd
Holds an XML string containing a middleware command.
98
Exceptions
[C#]
public void SendXMLCmd(
string xmlCmd,
out XMLParser xmlParser
)
[C++]
public:
void SendXMLCmd(
String xmlCmd,
[OutAttribute] XMLParser% xmlParser
) sealed
[J#]
[JScript]
public
function SendXMLCmd(
xmlCmd : String,
OutAttribute xmlParser : XMLParser
)
Parameters
xmlCmd
Holds an XML string containing a middleware command.
ClientSession Class
99
xmlParser
Holds an output parameter for returning an XML parser
containing the response from the middleware.
Exceptions
[C#]
public void SendXMLCmd(
string xmlCmd,
out DateTime lastEditAt
)
[C++]
public:
void SendXMLCmd(
String xmlCmd,
[OutAttribute] DateTime% lastEditAt
) sealed
[J#]
[JScript]
public
function SendXMLCmd(
xmlCmd : String,
OutAttribute lastEditAt : DateTime
100
Parameters
xmlCmd
Holds an XML string containing a middleware command.
lastEditAt
Holds an output parameter for returning the last edit at
date/time.
Exceptions
[C#]
public void SendXMLCmd(
string xmlCmd,
out int identity
)
[C++]
public:
void SendXMLCmd(
String xmlCmd,
[OutAttribute] int% identity
) sealed
[J#]
ClientSession Class
101
[JScript]
public
function SendXMLCmd(
xmlCmd : String,
OutAttribute identity : int
)
Parameters
xmlCmd
Holds an XML string containing a middleware command.
identity
Holds an output parameter for returning the identity.
Exceptions
[C#]
public void SendXMLCmd(
string xmlCmd,
out int identity,
out DateTime lastEditAt
)
[C++]
public:
void SendXMLCmd(
String xmlCmd,
102
[J#]
[JScript]
public
function SendXMLCmd(
xmlCmd : String,
OutAttribute identity : int,
OutAttribute lastEditAt : DateTime
)
Parameters
xmlCmd
Holds an XML string containing a middleware command.
identity
Holds an output parameter for returning the identity.
lastEditAt
Holds an output parameter for returning the last edit at
date/time.
Exceptions
ClientSession Class
103
[C#]
public void SendXMLCmd(
string xmlCmd,
out int identity,
out string modId
)
[C++]
public:
void SendXMLCmd(
String xmlCmd,
[OutAttribute] int% identity,
[OutAttribute] String% modId
) sealed
[J#]
[JScript]
public
function SendXMLCmd(
xmlCmd : String,
OutAttribute identity : int,
OutAttribute modId : String
)
Parameters
xmlCmd
Holds an XML string containing a middleware command.
identity
Holds an output parameter for returning the identity.
modId
Holds an output parameter for returning the modID.
Exceptions
104
[C#]
public void SendXMLCmd(
string xmlCmd,
out string xmlResponse
)
[C++]
public:
void SendXMLCmd(
String xmlCmd,
[OutAttribute] String% xmlResponse
) sealed
[J#]
[JScript]
public
function SendXMLCmd(
xmlCmd : String,
OutAttribute xmlResponse : String
)
Parameters
xmlCmd
Holds an XML string containing a middleware command.
xmlResponse
Holds an output parameter for returning an XML string
representing the response from the middleware.
ClientSession Class
105
Exceptions
[C#]
public void SendXMLCmd(
string xmlCmd,
out string modId,
out int VarForUniqueOverloading
)
[C++]
public:
void SendXMLCmd(
String xmlCmd,
[OutAttribute] String% modId,
[OutAttribute] int% VarForUniqueOverloading
) sealed
[J#]
[JScript]
public
function SendXMLCmd(
106
xmlCmd : String,
OutAttribute modId : String,
OutAttribute VarForUniqueOverloading : int
)
Parameters
xmlCmd
Holds an XML string containing a middleware command.
modId
Holds an output parameter for returning the modID.
VarForUniqueOverloading
Not used. Needed to make the overload unique.
Exceptions
StartLoggingXMLMsgs() Methods
The StartLoggingXMLMsgs() method starts a message logging
session. This logs all XML commands sent to the middleware
through the ClientSession object's SendXMLCmd methods.
Syntax
[C#]
public void StartLoggingXMLMsgs(
string completeFilePath,
int durationInSeconds,
bool alsoLogResponses
)
[C++]
public:
void StartLoggingXMLMsgs(
String completeFilePath,
int durationInSeconds,
bool alsoLogResponses
) sealed
[J#]
ClientSession Class
107
[JScript]
public
function StartLoggingXMLMsgs(
completeFilePath : String,
durationInSeconds : int,
alsoLogResponses : bool
)
Parameters
completeFilePath
The complete file path.
durationInSeconds
After how many seconds the logging should automatically
terminate. Max = 3600 which = 1 hour.
alsoLogResponses
If true, the message responses are also logged. Useful for
diagnostics.
StartSession() Method
The StartSession() method starts a session with the
Factelligence middleware for the specified client type. The
client type is one of the types from the ClientTypes
enumeration which signifies the client that is currently using
the session. Examples of client types include Operator and
DataEditor.
The middleware checks that sufficient licenses of this client
type are available before allowing the session. If successful,
the session ID is saved as a private variable and exposed as a
read-only property.
Syntax
[C#]
public void StartSession(
ClientTypes clientType
)
[C++]
108
public:
void StartSession(
ClientTypes clientType
) sealed
[J#]
[JScript]
public
function StartSession(
clientType : ClientTypes
)
Parameter
clientType
Holds the type of client starting the session.
Exceptions
StopLoggingXMLMsgs() Method
The StopLoggingXMLMsg() method terminates a message
logging session. This also saves the cached logs to the
specified file.
Syntax
[C#]
[C++]
public:
void StopLoggingXMLMsgs() sealed
[J#]
[JScript]
public
function StopLoggingXMLMsgs()
SwitchUser() Method
The SwitchUser() method switches between users already
logged into the current session. This method sets the curUser
property and causes a UserChanged event to fire. This
method also changes the name of user associated with the
ClientSession Class
109
[C#]
[C++]
public:
bool SwitchUser(
String swUserID,
String UserPw
) sealed
[J#]
[JScript]
public
function SwitchUser(
swUserID : String,
UserPw : String
) : bool
Parameters
swUserID
Holds the ID of the user to switch.
UserPw
Holds the password of the user to switch.
Return Value
110
UnregisterDNCControl() Method
The UnregisterDNCControl() method removes a DNC control
from the list of controls that are receiving DNC status
updates.
Syntax
[C#]
public void UnregisterDNCControl(
Control control
)
[C++]
public:
void UnregisterDNCControl(
Control control
) sealed
[J#]
[JScript]
public
function UnregisterDNCControl(
control : Control
)
Parameter
control
Holds a reference with the DNC Control.
UpdateSystemParameter() Method
The UpdateSystemParameter() method updates the value of
the system parameter that is identified by the input
parameter to the value that is passed in as an input
parameter.
Syntax
ClientSession Class
111
[C#]
public void UpdateSystemParameter (
int attrId,
object attrValue
)
[C++]
public:
void UpdateSystemParameter (
int attrId,
object attrValue
)
[J#]
public void UpdateSystemParameter (
int attrId,
object attrValue
)
[Jscript]
public function UpdateSystemParameter (
attrId
attrValue
int,
:
object
Parameters
attrId
Holds the ID of the system attribute.
attrValue
Holds the new value to set the attribute value.
Exceptions
VerifyUser() Method
The VerifyUser() method verifies that the user ID matches an
existing user and that the password is correct for the user.
Syntax
[C#]
112
[C++]
public:
void VerifyUser(
String UserId,
String UserPw
) sealed
[J#]
[JScript]
public
function VerifyUser(
UserId : String,
UserPw : String
)
Parameters
UserId
Holds the ID of the user.
UserPw
Holds the password of the user.
Exceptions
ApplicationName Property
The ApplicationName property gets or sets the name of the
application creating the session. The application name is
passed to the Log on dialog for display.
Syntax
[[C#] ]
[[C++] ]
ClientSession Class
113
[[J#] ]
/** property */
public string get_ApplicationName();
/** property */
public void set_ApplicationName(string value);
[[JScript] ]
ClientType Property
The ClientType property is a read-only property which
returns the client type as an enumerated value. The client
type is one of the types from the ClientTypes enumeration
which signifies the client that is currently using the session.
Examples of client types include Operator and DataEditor.
Syntax
[C#]
[C++]
[J#]
/** property */
public ClientTypes get_ClientType();
[JScript]
curUser Property
The curUser property is a read/write property which returns
or sets a reference to the current user object.
Syntax
[C#]
[C++]
[J#]
114
/** property */
public User get_curUser();
/** property */
public void set_curUser(User value);
[JScript]
DBMSName Property
The DBMSName property is a read-only property which
exposes the name of the database management system.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_DBMSName();
[JScript]
EntitiesRequired Property
The EntitiesRequired property gets or sets a flag to indicate
whether or not an application requires entities. If the flag is
true, an entity login (or job-based login) dialog is presented
when a user logs in through the Switch User dialog.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_EntitiesRequired();
/** property */
ClientSession Class
115
[JScript]
IsHostedByInTouch Property
The IsHostedByInTouch property is a read-only property
which indicates whether or not InTouch is the host for the
Factelligence controls.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_IsHostedByInTouch();
[JScript]
IsInTouchUserLoggedIn Property
The IsIntouchUserLoggedIn property is a read-only property
which indicates whether or not a user is logged into InTouch.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_IsInTouchUserLoggedIn();
[JScript]
116
IsSingleSignOnEnabled Property
The IsSingleSignOnEnabled property is a read-only property
which gets the status of single sign-on in InTouch. If InTouch
security is turned on, then Factelligence attempts to use the
InTouch user for signing on to InTouch.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_IsSingleSignOnEnabled();
[JScript]
LicenseInfo Property
The LicenseInfo property is a read-only property returns a
reference to the current LicenseInfo object.
Syntax
[C#]
[C++]
[J#]
/** property */
public LicenseInfo get_LicenseInfo();
[JScript]
ClientSession Class
117
MainForm Property
The MainForm property is a read-only property that gets the
value of the Main form of the application. If the top level
application is not a .Net program, such as, InTouch, the
property returns a null value.
Syntax
[C#]
[C++]
[J#]
/** property */
public Form get_MainForm();
[JScript]
MESVersion Property
The MESVersion property is a read-only property that returns
the MES version to which this instance is connected.
Syntax
[C#]
[C++]
[J#]
/** property */
public MESVersions get_MESVersion();
[JScript]
MiddlewareAccess Property
The MiddlewareAccess property is a class-level property that
gets and sets the middleware access method.
Syntax
118
[C#]
[C++]
[J#]
/** property */
public MiddlewareAccessType get_MiddlewareAccess();
/** property */
public void
set_MiddlewareAccess(MiddlewareAccessType value);
[JScript]
SelectForm Property
The SelectForm property gets an object which implements the
ISelectForm. This can be passed to the button bar to allow
Forms to be selected for the OpenForm button.
Syntax
[C#]
[C++]
[J#]
/** property */
public ISelectForm get_SelectForm();
[JScript]
SessionId Property
The SessionId property is a read-only property that returns
the current session ID. If a session has not been started, the
property returns a value of -1.
ClientSession Class
119
Syntax
[C#]
[C++]
public property int SessionId sealed
int get();
}
[J#]
/** property */
public int get_SessionId();
[JScript]
ShowLanguageIDs Property
The ShowLanguageIDs property determines whether language
IDs are shown for translatable strings. This can be helpful
when trying to translate to a new language as the you see the
string IDs in context. This property is used when creating a
new LangStrings object which is done when a user is added
to the system. Changing this property not affects the
LangStrings objects of any user already logged onto the
system. It is best to set this property at start-up.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_ShowLanguageIDs();
/** property */
public void set_ShowLanguageIDs(bool value);
[JScript]
120
SystemAttrs Property
The SystemAttrs property is a read-only property that returns
a reference to the current SystemAttr object. This object is
used to check the values of the system attributes.
Syntax
[C#]
[C++]
[J#]
/** property */
public SystemAttrs get_SystemAttrs();
[JScript]
TopLevelFont Property
The TopLevelFont property is a read-only property that
specifies the font of the parent form from which the Login
occurred.
Syntax
[C#]
[C++]
[J#]
/** property */
public Font get_TopLevelFont();
/** property */
public void set_TopLevelFont(Font value);
[JScript]
ClientSession Class
121
UIPlatform Property
The UIPlatform property is a class-level property that gets
and sets the middleware access method.
Syntax
[C#]
[C++]
[J#]
/** property */
public UIPlatformType get_UIPlatform();
/** property */
public void set_UIPlatform(UIPlatformType value);
[JScript]
UserList Property
The UserList property is a read-only property that exposes a
list of users who are currently logged on to this Factelligence
session.
Syntax
[C#]
[C++]
[J#]
/** property */
public ICollection get_UserList();
[JScript]
122
Ent Class
The Ent class handles all the Factelligence MES
functionalities for an entity. An Ent object is created for each
entity that the user logs in. The Ent object creates service
objects for each capability of the entity (for example, a
JobExec object is created if the entity has the "can run jobs"
capability).
[[C#] ]
[C++]
public:
void AddDirectory(
int seqNo,
String directory
) sealed
[[J#] ]
[[JScript] ]
Parameters
seqNo
Holds the sequence number of the directory. This specifies
the order of the download directories, for limiting user
access. A -1 is used if the directory is an upload directory.
Ent Class
123
directory
Holds the name of the directory which includes the path to
the directory.
Exceptions
[C#]
public static void AddDirectory(
int entID,
int seqNo,
string directory
[C++]
public:
static void AddDirectory(
int entID,
int seqNo,
String directory
)
[J#]
public static void AddDirectory(
int entID,
int seqNo,
string directory
)
124
[JScript]
public static
function AddDirectory(
entID : int,
seqNo : int,
directory : String
)
Parameters
entID
Holds the ID of the entity.
seqNo
Holds the sequence number of the directory. This specifies
the order of the download directories, for limiting user
access. A -1 is used if the directory is an upload directory.
directory
Holds the name of the directory.
Exceptions
AddShift() Method
The AddShift() method adds a shift to the entity shift
schedule of the current entity if the entity can schedule
shifts.
Syntax
[C#]
public void AddShift (
int startDay,
int shiftId,
Ent Class
125
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break2End,
DateTime break3Start,
DateTime break3End
)
[C++]
public:
void AddShift (
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break3Start,
DateTime break3End
)
[J#]
public void AddShift(
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break3Start,
DateTime break3End
)
[Jscript]
public function AddShift (
startDay :
shiftId :
int,
int,
shiftStart
shiftEnd
break1Start
DateTime,
DateTime,
:
DateTime,
126
break1End
break2Start
break2End
break3Start
break3End
DateTime,
:
DateTime,
DateTime,
:
DateTime,
DateTime
Parameters
startDay
Holds the day of the week on which shift applies.
shiftId
Holds the system shift that is added to the entities
schedule.
shiftStart
Holds the date/time containing the time that the shift
starts for the entity shift schedule.
shiftEnd
Holds the date/time containing the time that the shift ends
for the entity shift schedule.
break1Start
Holds the date/time containing the time that the first break
starts for the shift.
break1End
Holds the date/time containing the time that the first break
ends for the shift.
break2Start
Holds the date/time containing the time that the second
break starts for the shift.
break2End
Holds the date/time containing the time that the second
break ends for the shift.
break3Start
Holds the date/time containing the time that the third
break starts for the shift.
break3End
Holds the date/time containing the time that the third
break ends for the shift.
Ent Class
127
Exceptions
CopyEntityShiftSchedule() Method
The CopyEntityShiftSchedule() method takes a list of entity
IDs and a string containing ordered pairs of shifts and copies
the shift schedule from the entity defined by this entity object
into each entity in the entity list if the entity from the list can
schedule shifts. Only those shifts are copied from the shift ID
list which are identified.
Note If a shift ID list is not available, all shifts defined for the
entity are copied.
Syntax
[C#]
public void CopyEntityShiftSchedule(
List<int> entIDs,
List<int>shiftIDs
)
[C++]
public:
void CopyEntityShiftSchedule (
List<int> entIDs,
String shiftIDs
)
[J#]
public void CopyEntityShiftSchedule (
List<int> entIDs,
String shiftIDs
)
[Jscript]
public function CopyEntityShiftSchedule (
entIDs
shiftIDs:
List<int>
string
128
Parameters
entIDs
Holds a list of integers identifying the entities to which the
shift schedule is to be copied in the shift schedule.
shiftIDs
Holds a string of ordered pairs identifying the shifts that
are to be copied from the source entity to the shift schedule
of all entities in the entity list. The ordered pair is in the
form #:# where the first integer identifies the start day and
the second integer after the colon identifies the shift ID. To
copy all shifts for a day, specify #: without a shift ID. To
copy a shift for all days, specify:# without a start day.
Exceptions
DeleteShift() Method
The DeleteShift() method removes the shift identified by the
input parameters from the shift schedule of the entity
identified by the entity object.
Syntax
[C#]
public void DeleteShift (
int shiftId,
int startDay
)
[C++]
public:
void DeleteShift (
int shiftId,
int startDay
)
[J#]
public void DeleteShift (
int shiftId,
int startDay
)
Ent Class
129
[Jscript]
public function DeleteShift (
shiftId
startDay
int,
int
Parameters
shiftId
Holds an integer defining the shift that is to be removed.
startDay
Holds the day of the week when the shift is to be removed.
Exceptions
EndJob() Method
The EndJob() method ends the job that is identified by the
input parameters. If the job is a part of a batch, an attempt is
made to end all jobs in the batch. Ending a job changes the
job state to completed.
Syntax
[C#]
public static void EndJob(
string woId,
string operId,
int seqNo,
string statusNotes
)
[C++]
public:
static void EndJob(
String woId,
String operId,
int seqNo,
130
String statusNotes
)
[J#]
public static void EndJob(
string woId,
string operId,
int seqNo,
string statusNotes
)
[JScript]
public static
function EndJob(
woId : String,
operId : String,
seqNo : int,
statusNotes : String
)
Parameters
woId
Holds the work order for identifying the job that is to be
completed.
operId
Holds the operation ID for identifying the job that is to be
completed.
seqNo
Holds the sequence number for identifying the job that is to
completed.
statusNotes
Holds the status notes that are to be saved with the job
when the job is completed. These notes are edited on the
dialog used to confirm that the user wants to complete the
job.
Exceptions
EntIdFromName() Method
The EntIdFromName() method returns the entity ID of the
given entity name. The entity ID is a unique integer value
which represents each entity. If no entity is found, the
method returns the value of -1.
Syntax
Ent Class
131
[C#]
[C++]
public:
static int EntIdFromName(
String entName
)
[J#]
public static int EntIdFromName(
string entName
)
[JScript]
public static
function EntIdFromName(
entName : String
) : int
Parameter
entName
Holds the name of the entity to return the ID.
Return Value
Exceptions
[C#]
132
[C++]
public:
DataSet GetDirectories(
Object seqNo
) sealed
[J#]
[JScript]
public
function GetDirectories(
seqNo : Object
) : DataSet
Parameter
seqNo
Optional integer representing the sequence number of the
desired directory. This value can be set to null if all
directories are desired.
Return Value
Exceptions
[[C#] ]
[C++]
public:
Ent Class
133
[[J#] ]
[JScript]
Parameters
entID
Optional ID of the entity whose directories want to retrieve.
Pass null for the entID to return the directories of all
entities.
seqNo
Optional integer representing the sequence number of the
desired directory. This value can be set to null if all
directories are desired.
Return Value
Exceptions
GetEntAttributes() Method
The GetEntAttributes() method returns a DataSet of entity
attributes. The data set can be filtered by an entity ID and/or
an attribute ID.
Syntax
[C#]
134
[C++]
public:
DataSet GetEntAttributes(
Object entId,
Object attrId
) sealed
[J#]
[JScript]
public
function GetEntAttributes(
entId : Object,
attrId : Object
) : DataSet
Parameters
entId
Holds an integer representing the entity ID to use as a filter
or null if no entity ID filter is to be used.
attrId
Holds an integer representing the attribute ID to use as a
filter or null if no attribute ID filter is to be used.
Return Value
Exceptions
GetJobPos() Method
The GetJobPos() method returns the job position of the
specified job by determining which job exec for the current
entity the job is running on.
Syntax
Ent Class
135
[C#]
public int GetJobPos(
string woId,
string operId,
int seqNo
)
[C++]
public:
int GetJobPos(
String woId,
String operId,
int seqNo
) sealed
[J#]
[JScript]
public
function GetJobPos(
woId : String,
operId : String,
seqNo : int
) : int
Parameters
woId
Holds the work order of the job for which the job position is
retrieved.
operId
Holds the operation ID of the job for which the job position
is retrieved.
seqNo
Holds the sequence number of the job for which the job
position is retrieved.
Return Value
136
GetJobString() Method
The GetJobString() method returns a string containing the job
information for the job that is running at the specified job
position. The string contains the work order ID of the job
followed by a "_" followed by the operation ID of the job
followed by a "_" followed by the sequence number of the job.
A job is identified by a work order, operation, and sequence.
Syntax
[C#]
[C++]
public:
String GetJobString(
int jobPos
) sealed
[J#]
[JScript]
public
function GetJobString(
jobPos : int
) : String
Parameter
jobPos
The job position where the job is that want the information
for in the form of a string.
Return Value
Ent Class
137
GetNumberOfJobsOnEntUserLoggedInto()
Method
The GetNumberOfJobsOnEntUserLoggedInto() method returns
the number of jobs running on the entity that the current
user is logged in.
Syntax
[C#]
[C++]
public:
int GetNumberOfJobsOnEntUserLoggedInto() sealed
[J#]
[JScript]
Return Value
GetTagValue() Method
The GetTagValue() method returns the last value for the
specified tag.
Syntax
[C#]
[C++]
public:
String GetTagValue(
138
String tagDesc,
Object bomPos
) sealed
[J#]
[JScript]
public
function GetTagValue(
tagDesc : String,
bomPos : Object
) : String
Parameters
tagDesc
Holds the name of the tag to read.
bomPos
Optional. Holds the BOM position if required.
Return Value
Exceptions
GetUsersOnEnt() Method
The GetUsersOnEnt() method returns a list of all users who
are logged into the current entity.
Syntax
[C#]
[C++]
public:
ArrayList GetUsersOnEnt() sealed
[J#]
[JScript]
public
Return Value
Ent Class
139
GetEntityShiftSchedule() Method
This method returns a DataSet containing all shifts defined
for the entity by the entity object.
Syntax
[C#]
[C++]
public:
DataSet GetEntityShiftSchedule (
)
[J#]
public DataSet GetEntityShiftSchedule (
)
[Jscript]
public function GetEntityShiftSchedule (
)
DataSet
Return Value
Exceptions
GetEntAttributes() Method
The GetEntAttributes() method returns a DataSet of entity
attributes. The data set can be filtered by an entity ID and/or
an attribute ID.
Syntax
[C#]
140
[C++]
public:
DataSet GetEntAttributes(
Object entId,
Object attrId
) sealed
[J#]
[JScript]
public
function GetEntAttributes(
entId : Object,
attrId : Object
) : DataSet
Parameters
entId
Holds an integer representing the entity ID to use as a filter
or null if no entity ID filter is to be used.
attrId
Holds an integer representing the attribute ID to use as a
filter or null if no attribute ID filter is to be used.
Return Value
Exceptions
PauseJob() Method
The PauseJob() method pauses the specified job that is
currently running on this entity, or changes the paused state
to another paused state. The job status is set to New,
Suspended, or On Hold.
Syntax
Ent Class
141
[C#]
public void PauseJob(
string woId,
string operId,
int seqNo,
JobStates curStateCd,
JobStates newStateCd,
string editTime,
string statusNotes,
int concurrent_link
)
[C++]
public:
void PauseJob(
String woId,
String operId,
int seqNo,
JobStates curStateCd,
JobStates newStateCd,
String editTime,
String statusNotes,
int concurrent_link
) sealed
[J#]
[JScript]
142
public
function PauseJob(
woId : String,
operId : String,
seqNo : int,
curStateCd : JobStates,
newStateCd : JobStates,
editTime : String,
statusNotes : String,
concurrent_link : int
)
Parameters
woId
Holds the work order of the job to be paused.
operId
Holds the operation ID of the job to be paused.
seqNo
Holds the operation Sequence of the job to be paused.
curStateCd
Holds the current state of the job.
newStateCd
Holds the new state of the job. This should be New,
Suspended, or On Hold.
editTime
Holds the timestamp of the last edit of the job record in the
database. This must match the current value in the
database, or the record cannot be changed.
statusNotes
Holds the notes about pausing the job. This may be an
empty string.
concurrent_link
Holds the concurrent link value of the job which is the value
that indicates if this job is part of a batch jobs and, if so,
which other jobs in the queue it is batched with. Batched
jobs are all paused at one time.
Exceptions
Ent Class
143
ProcessJobsBeforeLogoff() Method
The ProcessJobsBeforeLogoff() method processes the jobs
being logged off by the specified user by first checking the
system parameter to prompt for quantities to see if it is true.
If it is true, for each job the user is logging off, the user is
prompted to enter production quantities. It is then
determined if the user is the only user currently logged into
the job and if the job can run without an operator. If it
cannot, the job pauses before logging the user off of the job.
Syntax
[[C#] ]
[[C++] ]
public:
bool ProcessJobsBeforeLogoff(
User theUser
) sealed
[[J#] ]
[[JScript] ]
Parameter
theUser
Holds the user object containing user information for the
user that is logging off.
Return Value
Exceptions
144
PromptForQuantities() Method
Overloaded. The PromptForQuantities() method prompts the
user for production quantities for each running job that the
user is logged into on the entity.
Syntax
[C#]
[C++]
public:
void PromptForQuantities() sealed
[J#]
[JScript]
public
function PromptForQuantities()
[C#]
Ent Class
145
double qtyRej,
double qtyStart,
string jobDesc
)
[C++]
public:
bool PromptForQuantities(
String item_id,
String wo_id,
String oper_id,
int seq_no,
double qtyProd,
double qtyRej,
double qtyStart,
String jobDesc
) sealed
[J#]
[JScript]
public
function PromptForQuantities(
item_id : String,
wo_id : String,
oper_id : String,
seq_no : int,
qtyProd : double,
qtyRej : double,
qtyStart : double,
jobDesc : String
) : bool
146
Parameters
item_id
Holds the item that is being produced by the job.
wo_id
Holds the work order ID of the job.
oper_id
Holds the operation ID of the job.
seq_no
Holds the sequence number of the job.
qtyProd
Holds the current quantity of the job that has been
produced as good.
qtyRej
Holds the current quantity of the job that has been
produced as scrap.
qtyStart
Holds the start quantity of the job.
jobDesc
Holds the job description of the specified job. It is used in
the title of the Add Production dialog.
Return Value
PrepareProductionAttributes() Method
The PrepareProductionAttributes() method accepts a set of
values for all production attributes and creates a data entry
job to support logging utilization against these attributes.
Syntax
Ent Class
147
[C#]
public string PrepareProductionAttributes (
string item,
string itemClass,
string itemUOM,
string workOrder,
string operation,
double targetProdRate,
int uom,
double batchSize,
double startQty,
double reqdQty,
string operator
)
[C++]
public:
string PrepareProductionAttributes (
string item,
string itemClass,
string itemUOM,
string workOrder,
string operation,
double targetProdRate,
int uom,
double batchSize,
double startQty,
double reqdQty,
string operator
)
[J#]
public string PrepareProductionAttributes (
string item,
string itemClass,
string itemUOM,
string workOrder,
string operation,
double targetProdRate,
int uom,
148
double batchSize,
double startQty,
double reqdQty,
string operator
)
[Jscript]
public function PrepareProductionAttributes (
item
string,
itemClass
itemUOM
string,
string,
workOrder
string,
operation
string,
targetProdRate
uom
double,
int,
batchSize
double,
startQty
double,
reqdQty
double,
operator
string
) : string
Parameters
item
Holds a string identifying the item for the data entry job.
itemClass
Holds a string identifying the item class ID of the item.
itemUOM
Holds a string which is description to identify the unit of
measure for the item.
workOrder
Holds a string identifying the work order for the data entry
job.
operation
Holds a string identifying the operation for the data entry
job.
targetProdRate
Holds a floating-point value indicating the target
production rate.
uom
Holds an integer indicating the unit of measure for the
target production rate.
Ent Class
149
batchSize
Holds a floating-point value indicating the batch size for the
data entry job.
startQty
Holds a floating-point value indicating the start quantity
for the data entry job.
reqdQty
Holds a floating-point value indicating the required
quantity for the data entry job.
operator
Holds a string identifying the user ID to associate with the
entity.
Return Value
Exceptions
[C#]
public void SetCurJobExec(
int jobPos
)
[C++]
public:
void SetCurJobExec(
int jobPos
) sealed
[J#]
150
[JScript]
public
function SetCurJobExec(
jobPos : int
)
Parameter
jobPos
Holds the job position of the entities job exec objects that is
to be set as the current job exec meaning it contains the job
the user is currently working on.
Exceptions
[C#]
public void SetCurJobExec(
string woId,
string operId,
int seqNo
)
[C++]
public:
void SetCurJobExec(
String woId,
String operId,
int seqNo
) sealed
[J#]
Ent Class
151
string operId,
int seqNo
)
[JScript]
public
function SetCurJobExec(
woId : String,
operId : String,
seqNo : int
)
Parameters
woId
Holds the work order of the job that is to be made the
current job.
operId
Holds the operation ID of the job that is to be made the
current job.
seqNo
Holds the operation sequence of the job that is to be made
the current job.
Exceptions
SetEntAttributes() Method
The SetEntAttributes() method sets the value of the specified
entity attribute for the given entity.
Syntax
_
_
[C#]
public void SetEntAttributes(
int entId,
int attrId,
string attrValue,
string lastEditAt
)
152
[C++]
public:
void SetEntAttributes(
int entId,
int attrId,
String attrValue,
String lastEditAt
) sealed
[J#]
[JScript]
public
function SetEntAttributes(
entId : int,
attrId : int,
attrValue : String,
lastEditAt : String
)
Parameters
entId
Holds the ID of the entity for which the attribute is set.
attrId
Holds the ID of the entity for which the attribute is set.
attrValue
Holds the new value of the attribute.
lastEditAt
Holds the timestamp for the last edit of the value for an
existing attribute. This must match the time stamp in the
database or the update fails. For a new attribute, this value
is passed as a null.
Exceptions
SetTagValue() Method
The SetTAgValue() method sets the last value for the specified
tag. If the tag is a BOM tag, then the BOM position must be
specified.
Ent Class
153
Syntax
[C#]
public void SetTagValue(
string TagDesc,
string TagValue,
object BomPos
)
[C++]
public:
void SetTagValue(
String TagDesc,
String TagValue,
Object BomPos
) sealed
[J#]
[JScript]
public
function SetTagValue(
TagDesc : String,
TagValue : String,
BomPos : Object
)
Parameters
TagDesc
Holds the name of the tag to read.
TagValue
Holds the new value for the tag.
BomPos
Optional. Holds the BOM position. Set to null if the tag is
not a BOM tag.
154
Exceptions
StartJob() Method
The StartJob() method starts a specified job on the entity. It
searches for the first available job position and starts the job
at that position. The entity contains multiple job positions if
it can run multiple jobs at one time. A job position is
available if no job is currently running on the exec.
Syntax
[C#]
public void StartJob(
string woId,
string operId,
int seqNo,
string statusNotes
)
[C++]
public:
void StartJob(
String woId,
String operId,
int seqNo,
String statusNotes
) sealed
[J#]
[JScript]
Ent Class
public
155
function StartJob(
woId : String,
operId : String,
seqNo : int,
statusNotes : String
)
Parameters
woId
Holds the work order of the job to be started.
operId
Holds the operation ID of the job to be started.
seqNo
Holds the operation sequence number of the job to be
started.
statusNotes
Holds the notes about starting the job. This may be an
empty string.
Exceptions
UpdateEntity() Method
The UpdateEntity() method updates the entity that is
identified by the entity object with the new values supplied.
Syntax
156
[C#]
public void UpdateEntity (
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
Ent Class
157
void UpdateEntity (
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[J#]
public void UpdateEntity (
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
158
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[Jscript]
public function UpdateEntity (
entityName :
string,
description
string,
parentEntId
int,
site
int,
hourlyCost
double,
canScheduleJobs
canRunJobs
canCaptureLabor
:
canTrackOEE
:
canReceive
bool,
bool,
:
bool,
bool,
bool,
:
canCopyFolders
curShiftId
bool,
canLogData
canShip
bool,
bool,
canSchedShifts
canStore
bool,
bool,
canCaptureUtil
canDoDNC
bool,
:
bool,
int,
curShiftStartTime
DateTime,
identicalJobExecs
int,
spare1
string,
spare2
string,
spare3
string,
spare4
string
Ent Class
159
Parameters
entityName
Holds a string to identify a unique entity name.
description
Holds a string to identify the entity description.
parentEntId
Holds an integer to identify the parent entity ID. Null if top
level.
site
Holds an integer to identify the ancestor entity. Is null if
entity above sites, or for single-site systems. If entity is a
site, site is equal to the entity ID.
hourlyCost
The cost of running.
canScheduleJobs
Holds a flag indicating whether jobs are scheduled to this
entity.
canRunJobs
Holds a flag indicating whether jobs are run on this entity.
canCaptureUtil
Holds a flag indicating whether an entity can capture
utilization data.
canCaptureLabor
Holds a flag indicating whether labor data is captured on
this entity.
canDoDNC
Holds a flag indicating whether this entity can
communicate with machine tools.
canTrackOEE
Holds a flag indicating whether OEE statistics are captured
on this entity.
canScheduleShifts
Holds a flag indicating whether shifts are scheduled for this
entity.
canStore
Holds a flag indicating whether this entity is a warehouse
or storage location.
canLogData
Holds a flag indicating whether this entity can log data.
canShip
Holds a flag indicating whether shipments are made from
this entity.
160
canReceive
Holds a flag indicating whether material is received at this
entity.
canCopyFolders
Holds a flag indicating whether files in folders for this
entity are copied to its download directories.
curShiftId
Holds an integer indicating the current shift on this entity.
curShiftStartTime
Holds a date/time of the current shift start time on the
entity.
identicalJobExecs
Holds an integer indicating the number of identical
positions that can run independent jobs on this entity.
spare1
Holds a string used to save information for this entity.
spare2
Holds a string used to save information for this entity.
spare3
Holds a string used to save information for this entity.
spare4
Holds a string used to save information for this entity.
Exceptions
UpdateJobExec() Method
The UpdateJobExec() method updates the job exec record for
the entity that is identified by this entity object.
Syntax
Ent Class
161
[C#]
public void UpdateJobExec (
int jobPos,
bool nextJobOnly,
bool itemBasedDesc,
string jobEndConfirmMessage,
int defToEntID,
int defRejectEntID,
int defFromEntID,
int defProdReasCD,
int defConsReasCD,
string defLotNo,
string defSubLotNo,
bool autoLoadJobSpecs,
162
bool autoSeqStartOption,
bool autoJobStartOption,
bool
autoJobEndOption,
bool inclClassReas,
bool mustCompleteSteps,
bool mustProdReqdQty,
bool localMovableConsEnt,
bool localMovableProdEnt,
bool runWithoutOperator,
bool applyPostExecFCCounts,
bool suppressStartQtyPrompt,
bool allowZeroQtySplit,
bool autoAllocQtyToRunningJob,
string curWOID,
string curOperID,
int curSeqNo,
int curStepNo,
DateTime curStepStart,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
void UpdateJobExec (
int jobPos,
bool nextJobOnly,
bool itemBasedDesc,
string jobEndConfirmMessage,
int defToEntID,
int defRejectEntID,
int defFromEntID,
int defProdReasCD,
int defConsReasCD,
string defLotNo,
string defSubLotNo,
bool autoLoadJobSpecs,
bool autoSeqStartOption,
bool autoJobStartOption,
Ent Class
bool
163
autoJobEndOption,
bool inclClassReas,
bool mustCompleteSteps,
bool mustProdReqdQty,
bool localMovableConsEnt,
bool localMovableProdEnt,
bool runWithoutOperator,
bool applyPostExecFCCounts,
bool suppressStartQtyPrompt,
bool allowZeroQtySplit,
bool autoAllocQtyToRunningJob,
string curWOID,
string curOperID,
int curSeqNo,
int curStepNo,
DateTime curStepStart,
string spare1,
string spare2,
string spare3,
string spare4
)
[J#]
public void UpdateJobExec (
int jobPos,
bool nextJobOnly,
bool itemBasedDesc,
string jobEndConfirmMessage,
int defToEntID,
int defRejectEntID,
int defFromEntID,
int defProdReasCD,
int defConsReasCD,
string defLotNo,
string defSubLotNo,
bool autoLoadJobSpecs,
bool autoSeqStartOption,
bool autoJobStartOption,
bool
autoJobEndOption,
bool inclClassReas,
bool mustCompleteSteps,
164
bool mustProdReqdQty,
bool localMovableConsEnt,
bool localMovableProdEnt,
bool runWithoutOperator,
bool applyPostExecFCCounts,
bool suppressStartQtyPrompt,
bool allowZeroQtySplit,
bool autoAllocQtyToRunningJob,
string curWOID,
string curOperID,
int curSeqNo,
int curStepNo,
DateTime curStepStart,
string spare1,
string spare2,
string spare3,
string spare4
)
[Jscript]
public function UpdateJobExec(
jobPos
int,
nextJobOnly
itemBasedDesc
bool,
:
bool,
jobEndConfirmMessage
defToEntID
int,
int,
defProdReasCD
int,
defConsReasCD
int,
defLotNo
defSubLotNo
string,
int,
defRejectEntID
defFromEntID
string,
:
string,
autoLoadJobSpecs
bool,
autoSeqStartOption
bool,
autoJobStartOption
bool,
autoJobEndOption
inclClassReas
bool,
mustCompleteSteps
mustProdReqdQty
bool,
bool,
bool,
localMovableConsEnt
bool,
localMovableProdEnt
bool,
Ent Class
runWithoutOperator
bool,
applyPostExecFCCounts
suppressStartQtyPrompt
allowZeroQtySplit
curOperID
curSeqNo
bool,
bool,
string,
int,
:
DateTime,
spare1
string,
spare2
string,
spare3
string,
int,
curStepStart
spare4
bool,
string,
:
curStepNo
bool,
autoAllocQtyToRunningJob
curWOID
165
string
Parameters
jobPos
Holds an integer identifying the job exec position to update.
nextJobOnly
Holds a flag indicating whether to start the next job or
select any job to start.
itemBasedDesc
Holds a flag indicating that messages should use the item
description and not the operation description.
jobEndConfirmMessage
Holds a string which is the operation end confirm message.
defToEntID
Holds an integer identifying the default storage entity for
good production items, and rejects if def_reject_ent_id is
null.
defRejectEntID
Holds an integer identifying the default storage entity for
reject production.
defFromEntID
Holds an integer identifying default storage entity for item
issues.
defProdReasCD
Holds an integer identifying the default reason code for
good production.
defConsReasCD
Holds an integer identifying the default reason code for
normal consumption.
166
defLotNo
Holds a string identifying the default lot number for
production.
defSubLotNo
Holds a string identifying the default sublot number for
production.
autoLoadJobSpecs
Holds a flag indicating whether auto load job specs to tags.
autoSeqStartOption
Holds an integer identifying an enumeration of conditions
to automatically start the job with the current W/O and op.
and next seq_no: -=Don't start automatically, 1=Start job
with next sequence when previous done.
autoJobStartOption
Holds an integer identifying an enumeration of conditions
to automatically start a job. 0=Don't start automatically,
1=Start next scheduled job as soon as ready, 2=Start next
scheduled job with W/O specified in tag that just changed.
autoJobEndOption
Holds an integer identifying an enumeration of conditions
to automatically end a job 0=Don't end automatically,
1=when QtyDone>=QtyReqd.
inclClassReas
Holds a flag indicating if item reasons for item class should
also be available to choose from if there are entity-related
item reasons defined.
mustCompleteSteps
Holds a flag indicating if all steps must be
completed/bypassed to end the job.
mustProdReqdQty
Holds a flag indicating whether the required quantity must
be produced (good) to end the job.
localMovableConsEnt
Holds a flag indicating if movable storage entities supplying
consumption need to be in/at the entity producing it.
localMovableProdEnt
Holds a flag indicating if movable storage entities receiving
production need to be in/at the entity producing it.
runWithoutOperator
Holds a flag indicating if jobs may run without an operator
logged onto the entity; if no, running jobs are suspended
when the last operator logs off.
Ent Class
167
applyPostExecFCCounts
Holds a flag indicating if production counts received from
Factory Connector when no job is running should be applied
to the last job that ran on the entity. No suggests that
such counts are ignored.
suppressStartQtyPrompt
Holds a flag indicating if a prompt to specify a quantity to
start when the Start Some button is pressed should be
suppressed.
allowZeroQtySplit
Holds a flag indicating if default quantities to be used from
Start some are 0.
autoAllocQtyToRunning Job
Holds a flag indicating if overages in reported production
are to be covered by moving quantities from a scheduled,
non-running job if available.
curWOID
Holds a string identifying the current work order on this
entity.
curOperID
Holds a string identifying the current operation on this
entity.
curSeqNo
Holds an integer identifying the current operation split.
curStepNo
Holds an integer identifying the last step started on this
entity.
curStepStart
Holds a DateTime which is when the last step was started
on this entity.
spare1
Holds a string used for additional information.
spare2
Holds a string used for additional information.
spare3
Holds a string used for additional information.
spare4
Holds a string used for additional information.
UpdateShift() Method
The UpdateShift() method updates the shift defined by the
input parameters for the entity that is identified by the ent
object.
168
Syntax
[C#]
public void UpdateShift (
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break2End,
DateTime break3Start,
DateTime break3End
)
[C++]
public:
void UpdateShift (
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break3Start,
DateTime break3End
)
[J#]
Ent Class
169
[Jscript]
public function UpdateShift (
startDay :
shiftId :
int,
int,
shiftStart
shiftEnd
break1Start
break1End
break2Start
break2End
break3Start
break3End
DateTime,
DateTime,
:
DateTime,
DateTime,
:
DateTime,
DateTime,
:
DateTime,
DateTime
Parameters
startDay
Holds the day of the week on which shift applies.
shiftId
Holds the system shift that the shift is for in the entities
schedule.
shiftStart
Holds the date/time containing the time that the shift
starts for the entity shift schedule.
shiftEnd
Holds the date/time containing the time that the shift ends
for the entity shift schedule.
break1Start
Holds the date/time containing the time that the first break
starts for the shift.
170
break1End
Holds the date/time containing the time that the first break
ends for the shift.
break2Start
Holds the date/time containing the time that the second
break starts for the shift.
break2End
Holds the date/time containing the time that the second
break ends for the shift.
break3Start
Holds the date/time containing the time that the third
break starts for the shift.
break3End
Holds the date/time containing the time that the third
break ends for the shift.
Exceptions
CanCaptureLabor Property
The CanCaptureLabor property is a read-only property that
determines if the current entity can capture labor.
Syntax
[C#]
public bool CanCaptureLabor { get; }
[C++]
[J#]
/** property */
public bool get_CanCaptureLabor();
[JScript]
CanCaptureUtil Property
The CanCaptureUtil property is a read-only property that
determines whether this entity can capture utilization.
Syntax
Ent Class
171
[C#]
[C++]
[J#]
/** property */
public bool get_CanCaptureUtil();
[JScript]
CanDoDNC Property
The CanDoDNC property is a read-only property which
determines if this entity can do DNC.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_CanDoDNC();
[JScript]
CanLogData Property
The CanLogData property is a read-only property that
determines if the current entity can log data.
Syntax
[C#]
[C++]
[J#]
172
/** property */
public bool get_CanLogData();
[JScript]
CanRunJobs Property
The CanRunJobs property is a read-only property that
determines whether this entity can run jobs.
Syntax
[C#]
[J#]
/** property */
public bool get_CanRunJobs();
[JScript]
CanSchedJobs Property
The CanSchedJobs property is a read-only property which
determines if the current entity can schedule jobs.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_CanSchedJobs();
[JScript]
CanSchedShifts Property
The CanSchedShifts property is a read-only property which
determines if the current entity can schedule shifts.
Ent Class
173
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_CanSchedShifts();
[JScript]
CanStore Property
The CanStore property is a read-only property which
determines if the current entity can store inventory.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_CanStore();
[JScript]
CanTrackOEE Property
The CanTrackOEE property is a read-only property that
determines whether this entity can track OEE.
Syntax
[C#]
[C++]
174
bool get();
}
[J#]
/** property */
public bool get_CanTrackOEE();
[JScript]
CertExec Property
The CertExec property is a read-only property which exposes
the CertExec object that handles the certification functions
for the current entity.
This property is only available if the current entity can run
jobs.
Syntax
[C#]
[C++]
[J#]
/** property */
public CertExec get_CertExec();
[JScript]
CurShiftDesc Property
The CurShiftDesc property is a read-only property that
specifies the current shift description.
Syntax
[C#]
[C++]
[J#]
/** property */
Ent Class
175
[JScript]
CurShiftID Property
The CurShiftID property is a read-only property that specifies
the current shift ID.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_CurShiftID();
[JScript]
CurShiftStartTime Property
The CurShiftStartTime property is a read-only property that
specifies the current shift start time.
Syntax
[C#]
[C++]
[J#]
/** property */
public DateTime get_CurShiftStartTime();
[JScript]
176
DNCExec Property
The DNCExec property is a read-only property which exposes
the DNCExec object that handles the DNC functions for the
current entity.
The property is available only if the entity has the ability to
do DNC.
Syntax
[C#]
[C++]
[J#]
/** property */
public DNCExec get_DNCExec();
[JScript]
EntDesc Property
The EntDesc property is a read-only property which exposes
the description of the entity represented by this entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_EntDesc();
[JScript]
EntID Property
The EntID property is a read-only property that specifies the
ID of the entity represented by this Ent object.
Ent Class
177
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_EntId();
[JScript]
EntName Property
The EntName property is a read-only property that specifies
the name of the entity represented by the entity object.
Syntax
[C#]
[C++]
[JScript]
FoldersExec Property
The FoldersExec property is a read-only property which
exposes the FoldersExec object that handles folders functions
for this entity.
Syntax
[C#]
[C++]
178
[J#]
/** property */
public FoldersExec get_FoldersExec();
[JScript]
JobExec Property
The JobExec property is a read-only property that specifies
the JobExec object that handles job execution functions for
this entity.
This property is only available if the entity can run jobs.
Syntax
[C#]
[C++]
[J#]
/** property */
public JobExec get_JobExec();
[JScript]
LaborExec Property
The LaborExec property is a read-only property which
exposes the LaborExec object that handles the Labor
functions for this entity.
This property is only available if the current entity can
capture labor.
Syntax
[C#]
[C++]
Ent Class
179
[J#]
/** property */
public LaborExec get_LaborExec();
[JScript]
NumberOfJobsEntCanRun Property
The NumberOfJobsEntCanRun property is a read-only
property that specifies the maximum number of jobs the
current entity can run consecutively based on its maximum
number of defined job_execs.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_NumberOfJobsEntCanRun();
[JScript]
NumberOfRunningJobs Property
The NumberOfRunningJobs property is a read-only property
that specifies the number of jobs currently running on the
entity. This value is greater than one only if entity can run
more than one job at a time.
Syntax
[C#]
[C++]
180
[J#]
/** property */
public int get_NumberOfRunningJobs();
[JScript]
OEEExec Property
The OEEExec property is a read-only property that exposes
the OEE data for the current entity.
This property is available only if the entity can track OEE.
Syntax
[C#]
[C++]
[J#]
/** property */
public OEEExec get_OEEExec();
[JScript]
Site Property
The Site property is a read-only property that exposes the
entity ID of the site at which the current entity is located. If
this property is equal to the EntID of the ent object, this
entity is the site. If this property is null, the entity is above
sites, or is part of a single-site system.
Syntax
[C#]
[C++]
[J#]
/** property */
Ent Class
181
[JScript]
SiteName Property
The SiteName property is a read-only property that exposes
the name of the site at which this entity is located.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_SiteName();
[JScript]
StorageExec Property
The StorageExec property is a read-only property that
exposes the StorageExec object that handles the Inventory
functions for this Ent object.
This property is only available if the entity can store
inventory.
Syntax
[C#]
[C++]
[J#]
/** property */
public StorageExec get_StorageExec();
[JScript]
182
User Property
The User property is a read-only property that specifies the
parent User object for the current entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public User get_User();
[JScript]
UtilExec Property
The UtilExec property is a read-only property that exposes
the UtilExec object that handles utilization execution
functions for this Ent object.
This property is only available if the entity can capture
utilization.
Syntax
[C#]
[C++]
[J#]
/** property */
public UtilExec get_UtilExec();
[JScript]
Ents Class
183
Ents Class
The Ents class handles the Factelligence MES functionality
for entities which are not the currently selected entity. This
is a static class (Module in Visual Basic) so cannot be
inherited or instantiated.
AddEntity() Method
The AddEntity() method adds a new entity to the parent
entity specified and returns the entity ID that is generated.
Syntax
[C#]
184
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
static int AddEntity (
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
Ents Class
185
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[J#]
public static int AddEntity (
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[Jscript]
186
string,
description
string,
parentEntId
int,
site
int,
hourlyCost
double,
canScheduleJobs
canRunJobs
canCaptureLabor
:
canTrackOEE
:
canReceive
bool,
bool,
:
bool,
bool,
bool,
:
canCopyFolders
curShiftId
bool,
canLogData
canShip
bool,
bool,
canSchedShifts
canStore
bool,
bool,
canCaptureUtil
canDoDNC
bool,
:
bool,
int,
curShiftStartTime
DateTime,
identicalJobExecs
int,
spare1
string,
spare2
string,
spare3
string,
spare4
string
int
Parameters
entityName
Holds a string identifying a unique entity name.
description
Holds a string identifying the entity description.
parentEntId
Holds an integer identifying the parent entity ID. Null if
top level.
site
Holds an integer identifying an ancestor entity that defines
the site of this entity. If = ent_id, this entity is a site. Null
for entities above sites, or for single-site systems.
hourlyCost
Holds the cost of running.
Ents Class
187
canScheduleJobs
Holds a flag indicating whether jobs are scheduled to this
entity.
canRunJobs
Holds a flag indicating whether jobs are run on this entity.
canCaptureUtil
Holds a flag indicating whether an entity captures
utilization data.
canCaptureLabor
Holds a flag indicating whether labor data is captured on
this entity.
canDoDNC
Holds a flag indicating whether this entity communicates
with machine tools.
canTrackOEE
Holds a flag indicating whether OEE statistics are captured
on this entity.
canScheduleShifts
Holds a flag indicating whether shifts are scheduled for this
entity.
canStore
Holds a flag indicating whether this entity is a warehouse
or storage location.
canLogData
A flag indicating whether this entity logs data.
canShip
Holds a flag indicating whether shipments are made from
this entity.
canReceive
Holds a flag indicating whether material is received at this
entity.
canCopyFolders
Holds a flag indicating whether files in folders for this
entity are copied to its download directories.
curShiftId
Holds an integer indicating the current shift on this entity.
curShiftStartTime
Holds a date/time of the current shift start time on the
entity.
identicalJobExecs
Holds an integer indicating the number of identical
positions that run independent jobs on this entity.
188
spare1
Holds a string used to save information for this entity.
spare2
Holds a string used to save information for this entity.
spare3
Holds a string used to save information for this entity.
spare4
Holds a string used to save information for this entity.
Return Value
Exceptions
AddEntLink() Method
The AddEntLink() method adds an entity ID and a parent
entity ID. It adds a link record to define a parent entity as a
parent of the entity defined by the entId parameter.
Syntax
[C#]
public static void AddEntLink (
int entID,
int parentEntId
)
[C++]
public:
static void AddEntLink (
int entId,
int parentEntId
)
[J#]
public static void AddEntLink (
int entId,
int parentEntId
)
Ents Class
189
[Jscript]
public static function AddEntity (
entID
int,
parentEntId
int
Parameters
entID
Holds an integer identifying the entity that is being linked
to parent entity.
parentEntId
Holds an integer to identify the parent entity ID that is to
be set as a parent of the entity.
Exceptions
DeleteEntity() Method
The DeleteEntity() method removes the specified entity from
the database.
Syntax
[C#]
public static void DeleteEntity (
int entId
)
[C++]
public:
static void DeleteEntity (
int entId
)
[J#]
public static void DeleteEntity (
int entId
)
[Jscript]
public static function DeleteEntity (
entId :
int
190
Parameter
entId
Holds an integer identifying the entity to be deleted.
Exceptions
DeleteEntLink() Method
The DeleteEntLink() method takes an entity ID and a parent
entity ID and deletes any link record that defines the parent
entity as a parent of the entity defined by the entID
parameter.
Syntax
[C++]
public:
static void DeleteEntLink (
int entId,
int parentEntID
)
[J#]
public static void DeleteEntLink (
int entId,
int parentEntID
)
[Jscript]
public static function DeleteEntLink (
entId :
int,
parentEntID
)
int
Ents Class
191
Parameters
entId
Holds an integer identifying the entity which any links to
the parent ent id are being deleted.
parentEntId
Holds an integer identifying the parent entity which any
links to the entity are being deleted.
Exceptions
GetCountsAndDuration() Method
The GetCountsAndDuration() method returns a DataSet
containing one row for each utilization state, reason group, or
reason. It has columns for the ID, description, count or
duration, color (valid only for utilization states and reasons),
and an active flag which is set true for the current utilization
state, reason group, or reasonOEEExec.
Syntax
[C#]
type,
FilterType filterType,
int filterDuration,
FilterTimeUnits filterTimeUnit,
int filterTimeStart,
int filterTimeEnd,
int drillDownFilter,
OEEStatusFilter oeeStatusFilter
192
[C++]
public:
DataSet GetCountsAndDuration(
int entId,
CountsAndDurationGraphStyle type,
FilterType filterType,
int filterDuration,
FilterTimeUnits filterTimeUnit,
int filterTimeStart,
int filterTimeEnd,
int drillDownFilter,
OEEStatusFilter oeeStatusFilter
)
[J#]
public DataSet GetCountsAndDuration(
int entId,
CountsAndDurationGraphStyle type,
FilterType filterType,
int filterDuration,
FilterTimeUnits filterTimeUnit,
int filterTimeStart,
int filterTimeEnd,
int drillDownFilter,
OEEStatusFilter oeeStatusFilter
)
[Jscript]
public function GetCountsAndDuration(
entId
type
:
:
int,
CountsAndDurationGraphStyle,
filterType
FilterType,
filterDuration
int,
filterTimeUnit
FilterTimeUnits,
filterTimeStart
filterTimeEnd
int,
int,
drillDownFilter
int,
oeeStatusFilter
OEEStatusFilter
DataSet
Ents Class
193
Parameters
entId
Holds the entity for retrieving counts and duration data.
type
Holds a CountsAndDurationGraphType enumeration value
that specifies the type of data that is shown in the Pareto
graph of the KPI control.
filterType
Holds a FilterType enumeration value that gives the type of
data to filter.
filterDuration
Holds a an integer value that specifies the value of N if
filterType is LastNHours.
filterTimeUnti
Holds a FilterTimeUnit enumeration value which specifies
the time unit for a custom filter (if the FilterType is
Custom).
filterTimeStart
Holds an integer that specifies the start of the filter period
relative to now if the filterType is Custom.
filterTimeEnd
Holds an integer which specifies the end of the filter period
relative to now if the filterType is Custom.
this user group.
drillDownFilter
An integer which specifies a reason group or utilization
state to drill down by.
oeeStatusFilter
Holds a OEEStatusFilter enumeration value that specifies
if the data should be filtered by OEE Status.
Return Value
Exceptions
194
GetEntChildren() Method
The GetEntChildren() method returns a DataSet containing
all the children entities for the specified entity that can have
a jobs scheduled to them.
Syntax
[C#]
[C++]
public:
static DataSet GetEntChildren(
__int64 entId
)
[J#]
public static DataSet GetEntChildren(
long entId
)
[JScript]
public static
function GetEntChildren(
entId : long
) : DataSet
Parameter
entId
Holds the ID of the entity that is the parent entity for whom
the children entities are retrieved.
Return Value
Exceptions
Ents Class
195
[C#]
public static void GetEntityFromComboBoxEntry(
object comboBoxEntry,
out int entID,
out string entName
)
[C++]
public:
static void GetEntityFromComboBoxEntry(
Object comboBoxEntry,
[OutAttribute] int% entID,
[OutAttribute] String% entName
)
[J#]
public static void GetEntityFromComboBoxEntry(
object comboBoxEntry,
/** @attribute OutAttribute() */ /** @ref */ int
entID,
/** @attribute OutAttribute() */ /** @ref */ string
entName
)
[JScript]
public static
function GetEntityFromComboBoxEntry(
comboBoxEntry : Object,
OutAttribute entID : int,
OutAttribute entName : String
)
196
Parameters
comboBoxEntry
Holds a EntityComboBoxData entry from the combo box.
entID
Returns the ID of the entity or -1 of no entity.
entName
Returns the name of the entity.
[C#]
public static void GetEntityFromComboBoxEntry(
object comboBoxEntry,
out Nullable<int> entID,
out string entName
)
[C++]
public:
static void GetEntityFromComboBoxEntry(
Object comboBoxEntry,
[OutAttribute] Nullable<int>% entID,
[OutAttribute] String% entName
)
[J#]
public static void GetEntityFromComboBoxEntry(
object comboBoxEntry,
/** @attribute OutAttribute() */ /** @ref */
Nullable<int> entID,
/** @attribute OutAttribute() */ /** @ref */ string
entName
Ents Class
197
[JScript]
public static
function GetEntityFromComboBoxEntry(
comboBoxEntry : Object,
OutAttribute entID : Nullable<int>,
OutAttribute entName : String
)
Parameters
comboBoxEntry
Holds a EntityComboBoxData entry from the combo box.
entID
Returns the ID of the entity or null of no entity.
entName
Returns the name of the entity.
GetEntProperties() Method
The GetEntProperties() method gets the configured properties
for the specified entity.
Syntax
[C#]
[C++]
public:
static DataSet GetEntProperties(
__int64 entId
)
[J#]
public static DataSet GetEntProperties(
long entId
)
[JScript]
public static
function GetEntProperties(
entId : long
) : DataSet
198
Parameter
entId
Holds the ID of the entity whose configured properties want
to retrieve.
Return Value
Exceptions
NumberOfJobsRunning() Method
The NumberOfJobsRunning() method returns the number of
jobs currently running on the specified entity.
Syntax
[C#]
[C++]
public:
static int NumberOfJobsRunning(
__int64 entId
)
[J#]
public static int NumberOfJobsRunning(
long entId
)
[JScript]
public static
function NumberOfJobsRunning(
entId : long
) : int
Parameter
entId
Holds the ID of the entity want to know the number of jobs
running on.
Ents Class
199
Return Value
Exceptions
[C#]
public static void PopulateEntityComboBox(
ComboBox comboBox,
bool includeEmptyEntName
)
[C++]
public:
static void PopulateEntityComboBox(
ComboBox comboBox,
bool includeEmptyEntName
)
[J#]
public static void PopulateEntityComboBox(
ComboBox comboBox,
bool includeEmptyEntName
)
[JScript]
public static
function PopulateEntityComboBox(
comboBox : ComboBox,
includeEmptyEntName : bool
)
200
Parameters
comboBox
Holds the combo box to populate.
includeEmptyEntName
Holds a flag to indicate whether or not an empty entry
should be added to the combo box.
[C#]
public static void PopulateEntityComboBox(
ComboBox comboBox,
DataTable table,
bool includeEmptyEntName
)
[C++]
public:
static void PopulateEntityComboBox(
ComboBox comboBox,
DataTable table,
bool includeEmptyEntName
)
[J#]
public static void PopulateEntityComboBox(
ComboBox comboBox,
DataTable table,
bool includeEmptyEntName
)
[JScript]
Ents Class
public static
201
function PopulateEntityComboBox(
comboBox : ComboBox,
table : DataTable,
includeEmptyEntName : bool
)
Parameters
comboBox
Holds the combo box to populate.
table
Holds the table holding the entity data.
includeEmptyEntName
Holds a flag to indicate whether or not an empty entry
should be added to the combo box.
PrepareProductionAttributes() Method
The PrepareProductionAttributes() method accepts a set of
values for all production attributes and creates a data entry
job to support logging utilization against these attributes.
Syntax
[C#]
202
string operation,
double targetProdRate,
int uom,
double batchSize,
double startQty,
double reqdQty,
string operator
)
[C++]
public:
static string PrepareProductionAttributes (
int entId,
string item,
string itemClass,
string itemUOM,
string workOrder,
string operation,
double targetProdRate,
int uom,
double batchSize,
double startQty,
double reqdQty,
string operator
)
[J#]
public static string PrepareProductionAttributes (
int entId,
string item,
string itemClass,
string itemUOM,
string workOrder,
string operation,
double targetProdRate,
int uom,
double batchSize,
double startQty,
double reqdQty,
string operator
)
[Jscript]
public static function PrepareProductionAttributes (
Ents Class
entId
item
:
:
int,
string,
itemClass
itemUOM
string,
string,
workOrder
string,
operation
string,
targetProdRate
uom
startQty
reqdQty
:
:
operator
:
double,
int,
batchSize
203
double,
double,
double,
string
string
Parameters
entId
Holds an integer identifying the entity to start the data
entry job.
item
Holds a string identifying the item for the data entry job.
itemClass
Holds a string identifying the item class ID of the item.
itemUOM
Holds an string which is a description used to identify the
unit of measure of the item.
workOrder
Holds a string identifying the work order for the data entry
job.
operation
Holds a string identifying the operation for the data entry
job.
targetProdRate
Holds a floating-point value indicating the target
production rate.
uom
Holds an integer indicating the unit of measure for the
target production rate.
batchSize
Holds a floating-point value indicating the batch size for the
data entry job.
startQty
Holds a floating-point value indicating the start quantity
for the data entry job.
204
reqdQty
Holds a floating-point value indicating the required
quantity for the data entry job.
operator
Holds a string identifying the user ID to associate with the
entity.
Exceptions
PrepareProductionAttributes() Method
The PrepareProductionAttributes() method accepts a set of
values for all production attributes and creates a data entry
job to support logging utilization against these attributes.
Syntax
C#]
public static string PrepareProductionAttributes (
string entName,
string site,
string item,
string itemClass,
string itemUOM,
string workOrder,
string operation,
double targetProdRate,
int uom,
double batchSize,
double startQty,
double reqdQty,
string operator
)
[C++]
public:
Ents Class
205
[J#]
public static string PrepareProductionAttributes (
string entName,
string site,
string item,
string itemClass,
string itemUOM,
string workOrder,
string operation,
double targetProdRate,
int uom,
double batchSize,
double startQty,
double reqdQty,
string operator
)
[Jscript]
public static function PrepareProductionAttributes (
entName : string,
site : string,
item : string,
itemClass : string,
itemUOM : string,
workOrder : string,
operation : string,
targetProdRate : double,
uom : int,
batchSize : double,
startQty : double,
reqdQty : double,
operator : string
) : string
Parameters
entName
Identifies the entity that the data entry job is to be started
on.
206
site
Optionally specifies the ancestor entity of the entity that
the data entry job is to be started on. It's used to identify
the entity since entity names are not always unique across
all sites.
item
Holds a string identifying the item for the data entry job.
itemClass
Holds a string identifying the item class ID of the item.
itemUOM
Holds a string which is a description for identifying the unit
of measure of the item.
workOrder
Holds a string identifying the work order for the data entry
job.
operation
Holds a string identifying the operation for the data entry
job.
targetProdRate
Holds a floating-point value indicating the target
production rate.
uom
Holds an integer indicating the unit of measure for the
target production rate.
batchSize
Holds a floating-point value indicating the batch size for the
data entry job.
startQty
Holds a floating-point value indicating the start quantity
for the data entry job.
reqdQty
A floating-point value indicating the required quantity for
the data entry job.
operator
Holds a string identifying the user ID to associate with the
entity.
Ents Class
207
Exceptions
[C#]
public static void SelectEntityInComboBox(
ComboBox comboBox,
int entID
)
[C++]
public:
static void SelectEntityInComboBox(
ComboBox comboBox,
int entID
)
[J#]
public static void SelectEntityInComboBox(
ComboBox comboBox,
int entID
)
[JScript]
public static
function SelectEntityInComboBox(
comboBox : ComboBox,
entID : int
)
Parameters
comboBox
Holds the combo box containing the entity data.
208
entID
Holds the ID of the entity to select or -1 for the empty entry.
[C#]
public static void SelectEntityInComboBox(
ComboBox comboBox,
Nullable<int> entID
)
[C++]
public:
static void SelectEntityInComboBox(
ComboBox comboBox,
Nullable<int> entID
)
[J#]
public static void SelectEntityInComboBox(
ComboBox comboBox,
Nullable<int> entID
)
[JScript]
public static
function SelectEntityInComboBox(
comboBox : ComboBox,
entID : Nullable<int>
)
Parameters
comboBox
Holds the combo box containing the entity data.
entID
Holds the ID of the entity to select or null for the empty
entry.
Ents Class
209
UpdateEntity() Method
The UpdateEntity() method updates the entity specified with
the new values supplied.
Syntax
[Visual Basic (Declaration)]
Public Sub UpdateEntity( _
ByValue entID As Integer, _
ByValue entityName As String, _
ByValue description As String, _
ByValue parentEntId As Integer, _
ByValue site As Integer, _
ByValue hourlyCost As Double, _
ByValue canScheduleJobs As Boolean, _
ByValue canRunJobs As Boolean, _
ByValue canCaptureUtil As Boolean, _
ByValue canCaptureLabor As Boolean, _
ByValue canDoDNC As Boolean, _
ByValue canTrackOEE As Boolean, _
ByValue canSchedShifts As Boolean, _
ByValue canStore As Boolean, _
ByValue canLogData As Boolean, _
ByValue canShip As Boolean, _
ByValue canReceive As Boolean, _
ByValue canCopyFolders As Boolean, _
ByValue curShiftId As Integer, _
ByValue curShiftStartTime As DateTime, _
ByValue identicalJobExecs As Integer, _
ByValue spare1 As String, _
ByValue spare2 As String, _
ByValue spare3 As String, _
ByValue spare4 As String
)
[C#]
public void UpdateEntity (
int entID,
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
210
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
void UpdateEntity (
int entID,
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
Ents Class
211
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[J#]
public void UpdateEntity (
int entID,
string entityName,
string description,
int parentEntId,
int site,
double hourlyCost,
bool canScheduleJobs,
bool canRunJobs,
bool canCaptureUtil,
bool canCaptureLabor,
bool canDoDNC,
bool canTrackOEE,
bool canSchedShifts,
bool canStore,
bool canLogData,
bool canShip,
bool canReceive,
bool canCopyFolders,
int curShiftId,
DateTime curShiftStartTime,
int identicalJobExecs,
string spare1,
string spare2,
string spare3,
string spare4
)
[Jscript]
public function UpdateEntity (
entID
int,
212
entityName :
string,
description
string,
parentEntId
int,
site
int,
hourlyCost
double,
canScheduleJobs
canRunJobs
canCaptureLabor
:
canTrackOEE
:
canReceive
bool,
bool,
:
bool,
bool,
bool,
:
canCopyFolders
curShiftId
bool,
canLogData
canShip
bool,
bool,
canSchedShifts
canStore
bool,
bool,
canCaptureUtil
canDoDNC
bool,
:
bool,
int,
curShiftStartTime
DateTime,
identicalJobExecs
int,
spare1
string,
spare2
string,
spare3
string,
spare4
string
Parameters
entID
Holds an integer identifying the entity updating.
entityName
Holds a string identifying the unique entity name.
description
Holds a string identifying the entity description.
parentEntId
Holds an integer identifying the parent entity ID. Null if
top level.
site
Holds an integer identifying the ancestor entity defines the
site of this entity. Is null if entity above sites, or for
single-site systems. If entity is a site, site is equal to the
entity ID.
Ents Class
213
hourlyCost
The cost of running.
canScheduleJobs
Holds a flag indicating whether jobs are scheduled to this
entity.
canRunJobs
Holds a flag indicating whether jobs are run on this entity.
canCaptureUtil
Holds a flag indicating whether an entity captures
utilization data.
canCaptureLabor
Holds a flag indicating whether labor data is captured on
this entity.
canDoDNC
Holds a flag indicating whether this entity communicates
with machine tools.
canTrackOEE
Holds a flag indicating whether OEE statistics are captured
on this entity.
canSchedShifts
Holds a flag indicating whether shifts are scheduled for this
entity.
canStore
Holds a flag indicating whether this entity is a warehouse
or storage location.
canLogData
Holds a flag indicating whether this entity logs data.
canShip
Holds a flag indicating whether shipments are made from
this entity.
canReceive
Holds a flag indicating whether material is received at this
entity.
canCopyFolders
Holds a flag indicating whether files in folders for this
entity are copied to its download directories.
curShiftId
Holds an integer indicating the current shift on this entity.
curShiftStartTime
Holds a date/time of the current shift start time on the
entity.
214
identicalJobExecs
Holds an integer indicating the number of identical
'positions' that can run independent jobs on this entity.
spare1
Holds a string used to save information for this entity.
spare2
Holds a string used to save information for this entity.
spare3
Holds a string used to save information for this entity.
spare4
Holds a string used to save information for this entity.
Exceptions
UpdateJobExec() Method
The UpdateJobExec() method updates the Job Exec record for
the specified entity.
Syntax
Ents Class
215
[C#]
public void UpdateJobExec (
int entID,
int jobPos,
bool nextJobOnly,
bool itemBasedDesc,
string jobEndConfirmMessage,
int defToEntID,
int defRejectEntID,
int defFromEntID,
int defProdReasCD,
int defConsReasCD,
string defLotNo,
string defSubLotNo,
bool autoLoadJobSpecs,
bool autoSeqStartOption,
bool autoJobStartOption,
bool
autoJobEndOption,
bool inclClassReas,
bool mustCompleteSteps,
bool mustProdReqdQty,
bool localMovableConsEnt,
bool localMovableProdEnt,
bool runWithoutOperator,
216
bool applyPostExecFCCounts,
bool suppressStartQtyPrompt,
bool allowZeroQtySplit,
bool autoAllocQtyToRunningJob,
string curWOID,
string curOperID,
int curSeqNo,
int curStepNo,
DateTime curStepStart,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
void UpdateJobExec (
int entID,
int jobPos,
bool nextJobOnly,
bool itemBasedDesc,
string jobEndConfirmMessage,
int defToEntID,
int defRejectEntID,
int defFromEntID,
int defProdReasCD,
int defConsReasCD,
string defLotNo,
string defSubLotNo,
bool autoLoadJobSpecs,
bool autoSeqStartOption,
bool autoJobStartOption,
bool
autoJobEndOption,
bool inclClassReas,
bool mustCompleteSteps,
bool mustProdReqdQty,
bool localMovableConsEnt,
bool localMovableProdEnt,
bool runWithoutOperator,
bool applyPostExecFCCounts,
Ents Class
217
bool suppressStartQtyPrompt,
bool allowZeroQtySplit,
bool autoAllocQtyToRunningJob,
string curWOID,
string curOperID,
int curSeqNo,
int curStepNo,
DateTime curStepStart,
string spare1,
string spare2,
string spare3,
string spare4
)
[J#]
public void UpdateJobExec (
int entID,
int jobPos,
bool nextJobOnly,
bool itemBasedDesc,
string jobEndConfirmMessage,
int defToEntID,
int defRejectEntID,
int defFromEntID,
int defProdReasCD,
int defConsReasCD,
string defLotNo,
string defSubLotNo,
bool autoLoadJobSpecs,
bool autoSeqStartOption,
bool autoJobStartOption,
bool
autoJobEndOption,
bool inclClassReas,
bool mustCompleteSteps,
bool mustProdReqdQty,
bool localMovableConsEnt,
bool localMovableProdEnt,
bool runWithoutOperator,
bool applyPostExecFCCounts,
bool suppressStartQtyPrompt,
bool allowZeroQtySplit,
218
bool autoAllocQtyToRunningJob,
string curWOID,
string curOperID,
int curSeqNo,
int curStepNo,
DateTime curStepStart,
string spare1,
string spare2,
string spare3,
string spare4
)
[Jscript]
public function UpdateJobExec(
entID
jobPos
int,
int,
nextJobOnly
itemBasedDesc
bool,
:
bool,
jobEndConfirmMessage
defToEntID
int,
int,
defProdReasCD
int,
defConsReasCD
int,
defLotNo
defSubLotNo
string,
int,
defRejectEntID
defFromEntID
string,
:
string,
autoLoadJobSpecs
bool,
autoSeqStartOption
bool,
autoJobStartOption
bool,
autoJobEndOption
inclClassReas
bool,
mustCompleteSteps
mustProdReqdQty
bool,
bool,
bool,
localMovableConsEnt
bool,
localMovableProdEnt
bool,
runWithoutOperator
bool,
applyPostExecFCCounts
suppressStartQtyPrompt
allowZeroQtySplit
string,
bool,
bool,
autoAllocQtyToRunningJob
curWOID
bool,
bool,
Ents Class
curOperID
curSeqNo
:
:
curStepNo
string,
int,
curStepStart
int,
:
DateTime,
spare1
string,
spare2
string,
spare3
string,
spare4
219
string
Parameters
entID
Holds an integer identifying the entity whose job exec want
to update.
jobPos
Holds an integer identifying the job exec position want to
update.
nextJobOnly
Holds a flag indicating whether to start the next job or
select any job to start.
itemBasedDesc
Holds a flag indicating that messages should use item
descriptions not operation descriptions.
jobEndConfirmMessage
Holds a string which is the operation end confirm message.
defToEntID
Holds an integer identifying the default storage entity for
good production items, and rejects if def_reject_ent_id is
null.
defRejectEntID
Holds an integer identifying the default storage entity for
reject production.
defFromEntID
Holds an integer identifying default storage entity for item
issues.
defProdReasCD
Holds an integer identifying the default reason code for
good production.
defConsReasCD
Holds an integer identifying the default reason code for
normal consumption.
220
defLotNo
Holds a string identifying the default lot number for
production.
defSubLotNo
Holds a string identifying the default sublot number for
production.
autoLoadJobSpecs
Holds a flag indicating if should auto load job specs to tags.
autoSeqStartOption
Holds an integer identifying an enumeration of conditions
to automatically start the job with the current W/O and op.
and next seq_no: -=Don't start automatically, 1=Start job
with next sequence when previous done.
autoJobStartOption
Holds an integer identifying an enumeration of conditions
to automatically start a job. 0=Don't start automatically,
1=Start next scheduled job as soon as ready, 2=Start next
scheduled job with W/O specified in tag that just changed.
autoJobEndOption
Holds an integer identifying an enumeration of conditions
to automatically end a job 0=Don't end automatically,
1=when QtyDone>=QtyReqd.
inclClassReas
Holds a flag indicating if item reasons for item class should
also be available to choose from if there are entity-related
item reasons defined.
mustCompleteSteps
Holds a flag indicating if all steps must be
completed/bypassed to end job.
mustProdReqdQty
Holds a flag indicating whether required quantity must be
produced (good) to end the job.
localMovableConsEnt
Holds a flag indicating if movable storage entities supplying
consumption need to be in/at the entity producing it.
localMovableProdEnt
Holds a flag indicating if movable storage entities receiving
production need to be in/at the entity producing it.
runWithoutOperator
Holds a flag indicating if jobs may run without an operator
logged onto the entity; if no, running jobs are suspended
when last operator logs off.
Ents Class
221
applyPostExecFCCounts
Holds a flag indicating if production counts received from
Factory Connector when no job is running should be applied
to the last job that ran on the entity. No suggests that
such counts are ignored.
suppressStartQtyPrompt
Holds a flag indicating if a prompt to specify a quantity to
start when the Start Some button is pressed should be
suppressed.
allowZeroQtySplit
Holds a flag indicating if default quantities to be used from
Start some are 0.
autoAllocQtyToRunning Job
Holds a flag indicating if overages in reported production
are to be covered by moving quantities from a scheduled,
non-running job if available.
curWOID
Holds a string identifying the current work order on this
entity.
curOperID
Holds a string identifying the current operation on this
entity.
curSeqNo
Holds an integer identifying the current operation split.
curStepNo
Holds an integer identifying the last step started on this
entity.
curStepStart
Holds a DateTime which is when the last step was started
on this entity.
spare1
Holds a string used to save information for this entity.
spare2
Holds a string used to save information for this entity.
spare3
Holds a string used to save information for this entity.
spare4
Holds a string used to save information for this entity.
UpdateOEEExec() Method
The UpdateOEEExec() method updates the OEE Exec record
for the entity passed in.
222
Syntax
[C#]
public static void UpdateOEEExec (
int entId,
int jobEntId,
int utilEntId,
double targetOEEPercent,
double targetPerformancePercent,
double targetQualityPercent,
double defProdRate,
int defProdUOM
)
[C++]
public:
static void UpdateOEEExec (
int entId,
int jobEntId,
int utilEntId,
double targetOEEPercent,
double targetPerformancePercent,
double targetQualityPercent,
double defProdRate,
int defProdUOM
)
[J#]
public static void UpdateOEEExec (
int entId,
int jobEntId,
int utilEntId,
double targetOEEPercent,
Ents Class
223
double targetPerformancePercent,
double targetQualityPercent,
double defProdRate,
int defProdUOM
)
[Jscript]
public static function UpdateOEEExec(
entId
jobEntId
int,
:
utilEntId
int,
int,
targetOEEPercent
double,
targetPerformancePercent
targetQualityPercent
defProdRate
defProdUOM
:
:
double,
double,
double,
int
Parameters
entId
Holds an integer identifying the entity whose oee_exec
record is to be updated.
jobEntId
Holds an integer identifying the entity to get production
data.
utilEntId
Holds an integer identifying the entity to get utilization
data.
targetOEEPercent
Holds a float that is gives the target OEE as a percentage.
targetPerformancePercent
Holds a float that gives the target performance as a
percentage.
targetQualityPercent
Holds a float that gives the target quality as a percentage.
defProdRate
Holds a float that gives the default production rate so OEE
is calculated if item unknown is a straight monitoring
application.
defProdUOM
Holds an integer identifying the unit of measure of the
default production rate.
224
Exceptions
UpdateUtilExec() Method
The UpdateUtilExec() method updates the Util Exec record for
the entity that is passed in.
Syntax
[C#]
public static void UpdateUtilExec (
int entId,
int curStateCd,
int curReasCd,
DateTime curReasStart,
double targetUtilPercent,
double currentUtil,
int jobStartReasCd,
int jobEndReasCd,
int unKnownReasonCd,
int shiftStartReasCd,
int shiftEndReasCd
)
[C++]
public:
static void UpdateUtilExec (
int entId,
int curStateCd,
Ents Class
225
int curReasCd,
DateTime curReasStart,
double targetUtilPercent,
double currentUtil,
int jobStartReasCd,
int jobEndReasCd,
int unKnownReasonCd,
int shiftStartReasCd,
int shiftEndReasCd
)
[J#]
public static void UpdateUtilExec (
int entId,
int curStateCd,
int curReasCd,
DateTime curReasStart,
double targetUtilPercent,
double currentUtil,
int jobStartReasCd,
int jobEndReasCd,
int unKnownReasonCd,
int shiftStartReasCd,
int shiftEndReasCd
)
[Jscript]
public static function UpdateUtilExec(
entId
int,
curStateCd
curReasCd
:
:
curReasStart
int,
int,
:
DateTime,
targetUtilPercent
currentUtil
jobStartReasCd
jobEndReasCd
double,
double,
:
int,
int,
unKnownReasonCd
shiftStartReasCd
shiftEndReasCd
int,
int,
int
226
Parameters
entId
Holds an integer identifying the entity whose util_exec
record is to be updated.
curStateCd
Holds an integer identifying the current state of this entity.
curReasCd
Holds an integer identifying the current reason of this
entity.
curReasStart
Holds a date/time identifying when the current entity
reason started in UTC.
targetUtilPercent
Holds a float identifying the target entity utilization as a
percentage.
currentUtil
Holds a float identifying the current entity utilization =
RT/(RT+DT).
jobStartReasCd
Holds an integer identifying the default reason when job
starts.
jobEndReasCd
Holds an integer identifying the default reason when job
ends.
unKnownReasonCd
Holds an integer identifying the default reason when
unknown reason from I/O.
shiftStartReasCd
Holds an integer identifying the default reason when a
valid shift starts. (Only applied if a job is not running on
this entity.)
shiftEndReasCd
Holds an integer identifying the default reason when a
valid shift ends. (Only applied if a job is not running on the
entity.)
Exceptions
Jobs Class
227
Jobs Class
The Jobs class provides Factelligence MES functionality for a
job when not in the context of a currently running job. All
information identifying the job must be provided. All
methods in this class are static.
AddConsDirect() Method
The AddConsDirect() method adds consumption information
directly for an item, not necessarily through a job that has
run on an entity. This means that consumption can be added
to the item even if there is no job that produces this identified
item.
Syntax
[C#]
public static void AddConsDirect(
string userId,
int fromEntId,
string itemId,
double qtyCons,
228
int reasCd,
int gradeCd,
int statusCd,
string lotNo,
int shiftId,
string shiftStart,
string woId,
string operId,
int seqNo,
int entId,
string spare1,
string spare2,
string spare3,
string spare4,
int item_scrapped
)
[C++]
public:
static void AddConsDirect(
String userId,
int fromEntId,
String itemId,
double qtyCons,
int reasCd,
int gradeCd,
int statusCd,
String lotNo,
int shiftId,
String shiftStart,
String woId,
String operId,
int seqNo,
int entId,
String spare1,
String spare2,
String spare3,
String spare4,
int item_scrapped
)
[J#]
Jobs Class
229
[JScript]
public static
function AddConsDirect(
userId : String,
fromEntId : int,
itemId : String,
qtyCons : double,
reasCd : int,
gradeCd : int,
statusCd : int,
lotNo : String,
shiftId : int,
shiftStart : String,
woId : String,
operId : String,
seqNo : int,
entId : int,
spare1 : String,
spare2 : String,
spare3 : String,
230
spare4 : String,
item_scrapped : int
)
Parameters
userId
Holds the ID of the user to whom to attribute consumption.
fromEntId
Holds an entity ID of the storage entity from which the
quantity was consumed.
itemId
The item that is being consumed.
qtyCons
Holds the consumption quantity being added.
reasCd
Holds an item reason code for the quantity consumed.
gradeCd
Holds an item grade for the quantity consumed. Pass -1 if
not used.
statusCd
Holds the item status for the quantity consumed. Pass -1 if
not used.
lotNo
Holds the lot number for the item that is being consumed.
Pass null if not used to identify the item_cons record.
shiftId
Holds the shift ID for the shift in which this item was
consumed. Pass -1 if not used to identify the item_cons
record.
shiftStart
Holds the shift start of the shift in which this item was
consumed. Pass null if not used to identify the item_cons
record.
woId
Holds the work order ID of a job that the item was
consumed by. Pass null if not used to identify the item_cons
record.
operId
Holds the operation ID of a job that the item was consumed
by. Pass null if not used to identify the item_cons record.
seqNo
Holds the sequence number of a job that the item was
consumed by. Pass -1 if not used to identify the item_cons
record.
Jobs Class
231
entId
Holds the ID of the entity that the job that the item
consumed by ran on. Pass -1 if not used to identify the
item_cons record.
spare1
Holds an optional value for the spare1 field of the job. Pass
null if not used.
spare2
Holds an optional value for the spare2 field of the job. Pass
null if not used.
spare3
Holds an optional value for the spare3 field of the job. Pass
null if not used.
spare4
Holds an optional value for the spare4 field of the job. Pass
null if not used.
item_scrapped
Flag specifying if item was consumed as scrap. Pass 0 for
normal consumption.
Exceptions
AddConsPostExec() Method
The AddConsPostExec() method adds consumption data for
the specified job after the job has run on the specified entity.
Syntax
232
[C#]
public static void AddConsPostExec(
string userID,
int entID,
object bomPos,
double qty,
string woID,
string operID,
int seqNo,
DateTime shiftStart,
int shiftID,
object reasCd,
string itemID,
string lotNo,
string fgLotNo,
object fromEntID,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4,
int rowID
)
[C++]
public:
static void AddConsPostExec(
String userID,
int entID,
Object bomPos,
double qty,
String woID,
String operID,
Jobs Class
233
int seqNo,
DateTime shiftStart,
int shiftID,
Object reasCd,
String itemID,
String lotNo,
String fgLotNo,
Object fromEntID,
String extRef,
String spare1,
String spare2,
String spare3,
String spare4,
int rowID
)
[J#]
public static void AddConsPostExec(
string userID,
int entID,
object bomPos,
double qty,
string woID,
string operID,
int seqNo,
DateTime shiftStart,
int shiftID,
object reasCd,
string itemID,
string lotNo,
string fgLotNo,
object fromEntID,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4,
int rowID
)
[JScript]
public static
function AddConsPostExec(
234
userID : String,
entID : int,
bomPos : Object,
qty : double,
woID : String,
operID : String,
seqNo : int,
shiftStart : DateTime,
shiftID : int,
reasCd : Object,
itemID : String,
lotNo : String,
fgLotNo : String,
fromEntID : Object,
extRef : String,
spare1 : String,
spare2 : String,
spare3 : String,
spare4 : String,
rowID : int
)
Parameters
userID
Holds the ID of the user to whom to attribute consumption.
entID
Holds the ID of the entity on which the job ran.
bomPos
Holds the BOM position of the item. It is an optional
parameter used to identify an item_cons record to add
consumption to an existing row if there is one. If this
parameter is not to be used to identify an item_cons record,
it should be set to null.
qty
Holds the consumption quantity being added.
woID
Holds the ID of the work order.
operID
Holds the ID of the operation.
seqNo
Holds the sequence number of the operation.
Jobs Class
235
shiftStart
Holds the start of the shift during which consumption
occurred.
shiftID
Holds the ID of the shift.
reasCd
Holds the reason code of the item being consumed. This is
an optional parameter that is used to identify an item_cons
record to add consumption to the existing row if there is
one. If the reason code is null, it is not used when
identifying the item_cons record.
itemID
Holds the item being consumed. This is an optional
parameter that is used to identify an item_cons record to
add consumption to the existing row if there is one. If the
item ID is null, it is not used when identifying the
item_cons record.
lotNo
Holds the lot number of the item being consumed. This is
an optional parameter that is used to identify an item_cons
record to add consumption to the existing row if there is
one. If the lot number is null, it is not used when identifying
the item_cons record.
fgLotNo
Holds the finished goods lot number of the item being
consumed. This is an optional parameter that is used to
identify an item_cons record to add consumption to the
existing row if there is one. If the fgLotNo is null, it is not
used when identifying the item_cons record.
fromEntID
Holds the storage entity ID. This is an optional parameter
that is used to identify an item_cons record to add
consumption to the existing row if there is one. If the
fromEntID is null, it is not used when identifying the
item_cons record.
.extRef
Holds the external reference of the item being consumed.
This is an optional parameter that is used to identify an
item_cons record to add consumption to the existing row if
there is one. If the extRef is null, it is not used when
identifying the item_cons record.
spare1
Holds an optional value for spare1. Set to null if not used.
spare2
Holds an optional value for spare2. Set to null if not used.
236
spare3
Holds an optional value for spare3. Set to null if not used.
spare4
Holds an optional value for spare4. Set to null if not used.
rowID
Holds an optional value for row_id. Set to -1 if not used.
Exceptions
AddJobEvent() Method
The AddJobEvent() method adds a job event to the specified
job. Job events include things such as, a certification signoff,
adding production, adding consumption, reclassifying
production, reclassifying consumption, completing a step,
changing job specifications, and changing a job state.
Syntax
_
_
_
Jobs Class
237
_
_
[C#]
[C++]
public:
238
[J#]
public static bool AddJobEvent(
DateTime eventTime,
string woID,
string operID,
int seqNo,
object stepNo,
object eventType,
object bomPos,
object lotNo,
Jobs Class
239
object itemID,
object certName,
object doneByUserID,
object checkedByUserID,
object itemProdRowID,
object itemConsRowID,
object specID,
object comments,
object value1,
object value2,
object value3,
object value4,
object value5,
object value6,
object value7,
object value8,
object value9,
object value10,
int entID,
object jobPos
)
[JScript]
public static
function AddJobEvent(
eventTime : DateTime,
woID : String,
operID : String,
seqNo : int,
stepNo : Object,
eventType : Object,
bomPos : Object,
lotNo : Object,
itemID : Object,
certName : Object,
doneByUserID : Object,
checkedByUserID : Object,
itemProdRowID : Object,
itemConsRowID : Object,
specID : Object,
comments : Object,
value1 : Object,
240
value2 : Object,
value3 : Object,
value4 : Object,
value5 : Object,
value6 : Object,
value7 : Object,
value8 : Object,
value9 : Object,
value10 : Object,
entID : int,
jobPos : Object
) : bool
Parameters
eventTime
Holds the timestamp for the job event.
woID
Holds the work order ID of the job
operID
Holds the operation ID of the job.
seqNo
Holds the operation sequence number.
stepNo
Optionally holds the step number. Pass null if not used.
eventType
Optionally holds the event type. Pass null if not used.
bomPos
Optionally holds the BOM position. Pass null if not used.
lotNo
Optionally holds the lot number. Pass null if not used.
itemID
Optionally holds the item ID. Pass null if not used.
certName
Optionally holds the certification name. Pass null if not
used.
doneByUserID
Optionally holds the ID of the user who did the event. Pass
null if not used.
checkedByUserID
Optionally holds the ID of the user who checked the event.
Pass null if not used.
Jobs Class
241
itemProdRowID
Optionally holds the ID of the row in the item_prod table.
Pass null if not used.
itemConsRowID
Optionally hold the ID of the row in the item_cons table.
Pass null if not used.
specID
Optionally holds the ID of the specification used. Pass null
if not used.
comments
Optionally holds a comment about the event. Pass null if
not used.
value1
Optionally holds the first value for the job event. Pass null
if not used.
value2
Optionally holds the second value for the job event. Pass
null if not used.
value3
Optionally holds the third value for the job event. Pass null
if not used.
value4
Optionally holds the fourth value for the job event. Pass
null if not used.
value5
Optionally holds the fifth value for the job event. Pass null
if not used.
value6
Optionally holds the sixth value for the job event. Pass null
if not used.
value7
Optionally holds the seventh value for the job event. Pass
null if not used.
value8
Optionally holds the eighth value for the job event. Pass
null if not used.
value9
Optionally holds the ninth value for the job event. Pass null
if not used.
value10
Optionally holds the tenth value for the job event. Pass null
if not used.
242
entID
Optionally holds the ID of the entity on which the event
occurred. Pass null if not used.
jobPos
Optionally holds the job_pos.
Return Value
Exceptions
AddProd () Method
The AddProd() method adds the specified amount of
production to the specified entity with the specified reason
code.
Syntax
[C#]
public void AddProd (
string entName,
string site,
double qty,
int reasCd
)
[C++]
public:
void AddProd (
string entName,
string site,
double qty,
int reasCd
)
[J#]
public void AddProd (
string entName,
string site,
Jobs Class
243
double qty,
int reasCd
)
[Jscript]
public function AddProd (
entName : string,
site : string,
qty : double,
reasCd : int
)
Parameters
entName
Holds a string specifying the entity name of the entity to
which production is added.
site
Holds a string specifying the name of the ancestor entity
that defines the site of the entity. Used to identify the
entity specified by entName since entity names may not be
unique.
Null if the entity name is unique across all sites.
qty
Holds an double specifying the amount of production that is
to be added.
reasCD
Holds an integer specifying the reason that uniquely
identifies grade and status of the goods produced.
AddProdPostExec() Method
The AddProdPostExec() method adds production data for the
specified job after the job has run on the specified entity.
Syntax
_
_
244
_
_
[C#]
public static void AddProdPostExec(
string userID,
int entID,
double qty,
string woID,
string operID,
int seqNo,
DateTime shiftStart,
int shiftID,
string itemID,
object reasCd,
string lotNo,
object toEntID,
object processed,
object byProduct,
string extRef,
object moveStatus,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
static void AddProdPostExec(
String userID,
int entID,
Jobs Class
245
double qty,
String woID,
String operID,
int seqNo,
DateTime shiftStart,
int shiftID,
String itemID,
Object reasCd,
String lotNo,
Object toEntID,
Object processed,
Object byProduct,
String extRef,
Object moveStatus,
String spare1,
String spare2,
String spare3,
String spare4
)
[J#]
public static void AddProdPostExec(
string userID,
int entID,
double qty,
string woID,
string operID,
int seqNo,
DateTime shiftStart,
int shiftID,
string itemID,
object reasCd,
string lotNo,
object toEntID,
object processed,
object byProduct,
string extRef,
object moveStatus,
string spare1,
string spare2,
string spare3,
246
string spare4
)
[JScript]
public static
function AddProdPostExec(
userID : String,
entID : int,
qty : double,
woID : String,
operID : String,
seqNo : int,
shiftStart : DateTime,
shiftID : int,
itemID : String,
reasCd : Object,
lotNo : String,
toEntID : Object,
processed : Object,
byProduct : Object,
extRef : String,
moveStatus : Object,
spare1 : String,
spare2 : String,
spare3 : String,
spare4 : String
)
Parameters
userID
Holds the ID of the user to whom to attribute production
entID
Holds the ID of the entity on which the job ran.
qty
Holds the production quantity being added.
woID
Holds the ID of the work order.
operID
Holds the ID of the operation.
seqNo
Holds the sequence number of the operation.
shiftStart
Holds the start of the shift during which production
occurred.
Wonderware Factelligence Client API Reference Guide
Jobs Class
247
shiftID
Holds the ID of the shift.
itemID
Holds an optional ID of the item being produced. Set to null
if not used.
reasCd
Holds an optional item reason code for the quantity
produced. Set to null if not used.
lotNo
Holds an optional lot number for the quantity produced. Set
to null if not used.
toEntID
Holds an optional ID of the storage entity to which the
quantity was produced. Set to null if not used.
processed
Holds an optional flag to mark if the quantity was
processed. Set to null if not used.
byProduct
Holds an optional flag to tell if a byproduct was produced.
Set to null if not used.
extRef
Holds an optional external reference. Set to null if not used.
moveStatus
Holds an optional move status. Set to null if not used.
spare1
Holds an optional value for spare1. Set to null if not used.
spare2
Holds an optional value for spare2. Set to null if not used.
spare3
Holds an optional value for spare3. Set to null if not used.
spare4
Holds an optional value for spare4. Set to null if not used.
Exceptions
EndJob() Method
The EndJob() method ends the job that is identified by the
input parameters. If the job is part of a batch, an attempt is
made to end all jobs in the batch. Ending a job puts the job
state into a completed state.
248
Syntax
[C#]
public static void EndJob(
string woId,
string operId,
int seqNo,
string statusNotes
)
[C++]
public:
static void EndJob(
String woId,
String operId,
int seqNo,
String statusNotes
)
[J#]
public static void EndJob(
string woId,
string operId,
int seqNo,
string statusNotes
)
[JScript]
public static
function EndJob(
woId : String,
operId : String,
seqNo : int,
statusNotes : String
)
Parameters
woId
Holds the work order identifying the job that is to be
completed.
Jobs Class
249
operId
Holds the operation ID identifying the job that is to be
completed.
seqNo
Holds the sequence number identifying the job that is to
completed.
statusNotes
Holds the status notes that are to be saved with the job
when the job is completed. These notes are edited on the
dialog used to confirm that the user wants to complete the
job.
Exceptions
EndAllJobs () Method
The EndAllJobs() method attempts to end all jobs that are
currently running on the entity specified. Any failure to end
a job results in an error message being added to the end of
the return string. All error messages in this return string are
separated by a semi colon and contain the job
information(wo/op/seq) and any message returned by the
middleware.
Syntax
[C#]
[C++]
public:
string AddProd (
string entName,
string statusNotes
)
[J#]
public string AddProd (
string entName,
250
string statusNotes
)
[Jscript]
public function AddProd (
entName : string,
statusNotes : string
) : string
Parameters
entName
Holds a string which is the entity name of the entity that
all jobs running on should be ended.
statusNotes
Holds a string contains any status notes that are to be
added to the event when ending a job that is currently
running on the entity specified.
GetAllJobStates() Method
The GetAllJobStates() method returns a DataSet containing
the job states defined. A job state is the production state of a
job. Examples include: running, paused, completed,
cancelled.
Syntax
[C#]
[C++]
public:
static DataSet GetAllJobStates()
[J#]
[JScript]
public static
Return Value
Exceptions
GetConfirmation() Method
The GetConfirmation() method returns confirmation from the
user that he wants to perform a specific action on a job by
prompting with a dialog box confirming that the state
Jobs Class
251
[C#]
[C++]
public:
static bool GetConfirmation(
JobStates jobState,
String action,
String woDesc,
String operId,
String jobDesc,
String% statusNotes,
bool userCanAppend,
bool userCanEdit,
bool batchJobs
252
[J#]
public static bool GetConfirmation(
JobStates jobState,
string action,
string woDesc,
string operId,
string jobDesc,
string statusNotes,
bool userCanAppend,
bool userCanEdit,
bool batchJobs
)
[JScript]
public static
function GetConfirmation(
jobState : JobStates,
action : String,
woDesc : String,
operId : String,
jobDesc : String,
statusNotes : String,
userCanAppend : bool,
userCanEdit : bool,
batchJobs : bool
) : bool
Parameters
jobState
Holds the job state that user wants to put.
action
Holds the action the user wants to perform. These actions
include Start, End, or Pause.
woDesc
Holds the description of the work order that this job is
performing.
operId
Holds the operation ID of the job that user is confirming to
perform the specified action on.
jobDesc
Holds the description of the job that the user is confirming
to perform the specified action on.
Jobs Class
253
statusNotes
Holds the statusNotes of the job that the user is confirming
to perform the specified action on. If the user has the
privileges for appending or editing notes, these notes can be
edited when performing one of the specified actions as the
status of the job is being changed.
userCanAppend
Holds a flag indicating whether or not the user has the
privilege to append to the status notes of the job. This
means that the user can add to the notes that are already
present, but cannot delete anything that was previously
entered.
userCanEdit
Holds a flag indicating whether or not the user has the
privilege to edit the status notes of the job. The user can
added to as well as delete from the current status notes of
the job.
batchJobs
Holds a flag indicating that this job is part of a batch of
jobs. If a job is part of a batch, all jobs in that batch are
started, paused or ended at the same time.
Return Value
Exceptions
GetDownstreamOperations() Method
The GetDownstreamOperations() method returns the
downstream operations for the specified job and returns a
DataSet containing the work order, operation, and sequence
number of these downstream operations. Downstream
operations are those operations of the job that occur in the
same job route as the specified job.
Syntax
[C#]
254
string woID,
string operID,
int seqNo
)
[C++]
public:
static DataSet GetDownstreamOperations(
String woID,
String operID,
int seqNo
)
[J#]
public static DataSet GetDownstreamOperations(
string woID,
string operID,
int seqNo
)
[JScript]
public static
function GetDownstreamOperations(
woID : String,
operID : String,
seqNo : int
) : DataSet
Parameters
woID
Holds the work order ID of the job whose downstream
operations want to retrieve.
operID
Holds the operation ID of the job whose downstream
operations want to retrieve.
seqNo
Holds the sequence number of the job whose downstream
operations want to retrieve.
Return Value
Exceptions
Jobs Class
255
GetDownstreamProduction() Method
The GetDownstreamProduction() method, gets DataSet of
Item_Prod records, for the specified job. Lot and sublot are
optional parameters that can be supplied and are used to
filter the item_prod records to those that have the produced
item as part of the specified lot and/or sublot.
Syntax
[C#]
[C++]
public:
static DataSet GetDownstreamProduction(
String woID,
String operID,
int seqNo,
String lotNo,
String sublotNo
)
[J#]
public static DataSet GetDownstreamProduction(
string woID,
string operID,
int seqNo,
string lotNo,
string sublotNo
)
[JScript]
256
public static
function GetDownstreamProduction(
woID : String,
operID : String,
seqNo : int,
lotNo : String,
sublotNo : String
) : DataSet
Parameters
woID
Holds the job's work order ID.
operID
Holds the job's operation ID.
seqNo
Holds the job's sequence number.
lotNo
Holds the lot number of the produced item.
sublotNo
Holds the sublot number of the lot of the produced item.
Return Value
Exceptions
GetJob() Method
The GetJob() method gets all of the job data for the specified
job. Job data includes current job state, the job priority, the
required finish time, and quantity produced. A job is
specified by a work order, an operation, and a sequence
number.
Syntax
[C#]
Jobs Class
257
string operId,
int seqNo
)
[C++]
public:
static DataRow GetJob(
String woId,
String operId,
int seqNo
)
[J#]
public static DataRow GetJob(
string woId,
string operId,
int seqNo
)
[JScript]
public static
function GetJob(
woId : String,
operId : String,
seqNo : int
) : DataRow
Parameters
woId
Holds the work order ID of the job.
operId
Holds the operation ID of the job.
seqNo
Holds the sequence number of the operation.
Return Value
Exceptions
GetJobEvents() Method
The GetJobEvents() method returns a DataSet containing all
job event data for the specified job. Job Events include things
such as, a certification signoff, adding production, adding
consumption, reclassifying production, reclassifying
258
[C#]
[C++]
public:
static DataSet GetJobEvents(
String woID,
String operID,
int seqNo,
Object stepNo,
String lotNo
)
[J#]
public static DataSet GetJobEvents(
string woID,
string operID,
int seqNo,
object stepNo,
string lotNo
)
[JScript]
public static
function GetJobEvents(
woID : String,
operID : String,
Jobs Class
259
seqNo : int,
stepNo : Object,
lotNo : String
) : DataSet
Parameters
woID
Holds the work order ID of the job for which event data is
desired.
operID
Holds the operation ID of the job for which event data is
desired.
seqNo
Holds the operation sequence number of the job for which
event data is desired.
stepNo
Holds the step number to filter the job event data by. Set to
null to ignore.
lotNo
Holds the lot number to filter the job even data by. Set to an
empty string to ignore.
Return Value
Exceptions
GetJobExecData() Method
The GetJobExecData() method gets all information for the
specified job position on the entity supplied. This method is
used to retrieve job exec information when there is no current
entity and/or the job is not running. An entity contains a job
exec object for each job position. Job based login uses this to
read the SuppressStartSomeQtyPrompt, AllowZeroQtySplit,
and AutoAllocateQtyToRunningJob flags.
Syntax
[C#]
260
int ent_id,
int job_pos
)
[C++]
public:
static DataSet GetJobExecData(
int ent_id,
int job_pos
)
[J#]
public static DataSet GetJobExecData(
int ent_id,
int job_pos
)
[JScript]
public static
function GetJobExecData(
ent_id : int,
job_pos : int
) : DataSet
Parameters
ent_id
Holds an entity, for which job exec data for a job position is
retrieved.
job_pos
Holds a position of the job, for which job exec data is
retrieved.
Return Value
Returns a DataSet containing the job exec data for the job
position on the entity supplied.
Exceptions
Jobs Class
261
[C#]
[C++]
public:
static DataSet GetJobAttrs(
String woId,
String operId,
int seqNo
)
[J#]
public static DataSet GetJobAttrs(
string woId,
string operId,
int seqNo
)
[JScript]
public static
function GetJobAttrs(
woId : String,
operId : String,
seqNo : int
) : DataSet
Parameters
woId
Holds the work order identifying the job attributes for the
job retrieved.
operId
Holds the operation identifying the job attributes for the job
retrieved.
seqNo
Holds the sequence number identifying the job attributes
for the job retrieved.
Return Value
262
Exceptions
[C#]
[C++]
public:
static DataRow GetJobAttrs(
String woId,
String operId,
int seqNo,
int attrId
)
[J#]
public static DataRow GetJobAttrs(
string woId,
string operId,
int seqNo,
int attrId
)
[JScript]
public static
function GetJobAttrs(
woId : String,
Jobs Class
263
operId : String,
seqNo : int,
attrId : int
) : DataRow
Parameters
woId
Holds the work order identifying the job attributes for the
job retrieved.
operId
Holds the operation identifying the job attributes for the job
retrieved.
seqNo
Holds the sequence number identifying the job attributes
for the job retrieved.
attrId
Holds the attribute ID of the attribute that is requested for
this job.
Return Value
Returns a DataRow containing the specified job attribute's
data if it exists, else null.
Exceptions
[C#]
264
string operId,
int seqNo
)
[C++]
public:
static DataView GetJobBomAvailSubst(
String woId,
String operId,
int seqNo
)
[J#]
public static DataView GetJobBomAvailSubst(
string woId,
string operId,
int seqNo
)
[JScript]
public static
function GetJobBomAvailSubst(
woId : String,
operId : String,
seqNo : int
) : DataView
Parameters
woId
Holds the work order ID of the job for retrieving substitute
items.
operId
Holds the operation ID of the job for retrieving substitute
items.
seqNo
Holds the sequence number of the job for retrieving
substitute items.
Return Value
Exceptions
Jobs Class
265
GetJobBOMData() Method
The GetJobBOMData() method gets the BOM data for the
specified job. A job is specified by a work order ID, an
operation ID, and an operation sequence number. If a BOM
position is specified, only the BOM data for that item is
returned.
Syntax
[C#]
[C++]
public:
static DataSet GetJobBOMData(
String woId,
String operId,
int seqNo,
Object BOMPos
)
[J#]
public static DataSet GetJobBOMData(
string woId,
string operId,
int seqNo,
object BOMPos
)
[JScript]
public static
function GetJobBOMData(
woId : String,
operId : String,
seqNo : int,
266
BOMPos : Object
) : DataSet
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
BOMPos
Optionally holds the position in the BOM for an individual
item. Set to null if not used in which case all BOM data for
the job is returned.
Return Value
Exceptions
[C#]
Jobs Class
267
object BOMPos
)
[C++]
public:
static DataView GetJobBOMProducibles(
String woId,
String operId,
int seqNo,
Object BOMPos
)
[J#]
public static DataView GetJobBOMProducibles(
string woId,
string operId,
int seqNo,
object BOMPos
)
[JScript]
public static
function GetJobBOMProducibles(
woId : String,
operId : String,
seqNo : int,
BOMPos : Object
) : DataView
Parameters
woId
Holds the work order ID.
operId
Holds the operation ID.
seqNo
Holds the operation sequence number.
BOMPos
Holds an optional BOM position. If all BOM positions are to
be returned, set this parameter to null.
Return Value
268
Exceptions
[C#]
[C++]
public:
static DataView GetJobBomSubst(
String woId,
String operId,
int seqNo,
int bom_pos
)
[J#]
public static DataView GetJobBomSubst(
string woId,
string operId,
int seqNo,
int bom_pos
)
[JScript]
public static
function GetJobBomSubst(
woId : String,
operId : String,
Jobs Class
269
seqNo : int,
bom_pos : int
) : DataView
Exceptions
GetJobBomSubstitutesForSerializedItem()
Method
The GetJobBomSubstitutesForSerializedItem() method returns
a dataview containing serialized item substitutes for all of
the consumable BOM items of the specified job. A dataview is
used in order to filter the data to contain records in which the
item of the job is a serialized item.
Syntax
[C#]
[C++]
public:
static DataView GetJobBomSubstitutesForSerializedItem(
String woId,
String operId,
String itemId
)
[J#]
public static DataView
GetJobBomSubstitutesForSerializedItem(
string woId,
string operId,
string itemId
270
[JScript]
public static function
GetJobBomSubstitutesForSerializedItem(
woId : String,
operId : String,
itemId : String
) : DataView
Parameters
woId
Holds the work order ID of the job that retrieves substitute
items.
operId
Holds the operation ID of the job that retrieves substitute
items.
itemId
Holds the item ID of the job that retrieves substitute items.
Return Value
Exceptions
[C#]
Jobs Class
271
string woId,
string operId,
int seqNo,
object BOMPos
)
[C++]
public:
static DataSet GetJobBOMWithSubData(
String woId,
String operId,
int seqNo,
Object BOMPos
)
[J#]
public static DataSet GetJobBOMWithSubData(
string woId,
string operId,
int seqNo,
object BOMPos
)
[JScript]
public static
function GetJobBOMWithSubData(
woId : String,
operId : String,
seqNo : int,
BOMPos : Object
) : DataSet
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
BOMPos
Optionally holds the position in the BOM for an individual
item. Set to null if not used.
Return Value
272
Exceptions
GetJobEvents() Method
The GetJobEvents() method returns a DataSet containing all
job event data for the specified job. Job events include things
such as, a certification signoff, adding production, adding
consumption, reclassifying production, reclassifying
consumption, completing a step, changing job specifications,
and changing a job state. The data can be optionally filter by
step number and/or lot number.
Syntax
[C#]
[C++]
public:
static DataSet GetJobEvents(
String woID,
String operID,
int seqNo,
Object stepNo,
String lotNo
)
[J#]
public static DataSet GetJobEvents(
string woID,
string operID,
Jobs Class
273
int seqNo,
object stepNo,
string lotNo
)
[JScript]
public static
function GetJobEvents(
woID : String,
operID : String,
seqNo : int,
stepNo : Object,
lotNo : String
) : DataSet
Parameters
woID
Holds the work order ID of the job, for which you want to
retrieve the job event data.
operID
Holds the operation ID of the job, for which you want to
retrieve the job event data.
seqNo
Holds the operation sequence number, for which you want
to retrieve the job event data.
stepNo
Holds the step number to filter the job event data by. Set to
null to ignore.
lotNo
Holds the lot number to filter the job even data by. Set to an
empty string to ignore.
Return Value
Exceptions
GetJobQueue() Method
The GetJobQueue() method returns the queued jobs for the
specified work order. Further filter the queue list by an item
ID if one is supplied.
Syntax
[Visual Basic (Declaration)]
Public Shared Function GetJobQueue( _
274
[C#]
[C++]
public:
static DataSet GetJobQueue(
String woID,
String itemID
)
[J#]
public static DataSet GetJobQueue(
string woID,
string itemID
)
[JScript]
public static
function GetJobQueue(
woID : String,
itemID : String
) : DataSet
Parameters
woID
Holds the work order for which all jobs of the routing are
presented.
itemID
Holds the item ID for further filter job records that are
presented.
Return Value
Exceptions
GetJobsByWo() Method
The GetJobsByWo() method returns a DataSet of all job
information for jobs related to the supplied work order.
Jobs Class
275
Syntax
[C#]
[C++]
public:
static DataSet GetJobsByWo(
String woId
)
[J#]
public static DataSet GetJobsByWo(
string woId
)
[JScript]
public static
function GetJobsByWo(
woId : String
) : DataSet
Parameter
woId
Holds the work order ID.
Return Value
Exceptions
GetJobStateData() Method
The GetJobStateData() method returns a DataSet of all the
Job State data (descriptions and colors) from the database.
Syntax
[C#]
[C++]
276
public:
static DataSet GetJobStateData()
[J#]
[JScript]
public static
Return Value
Exceptions
GetNextWOId() Method
The GetNextWoId() method returns the next available work
order ID assuming they are automatically generated.
Syntax
[C#]
[C++]
public:
static String GetNextWOId()
[J#]
[JScript]
public static
Return Value
GetQueue() Method
The GetQueue() method returns a DataSet containing the job
queue for the specified entity. The filter fields are only
applied if they are NOT = null, so pass nulls to bypass any
filtering. Pass the data set to populate by reference so the
existing instance can continually be refreshed. An exception
is thrown if the call fails.
Syntax
Jobs Class
277
[C#]
[C++]
public:
static DataSet GetQueue(
int entId,
int jobStateFilter,
DateTime reqdByFilter,
int jobPriorityFilter,
int maxRows
)
[J#]
public static DataSet GetQueue(
int entId,
int jobStateFilter,
DateTime reqdByFilter,
int jobPriorityFilter,
int maxRows
)
[JScript]
public static
function GetQueue(
entId : int,
jobStateFilter : int,
reqdByFilter : DateTime,
jobPriorityFilter : int,
maxRows : int
) : DataSet
278
Parameters
entId
Holds the ID of the entity for which to retrieve the queue.
jobStateFilter
Holds the job state filter to only retrieve jobs queued that
are in the current job state.
reqdByFilter
Holds the required by filter to only retrieve jobs that are
required by a certain date/time.
jobPriorityFilter
Holds the job priority filter to only retrieve jobs that are of a
particular job priority.
maxRows
Holds the maximum number of rows to return.
Return Value
Exceptions
GetScheduledJobForWo() Method
The GetScheduledJobForWo() method returns the first job
sequence for the work order, operation specified which is the
scheduled job.
Syntax
[C#]
[C++]
public:
static DataRow GetScheduledJobForWo(
String woId,
String operId
)
Jobs Class
279
[J#]
public static DataRow GetScheduledJobForWo(
string woId,
string operId
)
[JScript]
public static
function GetScheduledJobForWo(
woId : String,
operId : String
) : DataRow
Parameters
woId
Holds the work order, for which first job sequence is
retrieved.
operId
Holds the operation, for which first job sequence is
retrieved.
Return Value
Exceptions
GetStartQtyOfItemInWO() Method
The GetStartQtyOfItemInWO method gets the start quantity of
the specified item in the specified work order.
Syntax
[C#]
[C++]
280
public:
static int GetStartQtyOfItemInWO(
String _item_id,
String _wo_id,
String _oper_id
)
[J#]
public static int GetStartQtyOfItemInWO(
string _item_id,
string _wo_id,
string _oper_id
)
[JScript]
public static
function GetStartQtyOfItemInWO(
_item_id : String,
_wo_id : String,
_oper_id : String
) : int
Parameters
_item_id
Holds the item whose start quantity is to retrieve. Set to
null if not used.
_wo_id
Holds the work order that produces this item. Set to null if
not used.
_oper_id
Holds the operation ID of the job that contains the start
quantity being retrieved. Set to null if not used.
Return Value
Exceptions
GetWO() Method
The GetWO() method returns a DataSet containing the work
order data for the specified work order from the database.
This data includes the description of the work order, the ID
of the process that this work order uses, and the item ID of
the item this work order produces.
Jobs Class
281
Syntax
[C#]
[C++]
public:
static DataRow GetWO(
String woId
)
[J#]
public static DataRow GetWO(
string woId
)
[JScript]
public static
function GetWO(
woId : String
) : DataRow
Parameter
woId
Holds the work order ID.
Return Value
Exceptions
GetWoForSerializedItems() Method
The GetWoForSerializedItems() method gets all work orders
which produce serialized items. Optional work order and
item filters can be used to retrieve only the work order data
for that work order and/or item.
Syntax
282
) As DataSet
[C#]
[C++]
public:
static DataSet GetWoForSerializedItems(
String woId,
String itemId
)
[J#]
public static DataSet GetWoForSerializedItems(
string woId,
string itemId
)
[JScript]
public static
function GetWoForSerializedItems(
woId : String,
itemId : String
) : DataSet
Parameters
woId
Holds the work order to retrieve information, to see if it
produces a serialized item. Set to null if not used.
itemId
Holds the item ID to filter DataSet to retrieve only work
orders that produce this serialized item. Set to null if not
used.
Return Value
GetWORouteData() Method
The GetWORouteData method gets all job routes related to the
supplied work order.
Syntax
Jobs Class
283
[C#]
[C++]
public:
static DataSet GetWORouteData(
String woId
)
[J#]
public static DataSet GetWORouteData(
string woId
)
[JScript]
public static
function GetWORouteData(
woId : String
) : DataSet
Parameter
woId
Holds the work order ID to which job routes is related.
Return Value
Exceptions
IsFirstJob() Method
The IsFirstJob() method returns true if the operation specified
is the first job of the work order. False if it is not. If no work
order, operation, or item ID is supplied, then a true is
returned if any of the operations of the job are for a first job.
Syntax
284
[C#]
public static bool IsFirstJob(
string woId,
string operId,
string itemId
)
[C++]
public:
static bool IsFirstJob(
String woId,
String operId,
String itemId
)
[J#]
public static bool IsFirstJob(
string woId,
string operId,
string itemId
)
[JScript]
public static
function IsFirstJob(
woId : String,
operId : String,
itemId : String
) : bool
Parameters
woId
Holds the work order ID of the job whose first job flag is
checked. Set to null if not used.
operId
Holds the operation ID of the job whose first job flag is
checked. Set to null if not used.
itemId
Holds the item ID of the job whose first job flag is checked.
Set to null if not used.
Return Value
Jobs Class
285
ItemConsSplit() Method
The ItemConsSplit method splits the specified amount of
consumption off the specified row in the Item_Cons table and
reallocates it to the new job if one is specified. This may
result in a new row, or it may result in the increase of
consumption quantity in another row.
Syntax
_
_
_
_
[C#]
public static void ItemConsSplit(
long oldRowID,
double splitQtyCons,
string newWOID,
string newOperID,
object newSeqNo,
object newShiftStart,
string newItemID,
string newLotNo,
string newFGLotNo,
object newReasCd,
string newUserID,
object newEntID,
object newShiftID,
object newFromEntID,
286
object splitQtyConsERP
)
[C++]
public:
static void ItemConsSplit(
__int64 oldRowID,
double splitQtyCons,
String newWOID,
String newOperID,
Object newSeqNo,
Object newShiftStart,
String newItemID,
String newLotNo,
String newFGLotNo,
Object newReasCd,
String newUserID,
Object newEntID,
Object newShiftID,
Object newFromEntID,
Object splitQtyConsERP
)
[J#]
public static void ItemConsSplit(
long oldRowID,
double splitQtyCons,
string newWOID,
string newOperID,
object newSeqNo,
object newShiftStart,
string newItemID,
string newLotNo,
string newFGLotNo,
object newReasCd,
string newUserID,
object newEntID,
object newShiftID,
object newFromEntID,
object splitQtyConsERP
)
[JScript]
public static
function ItemConsSplit(
Jobs Class
287
oldRowID : long,
splitQtyCons : double,
newWOID : String,
newOperID : String,
newSeqNo : Object,
newShiftStart : Object,
newItemID : String,
newLotNo : String,
newFGLotNo : String,
newReasCd : Object,
newUserID : String,
newEntID : Object,
newShiftID : Object,
newFromEntID : Object,
splitQtyConsERP : Object
)
Parameters
oldRowID
Specifies the row to split.
splitQtyCons
Specifies the amount of consumption to split off of the
quantity of the row.
newWOID
Holds an optional new work order ID to specify a job to split
consumption amount. Set to null if not used.
newOperID
Holds an optional new operation ID to specify a job to split
consumption amount. Set to null if not used.
newSeqNo
Holds an optional new operation sequence number to
specify a job to split consumption amount. Set to null if not
used.
newShiftStart
Holds an optional new shift start time for the item cons
record created from split. Set to null if not used.
newItemID
Holds an optional new item ID for the new item cons record
created from split. Set to null if not used.
newLotNo
Holds an optional new lot number for the new item cons
record created from split. Set to null if not used.
288
newFGLotNo
Holds an optional new finished goods lot number for the
new item cons record created from split. Set to null if not
used.
newReasCd
Holds an optional new reason code for the new item cons
record created from split. Set to null if not used.
newUserID
Holds an optional new user ID for the new item cons record
created from split. Set to nulL if not used.
newEntID
Holds an optional new entity ID on which the split
occurred. Set to null if not used.
newShiftID
Holds an optional new shift ID for the new item cons record
created from split. Set to null if not used.
newFromEntID
Holds an optional new storage entity ID for the new item
cons record created from split. Set to null if not used.
splitQtyConsERP
Holds the amount of split quantity reported to ERP.
Exceptions
JobStateDesc() Method
The JobStateDesc() method returns the job state description
for the job state specified.
Syntax
[C#]
[C++]
public:
static String JobStateDesc(
JobStates jobState
)
[J#]
Jobs Class
289
[JScript]
public static
function JobStateDesc(
jobState : JobStates
) : String
Parameter
jobState
Holds the job state in which the job state description is
retrieved and returned.
Return Value
Returns the job description string for the job state specified.
PopupCreateJobDialog() Method
The PopupCreateJobDialog() method opens a dialog to select
an item shortage on the specified entity for creating a work
order. It opens the form used to create an item for creating
the work order.
Syntax
[C#]
[C++]
public:
static bool PopupCreateJobDialog(
int entID
)
[J#]
public static bool PopupCreateJobDialog(
int entID
)
[JScript]
public static
function PopupCreateJobDialog(
entID : int
) : bool
290
Parameter
entID
Holds the entity on which to create the job.
Return Value
Exceptions
PopupJobBOMDlg() Method
The PopupJobBOMDlg() method opens a dialog to show the
BOM components for the specified job. The dialog is read only
and contains a grid showing the information for each BOM
component of the job. A job is specified by a work order ID, an
operation ID, and an operation sequence number.
Syntax
[C#]
public static void PopupJobBOMDlg(
string woId,
string operId,
int seqNo,
string jobDesc
)
[C++]
public:
static void PopupJobBOMDlg(
String woId,
String operId,
int seqNo,
String jobDesc
)
[J#]
public static void PopupJobBOMDlg(
string woId,
Jobs Class
291
string operId,
int seqNo,
string jobDesc
)
[JScript]
public static
function PopupJobBOMDlg(
woId : String,
operId : String,
seqNo : int,
jobDesc : String
)
Parameters
woId
Holds the jobs work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
jobDesc
Holds the jobs description.
Return Value
No return value.
Exceptions
292
_
_
[C#]
[C++]
public:
static bool PopupJobEventDlg(
String woID,
String operID,
int seqNo,
String lotNo,
User user,
int stepNo,
int entID,
int jobPos
)
[J#]
public static bool PopupJobEventDlg(
string woID,
string operID,
int seqNo,
string lotNo,
User user,
int stepNo,
int entID,
int jobPos
)
[JScript]
Jobs Class
public static
293
function PopupJobEventDlg(
woID : String,
operID : String,
seqNo : int,
lotNo : String,
user : User,
stepNo : int,
entID : int,
jobPos : int
) : bool
Parameters
woID
Holds the job's work order ID.
operID
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
lotNo
Holds the lot number for the item currently produced.
jobPos
The job position on the current entity at which the current
job is running. The job event being popped up is for the job
running at this job position.
user
Holds the name of the current user.
stepNo
Holds the number of the current step.
entID
Holds the ID of the entity.
PopupJobSplitDlg
The PopupJobSplit() method opens the job split dialog to split
the specified quantity of the job into a new job. The dialog
allows for the entity that the new job should be queued to be
selected. Also, the quantity of the current job that is to be
split off to the new job is specified. The new job is then
created, queued to the specified entity with a start quantity
equal to the quantity specified. The amount split to the new
job is subtracted from the start quantity of the job that is
being split from.
Syntax
294
_
_
[C#]
[C++]
public:
static bool PopupJobSplitDlg(
String title,
String woId,
String operId,
int seqNo,
double reqdQty,
double prodQty,
String processId
)
[J#]
public static bool PopupJobSplitDlg(
string title,
string woId,
string operId,
int seqNo,
double reqdQty,
double prodQty,
string processId
)
[JScript]
Jobs Class
public static
295
function PopupJobSplitDlg(
title : String,
woId : String,
operId : String,
seqNo : int,
reqdQty : double,
prodQty : double,
processId : String
) : bool
Parameters
title
Holds the title for the Split Job dialog.
woId
Holds the work order ID identifying the job to be split.
operId
Holds the operation ID identifying the job to be split.
seqNo
Holds the operation sequence number identifying the job to
be split.
reqdQty
Holds the required quantity of the job to be split. Split jobs
cannot increase this total.
prodQty
Holds the good quantity already produced by the job to be
split. This quantity cannot be split.
processId
Holds the process ID of the job to be split. This is required
to determine possible target entities for the split job.
Return Value
Exceptions
PopupSelectPausedStateDlg() Method
The PopupSelectPausesStateDlg() method opens the dialog for
selecting which paused state to put the job in. The three
paused states are Suspended, OnHold and New.
Syntax
296
[C#]
[C++]
public:
static bool PopupSelectPausedStateDlg(
JobStates% newJobState,
String% newJobStateDesc
)
[J#]
public static bool PopupSelectPausedStateDlg(
JobStates newJobState,
string newJobStateDesc
)
[JScript]
public static
function PopupSelectPausedStateDlg(
newJobState : JobStates,
newJobStateDesc : String
) : bool
Parameters
newJobState
Holds the paused state that is selected to be the new job
state of the job.
newJobStateDesc
Holds the description of the job state that is selected to be
the new paused job state of the job.
Return Value
Exceptions
Jobs Class
297
_
_
[C#]
[C++]
public:
static bool PopupStartSomeDlg(
298
String title,
int entId,
String woId,
String operId,
int seqNo,
double batchSize,
double startQty,
double reqdQty,
double prodQty
)
[J#]
public static bool PopupStartSomeDlg(
string title,
int entId,
string woId,
string operId,
int seqNo,
double batchSize,
double startQty,
double reqdQty,
double prodQty
)
[JScript]
public static
function PopupStartSomeDlg(
title : String,
entId : int,
woId : String,
operId : String,
seqNo : int,
batchSize : double,
startQty : double,
reqdQty : double,
prodQty : double
) : bool
Parameters
title
Holds the title of the Start Some dialog.
entId
Holds the ID of the entity that the split job is to be started
on.
Jobs Class
299
woId
Holds the work order ID identifying the job to split.
operId
Holds the operation ID identifying the job to split.
seqNo
Holds the operation sequence number identifying the job to
split.
batchSize
Holds the batch size of the job to split.
startQty
Holds the start quantity of the job to split. The new job
cannot have a start quantity larger then this.
reqdQty
Holds the required quantity of the job to split. Split jobs
cannot increase this total.
prodQty
Holds the good quantity already produced by the job to
split. This quantity cannot be split.
Return Value
Exceptions
_
_
300
_
_
[C#]
[C++]
public:
static bool PopupStartSomeDlg(
String title,
String woId,
String operId,
int seqNo,
double batchSize,
double startQty,
double reqdQty,
double prodQty
)
[J#]
public static bool PopupStartSomeDlg(
string title,
string woId,
string operId,
int seqNo,
double batchSize,
double startQty,
double reqdQty,
double prodQty
)
[JScript]
Jobs Class
public static
301
function PopupStartSomeDlg(
title : String,
woId : String,
operId : String,
seqNo : int,
batchSize : double,
startQty : double,
reqdQty : double,
prodQty : double
) : bool
Parameters
title
Holds the title of the Start Some dialog
woId
Holds the work order ID to identify the job to split.
operId
Holds the operation ID to identify the job to split.
seqNo
Holds the operation sequence number to identify the job to
split.
batchSize
Holds the batch size of the job to split.
startQty
Holds the start quantity of the job to split. The new job
cannot have a start quantity larger then this.
reqdQty
Holds the required quantity of the job to split. Split jobs
cannot increase this total.
prodQty
Holds the good quantity already produced by the job to
split. This quantity cannot be split.
Return Value
Exceptions
302
SetJobConcurrentLink() Method
The SetJobConcurrentLink method updates the current link
value for the specified job which is the value that links this
job to other jobs in a batch. Jobs in a batch are processed
together as a whole. If the concurrent link value is less than
or equal to zero, the job is not part of a batch.
Syntax
[C#]
public static void SetJobConcurrentLink(
string WoId,
string OperId,
int SeqNo,
int ConcurrentLink,
string editTime
)
[C++]
public:
static void SetJobConcurrentLink(
String WoId,
String OperId,
int SeqNo,
int ConcurrentLink,
String editTime
)
[J#]
public static void SetJobConcurrentLink(
string WoId,
string OperId,
int SeqNo,
int ConcurrentLink,
string editTime
)
[JScript]
Jobs Class
public static
303
function SetJobConcurrentLink(
WoId : String,
OperId : String,
SeqNo : int,
ConcurrentLink : int,
editTime : String
)
Parameters
WoId
Holds the work order ID of the job whose concurrent link
value is to be updated.
OperId
Holds the operation ID of the job whose concurrent link
value is to be updated.
SeqNo
Holds the operation sequence number of the job whose
concurrent link value is to be updated.
ConcurrentLink
Holds the new concurrent link value that is to be assigned
to the specified job. This may change the batch of jobs that
this job belongs to, or remove the job from a batch.
editTime
Holds the last edit time for the job. This must match the
value in the database, or the update fails.
Exceptions
SetJobQueue() Method
The SetJobQueue method sets the new Job State of the job.
Used when changing from one paused state to another.
Syntax
_
_
304
[C#]
public static void SetJobQueue(
string woId,
string operId,
int seqNo,
JobStates newJobState,
int concurrentLink,
string statusNotes,
string editTime
)
[C++]
public:
static void SetJobQueue(
String woId,
String operId,
int seqNo,
JobStates newJobState,
int concurrentLink,
String statusNotes,
String editTime
)
[J#]
public static void SetJobQueue(
string woId,
string operId,
int seqNo,
JobStates newJobState,
int concurrentLink,
string statusNotes,
string editTime
)
[JScript]
public static
function SetJobQueue(
woId : String,
operId : String,
seqNo : int,
newJobState : JobStates,
concurrentLink : int,
statusNotes : String,
editTime : String
Jobs Class
305
Parameters
woId
Holds the work order identifying the job whose job state is
being changed.
operId
Holds the operation ID identifying the job whose job state is
being changed.
seqNo
Holds the sequence number identifying the job whose job
state is being changed.
newJobState
Holds the new job state where the job is to put.
concurrentLink
Holds the concurrent link number of the job. If the job is
part of a batch, all jobs with this concurrent link value are
put into the new job state at the same time.
statusNotes
Holds the status notes of the job that are to be saved with
the job when the job state is changed. These notes can be
edited/added on the confirmation window that is presented
for the user to confirm what job state the job is to be put.
editTime
Holds the last time when the record was edited. Identifying
the correct job record when changing the job state to a new
paused state.
Exceptions
SetProdProcessedFlag() Method
The SetProdProcessedFlag() method marks the specified row
of the item_prod table as processed.
Syntax
[C#]
public static void SetProdProcessedFlag(
int rowID,
306
DateTime lastEditAt
)
[C++]
public:
static void SetProdProcessedFlag(
int rowID,
DateTime lastEditAt
)
[J#]
public static void SetProdProcessedFlag(
int rowID,
DateTime lastEditAt
)
[JScript]
public static
function SetProdProcessedFlag(
rowID : int,
lastEditAt : DateTime
)
Parameters
rowID
Identifies the row to process.
lastEditAt
Holds the date/time of the last edit for the row. This
date/time must match up with that of the row in the
database in order for row to be set as processed. Otherwise,
call with fail.
Exceptions
SplitJob() Method
The SplitJob() method calls the middleware to split the
specified job into two jobs based on the split quantity. The
new job is given a start quantity of the split quantity
specified. This quantity is removed from the start quantity of
the specified job.
Syntax
Jobs Class
307
[C#]
public static void SplitJob(
string woID,
string operID,
int origSeqNo,
double splitQty,
object newSeqNo,
object splitStartQty,
object newStateCd,
object reqFinishTime,
object targetEntID,
string statusNotes
)
[C++]
public:
static void SplitJob(
String woID,
String operID,
int origSeqNo,
double splitQty,
Object newSeqNo,
Object splitStartQty,
Object newStateCd,
Object reqFinishTime,
Object targetEntID,
String statusNotes
)
[J#]
public static void SplitJob(
string woID,
string operID,
int origSeqNo,
double splitQty,
308
object newSeqNo,
object splitStartQty,
object newStateCd,
object reqFinishTime,
object targetEntID,
string statusNotes
)
[JScript]
public static
function SplitJob(
woID : String,
operID : String,
origSeqNo : int,
splitQty : double,
newSeqNo : Object,
splitStartQty : Object,
newStateCd : Object,
reqFinishTime : Object,
targetEntID : Object,
statusNotes : String
)
Parameters
woID
Holds the work order ID of the job to split.
operID
Holds the operation ID of the job to split.
origSeqNo
Holds the sequence number of the job to split.
splitQty
Holds the quantity to split off from the original job for the
new job.
newSeqNo
Holds the optional new sequence number for the new job. If
a null is passed, the next available sequence number is used
for the new job.
splitStartQty
Holds the optional start quantity for the new job. If a null is
passed, no start quantity is assigned to the new job.
newStateCd
Holds the optional state code for the new job. If a null is
passed, the job state is set to ready if the existing job is
running, complete, or cancelled; otherwise, the new job
state is set to the existing job state.
Jobs Class
309
reqFinishTime
Holds the optional required finish time for the new job. If a
null is passed, no required finish time is assigned to the
new job.
targetEntID
Holds the optional ID of the target entity for the new job. If
a null is passed, the ID of the target entity for the existing
job is assigned to the new job.
statusNotes
Holds the optional status notes for the new job. If a null is
passed, no status notes are assigned to the new job.
Exceptions
StartSome() Method
The StartSome() method calls the middleware to split the
specified job into two jobs based on the split quantity and
then start the new job created from the split on the entity
specified. The new job is given a start quantity of the split
quantity specified. This quantity is removed from the start
quantity of the specified job.
Syntax
[C#]
public static void StartSome(
int entID,
string woID,
string operID,
int origSeqNo,
double qtyReqd,
double startQty,
310
object newSeqNo,
string statusNotes
)
[C++]
public:
static void StartSome(
int entID,
String woID,
String operID,
int origSeqNo,
double qtyReqd,
double startQty,
Object newSeqNo,
String statusNotes
)
[J#]
public static void StartSome(
int entID,
string woID,
string operID,
int origSeqNo,
double qtyReqd,
double startQty,
object newSeqNo,
string statusNotes
)
[JScript]
public static
function StartSome(
entID : int,
woID : String,
operID : String,
origSeqNo : int,
qtyReqd : double,
startQty : double,
newSeqNo : Object,
statusNotes : String
)
Parameters
entID
Holds the entity that the new job create from the split is to
be started on.
JobExec Class
311
woID
Holds the work order ID of the job to split.
operID
Holds the operation ID of the job to split.
origSeqNo
Holds the sequence number of the job to split.
qtyReqd
Holds the quantity to split off from the original job for the
new job.
startQty
The start quantity for the new job. It cannot be greater then
the start quantity of the original job.
newSeqNo
Holds the optional new sequence number for the new job. If
a null is passed, the next available sequence number is used
for the new job.
statusNotes
Holds the optional status notes for the new job. If a null is
passed, no status notes are assigned to the new job.
Exceptions
JobExec Class
The JobExec class handles all the Factelligence MES
functionalities for a job. A job exec object is created for each
job position in the entity.
AddCons() Method
The AddCons() method adds consumption for the specified
BOM item for the job running on the current job position.
Syntax
_
_
312
[C#]
public void AddCons(
int BOMPos,
double qtyCons,
object reasCd,
string lotNo,
string fgLotNo,
object fromEntID,
string itemID,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
void AddCons(
int BOMPos,
double qtyCons,
Object reasCd,
String lotNo,
String fgLotNo,
Object fromEntID,
String itemID,
String extRef,
String spare1,
String spare2,
String spare3,
String spare4
) sealed
[J#]
JobExec Class
313
object reasCd,
string lotNo,
string fgLotNo,
object fromEntID,
string itemID,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4
)
[JScript]
public
function AddCons(
BOMPos : int,
qtyCons : double,
reasCd : Object,
lotNo : String,
fgLotNo : String,
fromEntID : Object,
itemID : String,
extRef : String,
spare1 : String,
spare2 : String,
spare3 : String,
spare4 : String
)
Parameters
BOMPos
Holds the BOM position of the item being consumed.
qtyCons
Holds the quantity being consumed.
reasCd
Holds the reason code of the item being consumed. This is
an optional parameter that is used to identify an item_cons
record to add consumption to the existing row if there is
one. If the reason code is null, it is not used when
identifying the item_cons record.
314
lotNo
Holds the lot number of the item being consumed. This is
an optional parameter that is used to identify an item_cons
record to add consumption to the existing row if there is
one. If the lot number is null, it is not used when identifying
the item_cons record.
fgLotNo
Holds the finished goods lot number of the item being
consumed. This is an optional parameter that is used to
identify an item_cons record to add consumption to the
existing row if there is one. If the fgLotNo is null, it is not
used when identifying the item_cons record.
fromEntID
Holds the storage entity ID. This is an optional parameter
that is used to identify an item_cons record to add
consumption to the existing row if there is one. If the
fromEntID is null, it is not used when identifying the
item_cons record.
itemID
Holds the item that is being consumed. This is an optional
parameter that is used to identify an item_cons record to
add consumption to the existing row if there is one. If the
item is null, it is not used when identifying the item_cons
record.
extRef
Holds the external reference of the item being consumed.
This is an optional parameter that is used to identify an
item_cons record to add consumption to the existing row if
there is one. If the extRef is null, it is not used when
identifying the item_cons record.
spare1
Holds the optional spare 1 value. Set to nul if not being
used.
spare2
Holds the optional spare 2 value. Set to nul if not being
used.
spare3
Holds the optional spare 3 value. Set to nul if not being
used.
spare4
Holds the optional spare 4 value. Set to nul if not being
used.
Exceptions
JobExec Class
315
[C#]
public void AddConsByLot(
string lotNo
)
[C++]
public:
void AddConsByLot(
String lotNo
) sealed
[J#]
[JScript]
public
function AddConsByLot(
lotNo : String
)
Parameter
lotNo
Holds the lot number where the quantity of the item that is
to add as consumption is stored.
316
[C#]
public void AddConsByLot(
string lotNo,
double qty
)
[C++]
public:
void AddConsByLot(
String lotNo,
double qty
) sealed
[J#]
[JScript]
public
function AddConsByLot(
lotNo : String,
qty : double
)
Parameters
lotNo
Holds the lot number where the quantity of the item that is
to add as consumption is stored.
qty
Holds the amount to consume.
ware is not in the correct format.
JobExec Class
317
[[C#] ]
[[C++] ]
public:
void AddProd(
double qty
) sealed
[[J#] ]
[[JScript] ]
Parameter
qty
Hold the quantity being produced.
Exceptions
318
ByVal
ByVal
ByVal
ByVal
spare1
spare2
spare3
spare4
As
As
As
As
String, _
String, _
String, _
String _
[C#]
public void AddProd(
double qty,
object reasCd,
string itemID,
string lotNo,
object toEntID,
object byProductBOMPos,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4
)
[[C++] ]
public:
void AddProd(
double qty,
Object reasCd,
String itemID,
String lotNo,
Object toEntID,
Object byProductBOMPos,
String extRef,
String spare1,
String spare2,
String spare3,
String spare4
) sealed
[J#]
[[JScript] ]
public function AddProd(
qty : double,
reasCd : Object,
itemID : String,
lotNo : String,
toEntID : Object,
JobExec Class
319
byProductBOMPos : Object,
extRef : String,
spare1 : String,
spare2 : String,
spare3 : String,
spare4 : String
)
Parameters
qty
Holds the quantity being produced.
reasCd
Holds the optional reason code of the item being produced.
Set to null if not used.
itemID
Holds the optional item ID of the item that is being
produced. Set to null if not being used.
lotNo
Holds the optional lot number of the item being consumed.
Set to null if not used.
toEntID
Holds the optional to storage entity ID. Set to null if not
being used.
byProductBOMPos
Holds the BOM position if a by product is being produced.
Set to null if the main item is being produced.
extRef
Holds the option external reference. Set to null if not being
used.
spare1
Holds the optional spare 1 value. Set to null if not being
used.
spare2
Holds the optional spare 2 value. Set to null if not being
used.
spare3
Holds the optional spare 3 value. Set to null if not being
used.
spare4
Holds the optional spare 4 value. Set to null if not being
used.
Exceptions
320
CalculateProductionTarget() Method
This method returns a DataSet containing a single row and a
column for the target quantity, the target rate, and the target
rate units.
Syntax
[C#]
public DataSet CalculateProductionTarget (
double targetQty,
double targetRate,
ProductionUnitOfMeasure targetRateUnits,
double batchSize
)
[C++]
public:
DataSet CalculateProductionTarget (
double targetQty,
double targetRate,
ProductionUnitOfMeasure targetRateUnits,
double batchSize
)
[J#]
public DataSet CalculateProductionTarget (
double targetQty,
double targetRate,
ProductionUnitOfMeasure targetRateUnits,
double batchSize
)
[Jscript]
public function CalculateProductionTarget (
targetQty : double,
targetRate : double,
targetRateUnits : ProductionUnitOfMeasure,
batchSize : double
) : DataSet
Parameters
targetQty
Holds a double that specifies the quantity to produce.
JobExec Class
321
targetRate
Holds a double that specifies the rate to produce.
targetRateUnits
Holds a value from the ProductionUnitOfMeasure
enumeration which specifies the units for the TargetRate.
batchSize
Holds a double that specifies the product amount per batch.
Return Value
Exceptions
EndJob() Method
The EndJob method ends the job that is identified by the
input parameters. If the job is part of a batch, an attempt is
made to end all jobs in the batch. Ending a job sets the job
state to completed.
Syntax
[C#]
public static void EndJob(
string woId,
string operId,
int seqNo,
string statusNotes
)
[C++]
public:
static void EndJob(
String woId,
String operId,
int seqNo,
322
String statusNotes
)
[J#]
public static void EndJob(
string woId,
string operId,
int seqNo,
string statusNotes
)
[JScript]
public static
function EndJob(
woId : String,
operId : String,
seqNo : int,
statusNotes : String
)
Parameters
woId
Holds the work order identifying the job that is to be
completed.
operId
Holds the operation ID identifying the job that is to be
completed.
seqNo
Holds the sequence number identifying the job that is to
completed.
statusNotes
Holds the status notes that are to be saved with the job
when the job is completed. These notes are edited on the
dialog used to confirm that the user wants to complete the
job.
Exceptions
GetAvailLots() Method
The GetAvailLots() method gets the available lots for the
current job running on the current entity.
Syntax
[C#]
JobExec Class
323
[C++]
public:
DataSet GetAvailLots() sealed
[J#]
[JScript]
public
Return Value
Exceptions
GetBatchOfJobs() Method
The GetBatchOfJobs() method gets a batch of jobs for an
entity based on the supplied concurrent link.
Syntax
[C#]
[C++]
public:
DataSet GetBatchOfJobs(
int ent_id,
int concurrent_link
) sealed
[J#]
[JScript]
public
function GetBatchOfJobs(
324
ent_id : int,
concurrent_link : int
) : DataSet
Parameters
ent_id
Holds the ID of the entity for which the batch of jobs are
queued.
concurrent_link
Holds the concurrent link which batches the jobs together.
Return Value
GetConsData() Method
The GetConsData() method returns the consumption data for
the current job. The consumption data can be filtered by user
and by shift.
Syntax
[[C#] ]
[C++]
public:
DataSet GetConsData(
bool filterByUser,
String shiftStart
) sealed
[J#]
[JScript]
public
function GetConsData(
JobExec Class
325
filterByUser : bool,
shiftStart : String
) : DataSet
Parameters
filterByUser
Set true if only the data for the current user should be
retrieved.
shiftStart
Set true if only the data since the specified shift time should
be retrieved.
Return Value
Exceptions
GetJobBomAvailSubst() Method
The GetJobBomAvailSubst() method returns a DataView
containing all available substitute items for consumption.
Available substitutes items are defined as those items which
are the intersection of the substitutes for the current job, and
the union of the substitutes of all the upstream jobs that
produce the same item as the current one at the job's BOM
position 0
Syntax
[C#]
[C++]
public:
DataView GetJobBomAvailSubst() sealed
[J#]
[JScript]
public
Return Value
326
GetJobBOMData() Method
The GetJobBOMData() method gets the BOM data for the
current job. If a BOM position is specified, only the BOM
data for that item is returned.
Syntax
[C#]
[C++]
public:
DataSet GetJobBOMData(
Object BOMPos
) sealed
[J#]
[JScript]
public
function GetJobBOMData(
BOMPos : Object
) : DataSet
Parameter
BOMPos
Optionally holds the position in the BOM for an individual
item. Set to null if not used in which case all BOM data for
the job are returned.
Return Value
Exceptions
GetJobBOMProducibles() Method
The GetJobBOMProducibles() method returns a DataView
containing all the items that can be produced by the current
job. The producible items are the item produced at BOM
position 0 and any of its substitutes along with all by
Wonderware Factelligence Client API Reference Guide
JobExec Class
327
[C#]
[C++]
public:
DataView GetJobBOMProducibles(
Object BOMPos
) sealed
[J#]
[JScript]
public
function GetJobBOMProducibles(
BOMPos : Object
) : DataView
Parameter
BOMPos
Holds an optional BOM position. If all BOM positions are to
be returned, set this parameter to null.
Return Value
Exceptions
328
GetJobBomSubst() Method
The GetJobBOMSubst() method returns a DataView
containing all substitute items for a job at the BOM position
specified.
Syntax
[C#]
[C++]
public:
DataView GetJobBomSubst(
int bom_pos
) sealed
[[J#]}
[JScript]
public
function GetJobBomSubst(
bom_pos : int
) : DataView
Parameter
bom_pos
Holds the BOM position for retrieving substitutes.
Return Value
Exceptions
GetJobBOMWithSubData() Method
The GetJobBOMWithSubData() method gets the BOM data and
BOM substitute data for the current job. If a BOM position is
specified, only the BOM data for that item is returned.
JobExec Class
329
Syntax
[C#]
[C++]
public:
DataSet GetJobBOMWithSubData(
Object BOMPos
) sealed
[J#]
[JScript]
public
function GetJobBOMWithSubData(
BOMPos : Object
) : DataSet
Parameter
BOMPos
Optionally holds the position in the BOM for an individual
item. Set to null if not used.
Return Value
Exceptions
GetJobEvents() Method
The GetJobEvents() method returns a DataSet containing all
job event data for the current job. Job events include
certification signoff, adding production, adding consumption,
reclassifying production, reclassifying consumption,
completing a step, changing job specifications, and changing
a job state. Data is filtered by step number and/or lot number
by supplying values for the optional input parameters. If the
data is not filtered, these values are null.
330
Syntax
[C#]
[C++]
public:
DataSet GetJobEvents(
Object stepNo,
String lotNo
) sealed
[J#]
[JScript]
public
function GetJobEvents(
stepNo : Object,
lotNo : String
) : DataSet
Parameters
stepNo
Holds the step number that is used to filter the job event
information by. Set to null to ignore.
lotNo
Holds the lot number that is used to filter the job event
information by. Set to an empty string to ignore.
Return Value
Exceptions
JobExec Class
331
GetJobSchedData() Method
The GetJobSchedData() method returns a DataSet of the Job
Schedule properties for the current entity. The job schedule
properties contain the sort order of the job queue for an
entity.
Syntax
[C#]
[C++]
public:
DataSet GetJobSchedData() sealed
[J#]
[JScript]
public
Return Value
Exceptions
GetProdData() Method
The GetProdData() method gets the production data for a
current job. The production data can be filtered by user and
shift.
Syntax
[Visual Basic (Declaration)]
Public Function GetProdData( _
ByVal filterByUser As Boolean,
[C#]
[C++]
public:
332
DataSet GetProdData(
bool filterByUser,
String shiftStart
) sealed
[J#]
[JScript]
public
function GetProdData(
filterByUser : bool,
shiftStart : String
) : DataSet
Parameters
filterByUser
Holds the filter to determine if the production data should
be for the current user (true) or for all users (false).
shiftStart
Holds the filter to determine if the production data should
be for the current shift. Set to null if all shifts should be
shown.
Return Value
Exceptions
GetProduction () Method
The GetProduction() method returns a DataSet containing a
single row with a column for the current production for the
shift and a column for the projected production for the shift.
Syntax
As DataSet
[C#]
[C++]
public:
JobExec Class
333
DataSet GetProduction (
)
[J#]
public DataSet GetProduction (
)
[Jscript]
DataSet
Return Value
Exceptions
GetQueue() Method
The GetQueue() method returns the job queue for the
specified entity. The job queue consists of all jobs queued to
the entity. The filter fields are only applied if they are NOT =
null, so pass nulls to bypass any filtering. Pass the data set to
populate by reference so the existing instance can continually
be refreshed. Throws an exception if the call fails.
Syntax
[C#]
[C++]
public:
334
DataSet GetQueue(
int entId,
Object jobStateFilter,
Object reqdByFilter,
Object jobPriorityFilter,
Object maxRows
) sealed
[J#]
[JScript]
public
function GetQueue(
entId : int,
jobStateFilter : Object,
reqdByFilter : Object,
jobPriorityFilter : Object,
maxRows : Object
) : DataSet
Parameters
entId
Holds the ID of the entity whose queue is retrieved.
jobStateFilter
Holds the job state code filter if required, or null to bypass
this filter.
reqdByFilter
Holds the required by filter if required, or null to bypass
this filter.
jobPriorityFilter
Holds the job priority filter if required, or null to bypass
this filter.
maxRows
Holds the maximum number of rows to return if required,
or null to bypass this filter.
Return Value
JobExec Class
335
Exceptions
GetShortages() Method
The GetShortages() method returns a DataSet containing any
item shortages at the current entity based on its configured
parameters.
Syntax
[C#]
[C++]
public:
DataSet GetShortages() sealed
[J#]
[JScript]
public
Return Value
Exceptions
GetSPCCharJobData() Method
The GetSPCCharJobData() method gets SPC Data for the
current job and the specified step.
Syntax
[C#]
[C++]
public:
DataSet GetSPCCharJobData(
336
Object stepNo
) sealed
[J#]
[JScript]
public
function GetSPCCharJobData(
stepNo : Object
) : DataSet
Parameter
stepNo
If not null, the results are filtered based on the specified
step number.
Return Value
Exceptions
[C#]
public void PauseJob(
JobStates pausedState,
string woId,
JobExec Class
337
string operId,
int seqNo,
string statusNotes,
bool checkPrivs,
int jobPos
)
[C++]
public:
void PauseJob(
JobStates pausedState,
String woId,
String operId,
int seqNo,
String statusNotes,
bool checkPrivs,
int jobPos
) sealed
[J#]
[JScript]
public
function PauseJob(
pausedState : JobStates,
woId : String,
operId : String,
seqNo : int,
statusNotes : String,
checkPrivs : bool,
jobPos : int
)
Parameters
pausedState
Holds the state into which the job should be put.
338
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
statusNotes
Holds notes to explain why the job is being paused. Pass an
empty string if no notes are to be stored.
checkPrivs
Specifies whether or not the privileges of the user should be
checked to determine if the user may pause the job.
jobPos
Holds the position of the job in the job exec.
Exceptions
[C#]
public void PauseJob(
JobStates pausedState,
string woId,
JobExec Class
339
string operId,
int seqNo,
string statusNotes,
bool checkPrivs,
int jobPos,
bool noFresh
)
[C++]
public:
void PauseJob(
JobStates pausedState,
String woId,
String operId,
int seqNo,
String statusNotes,
bool checkPrivs,
int jobPos,
bool noFresh
) sealed
[J#]
[JScript]
public
function PauseJob(
pausedState : JobStates,
woId : String,
operId : String,
seqNo : int,
statusNotes : String,
checkPrivs : bool,
jobPos : int,
noFresh : bool
)
340
Parameters
pausedState
Holds the state into which the job should be put.
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
statusNotes
Holds notes to explain why the job is being paused. Pass an
empty string if no notes are to be stored.
checkPrivs
Specifies whether or not the privileges of the user should be
checked to determine if the user may pause the job.
jobPos
Holds the position of the job in the job exec.
noFresh
Holds a flag whether to refresh the current session object
and current job exec object.
Exceptions
JobExec Class
341
[C#]
[C++]
public:
bool PopUpAddConsDlg(
String jobDesc,
bool dlgForSteps,
String itemID,
String itemDesc,
Object bomPos,
bool must_consume_from_inv,
bool may_choose_alt_inv_loc,
bool may_create_lots,
bool must_consume_from_wip,
bool update_inv,
double actualQty,
342
double maxQty,
double consumedQty,
int stepNo
) sealed
[J#]
[JScript]
public
function PopUpAddConsDlg(
jobDesc : String,
dlgForSteps : bool,
itemID : String,
itemDesc : String,
bomPos : Object,
must_consume_from_inv : bool,
may_choose_alt_inv_loc : bool,
may_create_lots : bool,
must_consume_from_wip : bool,
update_inv : bool,
actualQty : double,
maxQty : double,
consumedQty : double,
stepNo : int
) : bool
JobExec Class
343
Parameters
jobDesc
Holds the description of the job.
dlgForSteps
Holds a flag indicating whether consumption is being
recorded at a step.
itemID
Holds the ID of the item being consumed.
itemDesc
Holds the description of the item being consumed.
bomPos
Hold the BOM position of the item being consumed.
must_consume_from_inv
Holds a flag indicating whether or not consumption must
come from inventory.
may_choose_alt_inv_loc
Holds a flag indicating whether or not an alternative
inventory location may be chosen.
may_create_lots
Holds a flag indicating whether or not new lots may be
created.
must_consume_from_wip
Holds a flag indicating whether or not consumption must
come from WIP.
update_inv
Holds a flag indicating whether or not inventory is to be
updated.
actualQty
Holds the quantity of the item that is required.
maxQty
Holds the actual maximum quantity of the item which is
equal either to the maximum quantity per parent item or to
the maximum per parent item times the start quantity or
times the quantity produced (whichever is greater).
consumedQty
Holds the quantity of the item that has been consumed.
stepNo
Holds the number of the step in which the consumption is
being done.
Return Value
344
_
_
[C#]
JobExec Class
345
double maxQty,
double consumedQty,
int stepNo,
double qtyPerFG,
object reqGradeCd,
object job_bom_subst_exist
)
[C++]
public:
bool PopUpAddConsDlg(
String jobDesc,
bool dlgForSteps,
String itemID,
String itemDesc,
Object bomPos,
bool must_consume_from_inv,
bool may_choose_alt_inv_loc,
bool may_create_lots,
bool must_consume_from_wip,
bool update_inv,
double actualQty,
double maxQty,
double consumedQty,
int stepNo,
double qtyPerFG,
Object reqGradeCd,
Object job_bom_subst_exist
) sealed
[J#]
346
double actualQty,
double maxQty,
double consumedQty,
int stepNo,
double qtyPerFG,
object reqGradeCd,
object job_bom_subst_exist
)
[JScript]
public
function PopUpAddConsDlg(
jobDesc : String,
dlgForSteps : bool,
itemID : String,
itemDesc : String,
bomPos : Object,
must_consume_from_inv : bool,
may_choose_alt_inv_loc : bool,
may_create_lots : bool,
must_consume_from_wip : bool,
update_inv : bool,
actualQty : double,
maxQty : double,
consumedQty : double,
stepNo : int,
qtyPerFG : double,
reqGradeCd : Object,
job_bom_subst_exist : Object
) : bool
Parameters
jobDesc
Holds the description of the job.
dlgForSteps
Holds a flag indicating whether consumption is recorded at
a step.
itemID
Holds the ID of the item being consumed.
itemDesc
Holds the description of the item being consumed.
bomPos
Hold the BOM position of the item being consumed.
JobExec Class
347
must_consume_from_inv
Holds a flag indicating wherther or not consumption must
come from inventory.
may_choose_alt_inv_loc
Holds a flag indicating whether or not an alternative
inventory location may be chosen.
may_create_lots
Holds a flag indicating whether or not new lots may be
created.
must_consume_from_wip
Holds a flag indicating whether or not consumption must
come from WIP.
update_inv
Holds a flag indicating whether or not inventory is to be
updated.
actualQty
Holds the quantity of the item that is required.
maxQty
Holds the actual maximum quantity of the item which is
equal either to the maximum quantity per parent item or to
the maximum per parent item times the start quantity or
times the quantity produced (whichever is greater).
consumedQty
Holds the quantity of the item that has been consumed.
stepNo
Holds the number of the step in which the consumption is
being done.
qtyPerFG
Holds the quantity per parent item.
reqGradeCd
Holds the required grade of the item when consumed.
job_bom_subst_exist
Holds a flag that if true says that a substitute for the item
does exist.
Return Value
348
_
_
_
_
[C#]
[C++]
public:
bool PopupAddProdDlg(
String itemID,
String itemDesc,
bool is_serialized,
double qtyGood,
double rejQty,
JobExec Class
349
double startQty,
String jobDesc,
DateTime shiftStartTime,
int shiftId
) sealed
[J#]
[JScript]
public
function PopupAddProdDlg(
itemID : String,
itemDesc : String,
is_serialized : bool,
qtyGood : double,
rejQty : double,
startQty : double,
jobDesc : String,
shiftStartTime : DateTime,
shiftId : int
) : bool
Parameters
itemID
Holds the ID of the item being produced.
itemDesc
Holds the description of the item being produced.
is_serialized
Holds a flag indicating whether the item being produced is
serialized or not. This flag determines which of the Add
Production dialogs to open. Serialized items use a different
dialog to add production then unserialized parts do.
qtyGood
Holds the quantity of good production entered.
350
rejQty
Holds the quantity of rejected production entered.
startQty
Holds the starting quantity for the job.
jobDesc
Holds the description of the job.
shiftStartTime
Holds the start time of the current shift.
shiftId
Holds the shift ID of the current shift.
Return Value
_
_
[C#]
[C++]
public:
bool PopupAddProdDlg(
JobExec Class
351
String itemID,
String itemDesc,
double qtyGood,
double rejQty,
double startQty,
String jobDesc
) sealed
[J#]
[JScript]
public
function PopupAddProdDlg(
itemID : String,
itemDesc : String,
qtyGood : double,
rejQty : double,
startQty : double,
jobDesc : String
) : bool
Parameters
itemID
Holds the ID of the item being produced.
itemDesc
Holds the description of the item being produced.
qtyGood
Holds the quantity of good production entered.
rejQty
Holds the quantity of rejected production entered.
startQty
Holds the starting quantity for the job.
jobDesc
Holds the description of the job.
Return Value
352
PopupAddWasteDlg() Method
The PopupAddWasteDlg() method opens the Reject form to
allow the user to mark an amount of a consumed item as
wasted.
Syntax
[C#]
[C++]
public:
bool PopupAddWasteDlg(
String itemID,
String itemDesc,
int storageEntID,
double qty,
int bomPos,
String lotNo,
bool must_consume_from_inv,
bool may_choose_alt_inv_loc,
_
_
JobExec Class
353
bool may_create_new_lots
) sealed
[J#]
[JScript]
public
function PopupAddWasteDlg(
itemID : String,
itemDesc : String,
storageEntID : int,
qty : double,
bomPos : int,
lotNo : String,
must_consume_from_inv : bool,
may_choose_alt_inv_loc : bool,
may_create_new_lots : bool
) : bool
Parameters
itemID
Holds the ID of the item being wasted.
itemDesc
Holds the description of the item being wasted.
storageEntID
Holds the ID of the entity in which the item is stored.
qty
Holds the default amount to waste.
bomPos
Holds the BOM position of the item being wasted.
lotNo
Holds the lot number of the item being wasted.
354
must_consume_from_inv
Holds a flag indicating whether the item must be consumed
from inventory.
may_choose_alt_inv_loc
Holds a flag indicating whether a new storage entity may
be selected.
may_create_new_lots
Holds a flag indicating whether a new lot number may be
selected.
Return Value
PopupCreateJobDialog() Method
The PopupCreateJobDialog() method opens a dialog to select
which item shortage on the current entity a work order must
be created for, and then opens the form for creating the work
order from the process used to create the item.
Syntax
[C#]
[C++]
public:
bool PopupCreateJobDialog() sealed
[J#]
[JScript]
public
Return Value
PopupEditConsDlg() Method
The PopupEditConsDlg() method opens the Reclassify
consumption dialog which allows the user to reclassify a
portion of the consumption quantity entered for the item to a
different item reason. The quantity entered is removed from
the current consumption amount with the original item
reason and reclassified as consumption under a new item
reason.
Syntax
JobExec Class
355
[C#]
[C++]
public:
bool PopupEditConsDlg(
String itemID,
String itemDesc,
int rowID,
double qty,
String lotNo,
int storageID
) sealed
[J#]
[JScript]
public
function PopupEditConsDlg(
itemID : String,
itemDesc : String,
rowID : int,
qty : double,
356
lotNo : String,
storageID : int
) : bool
Parameters
itemID
Holds the item ID of the item that is being consumed.
itemDesc
Holds the item description of the item that is consumed.
rowID
Holds the row ID of the row in the item_cons table that
contains the consumption that is reclassified.
qty
Holds the quantity of consumption that can be split and
reclassified.
lotNo
Holds the lot number that contains the item that is
consumed. Pass empty string ("") if not used.
storageID
The storage location where reclassified consumption is
stored. Pass -1 if not used.
_
_
_
_
JobExec Class
357
[C#]
public bool PopupEditProdDlg(
string itemID,
string itemDesc,
int rowID,
string lotNo,
int reasCd,
int storageID,
DateTime shiftStart,
bool goodProd,
double qty
)
[C++]
public:
bool PopupEditProdDlg(
String itemID,
String itemDesc,
int rowID,
String lotNo,
int reasCd,
int storageID,
DateTime shiftStart,
bool goodProd,
double qty
) sealed
[J#]
[JScript]
public
function PopupEditProdDlg(
itemID : String,
358
itemDesc : String,
rowID : int,
lotNo : String,
reasCd : int,
storageID : int,
shiftStart : DateTime,
goodProd : bool,
qty : double
) : bool
Parameters
itemID
Holds the ID of the item being produced.
itemDesc
Holds the description of the item being produced.
rowID
Holds the ID of the row in the item_prod table.
lotNo
Lot number of item.
reasCd
Holds the reason code for the production.
storageID
Holds the ID of the entity in which the material is stored.
shiftStart
Holds the start of the shift during which the production
occurred.
goodProd
Holds a flag specifying whether the production represents
good production.
qty
Holds the amount reported.
Return Value
JobExec Class
359
Syntax
_
_
_
_
[C#]
[C++]
public:
bool PopupEditProdDlg(
String itemID,
String itemDesc,
int rowID,
String lotNo,
int reasCd,
int storageID,
DateTime shiftStart,
bool goodProd,
double qty,
String units
360
) sealed
[J#]
[JScript]
public
function PopupEditProdDlg(
itemID : String,
itemDesc : String,
rowID : int,
lotNo : String,
reasCd : int,
storageID : int,
shiftStart : DateTime,
goodProd : bool,
qty : double,
units : String
) : bool
Parameters
itemID
Holds the ID of the item being produced.
itemDesc
Holds the description of the item being produced.
rowID
Holds the ID of the row in the item_prod table.
lotNo
Holds the lot number.
reasCd
Holds the reason code for the production.
storageID
Holds the ID of the entity in which the material is stored.
JobExec Class
361
shiftStart
Holds the start of the shift during which the production
occurred.
goodProd
Holds a flag specifying whether the production represents
good production.
qty
Holds the amount reported.
units
Holds the description of the item's units.
Return Value
PopupJobEventDlg() Method
The PopupJobEventDlg() method opens the Job Event dialog
for the current job.
Syntax
_
_
[C#]
[C++]
public:
bool PopupJobEventDlg(
String lotNo,
User user,
int stepNo,
int entID,
int jobPos
362
) sealed
[J#]
[JScript]
public
function PopupJobEventDlg(
lotNo : String,
user : User,
stepNo : int,
entID : int,
jobPos : int
) : bool
Parameters
lotNo
Holds the lot number for the item currently being produced.
user
Holds the name of the current user.
stepNo
Holds the number of the current step.
entID
Holds the ID of the entity.
jobPos
The job position on the current entity at which the current
job is running. The job event being popped up is for the job
running at this job position.
PopupReduceConsDlg() Method
The PopupReduceConsDlg() method invokes the Reduce
Consumption dialog. This allows a user to adjust down the
amount of consumption reported in a row in the item_cons
table.
Syntax
JobExec Class
363
_
_
[C#]
[C++]
public:
bool PopupReduceConsDlg(
DateTime shiftStart,
String lotNo,
String itemID,
String itemDesc,
int shiftID,
int reasCd,
String reasDesc,
double qty,
Object storageEntID,
364
String storageEntDesc,
int byProduct,
String fgLotNo,
int rowID
) sealed
[J#]
[JScript]
public
function PopupReduceConsDlg(
shiftStart : DateTime,
lotNo : String,
itemID : String,
itemDesc : String,
shiftID : int,
reasCd : int,
reasDesc : String,
qty : double,
storageEntID : Object,
storageEntDesc : String,
byProduct : int,
fgLotNo : String,
rowID : int
) : bool
Parameters
shiftStart
Holds the start time of the shift during which the
consumption took place.
JobExec Class
365
lotNo
Holds the lot number consumed.
itemID
Holds the ID of the item consumed.
itemDesc
Holds the description of the item consumed.
shiftID
Holds the ID of the shift during which the consumption took
place.
reasCd
Holds the code of the consumption reason.
reasDesc
Holds the description of the consumption reason.
qty
Holds the amount consumed.
storageEntID
Holds the ID of the entity from which the item was
consumed.
storageEntDesc
Holds the name of the entity from which the item was
consumed.
byProduct
Holds a integer value representing a true or false(1 for true,
0 for false) as to whether the item is a by product.
fgLotNo
Holds the lot number of the item produced.
rowID
Holds the row ID of the item_cons row.
Return Value
366
Syntax
[C#]
[C++]
public:
bool PopupReduceProdDlg(
DateTime shiftStart,
String lotNo,
JobExec Class
367
String itemID,
String itemDesc,
int shiftID,
int reasCd,
String reasDesc,
double qty,
double rejQty,
double startQty,
Object storageEntID,
String storageEntDesc,
int byProduct,
bool isSerialized
) sealed
[J#]
[JScript]
public
function PopupReduceProdDlg(
shiftStart : DateTime,
lotNo : String,
itemID : String,
itemDesc : String,
shiftID : int,
reasCd : int,
reasDesc : String,
qty : double,
368
rejQty : double,
startQty : double,
storageEntID : Object,
storageEntDesc : String,
byProduct : int,
isSerialized : bool
) : bool
Parameters
shiftStart
Holds the start of the shift during which the item was
produced.
lotNo
Holds the lot number of the produced row.
itemID
Holds the ID of the item produced.
itemDesc
Holds the description of the item produced.
shiftID
Holds the ID of the shift during which the item was
produced.
reasCd
Holds the production reason code given when the item was
produced.
reasDesc
Holds the production reason description given when the
item was produced.
qty
Holds the amount produced.
rejQty
Holds the amount rejected.
startQty
Holds the amount at the start.
storageEntID
Holds the ID of the entity in which the produced item were
stored.
storageEntDesc
Holds the name of the entity in which the produced item
were stored.
byProduct
Holds a flag indicating whether or not the item is a by
product.
JobExec Class
369
isSerialized
Holds a flag indicating whether the item is serialized.
Return Value
_
_
[C#]
370
[C++]
public:
bool PopupReduceProdDlg(
DateTime shiftStart,
String lotNo,
String itemID,
String itemDesc,
int shiftID,
int reasCd,
String reasDesc,
double qty,
Object storageEntID,
String storageEntDesc,
int byProduct
) sealed
[J#]
[JScript]
public
function PopupReduceProdDlg(
shiftStart : DateTime,
lotNo : String,
itemID : String,
itemDesc : String,
shiftID : int,
reasCd : int,
reasDesc : String,
qty : double,
storageEntID : Object,
JobExec Class
371
storageEntDesc : String,
byProduct : int
) : bool
Parameters
shiftStart
Holds the start of the shift during which the item was
produced.
lotNo
Holds the lot number of the produced row of which the item
is a part.
itemID
Holds the ID of the item produced.
itemDesc
Holds the description of the item produced.
shiftID
Holds the ID of the shift during which the item was
produced.
reasCd
Holds the production reason code given when the item was
produced.
reasDesc
Holds the production reason description given when the
item was produced.
qty
Holds the amount produced.
storageEntID
Holds the ID of the entity in which the produced item were
stored.
storageEntDesc
Holds the name of the entity in which the produced item
were stored.
byProduct
Holds a flag indicating whether or not the item is a by
product.
Return Value
PopupSetConsLotDataDlg() Method
The PopupSetConsLotDataDlg() method opens the Set Lot
Data dialog for consumption. The dialog allows the user to
set the lot number for the consumed item and the entity in
which the item is to be stored.
372
Syntax
_
_
[C#]
[C++]
public:
bool PopupSetConsLotDataDlg(
String woID,
String operID,
int seqNo,
String lotNo,
String itemID,
String itemDesc,
int bomPos
) sealed
[J#]
JobExec Class
373
[JScript]
public
function PopupSetConsLotDataDlg(
woID : String,
operID : String,
seqNo : int,
lotNo : String,
itemID : String,
itemDesc : String,
bomPos : int
) : bool
Parameters
woID
Holds the work order ID of the job where the item was
consumed.
operID
Holds the operation ID of the job where the item was
consumed.
seqNo
Holds the operation sequence number of the job where the
item was consumed.
lotNo
Holds the current lot number.
itemID
Holds the ID of the item being consumed.
itemDesc
Holds the description of the item being consumed.
bomPos
Holds the BOM position of the item being consumed.
Return Value
PopupSetProdLotDataDlg() Method
The PopupSetProdLotDataDlg() method opens the Set Lot
Data dialog for production. The dialog allows the user to set
the item being produced, the lot number for the produced
item, and the entity in which the item is to be stored.
Syntax
374
[C#]
[C++]
public:
bool PopupSetProdLotDataDlg(
String lotNo,
String itemID,
String itemDesc,
int bomPos
) sealed
[J#]
[JScript]
public
function PopupSetProdLotDataDlg(
lotNo : String,
itemID : String,
itemDesc : String,
bomPos : int
) : bool
Parameters
lotNo
Holds the current lot number.
itemID
Holds the ID of the item currently being produced.
itemDesc
Holds the description of the item currently being produced.
JobExec Class
375
bomPos
Holds the BOM position of the item currently being
produced.
Return Value
ReadyJob() Method
The ReadyJob() method changes the state of the specified job
to Ready. A job is specified by a work order ID, an operation
ID, and an operation sequence number.
Syntax
[C#]
public void ReadyJob(
string woId,
string operId,
int seqNo,
string editTime
)
[C++]
public:
void ReadyJob(
String woId,
String operId,
int seqNo,
String editTime
) sealed
[J#]
[JScript]
376
public
function ReadyJob(
woId : String,
operId : String,
seqNo : int,
editTime : String
)
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
editTime
Holds the timestamp for the last edit of this job. If this does
not match the timestamp currently in the database, the job
cannot be changed.
Exceptions
Refresh() Method
The Refresh() method reloads this JobExec's dynamic data
from the Factelligence database.
Syntax
[C#]
[C++]
public:
void Refresh() sealed
[J#]
[JScript]
public
function Refresh()
Exceptions
JobExec Class
377
RejectProd() Method
The RejectProd() method marks previously reported
production as rejected.
Syntax
_
_
_
[C#]
public void RejectProd(
string rowID,
double rejectQty,
long newReasCd,
string newItemID,
string newLotNo,
string newUserID,
object newEntID
)
[C++]
public:
void RejectProd(
String rowID,
double rejectQty,
__int64 newReasCd,
String newItemID,
String newLotNo,
String newUserID,
Object newEntID
) sealed
[J#]
378
string newItemID,
string newLotNo,
string newUserID,
object newEntID
)
[JScript]
public
function RejectProd(
rowID : String,
rejectQty : double,
newReasCd : long,
newItemID : String,
newLotNo : String,
newUserID : String,
newEntID : Object
)
Parameters
rowID
Identifies the row being marked as rejected.
rejectQty
Identifies the amount of rejected material in the row.
newReasCd
Identifies the reason code for the rejected material.
newItemID
Holds an optional new Item ID for the rejected material. Set
to null if not used.
newLotNo
Holds an optional new lot number for the rejected material.
Set to null if not used.
newUserID
Holds an optional new user ID for the rejected material. Set
to null if not used.
newEntID
Holds an optional new storage location for the rejected
material. Set to null if not used.
Exception
SetCurLotdata() Method
The SetCurLotdata() method sets the current lot information
for the running job.
JobExec Class
379
Syntax
_
_
[C#]
public void SetCurLotdata(
object bomPos,
string itemID,
string lotNo,
object reasCd,
object storageEntID,
object updateInv,
object backFlush
)
[C++]
public:
void SetCurLotdata(
Object bomPos,
String itemID,
String lotNo,
Object reasCd,
Object storageEntID,
Object updateInv,
Object backFlush
) sealed
[J#]
380
[JScript]
public
function SetCurLotdata(
bomPos : Object,
itemID : String,
lotNo : String,
reasCd : Object,
storageEntID : Object,
updateInv : Object,
backFlush : Object
)
Parameters
bomPos
Holds the BOM position for the item that is stored at the
current lot. Set to null if not being used.
itemID
Holds the item ID for the item that is stored at the current
lot. Set to null if not being used.
lotNo
Holds the lot number for the current information is entered.
Set to null to use the lot where the item being produced is
stored.
reasCd
Holds the item reason code. Set to null or -1 if not being
used.
storageEntID
Holds the ID of the storage entity. Set to null or -1 if not
being used.
updateInv
Holds a flag to tell whether or not inventory is being
updated. Set to null if not being used.
backFlush
Holds a flag to tell whether or not consumption is being
backflushed. Set to null if not being used.
Exceptions
SetUIScreenTagValues() Method
The SetUIScreenTagValues method sets the factory connector
tags for the Production controls screen values.
JobExec Class
381
Syntax
[C#]
public void SetUIScreenTagValues(
DataRow row
)
[C++]
public:
void SetUIScreenTagValues(
DataRow row
) sealed
[J#]
[JScript]
public
function SetUIScreenTagValues(
row : DataRow
)
Parameter
row
Holds the selected row in the production control from which
the values are retrieved to updated the factory connector
tags.
Exceptions
StartDataEntryJob() Method
The StartDataEntryJob() method starts the specified data
entry job on the current entity. A Data Entry job is a job
created on the fly on the shop floor. It is specified by
supplying a work order ID and an operation ID. Since no
BOM 0 record exist, an item must be specified along with a
default production rate, and optionally the ID for the unit of
measure used for the item.
Syntax
382
[C#]
public void StartDataEntryJob(
string woId,
string operId,
string itemId,
double estProdRate,
int estProdRateUOM,
string flag,
object optionalUomId
)
[C++]
public:
void StartDataEntryJob(
String woId,
String operId,
String itemId,
double estProdRate,
int estProdRateUOM,
String flag,
Object optionalUomId
) sealed
[J#]
[JScript]
public
function StartDataEntryJob(
JobExec Class
383
woId : String,
operId : String,
itemId : String,
estProdRate : double,
estProdRateUOM : int,
flag : String,
optionalUomId : Object
)
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
itemId
Holds the ID of the item being produced by the job.
estProdRate
Holds the estimated production rate.
estProdRateUOM
Holds the unit of measure for the production rate.
optionalUomId
Optionally holds the ID for an unit of measure. Set to null if
not supplied.
Exceptions
StartJob() Method
The StartJob() method starts the specified job on the entity. A
job is specified by a work order ID, an operation ID, and an
operation sequence number.
Syntax
[C#]
public void StartJob(
string woId,
384
string operId,
int seqNo,
string statusNotes
)
[C++]
public:
void StartJob(
String woId,
String operId,
int seqNo,
String statusNotes
) sealed
[J#]
[JScript]
public
function StartJob(
woId : String,
operId : String,
seqNo : int,
statusNotes : String
)
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
statusNotes
Holds notes explaining why the job is being started. An
empty string may be passed.
Exceptions
JobExec Class
385
UnreadyJob() Method
The UnreadyJob method changes the state of the specified job
to New. A job is specified by a work order ID, an operation
ID, and an operation sequence number.
Syntax
[C#]
public void UnreadyJob(
string woId,
string operId,
int seqNo,
string editTime
)
[C++]
public:
void UnreadyJob(
String woId,
String operId,
int seqNo,
String editTime
) sealed
[J#]
[JScript]
public
function UnreadyJob(
woId : String,
operId : String,
seqNo : int,
editTime : String
)
386
Parameters
woId
Holds the job's work order ID.
operId
Holds the job's operation ID.
seqNo
Holds the job's operation sequence number.
editTime
Holds the timestamp for the last edit of this job. If this does
not match the timestamp currently in the database, the job
cannot be changed.
Exceptions
AllowZeroQtySplit Property
The AllowZeroQtySplit property is a read-only property which
uses the Allow Zero Qty Split flag to determine if the start
quantity of a job created from splitting another job can be
zero.
Syntax
[C#]
[C++]
[[J#] ]
/** property */
public bool get_AllowZeroQtySplit();
[[JScript] ]
AutoAllocateQtyToRunningJob Property
The AutoAllocateQtyToRunningJob property is a read-only
property that uses the Auto Allocate Qty to Running Job flag
to determine if quantities from the original job's quantity
that is left to be produced can be allocated to a job split off.
Syntax
JobExec Class
387
[C#]
[C++]
[J#]
/** property */
public bool get_AutoAllocateQtyToRunningJob();
[JScript]
CanRunWithoutOperator Property
The CanRunWithoutOperator property is a read-only property
that determines if the current job can continue to run if an
operator is not logged onto the job.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_CanRunWithoutOperator();
[JScript]
CertExecObject Property
The CertExecObject property is a read-only property which
exposes the Cert Exec object to give access to certification
information. The Cert Exec object determines if a job
requires certifications, and if so, what ones and what level of
certification the user needs to have in order to sign off on this
job.
Syntax
388
[C#]
[C++]
[J#]
/** property */
public CertExec get_CertExecObject();
[JScript]
CurGoodQty Property
The CurGoodQty property is a read-only property which
exposes the current good quantity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_CurGoodQty();
[JScript]
CurJobState Property
The CurJobState property is a read-only property which
exposes the current job state.
Syntax
[C#]
[C++]
[J#]
JobExec Class
389
/** property */
public JobStates get_CurJobState();
[JScript]
CurOperId Property
The CurOperId property is a read-only property which
exposes the current Operation ID running on this JobExec
object instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_CurOperId();
[JScript]
CurRejectQty Property
The CurRejectQty property is a read-only property which
exposes the current reject quantity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_CurRejectQty();
[JScript]
390
CurSeqNo Property
The CurSeqNo property is a read-only property which exposes
the current sequence number of the job running on this
JobExec object instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_CurSeqNo();
[JScript]
CurWOId Property
The CurWOId property read-only property exposing the
current work order running on this JobExec object instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_CurWOId();
[JScript]
DefConsReasCD Property
The DefConsReasCD property is a read-only property which
exposes the default consumption reason code for this JobExec
object instance.
JobExec Class
391
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_DefConsReasCD();
[JScript]
DefConsReasDesc Property
The DefConsReasDesc property is a read-only property which
exposes the default consumption reason description for this
JobExec object instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_DefConsReasDesc();
[JScript]
DefFromEntID Property
The DefFromEntID property is a read-only property which
exposes the ID of the default entity from which items is
consumed for this JobExec object instance.
Syntax
[C#]
392
[C++]
public property int DefFromEntID sealed
int get();
}
[J#]
/** property */
public int get_DefFromEntID();
[JScript]
DefFromEntName Property
The DefFromEntName property is a read-only property which
exposes the Default From Ent Name for this JobExec object
instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_DefFromEntName();
[JScript]
DefLotNo Property
The DefLotNo property is a read-only property which exposes
the default lot number.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_DefLotNo();
JobExec Class
393
[JScript]
public function get DefLotNo() : String
DefProdReasCD Property
The DefProdReasCD property is a read-only property which
exposes the default production reason code for this JobExec
object instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_DefProdReasCD();
[JScript]
DefToEntID Property
The DefToEntID property read-only property which exposes
the Default To Ent ID for this JobExec object instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_DefToEntID();
[JScript]
DefToEntName Property
The DefToEntName property is a read-only property exposing
the Default To Ent Name for this JobExec object instance.
394
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_DefToEntName();
[JScript]
JobPos Property
The JobPos property is a read-only property which exposes
the job position on the entity for this JobExec object instance.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_JobPos();
[JScript]
JobStepExecObject Property
The JobStepExecObject property is a read-only property
which exposes the JobStepExec object. A JobStepExec object
is created for a job running at this job position if the job has
defined steps.
Syntax
[C#]
JobExec Class
395
[C++]
[J#]
/** property */
public JobStepExec get_JobStepExecObject();
[JScript]
SpecExecObject Property
The SpecExecObject property is a read-only property that
exposes the SpecExec object. A SpecExec object is created for
the job running at this job position if the job can gather
specifications.
Syntax
[C#]
[C++]
[J#]
/** property */
public SpecExec get_SpecExecObject();
[JScript]
SuppressStartSomeQtyPrompt Property
The SuppressStartSomeQtyPrompt property is a read-only
property that, when the request to start some of a job is
made, determines whether to present the Start Some dialog or
to use default quantity values.
Syntax
[C#]
396
[C++]
public property bool SuppressStartSomeQtyPrompt
sealed {
bool get();
}
[J#]
/** property */
public bool get_SuppressStartSomeQtyPrompt();
[JScript]
UserLoggedIn Property
The UserLoggedIn property is a read-only property that
exposes a flag that specifies whether the current user is
logged on to Factelligence.
Syntax
[C#]
[C++]
[J#]
/** property */
public bool get_UserLoggedIn();
/** property */
public void set_UserLoggedIn(bool value);
[JScript]
LangStrings Class
The LangStrings class stores all static strings for a
Factelligence language in a client side cache. An instance is
created for each different language required by all logged in
users. Client applications use the Translate() function to
translate a specific string.
LangStrings Class
397
LangStrings Constructor
Constructor for creating a LanguageString object for a
particular language ID. The strings may optionally retain
their IDs for translation purposes.
Syntax
C#
C++
J#
public:
LangStrings(
int langId,
bool appendIds
) sealed
public LangStrings(
int langId,
bool appendIds
)
JScript
Parameters
langId
Holds the ID of the language to use.
appendIds
Set if the string IDs should be appended to the end of the
string after translating.
LangStrings Constructor
Constructor for creating a LanguageString object for a
particular language ID for a particular set of strings. The
strings may optionally retain their IDs for translation
purposes. This class can be used to load a small set of know
strings to speed up the loading of the language.
Syntax
398
C#
C++
J#
public:
LangStrings(
int langId,
bool appendIds,
array<int>^ stringIDs
) sealed
public LangStrings(
int langId,
bool appendIds,
int[] stringIDs
)
JScript
Parameters
langId
Holds the ID of the language to use.
appendIds
Set if the string IDs should be appended to the end of the
string after translating.
stringIDs
Hold an array of string IDs to be loaded. This allows loading
a portion of the language table.
GetLanguages() Method
The GetLanguages() method returns the name of all the
languages which are defined for the system.
Syntax
[C#]
LangStrings Class
399
[C++]
public:
static DataSet GetLanguages()
[J#]
[JScript]
public static
Return Value
Translate() Method
Client applications call the Translate() function to translate a
specific string using the id of the string which is provided
with the string as <id> at the end of the string, and the
language ID of the user.
The input string must have the string ID included. If the
string ID cannot be found in the language table to translate
the string, the string that was passed in returns with the
<id> removed from the end of it.
Syntax
[C#]
Implements ILanguageStrings.Translate
[C++]
public:
String Translate(
String inputString
) sealed
[J#]
[JScript]
public
function Translate(
400
inputString : String
) : String
Parameter
inputString
Holds the string to translate. The string must end with
<id> where ID is the number representing the string ID.
Return Value
Implements
ILanguageStrings.Translate
LangID Property
The LangID property exposes the current language ID.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_LangID();
[JScript]
LicenseInfo Class
This class reads the current License Information from the
Factelligence middleware on initialization. The maximum
sessions for each client type and the modules licensed can be
accessed through this class.
LicenseInfo Class
401
MaxSessions() Method
The MaxSessions() method returns the maximum number of
concurrent sessions of the specified client type that have
been licensed. The client type is one of the types from the
ClientTypes enumeration which signifies the client that is
currently using the session. Examples of client types include
Operator and DataEditor.
Syntax
[C#]
[C++]
public:
int MaxSessions(
ClientTypes clientType
) sealed
[J#]
[JScript]
public
function MaxSessions(
clientType : ClientTypes
) : int
Return Value
ModuleLicensed() Method
The ModuleLicensed() method returns whether or not the
specified module is licensed.
Syntax
402
[C#]
public bool ModuleLicensed(
FunctionalModules functModule
)
[C++]
public:
bool ModuleLicensed(
FunctionalModules functModule
) sealed
[J#]
[JScript]
public
function ModuleLicensed(
functModule : FunctionalModules
) : bool
Return Value
OEEExec Class
The OEEExec class provides a means for using OEE in the
Factelligence MES. An instance of this class is created every
time a user logs into an entity that can track OEE.
GetValue() Method
The GetValue() method returns the current value for the
specified KPI type.
Syntax
As Double
[C#]
OEEExec Class
403
[C++]
public:
double GetValue (
KPIType kPIType,
FilterType filterType,
int filterDuration,
FilterTimeUnit filterTimeUnit,
int filterTimeStart,
int filterTimeEnd
)
[J#]
public double GetValue (
KPIType kPIType,
FilterType filterType,
int filterDuration,
FilterTimeUnit filterTimeUnit,
int filterTimeStart,
int filterTimeEnd
)
[Jscript]
filterType
KPIType,
;
FilterType,
filterDuration
int,
filterTimeUnit
FilterTimeUnit,
filterTimeStart
filterTimeEnd
)
int,
int
double
Parameters
kPIType
Holds a KPIType enumeration value specifying the KPI
type whose current value is retrieved.
404
filterType
Holds a FilterType enumeration value that gives the types
to filter data.
filterDuration
Holds an integer which gives a value N if the FilterType is
LastNHours.
filterTimeUnit
Holds a FilterTimeUnit enumeration value which specifies
the time unit for a custom filter if the FilterType is Custom.
filterTimeStart
Holds an integer which specifies the start of the filter
period relative to now if the FilterType is Custom.
filterTimeEnd
Holds an integer which specifies the end of the filter period
relative to now if the FilterType is Custom.
Return Value
Exceptions
Refresh() Method
The Refresh() method reloads this OEEExec's dynamic data
from the Factelligence database.
Syntax
[C#]
[C++]
public:
void Refresh() sealed
[J#]
[JScript]
public
function Refresh()
Exceptions
OEEExec Class
405
CurrentOEE Property
The CurrentOEE property exposes the current utilization for
the entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_CurrentOEE();
[JScript]
CurrentPerf Property
The CurrentPerf property exposes the current performance
for the entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_CurrentPerf();
[JScript]
CurrentQual Property
The CurrentQual property exposes the current quality for the
entity.
Syntax
[C#]
406
[C++]
[J#]
/** property */
public double get_CurrentQual();
[JScript]
TargetOEE Property
The TargetOEE property exposes the target utilization of the
entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_TargetOEE();
[JScript]
TargetPerf Property
The TargetPerf property exposes the target performance of
the entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_TargetPerf();
Operations Class
407
[JScript]
public function get TargetPerf() : double
TargetQual Property
The TargetQual property exposes the target quality of the
entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_TargetQual();
[JScript]
Operations Class
The Operations class contains static methods pertaining to
Operations in the Job table.
GetOperationDataFromComboBoxEntry() Method
The GetOperationDataFromComboBoxEntry method gives an
entry from a combo box, returns the operation ID and lists
the valid sequence numbers for that operation.
Syntax
[C#]
public static void GetOperationDataFromComboBoxEntry(
object comboBoxEntry,
out string operID,
out ArrayList seqNos
408
[C++]
public:
static void GetOperationDataFromComboBoxEntry(
Object comboBoxEntry,
[OutAttribute] String% operID,
[OutAttribute] ArrayList% seqNos
)
[J#]
public static void GetOperationDataFromComboBoxEntry(
object comboBoxEntry,
/** @attribute OutAttribute() */ /** @ref */ string
operID,
/** @attribute OutAttribute() */ /** @ref */
ArrayList seqNos
)
[JScript]
public static function
GetOperationDataFromComboBoxEntry(
comboBoxEntry : Object,
OutAttribute operID : String,
OutAttribute seqNos : ArrayList
)
Parameters
comboBoxEntry
Holds an OperationData object from a combo box.
operID
Holds the returned Operation ID.
seqNos
Holds the returned list of valid sequence numbers for the
operation.
GetOperationsForWorkOrder() Method
The GetOperationsForWorkOrder() method returns a dataview
of all valid Operations and Sequence Numbers for a specified
work order. The result set is sorted by Oper ID / Seq No.
Syntax
[C#]
Operations Class
409
[C++]
public:
static DataView GetOperationsForWorkOrder(
String woID
)
[J#]
public static DataView GetOperationsForWorkOrder(
string woID
)
[JScript]
public static
function GetOperationsForWorkOrder(
woID : String
) : DataView
Parameter
woID
Holds the work order ID for which operations are to be
listed.
Return Value
Exceptions
PopulateComboBoxWithOperations() Method
The PopulateComboBoxWithOperations() method populates
the specified combo box with operations for the specified
work order from the Job table.
Syntax
[[C#] ]
[[C++] ]
410
public:
static void PopulateComboBoxWithOperations(
ComboBox cboOperations,
String woID,
bool includeEmptyEntry
)
[[J#] ]
[[JScript] ]
Parameters
cboOperations
Holds the combo box to fill.
woID
Holds the work order ID for which operation are to be
listed.
includeEmptyEntry
If true, an empty entry is placed at the beginning of the
combo box.
Exceptions
PopulateComboBoxWithSeqNos() Method
The PopulateComboBoxWithSeqNos() method populates the
specified combo box with sequence numbers for the specified
operation.
Syntax
[C#]
public static void PopulateComboBoxWithSeqNos(
Operations Class
411
ComboBox cboSeqNos,
ComboBox cboOperations,
string operID,
bool includeEmptyEntry
)
[C++]
public:
static void PopulateComboBoxWithSeqNos(
ComboBox cboSeqNos,
ComboBox cboOperations,
String operID,
bool includeEmptyEntry
)
[J#]
public static void PopulateComboBoxWithSeqNos(
ComboBox cboSeqNos,
ComboBox cboOperations,
string operID,
bool includeEmptyEntry
)
[JScript]
public static
function PopulateComboBoxWithSeqNos(
cboSeqNos : ComboBox,
cboOperations : ComboBox,
operID : String,
includeEmptyEntry : bool
)
Parameters
cboSeqNos
Holds the combo box to fill.
cboOperations
Holds the combo box containing the list of operations. The
associated data with each entry in the combo box must
contain an OperationData structure, which includes the list
of valid sequence numbers for the operation.
operID
Holds the Operation ID.
includeEmptyEntry
If true, an empty entry is placed at the beginning of the
combo box.
412
PersistImage Class
The PersistImage class implements the IPersistImage
interface to allow graphic images to be loaded and saved to
the graphics table.
ListImageNames() Method
The ListImageNames() method builds a list of names of the
images found in the graphics table.
Syntax
[C#]
Implements IPersistImage.ListImageNames
[C++]
public:
ArrayList ListImageNames() sealed
[J#]
[JScript]
public
Return Value
Implements
IPersistImage.ListImageNames
LoadImage() Method
The LoadImage() method loads the named image from the
graphics table.
Syntax
[C#]
Implements IPersistImage.LoadImage
[C++]
public:
PersistImage Class
413
Image LoadImage(
String name
) sealed
[J#]
[JScript]
public
function LoadImage(
name : String
) : Image
Parameter
name
Holds the name of the image to load.
Return Value
Implements
IPersistImage.LoadImage
SaveImage() Method
The SaveImage() method saves the image to the graphics
table as the specified name.
Syntax
[C#]
Implements IPersistImage.SaveImage
[C++]
public:
void SaveImage(
String name,
Image image
) sealed
414
[J#]
public void SaveImage(
string name,
Image image
)
[JScript]
public
function SaveImage(
name : String,
image : Image
)
Parameters
name
Holds the name of the image.
image
Holds the image to save.
Implements
IPersistImage.SaveImage
Priv Class
The Priv class stores all properties associated with a single
user group privilege. An instance of this class is created for
each privilege loaded for a user at startup. Each instance is
exposed to client applications via an indexer on the
UserPriv's class.
Priv Constructor
This constructor overload is given a DataTable Row from
which the instance can be initialized. An exception is thrown
if any of the required column descriptions cannot be found.
Syntax
C#
C++
public:
Priv(
DataRow row
) sealed
Priv Class
415
J#
public Priv(
DataRow row
)
JScript
Desc Property
The Desc property is a read-only property which returns the
description of this privilege.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_Desc();
[JScript]
Id Property
The Id property is a read-only property which returns the ID
of this privilege.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_ID();
[JScript]
416
Value Property
The Value property is a read-only property to return the
Value of this privilege as a 32 bit integer.
Syntax
C++
J#
/** property */
public int get_Value();
JScript
Shifts Class
The Shifts class provides supporting methods for the shift
table. The shift table stores time periods when entities are
available to perform work.
AddEntShift() Method
The AddEntShift() method adds a shift to the entity shift
schedule of the entity passed in if the entity can schedule
shifts.
Syntax
Shifts Class
417
[C#]
public static void AddEntShift (
int entId,
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break2End,
DateTime break3Start,
DateTime break3End
)
[C++]
public:
static void AddEntShift (
int entid,
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break3Start,
DateTime break3End
)
[J#]
public static void AddEntShift(
int entId,
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
418
DateTime break3Start,
DateTime break3End
)
[Jscript]
public static function AddEntShift (
entId
int,
startDay :
shiftId :
int,
int,
shiftStart
shiftEnd
break1Start
break1End
break2Start
break2End
break3Start
break3End
DateTime,
DateTime,
:
DateTime,
DateTime,
:
DateTime,
DateTime,
:
DateTime,
DateTime
Parameters
entId
Holds an integer identifying the entity whose shift schedule
is added to a shift.
startDay
Holds the day of the week when the shift applies.
shiftId
Holds the system shift for the entity shift schedule.
shiftStart
Holds the date/time containing the time that the shift
starts for the entity shift schedule.
shiftEnd
Holds the date/time containing the time that the shift ends
for the entity shift schedule.
break1Start
Holds the date/time containing the time that the first break
starts for the shift.
break1End
Holds the date/time containing the time that the first break
ends for the shift.
break2Start
Holds the date/time containing the time that the second
break starts for the shift.
Shifts Class
419
break2End
Holds the date/time containing the time that the second
break ends for the shift.
break3Start
Holds the date/time containing the time that the third
break starts for the shift.
break3End
Holds the date/time containing the time that the third
break ends for the shift.
Exceptions
DefineShift () Method
The DefineShift() method creates a standard shift.
Syntax
[C#]
public static void DefineShift (
int shiftID,
string description
)
[C++]
public:
static void DefineShift (
int shiftID,
string description
)
[J#]
public static void DefineShift (
int shiftID,
string description
)
[Jscript]
public static function DefineShift (
shiftID
description
int,
:
string
420
Parameter
shiftID
Holds an integer representing the shift ID for the standard
shift that is to be added.
description
Holds a string description of a standard shift that is to be
added. Is null if shift is deleted.
Return Value
Exceptions
DeleteEntShift() Method
The DeleteEntShift() method removes the shift identified by
the input parameters from the shift schedule of the entity
identified by the input ent ID.
Syntax
[C#]
public static void DeleteEntShift (
int entId,
int shiftId,
int startDay
)
[C++]
public:
static void DeleteEntShift (
int entId,
int shiftId,
int startDay
)
[J#]
public static void DeleteEntShift (
int entId,
Shifts Class
421
int shiftId,
int startDay
)
[Jscript]
public static function DeleteEntShift (
entId
shiftId
int,
:
startDay
int,
int
Parameters
entId
Holds an integer defining the entity from which the shift is
deleted from the shift schedule.
shiftId
Holds an integer defining the shift that is to be removed.
startDay
Holds an integer identifying the day for which the shift is to
be removed.
Exceptions
DeleteShift() Method
The DeleteShift() method deletes the standard shift
identified.
Syntax
[C#]
public void DeleteShift (
int shiftId
)
[C++]
public:
static void DeleteShift (
int shiftId
)
[J#]
public static void DeleteShift (
422
int shiftId
)
[Jscript]
public static function DeleteShift (
shiftId
int
Parameter
shiftId
Holds an integer defining the standard shift that is to be
deleted.
Exceptions
GetAllShifts() Method
The GetAllShifts() method returns a data set containing all
shift IDs and descriptions for defined shifts. The shift ID is a
unique integer used to identify the shift.
Syntax
[C#]
[C++]
public:
static DataSet GetAllShifts()
[J#]
[JScript]
public static
Return Value
GetShiftDataFromComboBoxEntry() Method
The GetShiftDataFromComboBoxEntry() method gives an entry
from a combo box which was populated via the
PopulatecomboBoxWithShiftDescs method and returns the
shift ID and description.
Syntax
Shifts Class
423
[C#]
public static void GetShiftDataFromComboBoxEntry(
object comboBoxEntry,
out string shiftDesc,
out int shiftID
)
[C++]
public:
static void GetShiftDataFromComboBoxEntry(
Object comboBoxEntry,
[OutAttribute] String% shiftDesc,
[OutAttribute] int% shiftID
)
[J#]
public static void GetShiftDataFromComboBoxEntry(
object comboBoxEntry,
/** @attribute OutAttribute() */ /** @ref */ string
shiftDesc,
/** @attribute OutAttribute() */ /** @ref */ int
shiftID
)
[JScript]
public static
function GetShiftDataFromComboBoxEntry(
comboBoxEntry : Object,
OutAttribute shiftDesc : String,
OutAttribute shiftID : int
)
Parameters
comboBoxEntry
Holds a ShiftData object from a combo box.
shiftDesc
Holds the returned shift description for the specified combo
box entry.
shiftID
Holds the returned shift ID for the specified combo box
entry.
424
GetShiftID() Method
The GetShiftID() method takes a shift description and returns
the shift ID.
Syntax
[C#]
[C++]
public:
static int GetShiftID (
string description
)
[J#]
public static int GetShiftID (
string description
)
[Jscript]
public static function GetShiftID (
description
)
string
int
Parameter
description
Holds a string description of a standard shift.
Return Value
Exceptions
PopulateComboBoxWithShiftDescs() Method
The PopulateComboBoxWithShifDescs() method populates the
specified combo box with all shift descriptions in the Shift
table. Only non-empty shift descriptions are included.
Syntax
Shifts Class
425
[C#]
public static void PopulateComboBoxWithShiftDescs(
ComboBox cboShifts,
bool includeEmptyDesc
)
[C++]
public:
static void PopulateComboBoxWithShiftDescs(
ComboBox cboShifts,
bool includeEmptyDesc
)
[J#]
public static void PopulateComboBoxWithShiftDescs(
ComboBox cboShifts,
bool includeEmptyDesc
)
[JScript]
public static
function PopulateComboBoxWithShiftDescs(
cboShifts : ComboBox,
includeEmptyDesc : bool
)
Parameters
cboShifts
Holds the combo box to fill with shift descriptions.
includeEmptyDesc
If true, an empty entry is placed at the beginning of the
combo box.
UpdateEntShift() Method
The UpdateEntShift() method updates the shift defined by the
input parameters for the entity that is identified by the ent
ID input parameter.
Syntax
426
[C#]
public static void UpdateEntShift (
int entId,
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break2End,
DateTime break3Start,
DateTime break3End
)
[C++]
public:
static void UpdateEntShift (
int entId,
int startDay,
int shiftId,
DateTime shiftStart,
DateTime shiftEnd,
DateTime break1Start,
DateTime break1End,
DateTime break2Start,
DateTime break2End,
DateTime break3Start,
DateTime break3End
nd
)
[J#]
Shifts Class
427
[Jscript]
public static function UpdateEntShift (
entId
int,
startDay :
shiftId :
int,
int,
shiftStart
shiftEnd
break1Start
break1End
break2Start
break2End
break3Start
break3End
DateTime,
DateTime,
:
DateTime,
DateTime,
:
DateTime,
DateTime,
:
DateTime,
DateTime
Parameters
entId
Holds an integer identifying the entity whose shift schedule
is updated.
startDay
Holds the day of the week on which the shift is applied.
shiftId
Holds the system shift that the shift is for in the entities
schedule.
shiftStart
Holds the date/time containing the time that the shift
starts for the entity shift schedule.
428
shiftEnd
Holds the date/time containing the time that the shift ends
for the entity shift schedule.
break1Start
Holds the date/time containing the time that the first break
starts for the shift.
break1End
Holds the date/time containing the time that the first break
ends for the shift.
break2Start
Holds the date/time containing the time that the second
break starts for the shift.
break2End
Holds the date/time containing the time that the second
break ends for the shift.
break3Start
Holds the date/time containing the time that the third
break starts for the shift.
break3End
Holds the date/time containing the time that the third
break ends for the shift.
Exceptions
UpdateShift() Method
The UpdateShift() method updates the description of the
standard shift identified.
Syntax
[C#]
public static void UpdateShift (
int shiftId,
string description
)
[C++]
public:
static void UpdateShift (
SystemAttr Class
429
int shiftId,
string description
)
[J#]
public static void UpdateShift (
int shiftId,
string description
)
[Jscript]
public static function UpdateShift (
shiftId
description
int,
:
string
Parameters
shiftId
Holds an integer identifying the standard shift that is to be
updated.
description
Holds a string description that is to be saved for the
standard shift.
Exceptions
SystemAttr Class
This class exposes the configured properties for a specified
system attribute. An instance is created by the SystemAttrs
object for each defined system attribute at startup and
exposed to client applications via an indexer into the
collection of attribute objects in SystemAttrs.
C#
430
DataRow row
)
C++
J#
public:
SystemAttr(
DataRow row
) sealed
public SystemAttr(
DataRow row
)
JScript
Parameter
row
Holds the row of attribute properties.
C#
public SystemAttr(
int attrId,
string attrDesc,
string attrValue,
int grpId,
int attrSeq,
int editType,
string constraints,
string reqdLicense
)
C++
public:
SystemAttr(
int attrId,
SystemAttr Class
J#
431
String attrDesc,
String attrValue,
int grpId,
int attrSeq,
int editType,
String constraints,
String reqdLicense
) sealed
public SystemAttr(
int attrId,
string attrDesc,
string attrValue,
int grpId,
int attrSeq,
int editType,
string constraints,
string reqdLicense
)
JScript
Parameters
attrId
Hold the ID for the system attribute to which this object
refers.
attrDesc
Holds the description of this specified system attribute.
attrValue
Holds the value of this specified system attribute.
grpId
Holds the ID of the system attribute group to which this
system attr belongs.
attrSeq
Holds the sequence number of the system attr within it's
group.
editType
Holds the last edit time of the system attribute.
constraints
Holds the data-editing constraints of the system attribute.
432
reqdLicense
Holds a list of license requirements for the system
attribute.
AttrDesc Property
The AttrDesc property is a read-only property which exposes
the description of the system attribute.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_AttrDesc();
[JScript]
AttrId Property
The AttrId property is a read-only property which exposes the
ID of the attribute.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_ApplicationName();
/** property */
public void set_ApplicationName(string value);
[JScript]
SystemAttr Class
433
AttrSeq Property
The AttrSeq property is a read-only property which exposes
the system attribute's sequence number within its group.
Syntax
[[C#] ]
[C++]
[[J#] ]
/** property */
public int get_AttrSeq();
[[JScript] ]
AttrValue Property
The AttrValue property is a read-only property which exposes
the value of the system attribute.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_AttrValue();
[JScript]
Constraints Property
The Constraints property is a read-only property which
exposes the data-editing constraints of the system attribute.
Syntax
434
[C#]
public string Constraints { get; }
[C++]
[J#]
/** property */
public string get_Constraints();
[JScript]
EditType Property
The EditType property is a read-only property that returns a
code to indicate how the system attribute can be edited. Valid
values are:
1 = drop down list
2 = integer
3 = currency
4 = color
5 = date/time
6 = floating point
7 = percent
8 = checkbox
9 = non-editable
10 = time of day
11 = item reason
12 = long string
13 = value selected from a table
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_EditType();
SystemAttr Class
435
[JScript]
public function get EditType() : int
GrpId Property
The GrpID property is a read-only property which exposes the
group ID of the system attribute.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_GrpId();
[JScript]
ReqdLicenses Property
The ReqdLicenses property is a read-only property which
exposes a common separated list of license requirements for
the system attribute.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_ReqdLicenses();
[JScript]
436
SystemAttrs Class
The SystemAttrs class reads all the System Attributes from
the Factelligence middleware on initialization. It then stores
them locally and makes them available to calling
applications through the read-only Item property.
Item Property
The Item property is a read-only property which returns the
the requested system attribute object indexed by the attr_id
passed as an enum of defined system attributes.
Syntax
[[Visual Basic (Declaration)] ]
Public ReadOnly Property Item As Item
[C#]
[C++]
[J#]
/** property */
public Item get_Item();
[JScript]
UIConfig Class
The UIConfig class provides methods for reading and saving
entries in the UI_Config and UI_Config_Default tables.
These tables store configuration data for the various controls,
such as, column widths, sort orders, and field visibility. All
the methods of this class are static; a class instance cannot be
created.
DeleteUIConfigDefaultValue() Method
The DeleteUIConfigDefaultValue() method deletes the specified
record from the UI_Config_Default table.
Syntax
_
_
UIConfig Class
437
[C#]
public static void DeleteUIConfigDefaultValue(
string screen,
string sectn,
string parameter
)
[C++]
public:
static void DeleteUIConfigDefaultValue(
String screen,
String sectn,
String parameter
)
[J#]
public static void DeleteUIConfigDefaultValue(
string screen,
string sectn,
string parameter
)
[JScript]
public static
function DeleteUIConfigDefaultValue(
screen : String,
sectn : String,
parameter : String
)
Parameters
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
parameter
Identifies the specific parameter. The parameter can be
null which causes all the parameters in the indicated sectn
to be deleted.
DeleteUIConfigValue() Method
The DeleteUIConfigValue() method deletes the specified record
from the UI_Config table.
Syntax
438
_
_
[C#]
public static void DeleteUIConfigValue(
string configID,
string screen,
string sectn,
string parameter
)
[C++]
public:
static void DeleteUIConfigValue(
String configID,
String screen,
String sectn,
String parameter
)
[J#]
public static void DeleteUIConfigValue(
string configID,
string screen,
string sectn,
string parameter
)
[JScript]
public static
function DeleteUIConfigValue(
configID : String,
screen : String,
sectn : String,
parameter : String
)
Parameters
configID
Identifies the user or object for which the value is being
stored.
screen
Identifies the screen from which the value was taken.
UIConfig Class
439
sectn
Identifies the group to which the value belongs.
parameter
Identifies the specific parameter. The parameter can be
null which causes all the parameters in the indicated sectn
to be deleted.
GetParameterValue() Method
The GetParameterValue() method returns a specified value
from a string which is in the form
"$$parameter1=value$$$$parameter2=value$$"
Syntax
[C#]
[C++]
public:
static String GetParameterValue(
String source,
String parameter
)
[J#]
public static string GetParameterValue(
string source,
string parameter
)
[JScript]
public static
function GetParameterValue(
source : String,
parameter : String
) : String
440
Parameters
source
Holds the string containing the parameter/value pairs in
the format mentioned above.
parameter
Holds the name of the parameter to find. This string must
include the equal sign.
Return Value
ReadUIConfigDefaultValue() Method
The ReadUIConfigDefaultValue() method returns the specified
configuration data from the UI_Config_Default table.
Syntax
_
_
[C#]
[C++]
public:
static String ReadUIConfigDefaultValue(
String screen,
String sectn,
String parameter
)
[J#]
public static string ReadUIConfigDefaultValue(
string screen,
string sectn,
string parameter
)
[JScript]
UIConfig Class
public static
441
function ReadUIConfigDefaultValue(
screen : String,
sectn : String,
parameter : String
) : String
Parameters
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
parameter
Identifies the specific parameter.
Return Value
ReadUIConfigValue() Method
The ReadUIConfigValue() method returns the specified
configuration data from the UI_Config table.
Syntax
_
_
[C#]
[C++]
public:
static String ReadUIConfigValue(
String configID,
String screen,
String sectn,
String parameter
442
[J#]
public static string ReadUIConfigValue(
string configID,
string screen,
string sectn,
string parameter
)
[JScript]
public static
function ReadUIConfigValue(
configID : String,
screen : String,
sectn : String,
parameter : String
) : String
Parameters
configID
Identifies the user or object for which the value is being
stored.
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
parameter
Identifies the specific parameter.
Return Value
RestoreControlsVisibility() Method
The RestoreControlsVisibility method gets a DataSet
containing values for each label on the specified form. It then
finds the controls named in the DataSet and sets their
visibility based on the value in the DataSet. The control's Tag
property is also set. Because only the visibility of the label is
stored, the control associated with that label must have the
same name as the label excluding the first three characters.
Syntax
UIConfig Class
443
[C#]
public static void RestoreControlsVisibility(
string configID,
string screen,
string sectn,
Control containerControl
)
[C++]
public:
static void RestoreControlsVisibility(
String configID,
String screen,
String sectn,
Control containerControl
)
[J#]
public static void RestoreControlsVisibility(
string configID,
string screen,
string sectn,
Control containerControl
)
[JScript]
public static
function RestoreControlsVisibility(
configID : String,
screen : String,
sectn : String,
containerControl : Control
)
Parameters
configID
Identifies the user or object for which the value is being
stored.
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
444
containerControl
The container control being set up.
RestoreControlsVisibilityFromDefaults() Method
The RestoreControlsVisibilityFromDefaults method gets a
DataSet containing default values for each label on the
specified form. It then finds the controls named in the
DataSet and sets their visibility based on the value in the
DataSet. The control's Tag property is also set. Because only
the visibility of the label is stored, the control associated with
that label must have the same name as the label excluding
the first three characters.
Syntax
_
_
[C#]
public static void
RestoreControlsVisibilityFromDefaults(
string screen,
string sectn,
Control containerControl
)
[C++]
public:
static void RestoreControlsVisibilityFromDefaults(
String screen,
String sectn,
Control containerControl
)
[J#]
public static void
RestoreControlsVisibilityFromDefaults(
string screen,
string sectn,
Control containerControl
)
[JScript]
UIConfig Class
445
Parameters
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
containerControl
Holds the container control being set up.
RestoreTabsVisibilityFromDefaults() Method
The RestoreTabsVisibilityFromDefaults() method gets a
DataSet containing default values for each tab in the
specified tab control. It then finds the tabs named in the
DataSet and sets their visibility based on the value in the
DataSet.
Syntax
_
_
[C#]
public static void RestoreTabsVisibilityFromDefaults(
string screen,
string sectn,
Control tabControl
)
[C++]
public:
static void RestoreTabsVisibilityFromDefaults(
String screen,
String sectn,
Control tabControl
)
[J#]
446
[JScript]
public static function
RestoreTabsVisibilityFromDefaults(
screen : String,
sectn : String,
tabControl : Control
)
SaveControlsVisibility() Method
The SaveControlsVisibility() method saves the visibility
information for the controls on the specified form. Only the
visibly information for the labels are saved. The control
associated with the label must have the same name as the
label excluding the first three characters.
Syntax
_
_
[C#]
public static void SaveControlsVisibility(
string configID,
string screen,
string sectn,
Control containerControl
)
[C++]
public:
static void SaveControlsVisibility(
String configID,
String screen,
String sectn,
Control containerControl
UIConfig Class
447
[J#]
public static void SaveControlsVisibility(
string configID,
string screen,
string sectn,
Control containerControl
)
[JScript]
public static
function SaveControlsVisibility(
configID : String,
screen : String,
sectn : String,
containerControl : Control
)
Parameters
configID
Identifies the user or object for which the value is being
stored.
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
containerControl
Holds the container control being saved.
SaveControlsVisibilityAsDefaults() Method
The SaveControlsVisibilityAsDefaults() method saves the
visibility information for the controls on the specified form as
the default for that form. Only the visibly information for the
labels are saved. The control associated with the label must
have the same name as the label excluding the first three
characters.
Syntax
_
_
[C#]
448
[C++]
public:
static void SaveControlsVisibilityAsDefaults(
String screen,
String sectn,
Control containerControl
)
[J#]
public static void SaveControlsVisibilityAsDefaults(
string screen,
string sectn,
Control containerControl
)
[JScript]
public static function
SaveControlsVisibilityAsDefaults(
screen : String,
sectn : String,
containerControl : Control
)
Parameters
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
containerControl
Holds the container control being saved.
SaveTabsVisibility() Method
The SaveTabsVisibility() method saves the visibility
information for the tabs in the specified tab control.
Syntax
UIConfig Class
449
[C#]
public static void SaveTabsVisibility(
string configID,
string screen,
string sectn,
Control tabControl
)
[C++]
public:
static void SaveTabsVisibility(
String configID,
String screen,
String sectn,
Control tabControl
)
[J#]
public static void SaveTabsVisibility(
string configID,
string screen,
string sectn,
Control tabControl
)
[JScript]
public static
function SaveTabsVisibility(
configID : String,
screen : String,
sectn : String,
tabControl : Control
)
Parameters
configID
Identifies the user or object for which the value is being
stored.
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
450
tabControl
Holds the tab control being saved.
SaveTabsVisibilityAsDefaults() Method
The SaveTabsVisibilityAsDefaults() method saves the visibility
information for the tabs in the specified tab control as
defaults.
Syntax
_
_
[C#]
public static void SaveTabsVisibilityAsDefaults(
string screen,
string sectn,
Control tabControl
)
[C++]
public:
static void SaveTabsVisibilityAsDefaults(
String screen,
String sectn,
Control tabControl
)
[J#]
public static void SaveTabsVisibilityAsDefaults(
string screen,
string sectn,
Control tabControl
)
[JScript]
public static
function SaveTabsVisibilityAsDefaults(
screen : String,
sectn : String,
tabControl : Control
)
UIConfig Class
451
Parameters
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
tabControl
Holds the tab control being saved.
SaveUIConfigDefaultValue() Method
The SaveUIConfigDefaultValue() method stores the specified
configuration data in the UI_Config_Default table.
Syntax
_
_
[C#]
public static void SaveUIConfigDefaultValue(
string screen,
string sectn,
string parameter,
string UIvalu
)
[C++]
public:
static void SaveUIConfigDefaultValue(
String screen,
String sectn,
String parameter,
String UIvalu
)
[J#]
public static void SaveUIConfigDefaultValue(
string screen,
string sectn,
string parameter,
string UIvalu
452
[JScript]
public static
function SaveUIConfigDefaultValue(
screen : String,
sectn : String,
parameter : String,
UIvalu : String
)
Parameters
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
parameter
Identifies the specific parameter.
UIvalu
Holds the value to be saved.
SaveUIConfigDefaultValues() Method
The SaveUIConfigDeafultValues() method saves a list of
parameter/value pairs to the UI_Config_Default table. It
uses the middleware UI_Config_Default.SaveSectionParams()
method to save the parameter/value pairs all at once.
Syntax
_
_
[C#]
public static void SaveUIConfigDefaultValues(
string screen,
string sectn,
ParameterValueArrayList paramValues
)
[C++]
public:
static void SaveUIConfigDefaultValues(
String screen,
String sectn,
UIConfig Class
453
ParameterValueArrayList paramValues
)
[J#]
public static void SaveUIConfigDefaultValues(
string screen,
string sectn,
ParameterValueArrayList paramValues
)
[JScript]
public static
function SaveUIConfigDefaultValues(
screen : String,
sectn : String,
paramValues : ParameterValueArrayList
)
Parameters
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
paramValues
Holds an array of parameter/value pairs.
SaveUIConfigValue() Method
The SaveUIConfigValue() method stores the specified
configuration data in the UI_Config table.
Syntax
_
_
[C#]
public static void SaveUIConfigValue(
string configID,
string screen,
string sectn,
string parameter,
454
string UIvalu
)
[C++]
public:
static void SaveUIConfigValue(
String configID,
String screen,
String sectn,
String parameter,
String UIvalu
)
[J#]
public static void SaveUIConfigValue(
string configID,
string screen,
string sectn,
string parameter,
string UIvalu
)
[JScript]
public static
function SaveUIConfigValue(
configID : String,
screen : String,
sectn : String,
parameter : String,
UIvalu : String
)
Parameters
configID
Identifies the user or object for which the value is being
stored.
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
parameter
Identifies the specific parameter.
UIvalu
Holds the value to be saved.
UIConfig Class
455
SaveUIConfigValues() Method
The SaveUIConfigValues() method saves a list of
parameter/value pairs to the UI_Config table. It uses the
middleware UI_Config.SaveSectionParams() method to save
the parameter/value pairs all at once.
Syntax
_
_
[C#]
public static void SaveUIConfigValues(
string configID,
string screen,
string sectn,
ParameterValueArrayList paramValues
)
[C++]
public:
static void SaveUIConfigValues(
String configID,
String screen,
String sectn,
ParameterValueArrayList paramValues
)
[J#]
public static void SaveUIConfigValues(
string configID,
string screen,
string sectn,
ParameterValueArrayList paramValues
)
[JScript]
public static
function SaveUIConfigValues(
configID : String,
screen : String,
sectn : String,
paramValues : ParameterValueArrayList
456
Parameters
configID
Identifies the user or object for which the value is being
stored.
screen
Identifies the screen from which the value was taken.
sectn
Identifies the group to which the value belongs.
paramValues
Holds an array of parameter/value pairs.
User Class
The User class handles all Factelligence MES functionality
for a user logged into Factelligence.
User Constructor
The user constructor is only called after a successful login
and must include the User ID.
Syntax
C#
C++
J#
public:
User(
String userId
) sealed
public User(
string userId
)
JScript
User Class
457
Parameter
userId
Holds the ID of the user for which the object is being built.
AddUserToGroups () Method
The AddUserToGroups() method takes a list of group IDs and
adds the user defined by the user object to the groups in the
list.
Syntax
[C#]
public void AddUserToGroups(
List<int> groupIDs
)
[C++]
public:
void AddUserToGroups(
List<int> groupIDs
)
[J#]
public void AddUserToGroups(
List<int> groupdIDs
)
[Jscript]
public function AddUserToGroups(
groupIDs
List<int>
Parameter
groupIDs
Holds a list of integers identifying the user groups to add
the user.
Exceptions
458
ChangePassword() Method
The ChangePassword() method changes the password of the
user by the user object to the new password, if the user has
the right to update user information.
Syntax
[C#]
public void ChangePassword (
string userId,
string password,
string newPassword
)
[C++]
public:
void ChangePassword (
string userId,
string password,
string newPassword
)
[J#]
public void ChangePassword
string userId,
string password,
string newPassword
)
[Jscript]
public function ChangePassword
userId
password
string,
:
newPassword
string,
:
string
Parameters
userId
Holds a string that is the user ID for the user that is trying
to make the change to the user identified by the user object.
User Class
459
password
Holds a string that is the password of the user making the
change to the password of the user identified by the user
object.
newPassword
Holds a string that is the new password that is to be
assigned to the user identified by the user object.
Exceptions
CloneUser() Method
The CloneUser() method creates a new user by copying the
user information from the user defined by the user object to a
new user with a user ID and password passed in. This
includes adding the user to all of the user groups that the
current user is in.
Syntax
[C#]
public void CloneUser (
string userId,
string Password
)
[C++]
public:
void CloneUser (
string userId,
string Password
)
[J#]
public void CloneUser (
string userId,
string Password
)
[Jscript]
public function CloneUser (
userId
string,
460
Password
string
Parameters
userId
Holds a string that is the user ID for the new user.
Password
Holds a string that is the password for the new user.
Exceptions
GetEntList() Method
The GetEntList() method gets a list of entities available for
control by this user. The list can be all the entities the user
has access to, all the entities in the user's default list, or all
the entities last used by the user.
Syntax
[C#]
[C++]
public:
DataSet GetEntList(
String listId
) sealed
[J#]
[JScript]
public
function GetEntList(
listId : String
) : DataSet
User Class
461
Parameter
listId
Holds a string used to filter the list of entities. If an empty
sting is passed, all the entities the user has access to is
returned; if the string is "Default", the default entities for
the user is returned; and if the string is "Last Used", the
entities last used by the user is returned.
Return Value
Exceptions
[C#]
[C++]
public:
bool IsUserLoggedIntoJob(
int entId,
String woId,
String operId,
int seqNo
) sealed
[J#]
462
[JScript]
public
function IsUserLoggedIntoJob(
entId : int,
woId : String,
operId : String,
seqNo : int
) : bool
Parameters
entId
Holds the entity on which the job is running.
woId
Holds the work order ID of the job.
operId
Holds the operation ID of the job.
seqNo
Holds the sequence number of the job.
Return Value
Returns true if the user is logged into the job or false if the
user is not logged into the job.
[C#]
User Class
463
string operId,
int seqNo
)
[C++]
public:
bool IsUserLoggedIntoJob(
String woId,
String operId,
int seqNo
) sealed
[J#]
[JScript]
public
function IsUserLoggedIntoJob(
woId : String,
operId : String,
seqNo : int
) : bool
Parameters
woId
Holds the work order ID of the job.
operId
Holds the operation ID of the job.
seqNo
Holds the sequence number of the job.
Return Value
Returns true if the user is logged into the job or false if the
user is not logged into the job.
IsUserLoggedOntoEnt() Method
This IsUserLoggedOntoEnt() method determines whether the
current user is logged on to the specified entity.
Syntax
464
[C#]
public bool IsUserLoggedOntoEnt(
int entId
)
[C++]
public:
bool IsUserLoggedOntoEnt(
int entId
) sealed
[J#]
[JScript]
public
function IsUserLoggedOntoEnt(
entId : int
) : bool
Parameter
entId
Holds the ID of the entity to check if the user is logged on.
Return Value
JobBasedLogin() Method
The JobBasedLogin() method opens the form to allow user to
logon to a job by selecting the job rather then the entity it is
running on. User can only be logged into that job and not all
of the jobs running on the entity.
Syntax
[C#]
[C++]
public:
bool JobBasedLogin() sealed
[J#]
[JScript]
public
User Class
465
Return Value
LogoffEnt Method
The LogOffEnt() method logs the operator off all or one of the
entities that the operator is currently logged on.
Syntax
[C#]
[C++]
public:
void LogoffEnt(
int EntId
) sealed
[J#]
[[JScript]#]
Parameter
EntId
Holds the ID of the entity the operator is to be logged off. To
log the operator off of all entities, pass the value of -1.
Exception
LogoffEntList() Method
The LogoffEntList() method logs the user off a list of entities.
The user is logged off the entities one at a time. If an error
occurs, the user may be logged off some entities but not
others.
Syntax
466
[C#]
public void LogoffEntList(
int[] arrayEntIds
)
[C++]
public:
void LogoffEntList(
array<int>^ arrayEntIds
) sealed
[J#]
[JScript]
public
function LogoffEntList(
arrayEntIds : int[]
)
Parameter
arrayEntIds
Holds an array of entity IDs to log off.
Exceptions
Remarks
If you are using the Client API Wrapper you will want to
use the function LogoffEntList(int[] arrayEntIds, int
EntCount) where EntCount is the number of valid entity
ids in arrayEntIds.
LogOffJob() Method
The LogOffJob() method logs the user off the job running in
the specified job position on the specified entity. This method
optionally log the user off the entity as well.
Syntax
_
_
User Class
467
[C#]
public void LogOffJob(
int entId,
int jobPos,
JobStates jobState,
bool logOffEnt,
string statusNotes
)
[C++]
public:
void LogOffJob(
int entId,
int jobPos,
JobStates jobState,
bool logOffEnt,
String statusNotes
) sealed
[J#]
[JScript]
public
function LogOffJob(
entId : int,
jobPos : int,
jobState : JobStates,
logOffEnt : bool,
statusNotes : String
)
Parameters
entId
Holds the ID of the entity on which the job is running.
468
jobPos
Holds the job position on the entity that the job is running
on.
jobState
Specifies the state the job is given after logging off.
logOffEnt
Holds a flag indicating if the user should be logged off the
entity (set to true) or should the user remain logged on to
the entity (set to false).
statusNotes
Holds a string containing a note telling why the job has
been put into the current state.
LogOffJobWithDialog() Method
The LogOffJobWithDialog() method logs the user off of the
specified job running on the current entity. The user is not
logged off the entity unless this is the last job running on the
entity and the system parameter for automatically logging
the user off the entity when logging off the last job is turned
on. If the user is the only user logged on to the job, a dialog is
presented asking the user what state the job should be left
in.
Syntax
[C#]
[C++]
public:
bool LogOffJobWithDialog(
String woId,
String operId,
int seqNo
) sealed
[J#]
User Class
469
[JScript]
public
function LogOffJobWithDialog(
woId : String,
operId : String,
seqNo : int
) : bool
Parameters
woId
Holds the work order ID of the job.
operId
Holds the operation ID of the job.
seqNo
Holds the sequence number of the job.
Return Value
Returns true if the user logs out of the job or false if the
user cancels the log out.
Exceptions
LogonEnt() Method
The LogonEnt() method logs the operator on to a single entity.
This overload specifies the current labor code and percent
labor to apply to this labor code. The labor code is used to
specify to what labor category this job is currently assigned
or to what labor category the job is collecting labor against.
Syntax
[C#]
public void LogonEnt(
int entId,
470
string curLabCd,
double pctToApply
)
[C++]
public:
void LogonEnt(
int entId,
String curLabCd,
double pctToApply
) sealed
[J#]
[JScript]
public
function LogonEnt(
entId : int,
curLabCd : String,
pctToApply : double
)
Parameters
entId
Holds the ID of the entity to login the user.
curLabCd
Holds the current labor code for the user for the entity.
pctToApply
Holds the percentage of the user's time that should be
applied to this entity.
Exceptions
User Class
471
[C#]
public void LogonEntList(
int[] arrayEntIds
)
[C++]
public:
void LogonEntList(
array<int>^ arrayEntIds
) sealed
[J#]
[JScript]
public
function LogonEntList(
arrayEntIds : int[]
)
Parameter
arrayEntIds
Holds an array of entity ID's to logon.
Exceptions
Remarks
If you are using the Client API Wrapper you will want to
use the function LogonEntList(int[] arrayEntIds, int
EntCount) where EntCount is the number of valid entity
ids in arrayEntIds.
472
[C#]
public void LogonEntList(
string sListID,
DataTable rsList
)
[C++]
public:
void LogonEntList(
String sListID,
DataTable rsList
) sealed
[J#]
[JScript]
public
function LogonEntList(
sListID : String,
rsList : DataTable
)
Parameters
sListID
Holds the ID of a defined list of entities. Valid values are
"default" for the users default list, "last used" for the list of
entities last used by the user, or "all accessible" for all the
entities the user has permission to access.
rsList
Holds a DataTable containing a row for each entity with the
ID for the entity appearing in the entity ID column.
User Class
473
) As Boolean
[C#]
[C++]
public:
bool LogonEntWithDialog(
bool% bSelChanged
) sealed
[J#]
[JScript]
public
function LogonEntWithDialog(
bSelChanged : bool
) : bool
Parameter
bSelChanged
Set to true on return if the selected entities where changed.
Return Value
[C#]
474
[C++]
public:
bool LogonEntWithDialog(
bool% bSelChanged,
Object entFilter
) sealed
[J#]
[JScript]
public
function LogonEntWithDialog(
bSelChanged : bool,
entFilter : Object
) : bool
Parameters
bSelChanged
Set to true on return if the selected entities where changed.
entFilter
Holds an array of entities used to filter the list of entities
displayed in the ent logon dialog.
Return Value
[C#]
User Class
475
[C++]
public:
bool LogonEntWithDialog(
bool% bSelChanged,
Object entFilter,
String formName
) sealed
[J#]
[JScript]
public
function LogonEntWithDialog(
bSelChanged : bool,
entFilter : Object,
formName : String
) : bool
Parameters
bSelChanged
Set to true on return if the selected entities where changed.
entFilter
Holds an array of entities used to filter the list of entities
displayed in the ent logon dialog.
formName
Holds the name of the form from which the logon dialog is
being invoked.
Return Value
LogOnJob() Method
The LogOnJob() method logs a user onto the job specified on
the specified entity. If the user is not already logged onto the
entity the specified job is to be run on, the user is logged onto
the entity.
476
Syntax
[C#]
[C++]
public:
bool LogOnJob(
int entId,
String woId,
String operId,
int seqNo
) sealed
[J#]
[JScript]
public
function LogOnJob(
entId : int,
woId : String,
operId : String,
seqNo : int
) : bool
Parameters
entId
Holds the ID of the entity on which the job is to run.
User Class
477
woId
Holds the work order ID of the job.
operId
Holds the operation ID of the job.
seqNo
Holds the sequence number of the job.
Return Value
Exceptions
MayAccessEntity() Method
The MayAccessEntity() method returns whether or not the
user has accessed to the specified entity.
Syntax
[C#]
[C++]
public:
bool MayAccessEntity(
int entID
) sealed
[J#]
[JScript]
public
function MayAccessEntity(
entID : int
) : bool
478
Parameter
entID
Holds the ID of the entity.
Return Value
RefreshCurUserStatusRecordset() Method
Overloaded. This method refreshes the status of all the
entities the user is logged on to using the DataSet returned
by the ent.GetStatusInfoByUser middleware method.
Syntax
[C#]
[C++]
public:
void RefreshCurUserStatusRecordset() sealed
[J#]
[JScript]
public
function RefreshCurUserStatusRecordset()
Exceptions
RefreshCurUserStatusRecordset Method
(DataSet)
The RefreshCurUserStatusRecordset() method refreshes the
status of all the entities the user is logged on to using the
DataSet returned by the ent.GetStatusInfoByUser
middleware method.
Syntax
[C#]
public void RefreshCurUserStatusRecordset(
DataSet ds
User Class
479
[C++]
public:
void RefreshCurUserStatusRecordset(
DataSet ds
) sealed
[J#]
[JScript]
public
function RefreshCurUserStatusRecordset(
ds : DataSet
)
Parameter
ds
Holds an optional DataSet returned by the
ent.GetStatusInfoByUser middleware method. If this is
null, the method calls the middleware method to get the
DataSet.
Exceptions
SaveEntList() Method
The SaveEntList() method saves the entities that the user is
currently logged into to either the user's Default list or to the
user's Last Used list.
Syntax
[C#]
public void SaveEntList(
string sListID
)
[C++]
public:
void SaveEntList(
String sListID
480
) sealed
[J#]
[JScript]
public
function SaveEntList(
sListID : String
)
Parameter
sListID
Specifies which list the entities should save. Valid values
are "default" and "last used". If any other string or null is
passed, "default" is used.
Exceptions
UpdateUser() Method
The UpdateUser() method updates the user defined by the
user object.
Syntax
[C#]
public void UpdateUser (
string description,
bool active,
int langId
)
[C++]
public:
void UpdateUser (
string description,
bool active,
int langId
)
User Class
481
[J#]
public void UpdateUser (
string description,
bool active,
int langId
)
[Jscript]
public function UpdateUser (
description
string,
active
bool,
langId
int
Parameters
description
Holds a string that is the description to be updated for the
user.
active
Holds a boolean flag indicating whether the new user is an
active user.
langId
Holds an integer value indicating the default language to be
used for the new user.
Exceptions
curEnt Property
The curEnt property is a read/write property to return/set a
reference to the current entity for this user. Setting this
property triggers an EntChanged event if the user is the
current user.
Syntax
[C#]
[C++]
[J#]
482
/** property */
public Ent get_curEnt();
/** property */
public void set_curEnt(Ent value);
[JScript]
EntList Property
The EntList property is a read-only property that specifies the
list of all entities logged on to by the operator.
Syntax
[C#]
[C++]
[J#]
/** property */
public Dictionary<int, Ent> get_EntList();
[JScript]
EntsStatusInfo Property
The EntsStatusInfo property is a read-only property which
exposes the entity status information for all entities logged
onto by this user.
Syntax
[C#]
[C++]
[J#]
/** property */
public DataSet get_EntsStatusInfo();
User Class
483
[JScript]
public function get EntsStatusInfo() : DataSet
LangStrings Property
The LangStrings property is a read-only property that
specifies the language strings for the current user.
Syntax
[C#]
[C++]
[J#]
/** property */
public LangStrings get_LangStrings();
[JScript]
Privs Property
The Privs property is a read-only property that specifies the
current user's privileges.
Syntax
[[Visual Basic (Declaration)] ]
Public ReadOnly Property Privs As UserPrivs
[C#]
[C++]
[J#]
/** property */
public UserPrivs get_Privs();
[JScript]
484
UserDisplay Property
The UserDisplay property is a read-only property that
specifies this user's display name (taking into account the
relevant system attribute).
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_UserDisplay();
[JScript]
UserDisplayWithLabel Property
The UserDisplayWithLabel property is a read-only property
that specifies the current user's display name with label
(taking into account the relevant system attribute and
translating the label appropriately).
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_UserDisplayWithLabel();
[JScript]
UserPrivs Class
485
UserID Property
The UserID property is a read-only property that specifies the
current users ID.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_UserId();
[JScript]
UserName Property
The UserName property is a read-only property that exposes
the current users name.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_UserName();
[JScript]
UserPrivs Class
The UserPrivs class handles all user privilege functions in
Factelligence MES for a user logged into Factelligence.
Privileges are defined as rows in the Priv table in the
Factelligence database, so it is possible for the privileges in
the Privileges enum to not exist in the database if the
database is not up to date.
486
UserPrivs Constructor
Constructor for the userPrivs class which takes a user id and
loads the privileges for the user from the database into a
sorted list which can be accessed from the user object to get
the value of the privilege for the user.
Syntax
C#
C++
J#
public:
UserPrivs(
String userId
) sealed
public UserPrivs(
string userId
)
JScript
Parameter
userId
Identifies the user for which the privilege object is being
constructed.
GetPrivObject() Method
The GetPrivObject() method returns the Priv object for the
requested privilege by its enum.
Syntax
[C#]
UserPrivs Class
487
[C++]
public:
Priv GetPrivObject(
Privileges privId
) sealed
[J#]
[JScript]
public
function GetPrivObject(
privId : Privileges
) : Priv
Parameter
privId
Specifies the privilege to be returned.
Return Value
Item Property
The Item property is a read-only property which returns the
the requested system attribute object indexed by the attr_id
passed as an enum of defined system attributes.
Syntax
[[Visual Basic (Declaration)] ]
Public ReadOnly Property Item As Item
[C#]
[C++]
[J#]
/** property */
public Item get_Item();
[JScript]
488
Users Class
The Users class contains methods for handling users in
Factelligence MES. All methods in this class are static.
AddUser() Method
The AddUser() method adds a new user, setting the default
language ID for the user.
Syntax
[C#]
public static void AddUser (
int userId,
string description,
string Password,
bool active,
int langId
)
[C++]
public:
static void AddUser (
int userId,
string description,
string Password,
bool active,
int langId
)
[J#]
public static void AddUser (
int userId,
string description,
string Password,
bool active,
int langId
Users Class
489
[Jscript]
public static function AddUser (
userId
int,
description
Password
string,
string,
active
bool,
langId
int
Parameters
userId
Holds a string that is the user ID for the new user being
added.
description
Holds a string that is the description saved for the new
user.
Password
Holds a string that is the password for the new user being
added.
active
Holds a Boolean flag indicating whether the new user is an
active user.
langId
Holds an integer value indicating the default language to be
used for the new user.
Exceptions
FormatUser() Method
Given a User ID and User Desc, the FormatUser() method
returns a string that is formatted according to the user
display system parameter. This string is used to display the
user information.
Syntax
[C#]
490
string userID,
string userDesc
)
[C++]
public:
static String FormatUser(
String userID,
String userDesc
)
[J#]
public static string FormatUser(
string userID,
string userDesc
)
[JScript]
public static
function FormatUser(
userID : String,
userDesc : String
) : String
Parameters
userID
User ID.
userDesc
User description.
GetUserDataFromComboBoxEntry Method
Given an entry from a combo box populated with UserData
objects, the GetUserDataFromComboBoxEntry() method
returns the user ID and description.
Syntax
[C#]
public static void GetUserDataFromComboBoxEntry(
object comboBoxEntry,
out string userID,
out string userDesc
Users Class
491
[C++]
public:
static void GetUserDataFromComboBoxEntry(
Object comboBoxEntry,
[OutAttribute] String% userID,
[OutAttribute] String% userDesc
)
[J#]
public static void GetUserDataFromComboBoxEntry(
object comboBoxEntry,
/** @attribute OutAttribute() */ /** @ref */ string
userID,
/** @attribute OutAttribute() */ /** @ref */ string
userDesc
)
[JScript]
public static
function GetUserDataFromComboBoxEntry(
comboBoxEntry : Object,
OutAttribute userID : String,
OutAttribute userDesc : String
)
Parameters
comboBoxEntry
Holds a UserData object from a combo box.
userID
Holds the returned user ID.
userDesc
Holds the returned user description.
GetUsers() Method
The GetUsers() method returns all the active users
configured. Inactive users are not returned.
Syntax
[Visual Basic (Declaration)]
Public Shared Function GetUsers() As DataSet
[C#]
492
[J#]
public static DataSet GetUsers()
[JScript]
public static
Return Value
Exceptions
[C#]
[C++]
public:
static DataSet GetUsers(
bool activeOnly
)
[J#]
public static DataSet GetUsers(
bool activeOnly
)
[JScript]
public static
function GetUsers(
activeOnly : bool
) : DataSet
Parameter
activeOnly
Set to true if only active users should be returned or false if
all users should be returned.
Users Class
493
Return Value
Exceptions
PopulateComboBoxWithUsers() Method
The PopulateComboBoxWithUsers() method populates the
specified combo box with users. The format of the users is
determined by the 'User Display' system parameter.
Syntax
[C#]
public static void PopulateComboBoxWithUsers(
ComboBox cboUsers,
bool includeEmptyDesc,
bool activeOnly
)
[C++]
public:
static void PopulateComboBoxWithUsers(
ComboBox cboUsers,
bool includeEmptyDesc,
bool activeOnly
)
[J#]
public static void PopulateComboBoxWithUsers(
ComboBox cboUsers,
bool includeEmptyDesc,
bool activeOnly
)
[JScript]
public static
function PopulateComboBoxWithUsers(
cboUsers : ComboBox,
includeEmptyDesc : bool,
activeOnly : bool
494
Parameters
cboUsers
The combo box to populate.
includeEmptyDesc
If true, an empty entry is placed at the beginning of the
combo box.
activeOnly
Determines if only active users should be loaded into the
combo box.
Exceptions
UserGrp Class
The UserGrps class contains methods for handling user
groups in Factelligence MES. All methods in this class are
static.
AddUserGroup() Method
The AddUserGroup() method takes a user group description
and creates a new user group, returning the group ID.
Syntax
[C#]
[C++]
public:
int AddUserGroup(
string description
)
[J#]
public int AddUserGroup(
String description
)
[Jscript]
UserGrp Class
495
string
int
Parameter
description
Holds a string that is the description for the new user
group.
Return Value
Exceptions
CloneUserGroup() Method
The CloneUserGroup() method creates a new user group
giving it the description passed in and copies all of the user
group link records from the first user group to the new user
group, therefore, making all users in the first group part of
the new group. It also gives access to all entities accessible by
the first group to the new group and copies all privileges of
the first user group to the new user group. The group ID of
the new group is returned.
Syntax
[C#]
[C++]
public:
int CloneUserGroup(
int userGrpId,
string description
)
[J#]
496
[Jscript]
public function CloneUserGroup (
userGrpId
description
)
int,
:
string
int
Parameters
userGrpId
Holds an integer that is the group ID of the user group that
is to be cloned.
description
Holds a string that is the description for the new user group
created from cloning.
Return Value
Exceptions
DeleteUserGroup() Method
The DeleteUserGroup () method deletes the user group. All
links to users are removed. Also all of the group links to
entities and group links to privileges are removed for this
user group.
Syntax
[C#]
public void DeleteUserGroup(
int grpId
)
[C++]
public:
void DeleteUserGroup(
int grpId
UserGrp Class
497
[J#]
public void DeleteUserGroup(
int grpId
)
[Jscript]
public function DeleteUserGroup (
grpId
int
Parameter
grpId
Holds an integer identifying the user group that is to be
deleted.
Exceptions
GetGroupId() Method
The GetGroupId() method takes a user group description and
returns the user group ID for the group.
Syntax
[C#]
[C++]
public:
int GetGroupId(
string description
)
[J#]
public int GetGroupId(
string description
)
[Jscript]
public function GetGroupId (
description
string
498
int
Parameter
description
Holds a string that is the description for the user group.
Return Value
Exceptions
GetUserGroups() Method
The GetUserGroups() method returns all user groups defined
in a DataSet.
Syntax
[C#]
[C++]
public:
DataSet GetUserGroups (
)
[J#]
public DataSet GetUserGroups (
)
[Jscript]
public function GetUserGroups (
)
DataSet
Return Value
Exceptions
UserGrp Class
499
GetUserGroups() Method
The GetUserGroups() method returns all user groups defined
in a DataSet. It can be filtered by an optional user group
description.
Syntax
[C#]
[C++]
public:
DataSet GetUserGroups (
string userGrpDesc
)
[J#]
public DataSet GetUserGroups (
string userGrpDesc
)
[Jscript]
public function GetUserGroups (
userGrpDesc
)
string
DataSet
Parameter
userGrpDesc
Holds a string that is the description for the user group that
the DataSet is to be filtered by.
Return Value
Exceptions
GetUserGroupEntities() Method
The GetUserGroupEntities method returns a DataSet
containing all grp_ent_link records. It can be filtered by an
entity ID to return a list of all groups that have access to that
entity.
Wonderware Factelligence Client API Reference Guide
500
Syntax
[C#]
[C++]
public:
DataSet GetUserGroupEntities (
int entId
)
[J#]
public DataSet GetUserGroupEntities (
int entId
)
[Jscript]
public function GetUserGroupEntities (
entId
)
int
DataSet
Parameter
entId
Holds an integer value that is an entity ID that can be used
to filter the DataSet of records to only return the
grp_ent_link records for this particular entity.
Return Value
Exceptions
UserGrp Class
501
Syntax
[C#]
public void SetUserGroupEntityAccess (
int userGrpId,
int entID,
bool access
)
[C++]
public:
void SetUserGroupEntityAccess (
int userGrpId,
int entID,
bool access
)
[J#]
public void SetUserGroupEntityAccess (
int userGrpId,
int entID,
bool access
)
[Jscript]
public function SetUserGroupEntityAccess (
userGrpId
int
int entID,
bool access
)
Parameters
userGrpId
Holds an integer value that identifies the user group to
which you want to give the entity access.
entId
Holds an integer value that identifies the entity that the
user's access is being updated for.
502
access
Holds an boolean value that specifies whether the user
should be given access to the entity or not.
Exceptions
GetUserGroupLinks() Method
The GetUserGroupLinks() method returns a DataSet
containing all user group link records.
Syntax
As DataSet
[C#]
[C++]
public:
DataSet GetUserGroupLinks (
)
[J#]
public DataSet GetUserGroupLinks (
)
[Jscript]
public function GetUserGroupLinks (
)
DataSet
Return Value
Exceptions
GetUserGroupLinks() Method
The GetUserGroupLinks() method returns a DataSet
containing all user group link records. The DataSet can be
filtered by an optional user ID to retrieve all groups
containing the user.
Syntax
UserGrp Class
503
As DataSet
[C#]
[C++]
public:
DataSet GetUserGroupLinks (
int userId
)
[J#]
public DataSet GetUserGroupLinks (
int userId
)
[Jscript]
public function GetUserGroupLinks (
userId
)
: int
DataSet
Parameter
userId
Holds a string specifying a user ID that is used to filter the
DataSet of only the user groups to which the user is a part.
Return Value
Exceptions
GetUserGroupLinks() Method
The GetUserGroupLinks() method returns a DataSet
containing all user group link records. The DataSet can be
filtered by an optional user group ID to get all users in that
group.
Syntax
As DataSet
504
[C#]
public DataSet GetUserGroupLinks (
int userGrpId
)
[C++]
public:
DataSet GetUserGroupLinks (
int userGrpId
)
[J#]
public DataSet GetUserGroupLinks (
int userGrpId
)
[Jscript]
public function GetUserGroupLinks (
userGrpId
)
: int
DataSet
Parameter
userGrpId
Holds an integer that identifies a user group. This value
can be used to filter the DataSet to only include the records
for this group.
Return Value
Exceptions
GetUserGroupLinks() Method
The GetUserGroupLinks() method returns a DataSet
containing all user group link records. The DataSet can be
filtered by an optional user ID to retrieve all groups the user
is a part of or it can be filtered by an optional user group ID
to get all users in that group.
Syntax
As DataSet
UserGrp Class
505
[C#]
public DataSet GetUserGroupLinks (
int userId,
int userGrpId
)
[C++]
public:
DataSet GetUserGroupLinks (
int userId,
int userGrpId
)
[J#]
public DataSet GetUserGroupLinks (
int userId,
int userGrpId
)
[Jscript]
public function GetUserGroupLinks (
userId
userGrpId
)
int
: int
DataSet
Parameters
userId
Holds a string that is a user ID that can be used to filter the
DataSet to only be those user groups of which this user is a
part.
userGrpId
Holds an integer that identifies a user group. This value
can be used to filter the DataSet to only include the records
for this group.
Return Value
Exceptions
SetUserGroupPrivileges() Method
The SetUserGroupPrivileges() method updates the value of the
privileges in the list for the user group that is specified. The
privileges list is a list of ordered pairs in the form of #:#. The
506
[C#]
public void SetUserGroupPrivileges (
int userGrpId,
string privileges
)
[C++]
public:
void SetUserGroupPrivileges (
int userGrpId,
string privileges
)
[J#]
public void SetUserGroupPrivileges (
int userGrpId,
string privileges
)
[Jscript]
public function SetUserGroupPrivileges (
userGrpId
privileges
:
:
int,
string
Parameters
userGrpId
Holds an integer value that identifies the user groups to
which you want to give privileges.
privileges
Holds a string which is a list of ordered pairs in the form of
#:# which identify the privilege to be updated and the value
that the privilege is to be given.
Exceptions
UserGrp Class
507
SetUserGroupPrivValue() Method
The SetUserGroupPrivValue() method sets the value of the
privilege defined by the priv ID for the user group to the priv
value sent in.
Syntax
[C#]
public void SetUserGroupPrivValue (
int userGrpId,
int privId,
object value
)
[C++]
public:
void SetUserGroupPrivValue (
int userGrpId,
int privId,
object value
)
[J#]
public void SetUserGroupPrivValue (
int userGrpId,
int privId,
object value
)
[Jscript]
public function SetUserGroupPrivValue (
userGrpId
privId
int,
value
:
:
int,
object
Parameters
userGrpId
Holds an integer value identifying the user group to give
privilege.
508
privId
Holds an integer value identifying the privilege for which
the value needs to be set.
value
Holds a variant (bool) value of which the privilege value is
to be set.
Exceptions
UpdateUserGroup() Method
The UpdateUserGroup() method updates the user group data.
Syntax
[C#]
public void UpdateUserGroup (
int userGrpId,
List<strings> users,
List<int> entIDs,
string privileges
)
[C++]
public:
void UpdateUserGroup (
int userGrpId,
List<strings> users,
List<int> entIDs,
string privileges
)
[J#]
public void UpdateUserGroup (
int userGrpId,
List<strings> users,
List<int> entIDs,
string privileges
Util Class
509
[Jscript]
public function UpdateUserGroup (
userGrpId
users
entIDs
int,
List<strings>,
List<int>,
privileges
string
Parameters
userGrpId
Holds an integer value that identifies the user group want
to update.
users
Holds a list of strings that identifies the users that are part
of this group.
entIDs
Holds a list of integer values that identifies the entities that
access is to be added/removed for the user group.
privileges
Holds a string which is a list of ordered pairs in the form of
#:# which identify the privilege to be updated and the value
that the privilege is to be given.
Exceptions
Util Class
The Util class provides static methods for working with
utilization data, which is used to track entity state.
Examples of entity states include running, idle, and offline.
GetOEEExecData() Method
The GetOEEExecData() method retrieves OEE Exec data (that
is, the extra configuration data required for an entity which
is capable of tracking OEE data) for the specified entity.
Syntax
[C#]
510
[C++]
public:
static DataSet GetOEEExecData(
int entID
)
[J#]
public static DataSet GetOEEExecData(
int entID
)
[JScript]
public static
function GetOEEExecData(
entID : int
) : DataSet
Parameter
entID
Holds the entity whose OEE Exec data is to be retrieved.
Return Value
GetOldAvailableReasons() Method
The GetOldAvailableReasons() method retrieves a set of final
reasons for the specified entity for the specified non-final
reason code.
Syntax
[C#]
[C++]
public:
static DataSet GetOldAvailableReasons(
Util Class
511
int entID,
int reasonCode
)
[J#]
public static DataSet GetOldAvailableReasons(
int entID,
int reasonCode
)
[JScript]
public static
function GetOldAvailableReasons(
entID : int,
reasonCode : int
) : DataSet
Parameters
entID
Holds the ID of the entity for which to retrieve reasons.
ReasonCode
Holds the non-final reason code for which final reason codes
are required.
Return Value
Exceptions
GetUtilExecData() Method
The GetUtilExecData() method retrieves Util Exec data (that
is, the extra configuration data required for an entity which
is capable of capturing utilization data) for the specified
entity.
Syntax
[Visual Basic (Declaration)]
Public Function GetUtilExecData( _
ByVal entID As Integer _
) As DataSet
[C#]
[C++]
512
public:
DataSet GetUtilExecData(
int entID
) sealed
[J#]
[JScript]
public
function GetUtilExecData(
entID : int
) : DataSet
Parameter
entID
Holds the entity whose Util Exec data is to be retrieved.
Return Value
GetUtilLogData() Method
The GetUtilLogData() method retrieves data from the
Util_Log table for the specified entity and start time. All data
with a starting time equal to or after the specified start time
is returned. Either the Util_Log table's shift_start field or
event_time field may be used to filter the data. If the
shift_start field is used, then only Util_Log records whose
shift_start is greater than or equal to the provided startTime
parameter is returned. Similarly, if the data is filtered by
event_time, then only Util_Log records whose event_time is
greater than or equal to startTime is returned.
Syntax
_
_
[C#]
Util Class
513
[C++]
public:
static DataSet GetUtilLogData(
int entID,
DateTime startTime,
bool useShiftStartTime
)
[J#]
public static DataSet GetUtilLogData(
int entID,
DateTime startTime,
bool useShiftStartTime
)
[JScript]
public static
function GetUtilLogData(
entID : int,
startTime : DateTime,
useShiftStartTime : bool
) : DataSet
Parameters
entID
Holds the entity for which the util_log data is to be
retrieved.
startTime
Holds all records with a starting time (either shift_start or
event_time, depending on the useShiftStartTime
parameter) equal to or after this value are returned.
useShiftStartTime
If this parameter is set to True, the Util_Log table's
shift_start field is used to filter the data. If it is set to False,
the Util_Log table's event_time field is used.
GetUtilReasons() Method
The GetUtilReasons() method retrieves the available final
reasons for the specified entity.
Syntax
[C#]
[C++]
514
public:
DataSet GetUtilReasons() sealed
[J#]
[[JScript]#]
public
Return Value
Exceptions
SetRawReason() Method
The SetRawReason() static method logs the change in
utilization and sets the raw reason for the current utilization
to the raw reason supplied.
Syntax
[C#]
public static void SetRawReason(
int entId,
string rawReasCode,
DateTime reasStart,
string comments,
string spare1,
string spare2,
string spare3,
string spare4
)
[C++]
public:
static void SetRawReason (
int entId,
string rawReasCode,
DateTime reasStart,
String comments,
string spare1,
Util Class
515
string spare2,
string spare3,
string spare4
)
[J#]
public static void SetRawReason(
int entId,
string rawReasCode,
DateTime reasStart,
string comments,
string spare1,
string spare2,
string spare3,
string spare4
)
[Jscript]
public static function SetRawReason(
entId : int,
rawReasCode : string,
reasStart : DateTime,
comments : string,
spare1 : string,
spare2 : string,
spare3 : string,
spare4 : string
)
Parameters
entId
Holds an integer value that identifies the entity for which
you want to set the util raw reason.
rawReasCode
Hold a string that is the code for the raw reason to set.
reasStart
Holds a DateTime of when the raw reason changed.
comments
Holds a string of comments to add to the util_log about the
raw reason change.
spare1
Holds a string which is used for additional information.
spare2
Hold a string which is used for additional information.
spare3
Holds a string which is used for additional information.
spare4
Holds a string which is used for additional information.
516
Exceptions
UtilExec Class
The UtilExec class supports utilization tracking in
Factelligence MES. An instance of this class is created every
time a user logs into an entity that can track utilization.
UtilExec Constructor
Constructor for the class, this method creates a new util exec
object, linking it to the Ent object that is passed in and
saving the values from the row in the util exec table that this
object is being created for.
Syntax
C#
C++
J#
public:
UtilExec(
Ent parentEnt,
DataRow utilExecRow
) sealed
public UtilExec(
Ent parentEnt,
DataRow utilExecRow
)
JScript
Parameters
parentEnt
Holds the parent entity that created this object.
UtilExec Class
517
utilExecRow
Contains data needed for initialization of an instance of this
class.
GetCountsAndDuration() Method
The GetCountsAndDuration() method returns a DataSet
containing one row for each utilization state, reason group, or
reason. It has columns for the ID, the description, the count
or duration, the color (valid only for utilization states and
reasons), and an active flag which is set true for the current
utilization state, reason group, or reason OEEExec.
Syntax
[C#]
public DataSet GetCountsAndDuration(
CountsAndDurationGraphStyle type,
FilterType filterType,
int filterDuration,
FilterTimeUnits filterTimeUnit,
int filterTimeStart,
int filterTimeEnd,
int drillDownFilter,
OEEStatusFilter oeeStatusFilter
)
[C++]
public:
DataSet GetCountsAndDuration(
CountsAndDurationGraphStyle type,
FilterType filterType,
int filterDuration,
FilterTimeUnits filterTimeUnit,
int filterTimeStart,
int filterTimeEnd,
int drillDownFilter,
OEEStatusFilter oeeStatusFilter
)
[J#]
public DataSet GetCountsAndDuration(
CountsAndDurationGraphStyle type,
518
FilterType filterType,
int filterDuration,
FilterTimeUnits filterTimeUnit,
int filterTimeStart,
int filterTimeEnd,
int drillDownFilter,
OEEStatusFilter oeeStatusFilter
)
[Jscript]
public function GetCountsAndDuration(
type : CountsAndDurationGraphStyle,
filterType : FilterType,
filterDuration : int,
filterTimeUnit : FilterTimeUnits,
filterTimeStart : int,
filterTimeEnd : int,
drillDownFilter : int,
oeeStatusFilter : OEEStatusFilter
)
Parameters
type
A CountsAndDurationGraphType enumeration value that
specifies the type of data that is shown in the Pareto graph
of the KPI control.
filterType
A FilterType enumeration value that gives the type to filter
data.
filterDuration
An integer value that specifies the value of N if filterType is
LastNHours.
filterTimeUnit
A FilterTimeUnit enumeration value which specifies the
time unit for a custom filter (when FilterType is Custom).
filterTimeStart
Holds an integer which specifies the start of the filter
period relative to now if the filterType is Custom.
filterTimeEnd
Holds an integer which specifies the end of the filter period
relative to now if the filterType is Custom.
this user group.
drillDownFilter
Holds an integer which specifies a reason group or
utilization state to drill down.
oeeStatusFilter
Holds an OEEStatusFilter enumeration value that specifies
if the data should be filtered by OEEStatus.
UtilExec Class
519
Return Value
Exceptions
GetOldAvailableReasons() Method
The GetOldAvailableReasons() method retrieves a set of final
reasons for the specified non-final reason code and current
entity.
Syntax
[C#]
[C++]
public:
DataSet GetOldAvailableReasons(
int reasonCode
) sealed
[J#]
[JScript]
public
function GetOldAvailableReasons(
reasonCode : int
) : DataSet
Parameter
reasonCode
Holds the non-final reason code for which final reason codes
are required.
520
Return Value
Exceptions
GetUtilExecData() Method
The GetUtilExecData() method retrieves Util Exec data for the
entity. Util Exec data is the extra configuration data
required for an entity which is capable of collecting
utilization data.
Syntax
[C#]
[C++]
public:
DataSet GetUtilExecData() sealed
[J#]
[JScript]
public
Return Value
GetUtilLogData() Method
The GetUtilLogData() method retrieves data from the
Util_Log table for the specified entity and start time. All data
with a starting time equal to or after the specified start time
is returned. Either the Util_Log table's shift_start field or
event_time field may be used to filter the data. If the
shift_start field is used, then only Util_Log records whose
shift_start is greater than or equal to the provided startTime
parameter is returned. Similarly, if the data is filtered by
event_time, then only Util_Log records whose event_time is
greater than or equal to startTime is returned.
Syntax
UtilExec Class
521
[C#]
[C++]
public:
DataSet GetUtilLogData(
DateTime startTime,
bool useShiftStartTime
) sealed
[J#]
[JScript]
public
function GetUtilLogData(
startTime : DateTime,
useShiftStartTime : bool
) : DataSet
Parameters
startTime
Holds all records with a starting time (either shift_start or
event_time, depending on the useShiftStartTime
parameter) equal to or after this value are returned.
useShiftStartTime
If this parameter is set to True, the Util_Log table's
shift_start field is used to filter the data. If it is set to False,
the Util_Log table's event_time field is used.
GetUtilReasons() Method
The GetUtilReasons() method retrieves the available final
reasons for the current entity.
Syntax
[C#]
522
[C++]
public:
DataSet GetUtilReasons() sealed
[J#]
[JScript]
public
Return Value
Exceptions
GetUtilByFilter() Method
The GetUtilByFilter() method retrieves the utilization data
from the util_log using the filters supplied to filter the data.
Syntax
[C#]
public DataSet GetUtilByFilter (
long shiftID,
string shiftStartStart,
string shiftStartEnd,
string eventTimeStart,
UtilExec Class
523
string eventTimeEnd,
long minDuration,
long maxDuration,
long reasCd,
long stateCd,
long reasPending,
long runTime,
long downTime,
long setupTime,
long teardownTime,
long timeCategoryNone,
long fixedTime,
long varTime,
long timeTypeNeither,
string comments,
string rawReasCd,
long timeFilterType,
long lastNValue
)
[C++]
public:
DataSet GetUtilByFilter (
long shiftID,
string shiftStartStart,
string shiftStartEnd,
string eventTimeStart,
string eventTimeEnd,
long minDuration,
long maxDuration,
long reasCd,
long stateCd,
long reasPending,
long runTime,
long downTime,
long setupTime,
long teardownTime,
long timeCategoryNone,
long fixedTime,
long varTime,
long timeTypeNeither,
string comments,
string rawReasCd,
long timeFilterType,
long lastNValue
)
[J#]
public DataSet GetUtilByFilter (
long shiftID,
string shiftStartStart,
string shiftStartEnd,
string eventTimeStart,
string eventTimeEnd,
long minDuration,
long maxDuration,
long reasCd,
524
long stateCd,
long reasPending,
long runTime,
long downTime,
long setupTime,
long teardownTime,
long timeCategoryNone,
long fixedTime,
long varTime,
long timeTypeNeither,
string comments,
string rawReasCd,
long timeFilterType,
long lastNValue
)
[Jscript]
public function GetUtilByFilter (
shiftID : long,
shiftStartStart : string,
shiftStartEnd : string,
eventTimeStart : string,
eventTimeEnd : string,
minDuration : long,
maxDuration : long,
reasCd : long,
stateCd
: long,
reasPending
: long,
runTime
: long,
downTime
: long,
setupTime
: long,
teardownTime
: long,
timeCategoryNone
: long,
fixedTime
: long,
varTime
: long,
timeTypeNeither : long,
comments : string,
rawReasCd
: string,
timeFilterType
: long,
lastNValue
: long
) : DataSet
Parameters
shiftID
Holds a long to identify the shift on which the utilization
data is being returned.
shiftStartStart
Holds a string to identify the shift start time for the entity
on which the utilization data is being returned.
shiftStartEnd
Holds a string to identify the shift end time for this entity
on which the utilization data is being returned.
UtilExec Class
525
eventTimeStart
Holds a string to identify the event start time for this entity
on which the utilization data is being returned.
eventTimeEnd
Holds a string to identify the event end time for this entity
on which the utilization data is being returned.
minDuration
Holds a long value that specifies the amount of time that
had to be spent in the event in order to consider the event.
maxDuration
Holds a long value that specifies the maximum amount of
time that could be spent in the event in order to consider
the event.
reasCd
Holds a long to identify the utilization reason code that
needs to be filtered.
stateCd
Holds a long to identify the utilization state code that needs
to be filtered.
reasPending
Holds a long indicating which types of events should be
returned. 0=Unacknowledged; 1=Acknowledged.
runTime
Holds a long to identify whether the dataset should be
filtered by runtime events.
downTime
Holds a long to identify whether the dataset should be
filtered by downtime events.
setupTime
Holds a long to identify whether the dataset should be
filtered by setup time events.
teardownTime
Holds a long to identify whether the dataset should be
filtered by teardown time events.
timeCategoryNone
Holds a long to identify whether the dataset should be
filtered by any time categories (that is, runtime, downtime,
setuptime, and teardowntime). If true, then the dataset is
filtered by runtime=0, downtime=0, setuptime=0 and
teardowntime=0 events.
fixedTime
Holds a long to identify whether the dataset should be
filtered by fixed time events.
526
varTime
Holds a long to identify whether the dataset should be
filtered by variable time events.
timeTypeNeither
Holds a long to identify whether the dataset should not be
filtered by variable and fixed time events.
comments
Holds a string to identify the comments for which the
utilization data is being returned.
rawReasCd
Holds a string to identify the raw reason code for which the
utilization data is being returned.
timeFilterType
Holds a long indicating the type of time-based filtering
being performed. 0 = LastNEvents, 1=Current Shift, 2=Last
Shift, 3=This Hour, 4=LastNHours, 5=CurrentDay,
6=Yesterday, 7=Current Week, 8=Last Week, 9=Current
Month, 10=Last Month, 11=Custom, 12=No time-based
filtering.
lastNvalue
Holds a long indicating how many of the most recent
utilization events to return. Required if timeFilterType = 0,
otherwise the value of this parameter is ignored.
Return Value
Exceptions
GetUtilByTimePeriod() Method
The GetUtilByTimePeriod() method retrieves the
utilization data from the util_log using the filters supplied to
filter the data.
Syntax
UtilExec Class
527
) As DataSet
[C#]
public DataSet GetUtilByTimePeriod (
UtilTimeFilter Type utilTimeFilterType,
UtilStatusFilter utilStatusFilter,
int lastNEvents,
int lastNHours,
UtilFilterUnAck utilFilterUnAck,
Int filterMinDuration,
FilterTimeUnits filterTimeUnit,
int filterStartOffset,
int filterEndOffest
)
[C++]
public:
DataSet GetUtilByTimePeriod (
UtilTimeFilterType utilTimeFilterType,
UtilStatusFilter utilStatusFilter,
int lastNEvents,
int lastNHours,
UtilFilterUnAck utilFilterUnAck,
Int filterMinDuration,
FilterTimeUnits filterTimeUnit,
int filterStartOffset,
int filterEndOffest
)
[J#]
public DataSet GetUtilByTimePeriod (
UtilTimeFilterType utilTimeFilterType,
UtilStatusFilter utilStatusFilter,
int lastNEvents,
int lastNHours,
UtilFilterUnAck utilFilterUnAck,
Int filterMinDuration,
FilterTimeUnits filterTimeUnit,
int filterStartOffset,
int filterEndOffest
)
[Jscript]
public function GetUtilByTimePeriod (
utilTimeFilterType : UtilTimeFilterType,
UtilStatusFilter : utilStatusFilter,
lastNEvents : int,
lastNHours : int,
utilFilterUnAck : UtilFilterUnAck,
filterMinDuration : int,
filterTimeUnit : FilterTimeUnits,
filterStartOffset : int,
filterEndOffest : int
) : DataSet
528
Parameters
utilTimeFilterType
A UtilTimeFilterType enumeration value for specifying
what time based filtering, if any, will be performed on the
data.
utilStatusFilter
A UtilStatusFilter enumeration value for specifying what
filtering if any will be done based on utilization state.
lastNEvents
An integer valued used if the UtilTimeFilterType is
LastNEvents to determine how many events will be
included in the control when the data is displayed.
lastNHours
An integer valued used if the UtilTimeFilterType is
LastNHours to determine how many hours will be included
in the control when the data is displayed.
utilFilterUnAck
A UtilFilterUnAck enumeration value which specifies
whether unacknowledged events, acknowleged, events, or
both types of events should be shown.
filterMinDuration
An integer value that specifies the amount of time that had
to be spent in the event in order to consider the event.
filterTimeUnit
A FilterTimeUnit enumeration value which specifies the
time unit for a custom filter( when FilterType is Custom).
filterStartOffset
An integer which specifies the start of the filter period
relative to now if the filterType is Custom.
filterEndOffset
An integer which specifies the end of the filter period
relative to now if the filterType is Custom.
Return Value
Exceptions
Refresh() Method
The Refresh() method reloads this UtilExec's dynamic data
from the Factelligence database.
UtilExec Class
529
Syntax
[C#]
[C++]
public:
void Refresh() sealed
[J#]
[JScript]
public
function Refresh()
Exceptions
CurrentUtil Property
The CurrentUtil property is a read-only property that exposes
the current utilization for the entity.
Syntax
[C#]
[C++]
[J#]
/** property */
public double get_CurrentUtil();
[JScript]
TargetUtil Property
The TargetUtil property is a read-only property that exposes
the target utilization of the entity.
Syntax
[C#]
530
[C++]
public property double TargetUtil sealed
double get();
}
[J#]
/** property */
public double get_TargetUtil();
[JScript]
UtilReasCd Property
The UtilReasCd property is a read-only property that specifies
the current utilization reason code.
Syntax
[C#]
[C++]
int get();
}
[J#]
/** property */
public int get_UtilReasCd();
[JScript]
UtilReasReqd Property
The UtilReasReqd property is a read-only property that
exposes the utilization reason required flag.
Syntax
[C#]
[C++]
[J#]
/** property */
UtilExec Class
531
[JScript]
UtilReasStart Property
The UtilReasStart property is a read-only property that
exposes the utilization reason start time.
Syntax
[C#]
[C++]
[J#]
/** property */
public string get_UtilReasStart();
[JScript]
UtilStateCd Property
The UtilStateCd property is a read-only property that exposes
the current utilization state code.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_UtilStateCd();
[JScript]
532
UtilStateColor Property
The UtilStateColor property is a read-only property that
specifies the current utilization state color.
Syntax
[C#]
[C++]
[J#]
/** property */
public int get_UtilStateColor();
[JScript]
Utility Class
The Utility class contains assorted utility methods, useful for
a variety of purposes. All methods are static, so the class is
never instantiated into an object.
CloseIPForm() Method
The CloseIPForm method closes the specified form.
Syntax
[[C#] ]
[C++]
public:
static void CloseIPForm(
String formName
)
[[J#] ]
Utility Class
533
[JScript]
public static function CloseIPForm(
formName : String
)
Parameter
formName
Holds the name of the form to close.
ConvertStringToEnum() Method
The ConvertStringToEnum() method converts the supplied
string to an enum value. Enum values are case sensitive. The
caller must catch any exception raised by this method. If the
supplied enum string does not match with any of the existing
enum values, a null value is returned.
Syntax
[[C#] ]
[C++]
public:
static Object ConvertStringToEnum(
Type type,
String EnumValue
)
[[J#] ]
[JScript]
Parameters
type
Holds the type of the enum object.
EnumValue
Holds a valid string that contains the enum value.
534
FindButtonBar() Method
The FindButtonBar() method searches for the named button
bar on the top level container or .NET form.
Syntax
[[C#] ]
[C++]
public:
static ButtonBar FindButtonBar(
Control factControl,
String buttonBarName
)
[[J#] ]
[JScript]
Parameters
factControl
Holds the name of the control looking to attach to a button
bar.
buttonBarName
Holds the name of the button bar for which to search.
Return Value
FormatDuration() Method
The FormatDuration() method gives a duration value in
seconds, converts the value into hhh:mm:ss format.
Syntax
Utility Class
535
[[C#] ]
[C++]
public:
static String FormatDuration(
int seconds
)
[[J#] ]
[JScript]
Parameter
seconds
Holds the duration in seconds to be formatted.
Return Value
GetAutoLoginUserId() Method
The GetAutoLoginUserID() method retrieves the Factelligence
User ID of the operator to be automatically logged in, if any,
from the configuration file.
Syntax
[[C#] ]
[C++]
public:
static String GetAutoLoginUserId()
[[J#] ]
[JScript]
public static
String
function GetAutoLoginUserId() :
536
Return Value
GetAutoLoginUserPw() Method
The GetAutoLoginUserPw() method retrieves password of the
user to be automatically logged in, if any such user exists,
from the configuration file.
Syntax
[[C#] ]
[C++]
public:
static String GetAutoLoginUserPw()
[[J#] ]
[JScript]
public static
String
function GetAutoLoginUserPw() :
Return Value
GetAutoLogonEntId() Method
The GetAutoLoginEntId() method retrieves the single entity
which should be logged into automatically, if any, from the
configuration file. If multiple entities are to be logged into
automatically, this method retrieves the first in the list.
Syntax
[[C#] ]
[C++]
public:
static int GetAutoLogonEntId()
[[J#] ]
[[JScript] ]
Utility Class
public static
537
Return Value
GetAutoLogonEntIds() Method
The GetAutoLogonEntIds() method retrieves the list of entities
which should be logged into automatically, if any, from the
configuration file.
Syntax
[[C#] ]
[C++]
public:
static array<int>^ GetAutoLogonEntIds()
[[J#] ]
[JScript]
Return Value
GetCodeColor() Method
The GetCodeColor() method gives a database table name, the
field name of an integer field in that table, and an integer
value for that field, return the color value from the "color"
field of that table from the record with a matching value in
the specified field.
Syntax
[[C#] ]
538
[C++]
public:
static int GetCodeColor(
String table,
String field,
int code
)
[[J#] ]
[JScript]
Parameters
table
Holds the name of the database table.
field
Holds the name of the integer field in the database table.
code
Holds the integer value for the specified field. The color
from the row whose value in this field matches this
specified value is returned.
Return Value
GetItemGrade() Method
The GetItemGrade() method gives an item reason code,
returns the associated item grade and color.
Syntax
[[C#] ]
[C++]
Utility Class
539
public:
static Utility.itemGrade GetItemGrade(
int reasCd
)
[[J#] ]
[JScript]
Parameter
reasCd
Holds the item reason code whose grade and color are to be
returned.
Return Value
GetListIndex() Method
The GetListIndex() method performs a search through all
items in a combo box for a specified item.
Syntax
[C#]
[C++]
public:
static int GetListIndex(
ComboBox cBox,
String itemToFind
[J#]
public static int GetListIndex(
ComboBox cBox,
string itemToFind
)
[JScript]
540
Parameters
cBox
Holds the combo box being searched.
itemToFind
Holds the string to search.
Return Value
GetOperEntLinkData() Method
The GetOperEntLinkData() method retrieves the requested
rows from the Oper_Ent_Link table that links operations to
entities. The returned rows may be filtered by the Process ID,
the Operation ID and the Entity ID.
Syntax
[C#]
[C++]
public:
static DataSet GetOperEntLinkData(
Object processId,
Object operId,
Object entId
)
[J#]
[JScript]
Utility Class
541
entId : Object
) : DataSet
Parameters
processId
Holds the Process ID to filter the DataSet to only those
operations which are part of this process. Pass null if not
used.
operId
Holds the Operation ID to use for filtering. Pass null if not
used.
entId
Holds the Entity ID to use for filtering. Pass null if not
used.
Return Value
Exceptions
GetStringFromConfigFile() Method
The GetStringFromConfigFile() method gets the entry from the
configuration file which is specified by the configKey
parameter.
Syntax
[C#]
[C++]
public:
static String GetStringFromConfigFile(
String configKey
)
[J#]
[JScript]
542
Parameter
configKey
Holds the key of the required config parameter.
Return Value
GetTopLevelForm() Method
The GetTopLevelForm() method searches for the form which
contains the specified control. Once the form is found, the
method returns the form as a control.
Syntax
[C#]
[C++]
public:
static Control GetTopLevelForm(
Control factControl
)
[J#]
[JScript]
Parameter
factControl
Holds a reference to the control for which the top level form
should be found.
Return Value
GetTopLevelFormName() Method
The GetTopLevelFormName() method searches for the form
which contains the specified control. Once the form is found,
the method returns the name of that form.
Utility Class
543
Syntax
[C#]
[C++]
public:
static String GetTopLevelFormName(
Control factControl
)
[J#]
[JScript]
Parameter
factControl
Holds a reference to the control for which the top level form
should be found.
Return Value
[C#]
544
string signoffNotes,
out string comments,
out User inspector
)
[C++]
public:
static bool InspectorLogin(
String initialUserID,
bool commentsReqd,
String signoffNotes,
[OutAttribute] String% comments,
[OutAttribute] User% inspector
)
[J#]
[JScript]
Parameters
initialUserID
Holds the default user ID for logging in.
commentsReqd
Set true if comments are required or false if they are not.
signoffNotes
Holds the notes to be displayed to explain the signoff.
comments
Holds the comments the user entered.
inspector
Holds a user object for the user who did the signoff.
Return Value
Returns true if the user signs off or false if the user does not
signoff.
Utility Class
545
[C#]
[C++]
public:
static bool InspectorLogin(
String initialUserID,
bool commentsReqd,
String signoffNotes,
[OutAttribute] String% comments,
[OutAttribute] User% inspector,
bool hideCertTitle,
String initialComments
)
[J#]
[JScript]
public static
function InspectorLogin(
546
initialUserID : String,
commentsReqd : bool,
signoffNotes : String,
OutAttribute comments : String,
OutAttribute inspector : User,
hideCertTitle : bool,
initialComments : String
) : bool
Parameters
initialUserID
Holds the default user ID for logging in.
commentsReqd
Set true if comments are required or false if they are not.
signoffNotes
Holds the notes to be displayed to explain the signoff.
comments
Holds the comments the user entered.
inspector
Holds a user object for the user who did the signoff.
hideCertTitle
If true, the 'Certification' title in the Inspector dialog is not
displayed.
initialComments
Used to prepopulate the comments textbox in the Inspector
dialog.
Return Value
Returns true if the user signs off or false if the user does not
signoff.
ItemIDorDesc() Method
The ItemIDorDesc() method functions to return the Item ID
for a given Item Description, or the Item Description for a
given Item ID.
Syntax
[C#]
[C++]
Utility Class
547
public:
static String ItemIDorDesc(
String IDorDesc,
bool returnIdFlag
)
[J#]
[JScript]
Parameters
IDorDesc
Holds either the Item ID or the Item description.
returnIdFlag
Set to True to return the Item ID from the given Item
Desciption, or to False to return the Item Description from
the given Item ID.
Return Value
[C#]
548
bool browser
)
[C++]
public:
static void LaunchExternalApplication(
String paramValue,
bool browser
)
[J#]
[JScript]
Parameters
paramValue
Holds the string containing the program to execute and the
parameters and literals that make up the arguments for the
program.
browser
Set to true if a browser is being called.
[C#]
Utility Class
549
[C++]
public:
static void LaunchExternalApplication(
String paramValue,
DataRow gridRow,
bool browser
)
[J#]
[JScript]
Parameters
paramValue
Holds the string containing the program to execute and the
parameters and literal that make up the arguments for the
program.
gridRow
Optional current selected row in the control's grid. Set to
null if no row is selected.
browser
Set to true if a browser is being called.
[C#]
550
string fileType
)
[C++]
public:
static void LaunchStepDocument(
String document,
String fileType
)
[J#]
[JScript]
Parameters
document
Holds the path to the document.
fileType
Holds the documents file type.
[C#]
[C++]
public:
static void OpenIPForm(
String formName
)
[J#]
[JScript]
Utility Class
551
Parameter
formName
Holds the name of the form to open.
[C#]
[C++]
public:
static void OpenIPForm(
String formName,
FormOpenType dialogType
)
[J#]
[JScript]
Parameters
formName
Holds the name of the form to open.
dialogType
Holds the method of opening the form (modal, modeless, so
on).
552
[C#]
[C++]
public:
static void OpenIPForm(
String formName,
FormOpenType dialogType,
String args
)
[J#]
[JScript]
Parameters
formName
Holds the name of the form to open.
dialogType
Holds the method of opening the form (modal, modeless, so
on).
args
Holds the arguments passed to the form.
Utility Class
553
PadDuration() Method
The PadDuration() method gives a string containing an
elapsed time value (hhh:mm:ss format), pad the time with
leading zeros where necessary.
Syntax
[C#]
[C++]
public:
static String PadDuration(
String duration
)
[J#]
[JScript]
Parameter
duration
Holds the formatted duration.
ParseDuration() Method
The ParseDuration method gives a duration in hhh:mm:ss
format (with or without leading zeros), parse out and return
the hours, minutes and seconds.
Syntax
ParseDuration( _
As String, _
ByRef hours As Integer, _
ByRef minutes As Integer, _
ByRef seconds As Integer _
[C#]
554
[C++]
public:
static void ParseDuration(
String duration,
[OutAttribute] int% hours,
[OutAttribute] int% minutes,
[OutAttribute] int% seconds
)
[J#]
[JScript]
ParseDuration(
int,
: int,
: int
Parameters
duration
Holds the formatted duration to be parsed.
hours
Returned hours.
minutes
Returned minutes.
seconds
Returned seconds.
ParseNameAndArgs() Method
The ParseNameAndArgs method takes a string which contains
a name (that is, an external program or form name) and any
arguments to be passed and parses out and returns the name
and arguments. If a parameter is preceded by an @ symbol, it
assumed to be global otherwise it is assumed to be part of the
current grid row. If a parameter is not found, it added to the
command line as a literal string. If parameters are included,
they must be separated by commas and cannot have a space
either before or after them. Literals must also be separated
from parameters by commas.
Utility Class
555
Syntax
[C#]
[C++]
public:
static void ParseNameAndArgs(
String stringToParse,
DataRow gridRow,
bool browser,
bool formBeingProcessed,
[OutAttribute] String% commandName,
[OutAttribute] String% args
)
[J#]
[JScript]
556
Parameters
stringToParse
Holds the name (program to execute or form), parameters
and literals that make up the arguments for the program.
gridRow
Optional currently selected row in the control's grid. Set to
null if no row is selected.
browser
Set to true if a browser is being called.
formBeingProcessed
If true, the entire input string is processed as arguments,
rather than as a command name and arguments.
commandName
Holds the returned program or form name.
args
Holds the returned arguments.
PopupContextMenu() Method
The PopupContextMenu() method uses the PopupMenu class
to display a context menu based on the array of strings
passed to it.
Syntax
[C#]
[C++]
public:
static int PopupContextMenu(
Control menuParent,
Point point,
... array<String>^ menuItems
)
[J#]
Utility Class
557
[JScript]
public static function PopupContextMenu(
menuParent : Control,
point : Point,
ParamArrayAttribute menuItems : String[]
) : int
Parameters
menuParent
Holds the control to which the menu is attached.
point
Holds the location at which to display the menu.
menuItems
Holds an array of strings representing the menu choices. If
a menu item has an asterisk (*) appended to the end,
disable the menu choice. If a menu item has a tilde (~)
appended to the end, hide the menu choice.
Return Value
PopupDateTimeEntry() Method
The PopupDateTimeEntry() method pops up a DateTime entry
dialog which supports an empty date and time (for example,
for a Filter dialog). This dialog supports touchscreen entry.
Note that the "parent" control should be a TextBox, not a
DateTimePicker control.
Syntax
[C#]
[C++]
public:
static void PopupDateTimeEntry(
Control control
)
[J#]
[JScript]
558
Parameter
control
Holds a reference to the control into which the date and
time (possibly blank) is placed.
[C#]
[C++]
public:
static void PopupDurationEntry(
Control control,
int hoursMax,
int origHours,
int origMinutes,
int origSeconds,
bool showClearButton
)
[J#]
Utility Class
559
Control control,
int hoursMax,
int origHours,
int origMinutes,
int origSeconds,
bool showClearButton
)
[JScript]
public static function PopupDurationEntry(
control : Control,
hoursMax : int,
origHours : int,
origMinutes : int,
origSeconds : int,
showClearButton : bool
)
Parameters
control
Holds a reference to the read-only TextBox control into
which the date and time (possibly blank) is placed.
hoursMax
Holds the maximum allowable value for hours.
origHours
Holds the current value for the Hours field.
origMinutes
Holds the current value for the Minutes field.
origSeconds
Holds the current value for the Seconds field.
showClearButton
Determines if the Clear button (which completely blanks
the sourceControl) is shown.
560
Note With this overload, the Clear button of the Duration Entry
dialog is not shown.
Syntax
[C#]
[C++]
public:
static void PopupDurationEntry(
NumericUpDown hoursControl,
MaskedTextBox minutesControl,
MaskedTextBox secondsControl,
int hoursMax,
int origHours,
int origMinutes,
int origSeconds
)
[J#]
[JScript]
Utility Class
561
origSeconds : int
)
Parameters
hoursControl
Holds a reference to the numeric editor control into which
the hours portion of the duration is placed.
minutesControl
Holds a reference to the textbox control into which the
minutes portion of the duration is placed.
secondsControl
Holds a reference to the textbox control into which the
seconds portion of the duration is placed.
hoursMax
Holds the maximum allowable value for hours.
origHours
Holds the current value for the Hours field.
origMinutes
Holds the current value for the Minutes field.
origSeconds
Holds the current value for the Seconds field.
PopupEntitySelection() Method
(EntityCapabilities, Boolean, Int32, Boolean,
Int32, String, String)
The PopupEntitySelection() method pops up the Entity dialog
which allows entities to be selected based on a specified
capability. All entities in the entity tree can be seen, but only
entities with the specified capability may be selected. One
entity can be singled out to be unselectable even if the entity
has the specified capability. An empty node may optionally
be inserted at the beginning of the tree (allow for selection of
'No Entity').
Syntax
[C#]
562
[C++]
public:
static bool PopupEntitySelection(
Utility.EntityCapabilities capability,
bool AllowMultipleEntitySelection,
int excludedEntID,
bool includeEmptyNode,
[OutAttribute] int% entID,
[OutAttribute] String% entName,
[OutAttribute] String% entList
)
[J#]
[JScript]
Parameters
capability
Holds the capability the entity must have in order to be
selected.
AllowMultipleEntitySelection
Holds a boolean value to specify whether multiple entities
can be selected or not. When true, a checkbox is displayed
to select multiple entities.
Utility Class
563
excludedEntID
Holds the ID of the entity to be excluded from selection even
if it holds the specified capability.
includeEmptyNode
If this parameter is set to True, an empty node is displayed
at the top of the entity tree in the dialog. This allows for 'No
Entity' to be selected by the user
entID
Returns the ID of the selected entity.
entName
Returns the name of the selected entity.
entList
If AllowMultipleEntitySelection is true, the method returns
a comma separated list of the entity IDs (ent_ID) that are
selected in the Entity tree. If AllowMultipleEntitySelection
is false, then the ID of the selected entity is returned.
Return Value
PopupEntitySelection() Method
(EntityCapabilities, Boolean, Int32, Int32,
String, String)
The PopupEntitySelection() method pops up the Entity dialog
which allows entities to be selected based on a specified
capability. All entities in the entity tree can be seen, but only
entities with the specified capability may be selected. One
entity can be singled out to be unselectable even if the entity
has the specified capability.
Syntax
[C#]
564
[C++]
public:
static bool PopupEntitySelection(
Utility.EntityCapabilities capability,
bool AllowMultipleEntitySelection,
int excludedEntID,
[OutAttribute] int% entID,
[OutAttribute] String% entName,
[OutAttribute] String% entList
)
[J#]
[JScript]
Parameters
capability
Holds the capability the entity must have in order to be
selected.
AllowMultipleEntitySelection
Holds a boolean value to specify whether multiple entities
can be selected or not. When true, a checkbox is displayed
to select multiple entities.
excludedEntID
Holds the ID of the entity to be excluded from selection even
if it holds the specified capability.
entID
Returns the ID of the selected entity.
entName
Returns the name of the selected entity.
Utility Class
565
entList
If AllowMultipleEntitySelection is true, the method returns
a comma separated list of the entity IDs (ent_ID) that are
selected in the Entity tree. If AllowMultipleEntitySelection
is false, then the ID of the selected entity is returned.
Return Value
PopupEntitySelection() Method
(EntityCapabilities, Boolean, Int32, String)
The PopupEntitySelection() method pops up the Entity dialog
which allows for an entity to be selected based on a specified
capability. All entities in the entity tree can be seen, but only
entities with the specified capability may be selected.
Syntax
[C#]
[C++]
public:
static bool PopupEntitySelection(
Utility.EntityCapabilities capability,
bool includeEmptyNode,
[OutAttribute] int% entID,
[OutAttribute] String% entName
)
[J#]
[JScript]
public static
function PopupEntitySelection(
566
capability : Utility.EntityCapabilities,
includeEmptyNode : bool,
OutAttribute entID : int,
OutAttribute entName : String
) : bool
Parameters
capability
Holds the capability the entity must have in order to be
selected.
includeEmptyNode
If this parameter is set to True, an empty node is displayed
at the top of the entity tree in the dialog. This allows for 'No
Entity' to be selected by the user.
entID
Returns the ID of the selected entity.
entName
Returns the name of the selected entity.
Return Value
PopupEntitySelection() Method
(EntityCapabilities, Int32, Int32, String)
The PopupEntitySelection() method pops up the Entity dialog
which allows an entity to be selected based on a specified
capability. All entities in the entity tree can be seen, but only
entities with the specified capability may be selected. One
entity can be singled out to be unselectable even if the entity
has the specified capability.
Syntax
[C#]
[C++]
public:
Utility Class
567
[J#]
[JScript]
Parameters
capability
Holds the capability the entity must have in order to be
selected.
excludedEntID
Holds the ID of the entity to be excluded from selection even
if it holds the specified capability.
entID
Returns the ID of the selected entity.
entName
Returns the name of the selected entity.
Return Value
PopupEntitySelection() Method
(EntityCapabilities, Int32, String)
The PopupEntitySelection() method pops up the Entity dialog
which allows entities to be selected based on a specified
capability. All entities in the entity tree can be seen, but only
entities with the specified capability may be selected. One
entity can be singled out to be unselectable even if the entity
has the specified capability. A checkbox is displayed in the
entity tree which allows the user to select multiple entities in
the entity tree.
568
Syntax
[C#]
[C++]
public:
static bool PopupEntitySelection(
Utility.EntityCapabilities capability,
int excludedEntID,
[OutAttribute] String% entList
)
[J#]
[JScript]
Parameters
capability
Holds the capability the entity must have in order to be
selected.
excludedEntID
Holds the ID of the entity to be excluded from selection even
if it holds the specified capability.
entList
Returns a list of entity IDs (ent_ID) that are selected in the
Entity tree, separated by a comma.
Return Value
Utility Class
569
PopupEntitySelection() Method
(EntityCapabilities, Int32, String)
The PopupEntitySelection() method pops up the Entity dialog
which allows for an entity to be selected based on a specified
capability. All entities in the entity tree can be seen, but only
entities with the specified capability may be selected.
Syntax
[C#]
[C++]
public:
static bool PopupEntitySelection(
Utility.EntityCapabilities capability,
[OutAttribute] int% entID,
[OutAttribute] String% entName
)
[J#]
[JScript]
Parameters
capability
Holds the capability the entity must have in order to be
selected.
entID
Returns the ID of the selected entity.
570
entName
Returns the name of the selected entity.
Return Value
[C#]
[C++]
public:
static bool PopupEntitySelection(
[OutAttribute] String% entList
)
[J#]
[JScript]
Parameter
entList
Returns a list of entity IDs (ent_ID) that are selected in the
Entity tree, separated by a comma.
Return Value
Utility Class
571
[C#]
[C++]
public:
static bool PopupHideControlsForm(
Control control
)
[J#]
[JScript]
Parameter
control
Holds a reference to a control containing the controls to be
hidden or shown.
Return Value
[C#]
572
string screenName,
string sectionId,
bool fromProduction
)
[C++]
public:
static bool PopupHideControlsForm(
Control controlContainer,
String configID,
String screenName,
String sectionId,
bool fromProduction
)
[J#]
[JScript]
Parameters
controlContainer
Holds a reference to a control containing the controls to be
hidden or shown.
configID
Holds the config ID of the screen parameter.
screenName
Holds the name of the control that is using this form.
sectionId
Holds the name of the control's section that is using this
form.
fromProduction
Holds a boolean value indicating whether the hide control
dialog is used for production or not.
Return Value
Utility Class
573
PopupHideTabsForm() Method
The PopupHideTabsForm() method displays the Hide Tabs
dialog. This allows a user to configure, at run-time, which
tabs are hidden or shown.
Syntax
[C#]
[C++]
public:
static bool PopupHideTabsForm(
Control tabControl,
String configID,
String screenName,
String sectionId
)
[J#]
[JScript]
Parameters
tabControl
Holds a reference to a tab control containing the tabs to be
hidden or shown.
configID
Holds the config ID of the screen parameter.
screenName
Holds the name of the control that is using this form.
574
sectionId
Holds the name of the control's section that is using this
form.
Return Value
[C#]
[C++]
public:
static bool PopupItemReasonSelection(
bool includeEmptyReason,
[OutAttribute] int% reasCd,
[OutAttribute] String% reasDesc
)
[J#]
[JScript]
Utility Class
575
Parameters
includeEmptyReason
If true, an empty entry is included at the beginning of the
list of reasons to allow for selection of 'None'.
reasCd
Holds the selected reason code.
reasDesc
Holds the selected reason description.
Return Value
[C#]
[C++]
public:
static bool PopupItemReasonSelection(
String itemID,
int entID,
bool rejReasonsOnly,
bool includeEmptyReason,
[OutAttribute] int% reasCd,
[OutAttribute] String% reasDesc
[J#]
576
[JScript]
Parameters
itemID
Holds the ID of the item being consumed or produced.
entID
Holds only those item reasons for the specified entity are
shown.
rejReasonsOnly
Set to True to include only reject reasons.
includeEmptyReason
If true, an entry is included at the beginning of the list of
reasons to allow for selection of 'None'.
reasCd
Holds the selected reason code.
reasDesc
Holds the selected reason description.
Return Value
PopupKeyboard() Method
The PopupKeyboard() method displays the Virtual Keyboard
dialog, which allows a user to enter an arbitrary sequence of
characters without using an actual keyboard.
Syntax
Utility Class
577
[C#]
[C++]
public:
static void PopupKeyboard(
Control control,
bool allowMultipleLines,
bool hideChars
)
[J#]
[JScript]
Parameters
control
Holds a reference to the control into which the characters
entered in the virtual keyboard is placed.
allowMultipleLines
Set to true to enable multiple lines of text (for example, for
notes or comments) to be entered.
hideChars
Set to true to prevent displaying the characters being typed
(for example, for password entry)
578
[C#]
[C++]
public:
static DialogResult PopupKeypad(
String OrigValue,
int NumDecimals,
decimal Minimum,
decimal Maximum,
double% Keypadvalue
)
[J#]
[JScript]
Parameters
OrigValue
Holds the original value from the source control.
NumDecimals
Holds the number of decimals that should be used in this
keypad.
Minimum
Minimum value.
Maximum
Maximum value.
Utility Class
579
Keypadvalue
Return value from keypad if the dialog is success.
Return Value
[C#]
[C++]
public:
static void PopupKeypad(
Control control
)
[J#]
[JScript]
Parameter
control
Holds a reference to the control into which the number
entered in the virtual keypad is placed.
580
[C#]
[C++]
public:
static void PopupLotAttributes(
String itemID,
String lotNo
)
[J#]
[JScript]
Parameters
itemID
Holds the ID of the item for which lot attributes are to be
shown.
lotNo
Holds the lot number for which lot attributes are to be
shown.
[C#]
Utility Class
581
[C++]
[J#]
public:
static void PopupLotAttributes(
String itemID,
String lotNo,
bool viewOnly
)
[JScript]
Parameters
itemID
Holds the ID of the item for which lot attributes are to be
shown.
lotNo
Holds the lot number for which lot attributes are to be
shown.
viewOnly
Set true if the user should only be allowed to view the lot
attributes. Set false if the user may view and edit the lot
attributes.
PopupNotesDlg() Method
The PopupNotesDlg() method displays the Notes dialog to
allow viewing and editing of Work Order, Job, Item and
Folders notes.
Syntax
582
[C#]
[C++]
public:
static bool PopupNotesDlg(
String notes,
String woID,
String operID,
Object seqNo,
String itemId,
int entId,
String verId,
String folderModId,
bool fromFolders,
bool displayOnly
)
[J#]
[JScript]
Utility Class
583
Parameters
notes
Holds the existing notes.
woID
Holds the Work Order ID of the job whose notes are being
displayed. This is required for WO or Job Notes, otherwise
this should be set to null.
operID
Holds the Operation ID of the job or folder whose notes are
being displayed. This is required for Job or Folder notes,
otherwise, this should be set to null.
seqNo
Holds the Operation Sequence Number of the job whose
notes are being displayed. This is required for Job notes,
otherwise, this should be set to null.
itemId
Holds the Item ID. This is required for Item or Folder notes,
otherwise this should be set to null.
entId
Holds the entity ID. This is required for Folder notes,
otherwise this should be set to -1.
verId
Holds the version ID. This is required for Folder notes,
otherwise this should be set to null.
folderModId
Holds the folder Mod ID. This is required for Folder notes,
otherwise this should be set to null.
fromFolders
Set to True for Folder notes; otherwise set to False.
displayOnly
Set to True to disable editing and appending of notes.
Return Value
PopupOperationSelection() Method
The PopupOperationSelection() method displays an Operation
selection dialog. This dialog, given a search pattern, displays
a list of Operations which match the pattern. The selected
Operation (the oper_ID) is placed into the specified control.
Syntax
584
[C#]
[C++]
public:
static void PopupOperationSelection(
Control control,
String pattern,
bool includeEmptyOperation
)
[J#]
[JScript]
Parameters
control
Holds a reference to the control into which the selected
operation is placed.
pattern
Holds the search pattern used for populating the list of
operations shown in the dialog.
includeEmptyOperation
If true, an entry is included at the beginning of the list of
operations to allow for selection of 'None'.
PopupUtilReasonSelection() Method
The PopupUtilReasonSelection() method displays a Utilization
Reason selection dialog. This dialog,displays a list of Reason
Groups on the left and the specific Reasons associated with
the selected group on the right.
Syntax
Utility Class
585
[C#]
[C++]
public:
static bool PopupUtilReasonSelection(
bool includeEmptyReason,
[OutAttribute] int% reasCd,
[OutAttribute] String% reasDesc
)
[J#]
[JScript]
Parameters
includeEmptyReason
If true, an entry is included at the beginning of the list of
reasons to allow for selection of 'None'.
reasCd
Holds the selected reason code.
reasDesc
Holds the selected reason description.
Return Value
586
PopupWorkOrderSelection() Method
The PopupWorkOrderSelection() method displays a Work
Order selection dialog. This dialog, given a search pattern,
displays a list of Work Orders which match the pattern. The
selected Work Order is placed into the specified control.
Syntax
[C#]
[C++]
public:
static void PopupWorkOrderSelection(
Control control,
String pattern,
bool includeEmptyWorkOrder,
bool requireFilter
)
[J#]
[JScript]
Parameters
control
Holds a reference to the control into which the selected
work order is placed.
pattern
Holds the search pattern used for populating the list of
Work Orders shown in the dialog.
Utility Class
587
includeEmptyWorkOrder
If true, an entry is included at the beginning of the list of
work orders to allow for selection of 'None'.
requireFilter
Determines if a filter pattern must be specified prior to
displaying the list of work orders.
ResizeWindowBasedOnFont() Method
The ResizeWindowBasedOnFont() method resizes the specified
form based on the ratio of the size of the font originally used
to the new font size.
Syntax
[C#]
[C++]
public:
static void ResizeWindowBasedOnFont(
int origWidth,
int origHeight,
Form form,
float origFontSize,
float newFontSize,
bool isCentered
)
[J#]
[JScript]
588
Parameters
origWidth
Holds the original (as designed) width of the form being
resized
origHeight
Holds the original (as designed) height of the form being
resized
form
Holds the form to be resized.
origFontSize
Holds the original (as designed) font size of the form.
newFontSize
Holds the new font size to use for the form.
isCentered
Holds a flag to indicate if the form should be centered.
SetFont() Method
The SetFont() method recursively descends through all the
controls contained by the control passed in and sets the font
to the value specified.
Syntax
[C#]
[C++]
public:
static void SetFont(
Control control,
Font font
)
Utility Class
589
[J#]
public static void SetFont(
Control control,
Font font
)
[JScript]
Parameters
control
Holds a reference to the control for which the font should be
set.
font
Holds a reference to the font to which to set the control.
[C#]
[C++]
public:
static void SetTextFromKeyPad(
Control control,
String keyValue
)
[J#]
[JScript]
590
Parameters
control
Holds the control into which the text is to be inserted.
keyValue
Holds the text to insert into the control or "<--" if text
should be removed.
[C#]
[C++]
[J#]
public:
static void SetTextFromKeyPad(
Control control,
String keyValue,
int numDecimals
)
[JScript]
Utility Class
591
keyValue : String,
numDecimals : int
)
Parameters
control
Holds the control into which the text is to be inserted.
keyValue
Holds the text to insert into the control or "<--" if text
should be removed.
numDecimals
Holds the number of decimal places that are allowed. Set to
-1 if number of decimals is not to be considered.
ShowHelpFile() Method
The ShowHelpFile() methods opens the Factelligence MES
Help file.
Syntax
[C#]
[C++]
public:
static void ShowHelpFile()
[J#]
[JScript]
public static
function ShowHelpFile()
ShowJobFlowDiagram() Method
The ShowJobFlowDiagram() method shows the Job Flow
Diagram for the supplied work order.
Syntax
[C#]
[C++]
592
public:
static void ShowJobFlowDiagram(
String WoId
)
[J#]
[JScript]
[C#]
[C++]
public:
static void TranslateForm(
Control control
)
[J#]
[JScript]
Parameter
control
Holds a reference to the control that should be translated.
Utility Class
593
[C#]
[C++]
public:
static void TranslateForm(
Control control,
ILanguageStrings langStrings
)
[J#]
[JScript]
Parameters
control
Holds a reference to the control that should be translated.
langStrings
Holds a reference to the language to use to translate the
form.
594
UtilRawReason Class
This class provides supporting methods for the
Util_Raw_Reas table. The Util_Raw_Reas table associates
utilization raw reasons with an entity and default reason
code.
AddUtilRawReasonLink() Method
The AddUtilRawReasonLink() method creates a utilization
reason link record for the utilization raw reason defining it
as relevant to the supplied entity.
Syntax
[C#]
public void AddUtilRawReasonLink (
int entId,
string
rawReasonCode,
int defReasonCode
)
[C++]
public:
void AddUtilRawReasonLink (
int entId,
string
rawReasonCode,
int defReasonCode
)
[J#]
public void AddUtilRawReasonLink (
int entId,
string
rawReasonCode,
int defReasonCode
)
[Jscript]
public function AddUtilRawReasonLink (
entId
int,
rawReasonCode
string,
defReasonCode
int
UtilRawReason Class
595
Parameters
entId
Holds an integer value that identifies the entity for adding
a util raw reason link.
rawReasonCode
Holds a string that is the reason code for the I/O.
defReasonCode
Holds an integer value that is the possible final reason
code.
Exceptions
Delete() Method
The Delete() method removes the raw reason code record for
the entity.
Syntax
[C#]
public void Delete (
)
[C++]
public:
void Delete (
)
[J#]
public void Delete (
)
[Jscript]
public function Delete (
)
Exceptions
596
DeleteUtilRawReasonLink() Method
The DeleteUtilRawReasonLink() method deletes the util
reason link record for the entity and raw reason code
supplied. If a raw reason code is not supplied, all raw reason
links for the entity are deleted.
Syntax
[C#]
public void DeleteUtilRawReasonLink (
int entId,
string
rawReasCd,
int reasCd
)
[C++]
public:
void DeleteUtilRawReasonLink (
int entId,
string
rawReasCd,
int reasCd
)
[J#]
public void DeleteUtilRawReasonLink (
int entId,
string
rawReasCd,
int reasCd
)
[Jscript]
public function DeleteUtilRawReasonLink (
entId
int,
rawReasCd
reasCd
int
string,
Parameters
entId
Holds an integer value that identifies the entity for deleting
a util raw reason link.
UtilRawReason Class
597
rawReasonCode
Holds a string that is the reason code for the I/O that is to
be deleted.
reasCd
Holds an integer value that is the possible final reason code
of the util raw reason link record that is being deleted.
Exceptions
GetAllUtilRawReasonLinks() Method
The GetAllUtilRawReasonLinks() method returns a DataSet
containing all util_reas_link records.
Syntax
[C#]
[C++]
public:
DataSet GetAllUtilRawReasonLinks (
)
[J#]
public DataSet GetAllUtilRawReasonLinks (
)
[Jscript]
public function GetAllUtilRawReasonLinks (
)
DataSet
Return Value
Exceptions
598
GetAllUtilRawReasonLinks() Method
The GetAllUtilRawReasonLinks() method returns a DataSet
containing all util_reas_link records. It can be optionally
filtered by an entity ID.
Syntax
[C#]
[C++]
public:
DataSet GetAllUtilRawReasonLinks (
int entId
)
[J#]
public DataSet GetAllUtilRawReasonLinks (
int entId
)
[Jscript]
public function GetAllUtilRawReasonLinks (
entId
)
int
DataSet
Parameter
entId
Holds an integer value that identifies the entity to retrieve
all util raw reasons links.
Return Value
Exceptions
UtilRawReason Class
599
GetAllUtilRawReasonLinks() Method
The GetAllUtilRawReasonLinks() method returns a DataSet
containing all util_reas_link records. It can be optionally
filtered by a util raw reason code.
Syntax
[C#]
public DataSet GetAllUtilRawReasonLinks(
string
rawReasCd
[C++]
public:
DataSet GetAllUtilRawReasonLinks (
string
rawReasCd
[J#]
public DataSet GetAllUtilRawReasonLinks (
string
rawReasCd
[Jscript]
public function GetAllUtilRawReasonLinks (
rawReasCd
)
string
DataSet
Parameter
rawReasCd
Holds a string value identifying the raw reason code to
retrieve all util raw reason link records.
Return Value
Exceptions
600
GetAllUtilRawReasonLinks() Method
The GetAllUtilRawReasonLinks() method returns a DataSet
containing all util_reas_link records.
Syntax
[C#]
[C++]
public:
DataSet GetAllUtilRawReasonLinks (
)
[J#]
public DataSet GetAllUtilRawReasonLinks (
)
[Jscript]
public function GetAllUtilRawReasonLinks (
)
DataSet
Return Value
Exceptions
GetAllUtilRawReasonLinks() Method
The GetAllUtilRawReasonLinks() method returns a DataSet
containing all util_reas_link records. It can be optionally
filtered by an entity ID and by a util raw reason code.
Syntax
[C#]
UtilRawReason Class
601
int entId,
string
rawReasCd
[C++]
public:
DataSet GetAllUtilRawReasonLinks (
int entId,
string
rawReasCd
[J#]
public DataSet GetAllUtilRawReasonLinks (
int entId,
string
rawReasCd
[Jscript]
public function GetAllUtilRawReasonLinks (
entId
rawReasCd
)
int,
:
string
DataSet
Parameters
entId
Holds an integer value identifying the entity to retrieve all
util raw reasons links.
rawReasCd
Holds a string value identifying the raw reason code to
retrieve all util raw reason link records.
Return Value
Exceptions
GetUtilRawReasons() Method
The GetUtilRawReason() method returns a DataSet of all
defined util raw reasons.
Syntax
602
) As DataSet
[C#]
[C++]
public:
DataSet GetUtilRawReasons (
)
[J#]
public DataSet GetUtilRawReasons (
)
[Jscript]
public function GetUtilRawReasons (
)
DataSet
Return Value
Exceptions
GetUtilRawReasons() Method
The GetUtilRawReason() method returns a DataSet of all
defined util raw reasons. It can be optionally filtered by an
entity ID.
Syntax
[C#]
[C++]
public:
DataSet GetUtilRawReasons (
int entId
)
[J#]
public DataSet GetUtilRawReasons (
UtilRawReason Class
603
int entId
)
[Jscript]
public function GetUtilRawReasons (
entId
)
int
DataSet
Parameter
entId
Holds an integer value that identifies the entity for which it
needs to get all util raw reasons.
Return Value
Exceptions
Refresh() Method
The Refresh() method reads the util raw reason information
from the database to refresh the info in memory.
Syntax
[C#]
Public void Refresh(
)
[C++]
public:
void Refresh (
)
[J#]
public void Refresh (
)
[Jscript]
public void Refresh (
)
Exceptions
604
Save() Method
The Save() method adds or updates the utilization raw reason
based on changes in memory information.
Syntax
[C#]
Public void Save(
)
[C++]
public:
void Save (
)
[J#]
public void Save(
)
[Jscript]
public void Save (
)
Exceptions
UtilReason Class
The UtilReason class provides supporting methods for the
Util_Reas table. The Util_Reas table associates utilization
reasons, such as, running or maintenance, with entity states.
Delete() Method
The Delete() method removes the util reason.
Syntax
[C#]
public void Delete (
)
[C++]
public:
UtilReason Class
605
void Delete (
)
[J#]
public static void Delete (
)
[Jscript]
public function Delete (
)
Exceptions
GetUtilReasons() Method
The GetUtilReasons() method obtains a DataSet, containing
all defined utilization reasons, ordered by reason's group.
Syntax
[C#]
[C++]
public:
static DataSet GetUtilReasons()
[J#]
[JScript]
public static
Return Value
LoadHashTableWithUtilReasonData() Method
The LoadHashTableWithUtilReasonData() method creates and
loads a Hashtable containing utilization reason data, keyed
by reason code.
Syntax
[C#]
606
[C++]
public:
static Hashtable LoadHashTableWithUtilReasonData()
[J#]
[JScript]
Return Value
Refresh() Method
The Refresh() method reads the util reason information from
the database to refresh the info in memory.
Syntax
[Visual Basic (Declaration)]
Public Shared Sub Refresh( _
)
[C#]
Public void Refresh(
)
[C++]
public:
void Refresh (
)
[J#]
public void Refresh (
)
[Jscript]
public void Refresh (
)
Exceptions
Save() Method
The Save() method adds or updates the utilization reason
based on changes in memory information.
Syntax
[Visual Basic (Declaration)]
UtilReasonGrp Class
607
[C#]
Public void Save(
)
[C++]
public:
void Save (
)
[J#]
public void Save(
)
[Jscript]
public void Save (
)
Exceptions
UtilReasonGrp Class
This class provides supporting methods for the
Util_Reas_Grp table. The Util_Reas_Grp table defines
groups of reasons that a machine may go into a certain state.
Delete() Method
The Delete() method removes the utilization reason group.
Syntax
[C#]
public void Delete(
)
[C++]
public:
void Delete(
)
[J#]
public static void Delete(
)
[Jscript]
608
Exceptions
GetUtilReasonGroups() Method
The GetUtilReasonGroups() method returns a DataSet of all
defined util reason groups.
Syntax
[C#]
[C++]
public:
DataSet GetUtilReasonGroups (
)
[J#]
public DataSet GetUtilReasonGroups (
)
[Jscript]
public function GetUtilReasonGroups (
)
DataSet
Return Value
Exceptions
Refresh() Method
The Refresh() method reads the util reason group information
from the database to refresh the info in memory.
Syntax
[C#]
UtilReasonGrp Class
609
[C++]
public:
void Refresh (
)
[J#]
public void Refresh (
)
[Jscript]
public void Refresh (
)
Exceptions
Save() Method
The Save() method adds or updates the utilization reason
group based on changes in memory information.
Syntax
[C#]
Public void Save(
)
[C++]
public:
void Save (
)
[J#]
public void Save(
)
[Jscript]
public void Save (
)
Exceptions
610
UtilState Class
The UtilState class provides supporting methods for the
Util_State table. The Util_State table contains the
description and color associated with each entity utilization
state, such as, running or idle.
Delete() Method
The Delete() method removes the utilization state.
Syntax
[C#]
public void Delete (
)
[C++]
public:
void Delete (
)
[J#]
public void Delete(
)
[Jscript]
public function Delete(
)
Exceptions
GetAllStates() Method
The GetAllStates() method returns a data set containing all
defined utilization state information including the state cd
which is a unique integer used to identify the utilization
state, the description, and the color defined for the utilization
state.
Syntax
[C#]
[C++]
UtilState Class
611
public:
static DataSet GetAllStates()
[J#]
[JScript]
public static
Return Value
GetStateDataFromComboBoxEntry() Method
Given an entry from a combo box populated with StateData
objects, the GetStateDataFromComboBoxEntry() method
returns the state code and description.
Syntax
[C#]
public static void GetStateDataFromComboBoxEntry(
object comboBoxEntry,
out string stateDesc,
out int stateCd
)
[C++]
public:
static void GetStateDataFromComboBoxEntry(
Object comboBoxEntry,
[OutAttribute] String% stateDesc,
[OutAttribute] int% stateCd
)
[[J#]}
public static void GetStateDataFromComboBoxEntry(
object comboBoxEntry,
/** @attribute OutAttribute() */ /** @ref */ string
stateDesc,
/** @attribute OutAttribute() */ /** @ref */ int
stateCd
)
[JScript]
612
public static
function GetStateDataFromComboBoxEntry(
comboBoxEntry : Object,
OutAttribute stateDesc : String,
OutAttribute stateCd : int
)
Parameters
comboBoxEntry
Holds a StateData object from a combo box.
stateDesc
Holds the returned state description.
stateCd
Holds the returned state code.
PopulateComboBoxWithEntStates() Method
The PopulateComboBoxWithEntStates() method populates the
specified combo box with entity utilization state descriptions
from the Util_State table. Each combo box entry is a
StateData instance, so that the associated state ID is stored
with each description.
Syntax
[C#]
public static void PopulateComboBoxWithEntStates(
ComboBox cboStates,
bool includeEmptyDesc
)
[C++]
public:
static void PopulateComboBoxWithEntStates(
ComboBox cboStates,
bool includeEmptyDesc
)
[J#]
public static void PopulateComboBoxWithEntStates(
ComboBox cboStates,
bool includeEmptyDesc
)
UtilState Class
613
[JScript]
public static
function PopulateComboBoxWithEntStates(
cboStates : ComboBox,
includeEmptyDesc : bool
)
Parameters
cboStates
Holds the combo box to populate.
includeEmptyDesc
If true, an empty entry is placed at the beginning of the
ComboBox.
Refresh() Method
The Refresh() method reads the util state information from
the database to refresh the info in memory.
Syntax
[C#]
Public void Refresh(
)
[C++]
public:
void Refresh (
)
[J#]
public void Refresh (
)
[Jscript]
public void Refresh (
)
Exceptions
Save() Method
The Save() method adds or updates the utilization state
based on changes in memory information.
Syntax
614
[C#]
Public void Save(
)
[C++]
public:
void Save (
)
[J#]
public void Save(
)
[Jscript]
public void Save (
)
Exceptions
615
Index
Symbols
) 470
A
AddCons() Method 311
AddConsByLot() Method (String) 315
AddConsByLot() Method (String,
Double) 315
AddConsDirect() Method 227
AddConsPostExec() Method 231
AddDirectory() Method 123
AddDirectory() Method (Int32,
String) 122
AddEntity() Method 183
AddEntShift() Method 416
AddJobEvent() Method 236
AddLotAttrs() Method 243
AddProdPostExec() Method 243
AddShift() Method 124
AddUser() Method 488
AddUserGroup() Method 494
AddUserToGroups () Method 457
AddUtilRawReasonLink() Method 594
API Methods Reference 227
C
CalculateProductionTarget() Method 320
ChangePassword Method() Method 72
ClearFormLoginStatus() Method 73
CloneUser() Method 459
CloneUserGroup() Method 495
CloseChildForms() Method 74
CloseIPForm() Method 532
D
data retrieval
about 25
DefineShift () Method 419
Delete() Method (UtilRawReason
Class) 595
Delete() Method (UtilReasonGrp
Class) 607
Delete() Method (UtilReasons Class) 604
Delete() Method (UtilStates Class) 610
DeleteEntity() Method 189
DeleteEntShift() Method 420
DeleteShift() Method 128, 421
DeleteUIConfigDefaultValue()
Method 436
DeleteUIConfigValue() Method 437
DeleteUserGroup() Method 496
DeleteUtilRawReasonLink() Method 596
documentation conventions 19
E
End Session() Method 74
EndAllJobs () Method 249
EndJob() Method 129, 247, 321
EntIdFromName() Method 130
F
FindButtonBar() Method 534
FormatDuration() Method 534
616
G
GetAllJobStates() Method 250
GetAllShifts() Method 422
GetAllStates() Method 610
GetAllUtilRawReasonLinks()
Method 597, 598, 599, 600
GetAttrID() Method (String) 44
GetAttrID() Method (String, Generic
Nullable) 45
GetAttrs() Method 46
GetAttrSet() Method 46
GetAttrsVisibleInInv Method 47
GetAttrValue() Method (String, String,
String, String) 48
GetAttrValue() Method (String, String,
String, String, String, String) 49
GetAttrValue() Method (String, String,
String, String, String, String, String,
String) 51
GetAutoLoginUserId() Method 535
GetAutoLoginUserPw() Method 536
GetAutoLogonEntId() Method 536
GetAutoLogonEntIds() Method 537
GetAvailLots() Method 322
GetBatchOfJobs() Method 250
GetCodeColor() Method 537
GetConfirmation() Method 250
GetConsData() Method 324
GetCountsAndDuration() Method 191,
517
GetCurUserCurEntInfo Method (Int32,
Int32) 75
GetCurUserCurEntInfo Method (Object,
Object) 76
GetDirectories() Method 131
GetDirectories() Method (entID,
seqNo) 132
GetDownstreamOperations()
Method 253
GetDownstreamProduction() Method 255
GetDS() Method 77
GetDSbySQL() Method 78
GetEntAttributes() Method 53, 133
GetEntAttrs() Method (Int32) 53
GetEntChildren() Method 194
GetEntityFromComboBoxEntry (Object,
Int32, String) 195
GetEntityFromComboBoxEntry Method
(Object, Generic Nullable, String) 197
GetEntityShiftSchedule() Method 139
GetEntList() Method 460
GetEntProperties() Methods 197
GetGroupId() Method 497
GetHashCode() Method 54
GetInstance() Method 78
GetItemGrade() Method 538
GetJob() Method 256
GetJobAttrs() Method 54
GetJobAttrs() Method (String, String,
Int32)(Jobs Class) 260
GetJobAttrs() Method (String, String,
Int32, Int32)(Jobs Class) 262
GetJobBomAvailSubst() Method
(JobExec Class) 265
GetJobBomAvailSubst() Method (Jobs
Class) 263
GetJobBOMData() Method (JobExec
Class) 326
GetJobBOMData() Method (Jobs
Class) 265
GetJobBOMProducibles() Method
(JobExec Class) 268
GetJobBOMProducibles() Method (Jobs
Class) 266
GetJobBomSubst() Method (JobExec
Class) 269
GetJobBomSubst() Method (Jobs
Class) 268
GetJobBomSubstitutesForSerializedItem
() Method 269
GetJobBOMWithSubData() Method
(JobExec Class) 272
GetJobBOMWithSubData() Method (Jobs
Class) 270
GetJobEvents() Method (JobExec
Class) 329
GetJobEvents() Method (Jobs Class) 257,
272
GetJobExecData() Method 259
GetJobPos() Method 134, 275
GetJobQueue() Method 273
GetJobsByWo() Method 274
GetJobSchedData() Method 274
GetJobStateData() Method 275
GetJobString 136
GetLangStringsObject() Method 79
GetLanguages() Method 398
617
I
InspectorLogin() Method (String,
Boolean, String, String, User) 543
InspectorLogin() Method (String,
Boolean, String, String, User, Boolean,
String) 545
IsFirstJob() Method 283
IsUserLoggedIntoJob() Method (Int32,
String, String, Int32) 461
IsUserLoggedIntoJob() Method (String,
String, Int32) 462
IsUserLoggedOntoEnt() Method 463
ItemConsSplit() Method 285
ItemIDorDesc() Method 546
J
JobBasedLogin() Method 464
JobPos 394
JobStateDesc() Mothod 288
L
LaunchExternalApplication() Method
(String, Boolean) 547
618
LaunchExternalApplication() Method
(String, DataRow, Boolean) 548
LaunchStepDocument() Method (String,
String) 549
ListImageNames() Methods 412
LoadHashTableWithUtilReasonData()
Method 605
LoadImage() Method 412
Login() Method 80
LoginWithDialog Method (String,
Boolean, Boolean, Boolean, String) 85
LoginWithDialog() Method (String) 81
LoginWithDialog() Method (String,
Boolean, Boolean) 82
LoginWithDialog() Method (String,
Boolean, Boolean, Boolean) 84
LogOffAllUsers() Method 87
LogOffCurrentUser() Method 87
LogoffEnt Method 465
LogoffEntList() Method 465
LogOffJob() Method 466
LogOffJobWithDialog() Method 468
LogOffUser() Method (String) 88
LogOffUser() Method (String,
Boolean) 89
LogonEnt() Method 469
LogonEntList() Method (String,
DataTable) 471
LogonEntWithDialog() Method
(Boolean) 472
LogonEntWithDialog() Method (Boolean,
Object) 473
LogonEntWithDialog() Method (Boolean,
Object, String) 474
LogOnJob() Method 475
M
MaxSessions() Method 401
MayAccessEntity() Method 477
ModuleLicensed() Method 401
N
NumberOfJobsRunning() Method 198
O
OnRefreshControls() Method 90, 140
OpenIPForm() Method (String) 550
OpenIPForm() Method (String,
FormOpenType) 551
P
PadDuration() Method 553
ParseDuration() Method 553
ParseNameAndArgs() Method 554
PauseJob() Method (Ent Class) 140
PauseJob() Method (JobStates, String,
String, Int32, String, Boolean,
Int32)(JobExec Class) 336
PauseJob() Method (JobStates, String,
String, Int32, String, Boolean, Int32,
Boolean)(JobExec Class) 338
PopulateComboBoxWithEntStates()
Method 612
PopulateComboBoxWithOperations()
Method 289
PopulateComboBoxWithSeqNos()
Method 410
PopulateComboBoxWithUsers()
Method 493
PopulateEntityComboBox() Method
(ComboBox, Boolean) 199
PopulateEntityComboBox() Method
(ComboBox, DataTable, Boolean) 200
PopUpAddConsDlg Method (String,
Boolean, String, String, Object, Boolean,
Boolean, Boolean, Boolean, Boolean,
Double, Double, Double, Int32) 340
PopUpAddConsDlg() Method (String,
Boolean, String, String, Object, Boolean,
Boolean, Boolean, Boolean, Boolean,
Double, Double, Double, Int32, Double,
Object, Object) 344
PopupAddProdDlg() Method (String,
String, Boolean, Double, Double, Double,
String, DateTime, Int32) 348
PopupAddProdDlg() Method (String,
String, Double, Double, Double,
String) 350
PopupAddWasteDlg() Method 352
PopupConfigureMiddlewareAccess()
Method 90
PopupContextMenu() Method 556
PopupCreateJobDialog() Method
(JobExec Class) 354
PopupCreateJobDialog() Method (Jobs
Class) 289
PopupDateTimeEntry() Method 557
619
PopupJobSplitDlg 293
PopupKeyboard() Method 576
PopupKeypad() Method (Control) 579
PopupKeypad() Method (String, Int32,
Decimal, Decimal, Double) 577
PopupLotAttributes() Method (String,
String) 579
PopupLotAttributes() Method (String,
String, Boolean) 580
PopupLotNoAttributes() Method (String,
String) 61
PopupLotNoAttributes() Method (String,
String, Boolean, ColumnList) 62
PopupNotesDlg() Method 581
PopupOperationSelection() Method 583
PopupReduceConsDlg() Method 362
PopupReduceProdDlg() Method
(DateTime, String, String, String, Int32,
Int32, String, Double, Double, Double,
Object, String, Int32, Boolean) 365
PopupReduceProdDlg() Method
(DateTime, String, String, String, Int32,
Int32, String, Double, Object, String,
Int32) 369
PopupSelectPausedStateDlg()
Method 295
PopupSetConsLotDataDlg() Method 371
PopupSetProdLotDataDlg() Method 295
PopupStartSomeDlg() Method (String,
Int32, String, String, Int32, Double,
Double, Double, Double) 297
PopupStartSomeDlg() Method (String,
String, String, Int32, Double, Double,
Double, Double) 299
PopupSwitchUserDialog() Method
(String, String) 90
PopupSwitchUserDialog() Method
(String, String, Boolean) 92
PopupUtilReasonSelection() Method 584
PopupWorkOrderSelection() Method 586
PrepareProductionAttributes()
Method 146, 201, 204
PromptForQuantities() Method 144
PromptForQuantities() Method (String,
String, String, Int32, Double, Double,
Double, String) 144
R
ReadTextFile() Method 93
ReadUIConfigDefaultValue()
Method 440
620
S
Save() Method (UtilRawReason
Class) 604
Save() Method (UtilReasonGrp
Class) 609
Save() Method (UtilReasons Class) 606
Save() Method (UtilStates Class) 613
SaveControlsVisibility() Method 446
SaveControlsVisibilityAsDefaults()
Method 447
SaveEntList() Method 446, 479
SaveTabsVisibility() Method 448
SaveTabsVisibilityAsDefaults()
Method 450
SaveTextFile() Method 96
SaveUIConfigDefaultValue() Method 451
SaveUIConfigDefaultValues()
Method 452
SaveUIConfigValue() Method 453
SaveUIConfigValues() Method 455
SelectEntityInComboBox() Method
(ComboBox, Generic Nullable) 208
SelectEntityInComboBox() Method
(ComboBox, Int32) 207
SendXMLCmd() Method (String) 97
SendXMLCmd() Method (String,
DateTime) 99
SendXMLCmd() Method (String,
Int32) 100
SendXMLCmd() Method (String, Int32,
DateTime) 101
SendXMLCmd() Method (String, Int32,
String) 102
SendXMLCmd() Method (String,
String) 104
SendXMLCmd() Method (String, String,
Int32) 105
SendXMLCmd() Method (String,
XMLParser) 98
SetAttrValue() Method (String, Object,
String, String, String, String, String,
Boolean) 64
SetAttrValue() Method (String, Object,
String, String, String, String, String,
String, String, Boolean) 65
SetAttrValue() Method (String, Object,
String, String, String, String, String,
String, String, String, String,
Boolean) 68
SetCurJobExec() Method (Int32) 149
SetCurJobExec() Method (String, String,
Int32) 150
SetCurLotdata() Method 378
SetEntAttributes() Method 151
SetFont() Method 588
SetJobConcurrentLink() Method 302
SetJobQueue() Method 303
SetLotAttrs() Method 305
SetProdProcessedFlag() Method 305
SetRawReason() Method 514
SetTagValue() Method 152
SetTextFromKeyPad() Method (Control,
String) 589
SetTextFromKeyPad() Method (Control,
String, Int32) 590
SetUIScreenTagValues() Method 380
SetUserGroupPrivileges() Method 505
SetUserGroupPrivValue() Method 507
ShowHelpFile() Method 591
ShowJobFlowDiagram() Method 591
SplitJob() Method 306
StartDataEntryJob() Method 381
621
T
technical support, contacting 20
timestamping 25
ToString() Method (AttrData Class) 170,
311, 399, 405, 412, 429, 456, 614
Translate() Method 399
TranslateForm() Method (Control) 592
TranslateForm() Method (Control,
ILanguageStrings) 593
U
UnreadyJob() Method 385
UnregisterDNCControl() Method 110
UpdateEntity() Method 155, 209
UpdateEntShift() Method 425
UpdateJobExec() Method 214
UpdateOEEExec() Method 221
UpdateShift 167
UpdateShift() Method 167, 428
UpdateSystemParameter() Method 110
UpdateUser() Method 480
UpdateUserGroup () Method 508
UpdateUtilExec() Method 224
V
VerifyUser() Method 111
622