Next4Me
 All Classes Files Functions Variables
Application_Model_Region
Region.addEditRegion
Region nou:
REQ:
{
"method": "addEditRegion",
"entity": {
"IdRegion": "0",
"Value": "Videle",
"IdParent": "7",
"Type": "Sat"
}
}
RESP:
{
"resultId": 0,
"resultCode": "17"
}
Edit Region:
REQ:
{
"method": "addEditRegion",
"entity": {
"IdRegion": "17",
"Value": "Videle2",
"IdParent": "7",
"Type": "Sat"
}
}
RESP:
{
"resultId": 0,
"resultCode": "17"
}
--------------------------------------------------------------------------------------------------------------
Region.deleteRegion
Stergere Region:
REQ:
{
"method": "deleteRegion",
"entity": {
"IdRegion": "17"
}
}
RESP:
{
"resultId": 0,
"resultCode": "Date Sterse"
}
--------------------------------------------------------------------------------------------------------------
Region.getRegionById
Listare informatii Region:
REQ:
{
"method": "getRegionById",
"entity": {
"IdRegion": "16"
}
}
RESP:
{
"resultId": 0,
"resultCode": {
"IdRegion": 16,
"Value": "Europa",
"IdParent": 0,
"Type": "Continent"
}
}
--------------------------------------------------------------------------------------------------------------
Region.getRegionByParent
Listare informatii Region:
REQ:
{
"method": "getRegionByParent",
"entity": {
"IdParent": "1"
}
}
RESP:
{
"resultId": 0,
"resultCode": [
{
"IdRegion": 1,
"Value": "Europa",
"IdParent": 1,
"Type": "Continent"
},
{
"IdRegion": 16,
"Value": "Asia",
"IdParent": 1,
"Type": "Continent"
}
]
}
--------------------------------------------------------------------------------------------------------------
Region.getRegionByType
Listare informatii Region:
REQ:
{
"method": "getRegionByType",
"entity": {
"Type": "Continent"
}
}
RESP:
{
"resultId": 0,
"resultCode": [
{
"IdRegion": 1,
"Value": "Europa",
"IdParent": 1,
"Type": "Continent"
},
{
"IdRegion": 16,
"Value": "Asia",
"IdParent": 1,
"Type": "Continent"
}
]
}
--------------------------------------------------------------------------------------------------------------
Region.getRegionRecursiveByParentId
Listare informatii Region:
REQ:
{
"method": "getRegionRecursiveByParentId",
"entity": {
"IdParent": "1"
}
}
RESP:
[
{
"IdRegion": 2,
"Value": "Romania1",
"IdParent": 1,
"Type": "Tara",
"childs": [
{
"IdRegion": 3,
"Value": "Prahova",
"IdParent": 2,
"Type": "Judet",
"childs": [
{
"IdRegion": 4,
"Value": "Ploiesti",
"IdParent": 3,
"Type": "Oras",
"childs": [
]
},
{
"IdRegion": 11,
"Value": "Urlati1",
"IdParent": 3,
"Type": "Oras",
"childs": [
]
},
{
"IdRegion": 15,
"Value": "Mizil",
"IdParent": 3,
"Type": "Oras",
"childs": [
]
}
]
},
{
"IdRegion": 7,
"Value": "Brasov",
"IdParent": 2,
"Type": "Judet",
"childs": [
{
"IdRegion": 9,
"Value": "Brasov",
"IdParent": 7,
"Type": "Oras",
"childs": [
]
}
]
},
{
"IdRegion": 8,
"Value": "Bucuresti",
"IdParent": 2,
"Type": "Judet",
"childs": [
{
"IdRegion": 10,
"Value": "Bucuresti",
"IdParent": 8,
"Type": "Oras",
"childs": [
]
}
]
}
]
},
{
"IdRegion": 5,
"Value": "Germania",
"IdParent": 1,
"Type": "Tara",
"childs": [
]
}
]
--------------------------------------------------------------------------------------------------------------