dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30011
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15221: https://blueprints.launchpad.net/dhis-mobile/+spec/enhance-tracker-client
------------------------------------------------------------
revno: 15221
committer: sherylyn.marie
branch nick: dhis2
timestamp: Mon 2014-05-12 14:45:39 +0800
message:
https://blueprints.launchpad.net/dhis-mobile/+spec/enhance-tracker-client
#1 ALL TRACKED ENTITY SUPPORT
Pending Registration Screen
modified:
dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/mobile/service/ActivityReportingServiceImpl.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-services/dhis-service-mobile/src/main/java/org/hisp/dhis/mobile/service/ActivityReportingServiceImpl.java'
--- dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/mobile/service/ActivityReportingServiceImpl.java 2014-05-09 10:07:18 +0000
+++ dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/mobile/service/ActivityReportingServiceImpl.java 2014-05-12 06:45:39 +0000
@@ -772,6 +772,10 @@
{
patientModel.setTrackedEntityName( patient.getTrackedEntity().getName() );
}
+ else
+ {
+ patientModel.setTrackedEntityName( "" );
+ }
this.setSetting( getSettings() );
@@ -1597,6 +1601,28 @@
}
}
}
+
+ //get tracked entity with no tracked entity name
+ resultSet += "Others$";
+ for ( TrackedEntityInstance patient : patients )
+ {
+ if ( patient.getTrackedEntity() == null)
+ {
+ resultSet += patient.getId() + "/";
+ String attText = "";
+ for ( TrackedEntityAttribute displayAttribute : displayAttributes )
+ {
+ TrackedEntityAttributeValue value = attValueService.getTrackedEntityAttributeValue( patient,
+ displayAttribute );
+ if ( value != null )
+ {
+ attText += value.getValue() + " ";
+ }
+ }
+ attText = attText.trim();
+ resultSet += attText + "$";
+ }
+ }
return resultSet;
}