Click or drag to resize

ServiceRouterGetLaborLevelDetail Method

Returns a GetLaborLevelDetailOut response with a result model List<GetLaborLevelDetailModel>

Namespace: AppOne.Services.V2
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public GetLaborLevelDetailOut GetLaborLevelDetail(
	GetLaborLevelDetailIn input
)

Parameters

input  GetLaborLevelDetailIn
A new GetLaborLevelDetailIn object

Return Value

GetLaborLevelDetailOut
A GetLaborLevelDetailOut object
Remarks
Use this method to get a results list of GetLaborLevelDetailModel

Note  Note
For a higher level overview of the business rules for labor-levels see the class WSLaborLevelDetail of this web method.
Caution note  Caution
The DataAction SELECT-CODE operation is similar to the DataFilter BY-CODE operation. If both are used in conjunction then the SELECT-CODE DataAction will be processed first. Then the DataFilter query will run on the subset of data processed by the DataAction. For more details view the usage of the DataAction and DataAction.

DataAction Names

NameDescriptionValues Example
SELECT-ALLReturns all labor level details in system regardless of any state.[ignored]
SELECT-IDReturns only the labor level details with the specified ID.4,8,95...
SELECT-PARENTIDReturns all labor level details who's parent ID matches the values passed in.5,9,18...
SELECT-ISDELETEDWhen true all labor level details marked as deleted will return, if false all active labor levels will return.true
SELECT-CODEReturns only the labor level details with the specified code. "CA", "CO", "AZ"

DataFilter Names

NameDescriptionValues Example
BY-CODEFilters the Results based on the labor level details by code."CO", "AZ"
BY-NAMEFilters the Results based on the labor level details by name."Colorado", "Arizona"
Example
JSON Request
//EXAMPLE 1: 
//Returns all Labor Levels Details
{
    "AuthToken":"...",
    "DataAction":{
        "Name":"SELECT-ALL",
        "Values":[]
    },
    "DataFilter":{
        "Name":"OFF",
        "HideValues":true,
        "Values":[""]
    }
 }

//EXAMPLE 2: 
//Shows all results for Labor Levels Details that 
//are NOT "CO" and "AZ" by datafilter restriction
{
    "AuthToken":"...",
    "DataAction":{
        "Name":"SELECT-ALL",
        "Values":[]
    },
    "DataFilter":{
        "Name":"BY-CODE",
        "HideValues":true,
        "Values":["CO", "AZ"]
    }
 }
JSON Response
//EXAMPLE JSON RESPONSE
{
    "Report": {
        "ProcessTime": "0.0083511",
        "RequestTime": "/Date(1429749468255-0700)/",
        "ResponseTime": "/Date(1429749468263-0700)/",
        "Results": 18
    },
    "Results": [
        {
            "Code": "10010",
            "CustomFields": [
                {
                    "IsMultiSelect": true,
                    "Name": "MultiSelectLLCustomField",
                    "Type": 0,
                    "Value": "test1,test2"
                }
            ],
            "DefaultEffectiveDate": "/Date(-62135571600000-0700)/",
            "EmployeeNotesRequired": false,
            "EndDate": "/Date(4102470000000-0700)/",
            "ID": 13,
            "IsDeleted": false,
            "ModifiedEmployeeID": "0",
            "ModifiedOn": "/Date(1312572050000-0700)/",
            "Name": "10010",
            "ParentID": 127,
            "StartDate": "/Date(1262329200000-0700)/"
        },
         ...(17 more record sets) ...
}
SOAP: C# WCF Sample
int count = 0;
SoapServiceV2.GetLaborLevelDetailRequest request = new SoapServiceV2.GetLaborLevelDetailRequest();
request.input = new SoapServiceV2.GetLaborLevelDetailIn
{
    AuthToken = AuthToken,
    DataAction = new DataAction { 
        Name = "SELECT-ID", 
        Values = new List<string>() {"1", "2"} 
    }
};
SoapServiceV2.GetLaborLevelDetailResponse response = client.GetLaborLevelDetail(request);
count = (response.GetLaborLevelDetailResult.Results != null) ? response.GetLaborLevelDetailResult.Results.Count : 0;
Assert.IsTrue(count > 0);
See Also