← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2512: change getFullOperands to getOperands for custom data entry form design

 

------------------------------------------------------------
revno: 2512
committer: Tri <Tri@Tri-Laptop>
branch nick: dhis2
timestamp: Tue 2011-01-11 09:26:17 +0700
message:
  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	2010-11-29 17:00:23 +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 02:26:17 +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,14 +157,15 @@
         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() );
@@ -176,24 +177,27 @@
         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	2010-10-13 04:45:23 +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 02:26:17 +0000
@@ -162,8 +162,8 @@
 
         autoSave = (Boolean) userSettingService.getUserSetting( UserSettingService.AUTO_SAVE_DATA_ENTRY_FORM, false );
 
-        operands = new ArrayList<DataElementOperand>( dataElementCategoryService.getFullOperands( dataSet
-            .getDataElements() ) );
+        operands = new ArrayList<DataElementOperand>( dataElementCategoryService
+            .getOperands( dataSet.getDataElements() ) );
 
         Collections.sort( operands, new DataElementOperandNameComparator() );