=== 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 2011-09-28 07:11:18 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonProgram.vm 2011-10-04 08:53:41 +0000 @@ -3,6 +3,9 @@ "id": "$program.id", "name": "$!encoder.jsEncode( ${program.name} )", "description": "$!encoder.jsEncode( ${program.description} )", + "singleEvent": "$!program.singleEvent", + "dateOfEnrollmentDescription": "$!encoder.jsEncode( ${program.dateOfEnrollmentDescription} )", + "dateOfIncidentDescription": "$!encoder.jsEncode( ${program.dateOfIncidentDescription} )", "programStageCount": "${program.programStages.size()}", "maxDay": "${program.maxDaysAllowedInputData}" } === 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 2011-10-03 07:45:06 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2011-10-04 08:53:41 +0000 @@ -326,7 +326,7 @@ edit_single_program_validation = Edit single program validation edit_multi_program_validation = Edit multi program validation program_validation_details = Program Validation Details -define_program_validation = Define Program Validation +program_validation_management = Define program validation managenent create_new_single_validation = Create new single validation create_new_multi_validation = Create new multi validation save_success = Save successfully @@ -343,7 +343,7 @@ aggregation_data_element_in_use = Aggregation data element is in use add_more_option_to_search = Add more option to search delete_program_data_entry_confirm = Do you want to delete program data entry ? -patient_chart_management = neneficiary chart management +patient_chart_management = Bneneficiary chart management create_new_patient_chart = Create new beneficiary Chart edit_patient_chart = Edit beneficiary chart chart_type = Chart type === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientChart.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientChart.js 2011-09-06 02:47:21 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientChart.js 2011-10-04 08:53:41 +0000 @@ -5,10 +5,28 @@ id:patientChartId }, function(json){ setInnerHTML( 'idField', json.id ); - setInnerHTML( 'titleField', json.title ); - setInnerHTML( 'typeField', json.type ); - setInnerHTML( 'sizeField', json.size ); - setInnerHTML( 'regressionField', json.regression ); + setInnerHTML( 'titleField', json.title ); + + var typeMap = { + 'bar' : i18n_bar_chart, + 'bar3d' : i18n_bar3d_chart, + 'line' : i18n_line_chart, + 'line3d' : i18n_line3d_chart + }; + var type = json.type; + setInnerHTML( 'typeField', typeMap[type] ); + + var sizeMap = { + 'normal' : i18n_normal, + 'wide' : i18n_wide, + 'tall' : i18n_tall + }; + var size = json.size; + setInnerHTML( 'sizeField', sizeMap[size] ); + + var regression = ( json.regression == 'true') ? i18n_yes : i18n_no; + + setInnerHTML( 'regressionField', regression ); setInnerHTML( 'dataElementField', json.dataElement ); showDetails(); }); === 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 2011-10-04 02:34:03 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js 2011-10-04 08:53:41 +0000 @@ -9,7 +9,12 @@ }, function(json){ setInnerHTML( 'idField', json.program.id ); setInnerHTML( 'nameField', json.program.name ); - setInnerHTML( 'descriptionField', json.program.description ); + setInnerHTML( 'descriptionField', json.program.description ); + var singleEvent = ( json.program.singleEvent == 'true') ? i18n_yes : i18n_no; + + setInnerHTML( 'singleEventField', singleEvent ); + setInnerHTML( 'dateOfEnrollmentDescriptionField', json.program.dateOfEnrollmentDescription ); + setInnerHTML( 'dateOfIncidentDescriptionField', json.program.dateOfIncidentDescription ); setInnerHTML( 'programStageCountField', json.program.programStageCount ); setInnerHTML( 'maxDaysFromStartField', json.program.maxDay ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programValidation.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programValidation.js 2011-09-28 07:11:18 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programValidation.js 2011-10-04 08:53:41 +0000 @@ -15,7 +15,17 @@ setInnerHTML( 'idField', json.validation.id ); setInnerHTML( 'descriptionField', json.validation.description ); setInnerHTML( 'leftSideField', json.validation.leftSide ); - setInnerHTML( 'rightSideField', json.validation.rightSide ); + if( json.validation.rightSide != '1==1') + { + setInnerHTML( 'leftSideTitle', i18n_left_side ); + setInnerHTML( 'rightSideField', json.validation.rightSide ); + showById('rightSideDiv'); + } + else + { + setInnerHTML( 'leftSideTitle', i18n_condition ); + hideById('rightSideDiv'); + } setInnerHTML( 'programField', json.validation.program ); showDetails(); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientChartList.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientChartList.vm 2011-10-03 07:45:06 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientChartList.vm 2011-10-04 08:53:41 +0000 @@ -2,7 +2,10 @@ - + @@ -54,7 +57,16 @@ === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updatePatientIdentifierType.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updatePatientIdentifierType.vm 2011-09-29 04:17:34 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updatePatientIdentifierType.vm 2011-10-04 08:53:41 +0000 @@ -39,7 +39,7 @@
+
+ +
@@ -42,10 +45,10 @@



-


-


-


-


+


+


+


+


- @@ -50,7 +50,7 @@
-