UpdateEntity(Int32,String,DBString,DBInt,DBInt,DBDouble,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,DBInt,DBDateTime,Nullable<Int32>,DBString,DBString,DBString,DBString) Method
- Last UpdatedNov 06, 2025
- 3 minute read
The UpdateEntity() method updates the specified entity with the new parameter values supplied.
'Declaration
Public Overloads Shared Sub UpdateEntity( _
ByVal entId As Integer, _
ByVal entName As String, _
ByVal description As Fact.Common.DBString, _
ByVal parentEntID As Fact.Common.DBInt, _
ByVal site As Fact.Common.DBInt, _
ByVal hourlyCost As Fact.Common.DBDouble, _
ByVal canSchedJobs As Nullable(Of Boolean), _
ByVal canRunJobs As Nullable(Of Boolean), _
ByVal canCaptureUtil As Nullable(Of Boolean), _
ByVal canCaptureLabor As Nullable(Of Boolean), _
ByVal canDoDnc As Nullable(Of Boolean), _
ByVal canTrackOEE As Nullable(Of Boolean), _
ByVal canSchedShifts As Nullable(Of Boolean), _
ByVal canStore As Nullable(Of Boolean), _
ByVal canLogData As Nullable(Of Boolean), _
ByVal canShip As Nullable(Of Boolean), _
ByVal canReceive As Nullable(Of Boolean), _
ByVal canCopyFolders As Nullable(Of Boolean), _
ByVal curShiftID As Fact.Common.DBInt, _
ByVal curShiftStartTime As Fact.Common.DBDateTime, _
ByVal identicalJobExecs As Nullable(Of Integer), _
ByVal spare1 As Fact.Common.DBString, _
ByVal spare2 As Fact.Common.DBString, _
ByVal spare3 As Fact.Common.DBString, _
ByVal spare4 As Fact.Common.DBString _
)
public static void UpdateEntity(
int entId,
string entName,
Fact.Common.DBString description,
Fact.Common.DBInt parentEntID,
Fact.Common.DBInt site,
Fact.Common.DBDouble hourlyCost,
Nullable<bool> canSchedJobs,
Nullable<bool> canRunJobs,
Nullable<bool> canCaptureUtil,
Nullable<bool> canCaptureLabor,
Nullable<bool> canDoDnc,
Nullable<bool> canTrackOEE,
Nullable<bool> canSchedShifts,
Nullable<bool> canStore,
Nullable<bool> canLogData,
Nullable<bool> canShip,
Nullable<bool> canReceive,
Nullable<bool> canCopyFolders,
Fact.Common.DBInt curShiftID,
Fact.Common.DBDateTime curShiftStartTime,
Nullable<int> identicalJobExecs,
Fact.Common.DBString spare1,
Fact.Common.DBString spare2,
Fact.Common.DBString spare3,
Fact.Common.DBString spare4
)
Parameters
- entId
- Required. Holds the ID of the entity to be updated.
- entName
- Optional. Holds the unique name of the entity.
- description
- Optional. Holds the description for the entity.
- parentEntID
- Optional. Holds the default parent entity ID. This parameter is null for a top-level entity.
- site
- Optional. Holds the ID of the ancestor entity that defines the site of this entity. If this parameter equals an entId, this entity is a site. This parameter is null for entities above site or for single-site systems.
- hourlyCost
- Optional. Holds the hourly cost of running on this entity.
- canSchedJobs
- Optional. Holds a flag that, if set to true, specifies that jobs can be scheduled on this entity.
- canRunJobs
- Optional. Holds a flag that, if set to true, specifies that jobs can be run on this entity.
- canCaptureUtil
- Optional. Holds a flag that, if set to true, specifies that utilization data can be captured on this entity.
- canCaptureLabor
- Optional. Holds a flag that, if set to true, specifies that labor data can be captured on this entity.
- canDoDnc
- Optional. Not used. Will always be set to False.
- canTrackOEE
- Optional. Holds a flag that, if set to true, specifies that OEE statistics can be captured on this entity.
- canSchedShifts
- Optional. Holds a flag that, if set to true, specifies that shifts can be scheduled for this entity.
- canStore
- Optional. Holds a flag that, if set to true, specifies that this entity a "warehouse" or storage location.
- canLogData
- Optional. Holds a flag that, if set to true, specifies that this entity can log data.
- canShip
- Optional. Holds a flag that, if set to true, specifies that shipments can be made from this entity.
- canReceive
- Optional. Holds a flag that, if set to true, specifies that material can be received at this entity.
- canCopyFolders
- Optional. Holds a flag that, if set to true, specifies that files in folders for this entity can be copied to its download directories.
- curShiftID
- Optional. Holds the ID of the current shift on this entity.
- curShiftStartTime
- Optional. Holds the current shift start time.
- identicalJobExecs
- Optional. Holds the number of identical 'positions' that can run independent jobs on this entity.
- spare1
- Optional. Holds a string for the first field for additional user-defined information.
- spare2
- Optional. Holds a string for the second field for additional user-defined information.
- spare3
- Optional. Holds a string for the third field for additional user-defined information.
- spare4
- Optional. Holds a string for the fourth field for additional user-defined information.