GetLaborLevelDetailInDataFilter Property | |
A simple filter abstraction layer used to provide a mechanism by which methods can make simple filter calls to various models.
Namespace: AppOne.Services.V2.ContractsAssembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax public DataFilter DataFilter { get; set; }
function get_DataFilter();
function set_DataFilter(value);
Property Value
DataFilterRemarks
The DataFilter property can be used to get results from
GetLaborLevelDetail(GetLaborLevelDetailIn) method. Below is a list of the available
DataFilter name values that can used to return a dynamic results set
DataFilter Names
Name | Description | Values Example |
---|
BY-CODE | Filters the Results based on the labor level details by code. | "CO", "AZ" |
BY-NAME | Filters the Results based on the labor level details by name. | "Colorado", "Arizona" |
Example
{
"AuthToken":"...",
"DataAction":{
"Name":"SELECT-ALL",
"Values":[]
},
"DataFilter":{
"Name":"OFF",
"HideValues":true,
"Values":[""]
}
}
{
"AuthToken":"...",
"DataAction":{
"Name":"SELECT-ALL",
"Values":[]
},
"DataFilter":{
"Name":"BY-CODE",
"HideValues":true,
"Values":["CO", "AZ"]
}
}
{
"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) ...
}
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