Next4Me
 All Classes Files Functions Variables
Application_Model_CmplxAssetAndProperty
CmplxAssetAndProperty.addEditAssetAndProperty
AssetAndProperty nou:
REQ:
{
"method": "addEditAssetAndProperty",
"entity": {
"IdAsset": "0",
"IdTplAsset": "1",
"Name": "Name",
"AssetProperty": [
{
"IdAssetProperty": "0",
"IdAsset": "0",
"Name": "Name",
"PropertyValue": "20.0",
"PropertyString": "PropertyString",
"PropertyDate": "2012-02-20 10:12:21",
"PropertyType": "0"
}
]
}
}
RESP:
{
"resultId": 0,
"resultCode": "16"
}
Edit AssetAndProperty:
REQ:
{
"method": "addEditAssetAndProperty",
"entity": {
"IdAsset": "16",
"IdTplAsset": "1",
"Name": "Name",
"AssetProperty": [
{
"IdAssetProperty": "0",
"IdAsset": "0",
"Name": "Name",
"PropertyValue": "20.0",
"PropertyString": "PropertyString",
"PropertyDate": "2012-02-20 10:12:21",
"PropertyType": "0"
}
]
}
}
RESP:
{
"resultId": 0,
"resultCode": "16"
}
--------------------------------------------------------------------------------------------------------------
CmplxAssetAndProperty.deleteAssetAndProperty
Stergere AssetAndProperty:
REQ:
{
"method": "deleteAssetAndProperty",
"entity": {
"IdAsset": "16"
}
}
RESP:
{
"resultId": 0,
"resultCode": "Date Sterse"
}
--------------------------------------------------------------------------------------------------------------
CmplxAssetAndProperty.getAssetAndProperty
Listare informatii AssetAndProperty:
REQ:
{
"method": "getAssetAndProperty",
"entity": {
"IdAsset": "20",
"pageNo": "1",
"pageSize": "10",
"orderColumn": "IdAsset",
"orderType": "DESC"
}
}
RESP:
{
"resultId": 0,
"resultCode": [
{
"IdAsset": 20,
"IdTplAsset": 1212,
"Name": "Name",
"IdUserAccount": 1,
"AssetProperty": [
{
"IdAssetProperty": 49,
"IdAsset": 20,
"Name": "Name",
"PropertyValue": "2.00",
"PropertyString": "Name",
"PropertyDate": "2010-09-09 19:43:33",
"PropertyType": 2
},
{
"IdAssetProperty": 48,
"IdAsset": 20,
"Name": "Name",
"PropertyValue": "2.00",
"PropertyString": "Name",
"PropertyDate": "2010-09-09 19:32:33",
"PropertyType": 2
},
{
"IdAssetProperty": 47,
"IdAsset": 20,
"Name": "Name",
"PropertyValue": "2.00",
"PropertyString": "Name",
"PropertyDate": "2010-09-09 19:29:33",
"PropertyType": 2
}
]
}
]
}
--------------------------------------------------------------------------------------------------------------