=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java 2011-07-12 15:55:08 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java 2011-07-12 17:45:21 +0000 @@ -246,8 +246,8 @@ final String metaDataCode = "
" + " " - + " " - + " "; + + "" + + ""; StringBuffer sb = new StringBuffer(); @@ -380,17 +380,6 @@ inputHtml = inputHtml.replace( "$DISABLED", disabled ); inputHtml = inputHtml.replace( STYLE_TAG, backgroundColor ); - if ( minMaxDataElement == null ) - { - inputHtml = inputHtml.replace( "$MIN", minValue ); - inputHtml = inputHtml.replace( "$MAX", maxValue ); - } - else - { - inputHtml = inputHtml.replace( "$MIN", String.valueOf( minMaxDataElement.getMin() ) ); - inputHtml = inputHtml.replace( "$MAX", String.valueOf( minMaxDataElement.getMax() ) ); - } - inputMatcher.appendReplacement( sb, inputHtml ); } } === modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/GetDataValuesForDataSetAction.java' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/GetDataValuesForDataSetAction.java 2011-07-12 14:44:28 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/GetDataValuesForDataSetAction.java 2011-07-12 17:20:02 +0000 @@ -33,6 +33,8 @@ import org.hisp.dhis.datavalue.DataValue; import org.hisp.dhis.datavalue.DataValueService; import org.hisp.dhis.de.state.SelectedStateManager; +import org.hisp.dhis.minmax.MinMaxDataElement; +import org.hisp.dhis.minmax.MinMaxDataElementService; import org.hisp.dhis.organisationunit.OrganisationUnit; import org.hisp.dhis.period.Period; @@ -54,6 +56,13 @@ { this.dataValueService = dataValueService; } + + private MinMaxDataElementService minMaxDataElementService; + + public void setMinMaxDataElementService( MinMaxDataElementService minMaxDataElementService ) + { + this.minMaxDataElementService = minMaxDataElementService; + } private SelectedStateManager selectedStateManager; @@ -72,6 +81,13 @@ { return dataValues; } + + private Collection