WSLaborLevelDetailHierarchyLaborLevelDetailHierarchyAdd Method | |
Namespace: AppOne.Web.Service.Services.V1R0.CustomerAssembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax Remarks
Use this method to create a new child node in the labor level hierarchy tree by specifying its location. This method can only add one node per request.
Property | Description |
---|
Parent | The identity value of the parent labor level detail ID in the hierarchy tree. This value should be '0' if the labor level detail node being added to the tree is a root level node. |
Child | The identity value of the child labor level detail ID which is being added to the hierarchy tree. This property represents the actual node that will appear in the hierarchy tree. |
Path |
Represents a unique path to the parent labor level detail in the hierarchy under which the new node will be created.
This should be a fully qualified path that exist in the hierarchy tree which starts from the root node and ends on the parent node.
If creating a top level node such as "Project-A" in the example below the Path property should not be set or if you’re using SOAP it can be set to null.
|
Example
The following example demonstrates the requests need to create the following tree. The labor level detail IDs are in parenths
Tree Layout:
Project-A (1)
|-- Task-A (10)
|-- Task-B (11)
|-- Job-A (20)
Project-B (2)
| -- Task-B (11)
| -- Job-A (20)
To create this tree initiate seven add requests as such:
{Parent:0, Child:1} Add Project-A
{Parent:1, Child:10, Path[1]} Add Task-A to Project-A
{Parent:1, Child:11, Path[1]} Add Task-B to Project-A
{Parent:11, Child:20, Path[1,11]} Add Job-A to Task-B
{Parent:0, Child:2} Add Project-B
{Parent:2, Child:11, Path[2]} Add Task-B to Project-B
{Parent:11, Child:20, Path[2,11]} Add Job-A to Task-B
See Also