dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #09488
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2530: Reverted r 2512, 'change getFullOperands to getOperands for custom data entry form design'
------------------------------------------------------------
revno: 2530
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-01-11 19:18:03 +0100
message:
Reverted r 2512, 'change getFullOperands to getOperands for custom data entry form design'
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicator/GetIndicatorListAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicator/GetIndicatorListAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicator/GetIndicatorListAction.java 2011-01-11 02:26:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicator/GetIndicatorListAction.java 2011-01-11 18:18:03 +0000
@@ -49,7 +49,7 @@
* ch_bharath1 $
*/
public class GetIndicatorListAction
- extends ActionPagingSupport<Indicator>
+extends ActionPagingSupport<Indicator>
{
// -------------------------------------------------------------------------
// Dependencies
@@ -133,7 +133,7 @@
}
private String key;
-
+
public String getKey()
{
return key;
@@ -157,15 +157,14 @@
else if ( dataDictionaryId == -1 ) // All, reset current data dictionary
{
dataDictionaryModeManager.setCurrentDataDictionary( null );
-
+
dataDictionaryId = null;
}
- else
- // Specified, set current data dictionary
+ else // Specified, set current data dictionary
{
dataDictionaryModeManager.setCurrentDataDictionary( dataDictionaryId );
}
-
+
dataDictionaries = new ArrayList<DataDictionary>( dataDictionaryService.getAllDataDictionaries() );
Collections.sort( dataDictionaries, new DataDictionaryNameComparator() );
@@ -177,27 +176,24 @@
if ( isNotBlank( key ) ) // Filter on key only if set
{
this.paging = createPaging( indicatorService.getIndicatorCountByName( key ) );
-
- indicators = new ArrayList<Indicator>( indicatorService.getIndicatorsBetweenByName( key, paging
- .getStartPos(), paging.getPageSize() ) );
+
+ indicators = new ArrayList<Indicator>( indicatorService.getIndicatorsBetweenByName( key, paging.getStartPos(), paging.getPageSize() ) );
}
else if ( dataDictionaryId != null )
{
- indicators = new ArrayList<Indicator>( dataDictionaryService.getDataDictionary( dataDictionaryId )
- .getIndicators() );
-
+ indicators = new ArrayList<Indicator>( dataDictionaryService.getDataDictionary( dataDictionaryId ).getIndicators() );
+
this.paging = createPaging( indicators.size() );
-
+
indicators = getBlockElement( indicators, paging.getStartPage(), paging.getEndPos() );
}
else
{
this.paging = createPaging( indicatorService.getIndicatorCount() );
-
- indicators = new ArrayList<Indicator>( indicatorService.getIndicatorsBetween( paging.getStartPos(), paging
- .getPageSize() ) );
+
+ indicators = new ArrayList<Indicator>( indicatorService.getIndicatorsBetween( paging.getStartPos(), paging.getPageSize() ) );
}
-
+
Collections.sort( indicators, indicatorComparator );
displayPropertyHandler.handle( indicators );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java 2011-01-11 02:26:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java 2011-01-11 18:18:03 +0000
@@ -162,8 +162,8 @@
autoSave = (Boolean) userSettingService.getUserSetting( UserSettingService.AUTO_SAVE_DATA_ENTRY_FORM, false );
- operands = new ArrayList<DataElementOperand>( dataElementCategoryService
- .getOperands( dataSet.getDataElements() ) );
+ operands = new ArrayList<DataElementOperand>( dataElementCategoryService.getFullOperands( dataSet
+ .getDataElements() ) );
Collections.sort( operands, new DataElementOperandNameComparator() );