Click or drag to resize
WpTree Class
Work Plan Links records define hierarchical structure called Work Plan. The idea behind Work Plan is that Work Orders may have child and grandchild Work Orders (no more than 2 levels of hierarchy though); such hierarchical structure is used to execute projects requiring different assignees with different billing, multiple quotes etc.
Inheritance Hierarchy
SystemObject
  CorrigoService.EntitiesCorrigoEntity
    CorrigoServiceCorrigoEntityWithOptimisticLock
      CorrigoService.EntitiesWpTree

Namespace: CorrigoService.Entities
Assembly: ClientXMLDoc (in ClientXMLDoc.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public class WpTree : CorrigoEntityWithOptimisticLock

The WpTree type exposes the following members.

Properties
  NameDescription
Public propertyChildWoId
ID of the Work Order participating in Work Plan.
Public propertyDependOnWorkOrder
Peer sibling WO on which WO defined by cWOID depends; NULL means no dependency.
Public propertyLevel
This field tells on which level of Work Plan WO defined by cWOID is placed. Only values 0, 1 and 2 are allowed: 0 means cWOID is the root (in this case RootWOID == cWOID); 1 means it’s a child; 2 means it’s a grandchild.
Public propertyNumber
Numeric suffix used to build WO number for WO defined by cWOID. If cWOID is root this field is zero. Allowed values are 0 – 100, which means single parent cannot have more than 100 children.
Public propertyParentWorkOrder
Immediate parent of the Work Order defined by cWOID. If cWOID is root, pWOID == cWOID.
Public propertyRootWorkOrder
Root of the Work Plan.
Top
See Also