dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17787
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7213: local/in CCEM work in progress
------------------------------------------------------------
revno: 7213
committer: Mithilesh Kumar Thakur<mithilesh.hisp@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-06-06 17:35:02 +0530
message:
local/in CCEM work in progress
modified:
local/in/dhis-web-coldchain/src/main/java/org/hisp/dhis/coldchain/inventory/action/GetInventoryTypeAttributeListAction.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 'local/in/dhis-web-coldchain/src/main/java/org/hisp/dhis/coldchain/inventory/action/GetInventoryTypeAttributeListAction.java'
--- local/in/dhis-web-coldchain/src/main/java/org/hisp/dhis/coldchain/inventory/action/GetInventoryTypeAttributeListAction.java 2012-05-17 07:33:28 +0000
+++ local/in/dhis-web-coldchain/src/main/java/org/hisp/dhis/coldchain/inventory/action/GetInventoryTypeAttributeListAction.java 2012-06-06 12:05:02 +0000
@@ -6,6 +6,7 @@
import java.util.Collections;
import java.util.List;
+import org.hisp.dhis.coldchain.inventory.InventoryType;
import org.hisp.dhis.coldchain.inventory.InventoryTypeAttribute;
import org.hisp.dhis.coldchain.inventory.InventoryTypeAttributeService;
import org.hisp.dhis.coldchain.inventory.InventoryTypeService;
@@ -74,18 +75,14 @@
inventoryTypeAttributes = new ArrayList<InventoryTypeAttribute>( inventoryTypeAttributeService.getInventoryTypeAttributesBetweenByName( key, paging.getStartPos(), paging.getPageSize() ));
}
- /*
+
else if ( id != null )
{
InventoryType inventoryType = inventoryTypeService.getInventoryType( id );
inventoryTypeAttributes = new ArrayList<InventoryTypeAttribute>( inventoryType.getInventoryTypeAttributes() );
-
- this.paging = createPaging( inventoryTypeAttributes.size() );
-
- inventoryTypeAttributes = getBlockElement( inventoryTypeAttributes, paging.getStartPos(), paging.getPageSize() );
}
- */
+
else
{
this.paging = createPaging( inventoryTypeAttributeService.getInventoryTypeAttributeCount() );