=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonProgram.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonProgram.vm 2012-07-31 06:10:19 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonProgram.vm 2012-08-07 08:14:58 +0000 @@ -5,6 +5,7 @@ "description": "$!encoder.jsEncode( ${program.description} )", "type": "$!program.type", "displayProvidedOtherFacility": "$!program.displayProvidedOtherFacility", + "displayIncidentDate": "$!program.displayIncidentDate", "dateOfEnrollmentDescription": "$!encoder.jsEncode( ${program.dateOfEnrollmentDescription} )", "dateOfIncidentDescription": "$!encoder.jsEncode( ${program.dateOfIncidentDescription} )", "programStageCount": "${program.programStages.size()}", === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPrograms.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPrograms.vm 2011-09-28 07:11:18 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPrograms.vm 2012-08-07 08:14:58 +0000 @@ -1,12 +1,11 @@ #set( $size = $programs.size() ) { - "organisationUnit": "$!encoder.jsonEncode( $!{organisationUnit.name} )", - "organisationUnitId": "$!{organisationUnit.id}", "programs": [ #foreach( $program in $programs ) { "id": ${program.id} , - "name": "$!encoder.jsonEncode( ${program.name} )" + "name": "$!encoder.jsonEncode( ${program.name} )", + "type": "$program.type" }#if( $velocityCount < $size ),#end #end] } \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2012-08-06 09:34:34 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2012-08-07 08:14:58 +0000 @@ -252,4 +252,5 @@ insert = Insert visit_selected_program_stage = Visited selected program stage intro_patient_aggregation_query_builder = Define formulas, expressions, rules for aggregation data from name-based to aggregation system -show_incident_date = Show incident date \ No newline at end of file +show_incident_date = Show incident date +display_date_of_incident = Display date of incident \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js 2012-08-06 09:34:34 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js 2012-08-07 08:14:58 +0000 @@ -20,6 +20,9 @@ var displayProvidedOtherFacility = ( json.program.displayProvidedOtherFacility == 'true') ? i18n_yes : i18n_no; setInnerHTML( 'displayProvidedOtherFacilityField', displayProvidedOtherFacility ); + var displayIncidentDate = ( json.program.displayIncidentDate == 'true') ? i18n_yes : i18n_no; + setInnerHTML( 'displayIncidentDateField', displayIncidentDate ); + setInnerHTML( 'dateOfEnrollmentDescriptionField', json.program.dateOfEnrollmentDescription ); setInnerHTML( 'dateOfIncidentDescriptionField', json.program.dateOfIncidentDescription ); setInnerHTML( 'programStageCountField', json.program.programStageCount ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programList.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programList.vm 2012-05-30 03:52:28 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programList.vm 2012-08-07 08:14:58 +0000 @@ -51,6 +51,7 @@




+