CCorrectiveTask Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 35: Line 35:
*MiscCostModelID (as ''integer'') {{APIComment|Gets the numerical ID model that represents the task's Cost Per Task.}}
*MiscCostModelID (as ''integer'') {{APIComment|Gets the numerical ID model that represents the task's Cost Per Task.}}
*MiscCostPerTimeModelID (as ''integer'') {{APIComment|Gets the numerical ID of the model that represents the task's Downtime Rate.}}
*MiscCostPerTimeModelID (as ''integer'') {{APIComment|Gets the numerical ID of the model that represents the task's Downtime Rate.}}
== Methods ==
'''Set/Return Item Properties'''
*[[cCorrectiveTask.ItemCategoryID|ItemCategoryID(Integer)]] {{APIComment|{{Template:ItemCategoryID.Cmt}}}}
*[[cCorrectiveTask.ItemPartNumber|ItemPartNumber(String)]] {{APIComment|{{Template:ItemPartNumber.Cmt}}}}
*[[cCorrectiveTask.ItemVersion|ItemVersion(String)]] {{APIComment|{{Template:ItemVersion.Cmt}}}}
*[[cCorrectiveTask.ItemSupplier|ItemSupplier(String)]] {{APIComment|{{Template:ItemSupplier.Cmt}}}}
*[[cCorrectiveTask.ItemApplication|ItemApplication(String)]] {{APIComment|{{Template:ItemApplication.Cmt}}}}
*[[cCorrectiveTask.ItemDescription|ItemDescription(String)]] {{APIComment|{{Template:ItemDescription.Cmt}}}}
*[[cCorrectiveTask.ItemComments|ItemComments(String)]] {{APIComment|{{Template:ItemComments.Cmt}}}}
*[[cCorrectiveTask.ItemKeywords|ItemKeywords(String)]] {{APIComment|{{Template:ItemKeywords.Cmt}}}}

Revision as of 23:26, 26 March 2015


Corrective tasks are unplanned maintenance activities that are performed when a failure occurs. They can be assigned to URDs.

To access/edit repository level information, including accessing/adding resources, please see Repository Class.

Constructors

  • cCorrectiveTask Creates a new corrective task.

Properties

General

  • Name (as string) Gets or sets the name of the task.
  • ID (as integer) Gets the numerical ID of the resource.
  • ProjectID (as integer) Gets the numerical ID of the project the task belongs to.

Task Scheduling

  • TaskFrequencyID (as TaskFrequencyEnum) Gets the frequency with which the task is performed.

Basic Repair Properties

  • DurationModelID (as integer) Gets the ID of the task duration model assigned to the resource.
  • CrewIDs (as integer()) Gets the IDs of the crews assigned to the resource.
  • SetCrewIDs (ByRef arr() as integer) Version 10 Only - Sets the crew IDs. Designed for VB6/VBA users. .NET users should use CrewIDs property instead. Returns the 0 based array of IDs.
  • GetCrewIDs (ByRef arr() as integer) Version 10 Only - Gets an array of the crew IDs. Designed for VB6/VBA users. .NET users should use CrewIDs property instead. Returns the 0 based array of IDs.
  • PoolID (as integer) Gets the ID of the pools assigned to the resource.

Task Consequences

  • BringSystemDown (as boolean) Gets or sets whether this task will bring the system down.
  • BringItemDown (as boolean) Gets or sets whether this task will bring the item down.
  • PerformTaskEvenIfItBringsSysDown (as boolean) Gets or sets whether the task should be performed if bringing the item down causes the system to go down.

Restoration

  • ResFactorValue (as double) Gets or sets the corrective task's Restoration Amount (0.9 = 90% restoration).
  • ResFactorType (as TaskRestorationTypeEnum) Gets or sets the enumeration for the damage the restoration applies to (i.e., all damage or only damage since last repair).

Additional Costs to Consider

  • MiscCostModelID (as integer) Gets the numerical ID model that represents the task's Cost Per Task.
  • MiscCostPerTimeModelID (as integer) Gets the numerical ID of the model that represents the task's Downtime Rate.

Methods

Set/Return Item Properties