dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21216
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9972: Add subtitle of grid for visit schedule when to downloading.
------------------------------------------------------------
revno: 9972
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-03-05 10:28:49 +0700
message:
Add subtitle of grid for visit schedule when to downloading.
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.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-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java 2013-03-04 14:05:33 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java 2013-03-05 03:28:49 +0000
@@ -374,6 +374,8 @@
Grid grid = new ListGrid();
grid.setTitle( program.getDisplayName() );
+ grid.setSubtitle( i18n.getString( "from" ) + " : " + DateUtils.getMediumDateString( startDate ) + " "
+ + i18n.getString( "to" ) + " : " + DateUtils.getMediumDateString( endDate ) );
List<PatientIdentifierType> identifierTypes = program.getPatientIdentifierTypes();
@@ -391,7 +393,8 @@
{
for ( PatientIdentifier identifier : patient.getIdentifiers() )
{
- if ( identifier.getIdentifierType()!=null && identifier.getIdentifierType().getId() == identifierType.getId() )
+ if ( identifier.getIdentifierType() != null
+ && identifier.getIdentifierType().getId() == identifierType.getId() )
{
displayPatientName = identifier.getIdentifier();
break;