=== modified file 'local/in/dhis-in-api/src/main/java/org/hisp/dhis/lookup/Lookup.java' --- local/in/dhis-in-api/src/main/java/org/hisp/dhis/lookup/Lookup.java 2013-12-24 12:32:37 +0000 +++ local/in/dhis-in-api/src/main/java/org/hisp/dhis/lookup/Lookup.java 2013-12-26 10:29:48 +0000 @@ -8,6 +8,8 @@ public static final String BANK = "BANK"; + public static final String CCEI_AGG_TYPE = "CCEI_AGG_TYPE"; + private String type; private String value; === added file 'local/in/dhis-web-maintenance-ccem/src/main/java/org/hisp/dhis/ccem/aggregation/action/AddAggregationQueryAction.java' --- local/in/dhis-web-maintenance-ccem/src/main/java/org/hisp/dhis/ccem/aggregation/action/AddAggregationQueryAction.java 1970-01-01 00:00:00 +0000 +++ local/in/dhis-web-maintenance-ccem/src/main/java/org/hisp/dhis/ccem/aggregation/action/AddAggregationQueryAction.java 2013-12-26 10:29:48 +0000 @@ -0,0 +1,43 @@ +package org.hisp.dhis.ccem.aggregation.action; + +import org.hisp.dhis.caseaggregation.CaseAggregationConditionService; +import org.hisp.dhis.dataelement.DataElementService; + +import com.opensymphony.xwork2.Action; + +public class AddAggregationQueryAction implements Action +{ + // ------------------------------------------------------------------------- + // Dependencies + // ------------------------------------------------------------------------- + + private CaseAggregationConditionService aggregationConditionService; + + public void setAggregationConditionService( CaseAggregationConditionService aggregationConditionService ) + { + this.aggregationConditionService = aggregationConditionService; + } + + private DataElementService dataElementService; + + public void setDataElementService(DataElementService dataElementService) + { + this.dataElementService = dataElementService; + } + + // ------------------------------------------------------------------------- + // Input/ Output + // ------------------------------------------------------------------------- + + // ------------------------------------------------------------------------- + // Action implementation + // ------------------------------------------------------------------------- + public String execute() + throws Exception + { + //aggregationConditionService.addCaseAggregationCondition(arg0); + + return SUCCESS; + } + +} === added file 'local/in/dhis-web-maintenance-ccem/src/main/java/org/hisp/dhis/ccem/aggregation/action/AddAggregationQueryFormAction.java' --- local/in/dhis-web-maintenance-ccem/src/main/java/org/hisp/dhis/ccem/aggregation/action/AddAggregationQueryFormAction.java 1970-01-01 00:00:00 +0000 +++ local/in/dhis-web-maintenance-ccem/src/main/java/org/hisp/dhis/ccem/aggregation/action/AddAggregationQueryFormAction.java 2013-12-26 10:29:48 +0000 @@ -0,0 +1,61 @@ +package org.hisp.dhis.ccem.aggregation.action; + +import java.util.ArrayList; +import java.util.List; + +import org.hisp.dhis.dataelement.DataElement; +import org.hisp.dhis.dataelement.DataElementService; +import org.hisp.dhis.lookup.Lookup; +import org.hisp.dhis.lookup.LookupService; + +import com.opensymphony.xwork2.Action; + +public class AddAggregationQueryFormAction implements Action +{ + // ------------------------------------------------------------------------- + // Dependencies + // ------------------------------------------------------------------------- + private LookupService lookupService; + + public void setLookupService(LookupService lookupService) + { + this.lookupService = lookupService; + } + + private DataElementService dataElementService; + + public void setDataElementService(DataElementService dataElementService) + { + this.dataElementService = dataElementService; + } + + // ------------------------------------------------------------------------- + // Input/ Output + // ------------------------------------------------------------------------- + List lookups; + + public List getLookups() + { + return lookups; + } + + List dataElementList; + + public List getDataElementList() + { + return dataElementList; + } + + // ------------------------------------------------------------------------- + // Action implementation + // ------------------------------------------------------------------------- + public String execute() + throws Exception + { + lookups = new ArrayList( lookupService.getAllLookupsByType( Lookup.CCEI_AGG_TYPE ) ); + + dataElementList = new ArrayList( dataElementService.getAllActiveDataElements() ); + + return SUCCESS; + } +} === modified file 'local/in/dhis-web-maintenance-ccem/src/main/resources/META-INF/dhis/beans.xml' --- local/in/dhis-web-maintenance-ccem/src/main/resources/META-INF/dhis/beans.xml 2013-12-24 12:32:37 +0000 +++ local/in/dhis-web-maintenance-ccem/src/main/resources/META-INF/dhis/beans.xml 2013-12-26 10:29:48 +0000 @@ -740,5 +740,11 @@ scope="prototype"> + + + + \ No newline at end of file === modified file 'local/in/dhis-web-maintenance-ccem/src/main/resources/struts.xml' --- local/in/dhis-web-maintenance-ccem/src/main/resources/struts.xml 2013-12-24 12:32:37 +0000 +++ local/in/dhis-web-maintenance-ccem/src/main/resources/struts.xml 2013-12-26 10:29:48 +0000 @@ -675,10 +675,9 @@ /main.vm - /dhis-web-maintenance-ccem/addAggregationQueryForm.vm + /dhis-web-maintenance-ccem/addAggregationQuery.vm /dhis-web-maintenance-ccem/menu.vm javascript/aggregationEngine.js - === added file 'local/in/dhis-web-maintenance-ccem/src/main/webapp/dhis-web-maintenance-ccem/addAggregationQuery.vm' --- local/in/dhis-web-maintenance-ccem/src/main/webapp/dhis-web-maintenance-ccem/addAggregationQuery.vm 1970-01-01 00:00:00 +0000 +++ local/in/dhis-web-maintenance-ccem/src/main/webapp/dhis-web-maintenance-ccem/addAggregationQuery.vm 2013-12-26 10:29:48 +0000 @@ -0,0 +1,47 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
$i18n.getString( "aggregation_query_builder_detail" )
+ +
+ +
+ + +

+ + + +

+ +
=== modified file 'local/in/dhis-web-maintenance-ccem/src/main/webapp/dhis-web-maintenance-ccem/javascript/aggregationEngine.js' --- local/in/dhis-web-maintenance-ccem/src/main/webapp/dhis-web-maintenance-ccem/javascript/aggregationEngine.js 2013-12-24 12:32:37 +0000 +++ local/in/dhis-web-maintenance-ccem/src/main/webapp/dhis-web-maintenance-ccem/javascript/aggregationEngine.js 2013-12-26 10:29:48 +0000 @@ -2,6 +2,6 @@ function showAddAggregationForm() { - window.location.href = 'showAddAggregationForm.action'; + window.location.href = 'addAggregationQueryForm.action'; }