← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10150: local vn - Added missing file

 

------------------------------------------------------------
revno: 10150
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-03-12 12:48:30 +0700
message:
  local vn - Added missing file
added:
  local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/jsonOrganisationUnit.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== added file 'local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/jsonOrganisationUnit.vm'
--- local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/jsonOrganisationUnit.vm	1970-01-01 00:00:00 +0000
+++ local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/jsonOrganisationUnit.vm	2013-03-12 05:48:30 +0000
@@ -0,0 +1,29 @@
+{ "organisationUnit": 
+  {
+    "id": $!{organisationUnit.id},
+    "name": "$!encoder.jsonEncode( ${organisationUnit.name} )",
+    "shortName": "$!encoder.jsonEncode( ${organisationUnit.shortName} )",
+    "description": "$!encoder.jsonEncode( ${organisationUnit.description} )",
+    "code": "$!encoder.jsonEncode( ${organisationUnit.code} )",
+    "openingDate": "$!{organisationUnit.openingDate}",
+    "closedDate": "$!{organisationUnit.closedDate}",
+    "active": "$!{organisationUnit.active}",
+    "comment": "$!encoder.jsonEncode( ${organisationUnit.comment} )",
+    "geoCode": "$!{organisationUnit.geoCode}",
+    "featureType": "$!encoder.jsonEncode( ${organisationUnit.featureType} )",
+    "coordinates": "$!encoder.jsonEncode( ${organisationUnit.coordinates} )",
+    "latitude": "$!{organisationUnit.latitude}",
+    "longitude": "$!{organisationUnit.longitude}",
+	"hasChild": $!{organisationUnit.hasChild()},
+	
+	#set( $size = ${organisationUnit.groups.size()} )
+	"groups": [
+	#foreach( $group in ${organisationUnit.groups} )
+	{
+		"id": "$!{group.id}",
+		"groupSetId": "$!{group.groupSet.id}"
+	}#if( $velocityCount < $size ),#end
+	#end
+	]
+  }
+}
\ No newline at end of file