=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-12-17 02:42:30 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-12-17 08:43:52 +0000 @@ -485,4 +485,5 @@ percent_incomplete = Percent Incomplete percent_Scheduled = Percent scheduled percent_overdue = Percent Overdue -scheduled = Scheduled \ No newline at end of file +scheduled = Scheduled +start = Start \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/statisticalReport.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/statisticalReport.js 2012-12-17 03:12:41 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/statisticalReport.js 2012-12-17 08:43:52 +0000 @@ -8,7 +8,6 @@ function generatedStatisticalProgramReport() { - hideById('backBtn'); hideById('statisticalReportDiv'); hideById('detailsDiv'); showLoader(); @@ -46,12 +45,13 @@ { setFieldValue('status',status); setFieldValue('total',total); - var subTitle = getFieldValue("programStageName") - + " - " + getStatusString( status ) - + " - " + i18n_total_result + ": " + total; - setInnerHTML('gridSubtitleDetails', subTitle ); + var programStageTitle = "» " + getStatusString( status ) + + " - " + getFieldValue("programStageName"); + setInnerHTML('programStageTitleLbl', programStageTitle ); + setInnerHTML('totalLbl', i18n_total_result + ": " + total ); + showById('totalLbl'); + showById('programStageTitleLbl'); showById( 'detailsDiv'); - showById('backBtn'); hideLoader(); }); } @@ -67,34 +67,46 @@ } } -function backOnClick() -{ - hideById('backBtn'); - showById('reportTbl'); - hideById('detailsDiv'); -} - function loadDataEntry( programStageInstanceId ) { + hideById("detailsDiv"); jQuery('#viewRecordsDiv' ) .load( 'viewProgramStageRecords.action?programStageInstanceId=' + programStageInstanceId ,function(){ jQuery("#viewRecordsDiv :input" ).attr("disabled", true); jQuery("#viewRecordsDiv :input" ).datepicker("destroy"); - showById("reportTitle"); - hideById("patientInforTB"); + showById('patientNameLbl'); jQuery(".ui-combobox" ).hide(); + showById("viewRecordsDiv"); hideById('inputCriteriaDiv'); - }) - .dialog({ - title: i18n_reports, - maximize: true, - closable: true, - modal:false, - overlay:{background:'#000000', opacity:0.1}, - width: 840, - height: 400 + hideById('totalLbl'); }); } -function entryFormContainerOnReady(){} \ No newline at end of file +function entryFormContainerOnReady(){} + +function showCriteriaForm() +{ + showById('reportForm'); + hideById('statisticalReportDiv'); +} + +function showStatisticalReport() +{ + showById('reportTbl'); + hideById('detailsDiv'); + hideById('totalLbl'); + hideById('viewRecordsDiv'); + hideById('programStageTitleLbl'); + hideById('patientNameLbl'); + hideById('totalLbl'); +} + +function detailsReport() +{ + hideById('viewRecordsDiv'); + showById('detailsDiv'); + showById('totalLbl'); + showById('programStageTitleLbl'); + hideById('patientNameLbl'); +} === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportDataEntryForm.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportDataEntryForm.vm 2012-12-10 12:54:54 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportDataEntryForm.vm 2012-12-17 08:43:52 +0000 @@ -8,7 +8,7 @@ #if( $patient ) - $i18n.getString( "full_name" ): + $i18n.getString( "full_name" ): $encoder.htmlEncode( $patient.getFullName() ) ( $i18n.getString( "$patient.gender" ) ) @@ -62,6 +62,7 @@ enable('completeBtn'); disable('uncompleteBtn'); #end + setInnerHTML("patientNameLbl", "» " + "$encoder.jsEncode( $patient.getFullName() )"); }); var i18n_value_must_integer = '$encoder.jsEscape( $i18n.getString( "value_must_integer" ) , "'")'; === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/statisticalProgramDetailsReport.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/statisticalProgramDetailsReport.vm 2012-12-17 03:12:41 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/statisticalProgramDetailsReport.vm 2012-12-17 08:43:52 +0000 @@ -1,11 +1,3 @@ -
- - @@ -68,8 +60,6 @@
-
-