=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/caseaggregation/ShowAddCaseAggregationConditionFormAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/caseaggregation/ShowAddCaseAggregationConditionFormAction.java 2012-01-25 17:11:43 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/caseaggregation/ShowAddCaseAggregationConditionFormAction.java 2012-03-13 08:24:08 +0000 @@ -35,6 +35,8 @@ import org.hisp.dhis.dataelement.DataElement; import org.hisp.dhis.dataelement.DataElementGroup; import org.hisp.dhis.dataelement.DataElementService; +import org.hisp.dhis.dataset.DataSet; +import org.hisp.dhis.dataset.DataSetService; import org.hisp.dhis.patient.PatientAttribute; import org.hisp.dhis.patient.PatientAttributeService; import org.hisp.dhis.patient.comparator.PatientAttributeComparator; @@ -56,7 +58,7 @@ // Dependencies // ------------------------------------------------------------------------- - public DataElementService dataElementService; + public DataSetService dataSetService; public ProgramService programService; @@ -70,7 +72,7 @@ private List patientAttributes; - private List dataElementGroups; + private List dataSets; private List dataElements; @@ -79,7 +81,17 @@ // ------------------------------------------------------------------------- // Getters && Setters // ------------------------------------------------------------------------- - + + public void setProgramService( ProgramService programService ) + { + this.programService = programService; + } + + public void setPatientAttributeService( PatientAttributeService patientAttributeService ) + { + this.patientAttributeService = patientAttributeService; + } + public Integer getId() { return id; @@ -89,37 +101,27 @@ { this.id = id; } - - public List getDataElementGroups() - { - return dataElementGroups; - } public List getPrograms() { return programs; } + public List getDataSets() + { + return dataSets; + } + public List getDataElements() { return dataElements; } - public void setDataElementService( DataElementService dataElementService ) - { - this.dataElementService = dataElementService; - } - - public void setProgramService( ProgramService programService ) - { - this.programService = programService; - } - - public void setPatientAttributeService( PatientAttributeService patientAttributeService ) - { - this.patientAttributeService = patientAttributeService; - } - + public void setDataSetService( DataSetService dataSetService ) + { + this.dataSetService = dataSetService; + } + public List getPatientAttributes() { return patientAttributes; @@ -131,11 +133,10 @@ @Override public String execute() - throws Exception { - dataElementGroups = new ArrayList( dataElementService.getAllDataElementGroups() ); - Collections.sort( dataElementGroups, IdentifiableObjectNameComparator.INSTANCE ); - + dataSets = new ArrayList( dataSetService.getAllDataSets() ); + Collections.sort( dataSets, IdentifiableObjectNameComparator.INSTANCE ); + programs = new ArrayList( programService.getAllPrograms() ); Collections.sort( programs, new ProgramNameComparator() ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/caseaggregation/ShowUpdateCaseAggregationConditionFormAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/caseaggregation/ShowUpdateCaseAggregationConditionFormAction.java 2012-01-25 17:11:43 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/caseaggregation/ShowUpdateCaseAggregationConditionFormAction.java 2012-03-13 08:24:08 +0000 @@ -37,6 +37,8 @@ import org.hisp.dhis.dataelement.DataElement; import org.hisp.dhis.dataelement.DataElementGroup; import org.hisp.dhis.dataelement.DataElementService; +import org.hisp.dhis.dataset.DataSet; +import org.hisp.dhis.dataset.DataSetService; import org.hisp.dhis.patient.PatientAttribute; import org.hisp.dhis.patient.PatientAttributeService; import org.hisp.dhis.patient.comparator.PatientAttributeComparator; @@ -60,7 +62,7 @@ private CaseAggregationConditionService aggregationConditionService; - public DataElementService dataElementService; + public DataSetService dataSetService; public ProgramService programService; @@ -78,9 +80,7 @@ private List patientAttributes; - private List dataElementGroups; - - private List dataElements; + private List dataSets; private List programs; @@ -93,9 +93,9 @@ this.aggregationConditionService = aggregationConditionService; } - public void setDataElementService( DataElementService dataElementService ) + public void setDataSetService( DataSetService dataSetService ) { - this.dataElementService = dataElementService; + this.dataSetService = dataSetService; } public void setProgramService( ProgramService programService ) @@ -123,9 +123,9 @@ return caseAggregation; } - public List getDataElementGroups() + public List getDataSets() { - return dataElementGroups; + return dataSets; } public List getPrograms() @@ -133,11 +133,6 @@ return programs; } - public List getDataElements() - { - return dataElements; - } - public List getPatientAttributes() { return patientAttributes; @@ -151,8 +146,8 @@ public String execute() throws Exception { - dataElementGroups = new ArrayList( dataElementService.getAllDataElementGroups() ); - Collections.sort( dataElementGroups, IdentifiableObjectNameComparator.INSTANCE ); + dataSets = new ArrayList( dataSetService.getAllDataSets() ); + Collections.sort( dataSets, IdentifiableObjectNameComparator.INSTANCE ); programs = new ArrayList( programService.getAllPrograms() ); Collections.sort( programs, new ProgramNameComparator() ); @@ -162,7 +157,7 @@ caseAggregation = aggregationConditionService.getCaseAggregationCondition( id ); description = aggregationConditionService.getConditionDescription( caseAggregation.getAggregationExpression() ); - + return SUCCESS; } } \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/META-INF/dhis/beans.xml' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/META-INF/dhis/beans.xml 2012-02-15 06:47:14 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/META-INF/dhis/beans.xml 2012-03-13 08:24:08 +0000 @@ -649,8 +649,8 @@ id="org.hisp.dhis.patient.action.caseaggregation.ShowAddCaseAggregationConditionFormAction" class="org.hisp.dhis.patient.action.caseaggregation.ShowAddCaseAggregationConditionFormAction" scope="prototype"> - - + + @@ -664,8 +664,8 @@ id="org.hisp.dhis.patient.action.caseaggregation.ShowUpdateCaseAggregationConditionFormAction" class="org.hisp.dhis.patient.action.caseaggregation.ShowUpdateCaseAggregationConditionFormAction" scope="prototype"> - - + + === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml 2012-03-05 12:58:32 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml 2012-03-13 08:24:08 +0000 @@ -689,6 +689,12 @@ /dhis-web-maintenance-patient/responseAggDataElement.vm + + + + /dhis-web-maintenance-patient/responseAggerateDataElement.vm + === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addCaseAggregation.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addCaseAggregation.vm 2012-03-12 04:19:40 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addCaseAggregation.vm 2012-03-13 08:24:08 +0000 @@ -27,14 +27,13 @@ - + - - #foreach( $dataElementGroup in $dataElementGroups) - + #foreach( $dataSet in $dataSets) + #end - @@ -288,8 +287,6 @@