=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeMultipleSelect.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeMultipleSelect.vm 2010-09-14 09:03:41 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeMultipleSelect.vm 2010-10-07 08:40:58 +0000 @@ -1,7 +1,7 @@ ## You don't have to use this template directly if you don't want to - +
$i18n.getString( "organisation_unit_selection_tree" ) @@ -18,11 +18,13 @@ +
+
@@ -62,6 +64,24 @@ selectionTree.buildSelectionTree(); } + function unSelectChildren() + { + jQuery.get( '../dhis-web-commons/oust/removeorgunit.action', + {children: true}, + function( xml ){ + selectedOrganisationUnitXMLABCDEF( xml ); + }); + } + + function selectChildren() + { + jQuery.get( '../dhis-web-commons/oust/addorgunit.action', + {children: true}, + function( xml ){ + selectedOrganisationUnitXMLABCDEF( xml ); + }); + } + function selectOrganisationUnitAtLevel() { jQuery.get( '../dhis-web-commons/oust/addorgunit.action', === modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/oust/action/AddSelectedOrganisationUnitAction.java' --- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/oust/action/AddSelectedOrganisationUnitAction.java 2010-09-09 09:38:13 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/oust/action/AddSelectedOrganisationUnitAction.java 2010-10-07 08:40:58 +0000 @@ -92,6 +92,13 @@ this.level = level; } + private Boolean children; + + public void setChildren( Boolean children ) + { + this.children = children; + } + private Integer organisationUnitGroupId; public void setOrganisationUnitGroupId( Integer organisationUnitGroupId ) @@ -134,6 +141,14 @@ .getMembers() ); } + if ( children != null && children == true ) + { + for ( OrganisationUnit selected : selectionTreeManager.getSelectedOrganisationUnits() ) + { + selectedUnits.addAll( organisationUnitService.getOrganisationUnitWithChildren( selected.getId() ) ); + } + } + selectionTreeManager.setSelectedOrganisationUnits( selectedUnits ); } catch ( Exception e ) === modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/oust/action/RemoveSelectedOrganisationUnitAction.java' --- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/oust/action/RemoveSelectedOrganisationUnitAction.java 2010-09-09 09:38:13 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/oust/action/RemoveSelectedOrganisationUnitAction.java 2010-10-07 08:40:58 +0000 @@ -28,6 +28,8 @@ */ import java.util.Collection; +import java.util.HashSet; +import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -91,6 +93,13 @@ this.level = level; } + private Boolean children; + + public void setChildren( Boolean children ) + { + this.children = children; + } + private Integer organisationUnitGroupId; public void setOrganisationUnitGroupId( Integer organisationUnitGroupId ) @@ -133,6 +142,25 @@ .getOrganisationUnitGroup( organisationUnitGroupId ).getMembers() ); } + if ( children != null && children == true ) + { + + Set selectedOrganisationUnits = new HashSet( selectedUnits ); + + for ( OrganisationUnit selected : selectedOrganisationUnits ) + { + OrganisationUnit parent = selected.getParent(); + + if ( !selectedOrganisationUnits.contains( parent ) ) + { + selectedUnits.removeAll( organisationUnitService.getOrganisationUnitWithChildren( selected + .getId() ) ); + + selectedUnits.add( selected ); + } + } + } + selectionTreeManager.setSelectedOrganisationUnits( selectedUnits ); } catch ( Exception e ) === modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties' --- dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties 2010-10-04 10:59:24 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties 2010-10-07 08:40:58 +0000 @@ -347,6 +347,8 @@ select_in_group = Select in group unselect_in_group = Un-select in group organisation_unit_selection_tree = Organisation Unit Tree Selection +select_children = Select children +unselect_children = Un-select children #-- Paging messages ----------------------------------------------------------------------# no_of_pages = No. of pages === modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global_vi_VN.properties' --- dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global_vi_VN.properties 2010-09-15 04:42:49 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global_vi_VN.properties 2010-10-07 08:40:58 +0000 @@ -915,3 +915,5 @@ select_in_group = Ch\u1ecdn trong nh\u00f3m unselect_in_group = B\u1ecf ch\u1ecdn trong nh\u00f3m organisation_unit_selection_tree = C\u00e2y \u0111\u01a1n v\u1ecb +select_children = Ch\u1ecdn c\u00e2y con +unselect_children = B\u1ecf ch\u1ecdn c\u00e2y con === added file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/chart/jchartRoles.vm' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/chart/jchartRoles.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/chart/jchartRoles.vm 2010-10-07 08:40:58 +0000 @@ -0,0 +1,56 @@ + +

$i18n.getString( "update_reportexcel_userrole" )

+ +
+ + + + + + + + + + + + + + + + + + +
$i18n.getString( "chart" )
$encoder.htmlEncode( $jchart.title )
$i18n.getString( "available" )$i18n.getString( "selected" )
+ + +
+ +
+ +
+
+ + +
+ === added file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/customDataSetReport.vm' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/customDataSetReport.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/customDataSetReport.vm 2010-10-07 08:40:58 +0000 @@ -0,0 +1,1 @@ +$customDataEntryFormCode \ No newline at end of file === added file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompletedByDataSets.vm' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompletedByDataSets.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompletedByDataSets.vm 2010-10-07 08:40:58 +0000 @@ -0,0 +1,48 @@ + + + + + #foreach( $d in $dataSets ) + + #end + + + + #foreach( $o in $organisationUnits ) + + + #foreach( $d in $dataSets ) + + #end + + #end + + + + + + + +
$encoder.htmlEncode( $d.name )
$o.name + #if($!completedValues.get( "$o.id:$d.id" )) + #if($completedValues.get( "$o.id:$d.id" )!="null") + + + + $i18n.getString( 'yes' ) + [$completedValues.get( "$o.id:$d.id" )] + #end + #else + + + + $i18n.getString( 'no' ) + #end +
+ $i18n.getString( 'no' ) Un-completed +      + $i18n.getString( 'yes' ) Completed +      + View Data + +
\ No newline at end of file === added file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompletedByPeriods.vm' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompletedByPeriods.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompletedByPeriods.vm 2010-10-07 08:40:58 +0000 @@ -0,0 +1,61 @@ +

$encoder.htmlEncode( $dataSet.name )

+ + + + + #foreach( $p in $periods ) + + #end + + + + #foreach( $o in $organisationUnits ) + + + #foreach( $p in $periods ) + + #end + + #end + + + + + + + +
$format.formatPeriod($p)
$encoder.htmlEncode( $o.name ) + #if($!completedValues.get( "$o.id:$p.id" )) + #if($completedValues.get( "$o.id:$p.id" ) != "null" ) + + + + #set ($percent = $completedValues.get( "$o.id:$p.id" )) + #if( $percent <= 100) + $i18n.getString( 'yes' ) +
+
$percent%
+
+ #else + $i18n.getString( 'no' ) + #set ($percent = $percent/1000 ) +
+
$percent%
+
+ #end + #end + #else + + + + $i18n.getString( 'no' ) + #end +
+ $i18n.getString( 'no' )$i18n.getString( "un_completed" ) +      + $i18n.getString( 'yes' )$i18n.getString( "completed" ) +      + $i18n.getString( "view_data" ) + +
+ === added file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompleteds.vm' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompleteds.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/dataSetCompleteds.vm 2010-10-07 08:40:58 +0000 @@ -0,0 +1,179 @@ + + +

$i18n.getString( "dataset_completed_report" )

+
+
+ + +
+
+ + + + + + + + + + + + + +
+
+ $i18n.getString( "dataset" )
+ +
+ $i18n.getString( "period" )
+ + + + + + +
+
+
+
+ +
+
+
+ #organisationUnitSelectionTree( false, false, true ) +
+
+
+
+ +
+
+ + + + + + + + + + + + + +
+
+ $i18n.getString( "period_type" )
+
+ $i18n.getString( "period" )
+
+ $i18n.getString( "dataset" )
+ + + + + + +
+
+
+
+ +
+
+
+
+
+ + + + +