=== modified file 'local/in/dhis-web-dashboard/pom.xml' --- local/in/dhis-web-dashboard/pom.xml 2010-08-20 09:13:09 +0000 +++ local/in/dhis-web-dashboard/pom.xml 2010-11-03 09:50:21 +0000 @@ -83,7 +83,11 @@ dhis-in-service-configuration ${version} - + + org.hisp.dhis + dhis-in-service-reports + ${version} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -768,6 +811,8 @@ + + === modified file 'local/in/dhis-web-dashboard/src/main/resources/org/hisp/dhis/dashboard/i18n_module.properties' --- local/in/dhis-web-dashboard/src/main/resources/org/hisp/dhis/dashboard/i18n_module.properties 2010-10-28 09:17:13 +0000 +++ local/in/dhis-web-dashboard/src/main/resources/org/hisp/dhis/dashboard/i18n_module.properties 2010-11-03 09:50:21 +0000 @@ -34,6 +34,10 @@ period = Period ga_orgUnitGroups = OrgUnitGroups ga_aggregated_data = Aggregated Data +indicator_wise = Indicator Wise +indicator_wise_graphical_analyser = Indicator Wise Graphical Analyser +ga_available_indicatorList = Available Indicator List +ga_selected_IndicatorList = Selected Indicator List #------Annual Analysis------------------------# aa_annual_analyser = Annual Analyser === modified file 'local/in/dhis-web-dashboard/src/main/resources/struts.xml' --- local/in/dhis-web-dashboard/src/main/resources/struts.xml 2010-11-02 11:35:05 +0000 +++ local/in/dhis-web-dashboard/src/main/resources/struts.xml 2010-11-03 09:50:21 +0000 @@ -60,9 +60,33 @@ 1024 - - - + + + + + /main.vm + /dhis-web-dashboard/graphicalAnalysisIndicatorFront.vm + /dhis-web-dashboard/menuWithTreeForGAIndicator.vm + ../dhis-web-commons/ouwt/ouwt.js,javascript/db.js,javascript/ga.js,javascript/hashtable.js,javascript/date.js,javascript/gadataelement.js + css/StylesForTags.css + + + + + /popup.vm + /dhis-web-dashboard/graphicalAnalysisIndicatorResult.vm + + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/ga.js,javascript/hashtable.js,javascript/gadataelement.js + css/StylesForTags.css + + + + + + + + // Global Variables + var selriRadioButton = "indicatorsRadio"; + var selCategory = ""; + var selFacility = ""; + + + + // Global Variables + var monthlyPeriodTypeName = '$monthlyPeriodTypeName'; + var quarterlyPeriodTypeName = '$quarterlyPeriodTypeName'; + var sixmonthPeriodTypeName = '$sixMonthPeriodTypeName'; + var yearlyPeriodTypeName = '$yearlyPeriodTypeName'; + + // var maxOrgUnitLevels = $maxOrgUnitLevels; + var orgUnitIds="NONE"; + var currentOrgUnitId; + var currentOrgUnitName; + + var monthNames = new Array("Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Jan","Feb","Mar"); + var quarterNames = new Array("Q1","Q2","Q3","Q4"); + var halfYearNames = new Array("HY1","HY2"); + + + var orgUnitGroupIds = new Array(); + var orgUnitGroupNames = new Array(); + + #set( $count1 = 0 ); + #foreach( $orgUnitGroup in $orgUnitGroups ) + orgUnitGroupIds[$count1] = $orgUnitGroup.id; + orgUnitGroupNames[$count1] = '$orgUnitGroup.name'; + #set( $count1 = $count1 + 1 ); + #end + + + + +

$i18n.getString( "indicator_wise_graphical_analyser" )

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
   
   
$i18n.getString( "ga_filter_by_indicatorgroup" )
+ +
 
   
$i18n.getString( "ga_available_indicatorList" )
+ +

+      +
+      +
+      +
+      +
$i18n.getString( "ga_selected_IndicatorList" )
+ +
 
 
 

$i18n.getString( "ga_aggregated_data" )
 
+ + + + + + +
$i18n.getString( "ga_viewby" )
+ +
+
+
      $i18n.getString( "periodType" )
+ +
+
+
+

+ + + + +
$i18n.getString( "ga_orgunit" )
+ +
$i18n.getString( "ga_orgUnitGroups" )
+ +
+

+ + + + + + + + + + + + +
$i18n.getString( "year" )
+ +
+
+
      $i18n.getString( "period" )
+ +
+
+
+       +
+
+ \ No newline at end of file === added file 'local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/graphicalAnalysisIndicatorResult.vm' --- local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/graphicalAnalysisIndicatorResult.vm 1970-01-01 00:00:00 +0000 +++ local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/graphicalAnalysisIndicatorResult.vm 2010-11-03 09:50:21 +0000 @@ -0,0 +1,231 @@ + +
+ + + + + + #else + + + + + #end +
+ #if($selectedButton.equals("ViewSummary")) + + Export To WorkBook   + +    +

+
Export To Excel   + +    + +
+
+ +
+ + +
+
+ +
+
+ #end +
+ + --> + + --> + + #end + + + + +> + \ No newline at end of file === modified file 'local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/javascript/gadataelement.js' --- local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/javascript/gadataelement.js 2010-11-02 11:35:05 +0000 +++ local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/javascript/gadataelement.js 2010-11-03 09:50:21 +0000 @@ -320,5 +320,100 @@ window.open('','chartWindowDataElement','width=' + sWidth + ', height=' + sHeight + ', ' + 'left=' + LeftPosition + ', top=' + TopPosition + ', ' + 'location=no, menubar=no, ' + 'status=no, toolbar=no, scrollbars=yes, resizable=yes'); return true; } -// formValidations Function End - +// formValidations Function DataElements End + + +//Graphical Analysis Form Indicators +function formValidationsIndicator() +{ + + //var selectedServices = document.getElementById("selectedServices"); + + var selOUListLength = document.ChartGenerationForm.orgUnitListCB.options.length;//alert(selOUListLength); + var selIndicatorsListSize = document.ChartGenerationForm.selectedIndicators.options.length;//alert(selDEListSize); + + var orgUnitListCB = document.getElementById("orgUnitListCB"); + var selectedIndicators = document.getElementById("selectedIndicators"); + + var orgUnitGroupCB = document.getElementById("orgUnitGroupList"); + + var selOUGroupListLength = document.ChartGenerationForm.orgUnitGroupList.options.length; + + var selyearLB = document.getElementById("yearLB"); + var selperiodLB = document.getElementById("periodLB"); + + var periodTypeList = document.getElementById( "periodTypeLB" ); + var periodTypeId = periodTypeList.options[ periodTypeList.selectedIndex ].value;//alert(periodTypeId); + + var k = 0; + + if( selIndicatorsListSize <= 0 ) + { + alert( "Please Select Indicator(s)" ); + return false; + } + + else if( selOUListLength <= 0 ) + { + alert( "Please Select OrganisationUnit" ); + return false; + } + + else if(document.getElementById( 'ougGroupSetCB' ).checked && orgUnitGroupCB.selectedIndex < 0 ) + { + alert( "Please select OrgUnitGroup" ); + return false; + /*if( orgUnitGroupCB.selectedIndex < 0 ) + { + alert( "Please select OrgUnitGroup" ); + + }*/ + } + else if( periodTypeId == yearlyPeriodTypeName ) + { + if( selyearLB.selectedIndex < 0 ) + { + alert("Please select Year(s)"); + return false; + } + } + else + { + if( selyearLB.selectedIndex < 0 ) + { + alert("Please select Year(s)"); + return false; + } + if( selperiodLB.selectedIndex < 0 ) + { + alert("Please select Period(s)"); + return false; + } + } + + if( selIndicatorsListSize > 0 ) + { + for(k=0;k 0 ) + { + for(k = 0; k < orgUnitListCB.options.length; k++) + { + orgUnitListCB.options[k].selected = true; + } + } +/* + var sWidth = 1000; + var sHeight = 1000; + var LeftPosition=(screen.width)?(screen.width-sWidth)/2:100; + var TopPosition=(screen.height)?(screen.height-sHeight)/2:100; + + window.open('','chartWindowDataElement','width=' + sWidth + ', height=' + sHeight + ', ' + 'left=' + LeftPosition + ', top=' + TopPosition + ', ' + 'location=no, menubar=no, ' + 'status=no, toolbar=no, scrollbars=yes, resizable=yes'); +*/ + return true; +} +// formValidations Function Indicators End === modified file 'local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/menu.vm' --- local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/menu.vm 2010-10-28 09:17:13 +0000 +++ local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/menu.vm 2010-11-03 09:50:21 +0000 @@ -6,6 +6,7 @@
  • Regular
  • Annual
  • $i18n.getString( "dataelements_wise" )
  • +
  • $i18n.getString( "indicator_wise" )
  • === added file 'local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/menuWithTreeForGAIndicator.vm' --- local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/menuWithTreeForGAIndicator.vm 1970-01-01 00:00:00 +0000 +++ local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/menuWithTreeForGAIndicator.vm 2010-11-03 09:50:21 +0000 @@ -0,0 +1,37 @@ +

    $i18n.getString( "dashboard" )DashBoard

    + +
    + + $i18n.getString( +
    +#parse( "/dhis-web-commons/ouwt/orgunittree.vm" ) + + +