dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19126
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8221: Add text/image to indicate the completed programs
------------------------------------------------------------
revno: 8221
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-09-24 14:42:21 +0700
message:
Add text/image to indicate the completed programs
modified:
dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/GetPatientProgramListAction.java
dhis-2/dhis-web/dhis-web-light/src/main/resources/org/hisp/dhis/light/i18n_module.properties
dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/namebased/beneficiaryProgramList.vm
--
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-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/GetPatientProgramListAction.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/GetPatientProgramListAction.java 2012-09-24 06:51:00 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/GetPatientProgramListAction.java 2012-09-24 07:42:21 +0000
@@ -258,7 +258,7 @@
patient = patientService.getPatient( patientId );
for ( ProgramInstance programInstance : programInstanceService.getProgramInstances( patient ) )
{
- if ( !programInstance.getProgram().isSingleEvent() )
+ if ( !programInstance.getProgram().isSingleEvent() && !programInstance.isCompleted())
{
programInstances.add( programInstance );
}
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/resources/org/hisp/dhis/light/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-light/src/main/resources/org/hisp/dhis/light/i18n_module.properties 2012-09-24 03:40:52 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/resources/org/hisp/dhis/light/i18n_module.properties 2012-09-24 07:42:21 +0000
@@ -73,6 +73,7 @@
other_programs=Other Programs
available_programs=Available Programs
no_enrolled_programs=No Enrolled Programs
+no_completed_programs=No Completed Programs
enroll=Enroll
enrollment_date=Enrollment Date
incident_date=Incident Date
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/namebased/beneficiaryProgramList.vm'
--- dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/namebased/beneficiaryProgramList.vm 2012-09-24 06:51:00 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/namebased/beneficiaryProgramList.vm 2012-09-24 07:42:21 +0000
@@ -35,8 +35,10 @@
<ul>
#if( $listOfCompletedProgram.size() != 0 )
#foreach( $programInstance in $listOfCompletedProgram )
- $programInstance.program().name()
+ $programInstance.getProgram().getName()
#end
+ #else
+ <li>$i18n.getString("no_completed_programs")</li>
#end
</ul>
</p>