GetLaborLevelInDataAction Property | |
A simple query abstraction layer used to provide a mechanism by which methods can make simple query calls to various models.
* Required Property
Namespace: AppOne.Services.V2.ContractsAssembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax public DataAction DataAction { get; set; }
function get_DataAction();
function set_DataAction(value);
Property Value
DataActionRemarks
The DataAction property is required to get results from
GetLaborLevel(GetLaborLevelIn) method. Below is a list of the available
DataAction name values that can used to return a dynamic results set
DataAction Names
Name | Description | Values Example |
---|
SELECT-ALL | Returns all labor levels in system regardless of any state. | [ignored] |
SELECT-ID | Returns only the labor levels with the specified ID. | 4,8,95... |
SELECT-ISDELETED | When true all labor levels marked as deleted will return, if false all active labor levels will return. | true |
Example
{
"AuthToken":"...",
"DataAction":{
"Name":"SELECT-ALL",
"Values":[]
}
}
{
"AuthToken":"...",
"DataAction":{
"Name":"SELECT-ALL",
"Values":[]
},
"DataFilter":{
"Name":"BY-NAME",
"HideValues":true,
"Values":["Division"]
}
}
{
"Report": {
"ProcessTime": "0.0445699",
"RequestTime": "/Date(1429743756253-0700)/",
"ResponseTime": "/Date(1429743756297-0700)/",
"Results": 4
},
"Results": [
{
"ID": 89,
"IsDeleted": false,
"ModifiedEmployeeID": "0",
"ModifiedOn": "/Date(-2208963600000-0700)/",
"Name": "Division",
"OrdinalPosition": 1,
"UnrestrictedAccessEnabled": false
},
...(3 more record sets) ...
}
int countTest_1 = 0;
SoapServiceV2.GetLaborLevelRequest request1 = new SoapServiceV2.GetLaborLevelRequest();
request1.input = new SoapServiceV2.GetLaborLevelIn
{
AuthToken = AuthToken,
DataAction = new DataAction
{
Name = "SELECT-ALL"
}
};
SoapServiceV2.GetLaborLevelResponse response1 = client.GetLaborLevel(request1);
countTest_1 = (response1.GetLaborLevelResult.Results != null) ? response1.GetLaborLevelResult.Results.Count : 0;
int countTest_2 = 0;
SoapServiceV2.GetLaborLevelRequest request2 = new SoapServiceV2.GetLaborLevelRequest();
request2.input = new SoapServiceV2.GetLaborLevelIn
{
AuthToken = AuthToken,
DataAction = new DataAction
{
Name = "SELECT-ID",
Values = new List<string>() {
response1.GetLaborLevelResult.Results[0].ID.ToString(),
response1.GetLaborLevelResult.Results[1].ID.ToString()
}
}
};
SoapServiceV2.GetLaborLevelResponse response2 = client.GetLaborLevel(request2);
countTest_2 = (response2.GetLaborLevelResult.Results != null) ? response2.GetLaborLevelResult.Results.Count : 0;
Assert.IsTrue(countTest_2 > 0 && countTest_1 > 0);
See Also