=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageDataElement.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageDataElement.java 2012-01-15 02:14:29 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageDataElement.java 2012-03-07 02:40:08 +0000 @@ -59,8 +59,6 @@ */ private boolean compulsory = false; - private Boolean showOnReport = false; - private Integer sortOrder; public ProgramStageDataElement( ProgramStage programStage, DataElement dataElement, boolean compulsory ) @@ -78,17 +76,6 @@ this.compulsory = compulsory; this.sortOrder = sortOrder; } - - public ProgramStageDataElement( ProgramStage programStage, DataElement dataElement, boolean compulsory, - Boolean showOnReport, Integer sortOrder ) - { - super(); - this.programStage = programStage; - this.dataElement = dataElement; - this.compulsory = compulsory; - this.showOnReport = showOnReport; - this.sortOrder = sortOrder; - } public ProgramStageDataElement() { @@ -134,16 +121,6 @@ this.sortOrder = sortOrder; } - public Boolean getShowOnReport() - { - return showOnReport; - } - - public void setShowOnReport( Boolean showOnReport ) - { - this.showOnReport = showOnReport; - } - // ------------------------------------------------------------------------- // hashCode, equals and toString // ------------------------------------------------------------------------- === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstanceService.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstanceService.java 2012-03-05 04:22:57 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstanceService.java 2012-03-07 02:40:08 +0000 @@ -86,13 +86,7 @@ List get( OrganisationUnit unit, Date after, Date before, Boolean completed ); List getProgramStageInstances( Patient patient, Boolean completed ); - - List getProgramStageInstances( ProgramInstance programInstance, Date startDate, Date endDate , int min, int max ); - - int countProgramStageInstances( ProgramInstance programInstance, Date startDate, Date endDate ); - - Grid getSingleEventReport( ProgramInstance programInstance, Date startDate, Date endDate, int min, int max, I18nFormat format, I18n i18n ); - + List searchProgramStageInstances( ProgramStage programStage, Map searchingKeys, OrganisationUnit orgunit, Date startDate, Date endDate, int min, int max ); Grid getTabularReport( ProgramStage programStage, List dataElements, Map searchingKeys, OrganisationUnit orgunit, Date startDate, Date endDate, int min, int max, I18nFormat format, I18n i18n ); === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstanceStore.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstanceStore.java 2012-03-05 04:22:57 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstanceStore.java 2012-03-07 02:40:08 +0000 @@ -69,10 +69,6 @@ List get( Patient patient, Boolean completed); - List get( ProgramInstance programInstance, Date startDate, Date endDate , int min, int max ); - - int count( ProgramInstance programInstance, Date startDate, Date endDate ); - List get( ProgramStage programStage, OrganisationUnit orgunit, Date startDate, Date endDate, int min, int max ); List get( ProgramStage programStage, Map searchingKeys, OrganisationUnit orgunit, Date startDate, Date endDate, int min, int max ); === modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/startup/TableAlteror.java' --- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/startup/TableAlteror.java 2012-03-05 08:41:21 +0000 +++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/startup/TableAlteror.java 2012-03-07 02:40:08 +0000 @@ -157,6 +157,8 @@ executeSql( "ALTER TABLE relationshiptype RENAME description TO name" ); updateProgramStageInstanceOrgunit(); + + executeSql("ALTER TABLE programstage_dataelements DROP COLUMN showOnReport"); } // ------------------------------------------------------------------------- === 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 2012-03-05 04:22:57 +0000 +++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java 2012-03-07 02:40:08 +0000 @@ -30,7 +30,6 @@ import java.util.Collection; import java.util.Date; import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; @@ -186,84 +185,6 @@ return programStageInstanceStore.get( patient, completed ); } - public List getProgramStageInstances( ProgramInstance programInstance, Date startDate, - Date endDate, int min, int max ) - { - return programStageInstanceStore.get( programInstance, startDate, endDate, min, max ); - } - - public int countProgramStageInstances( ProgramInstance programInstance, Date startDate, Date endDate ) - { - return programStageInstanceStore.count( programInstance, startDate, endDate ); - } - - public Grid getSingleEventReport( ProgramInstance programInstance, Date startDate, Date endDate, int min, int max, - I18nFormat format, I18n i18n ) - { - List programStageInstances = getProgramStageInstances( programInstance, startDate, - endDate, min, max ); - - ProgramStage programStage = programInstance.getProgram().getProgramStages().iterator().next(); - - Collection psDataElements = programStage.getProgramStageDataElements(); - - Collection dataElements = new HashSet(); - for ( ProgramStageDataElement psDataElement : psDataElements ) - { - if ( psDataElement.getShowOnReport() ) - { - dataElements.add( psDataElement.getDataElement() ); - } - } - - // --------------------------------------------------------------------- - // Create a grid - // --------------------------------------------------------------------- - - Grid grid = new ListGrid().setTitle( programInstance.getProgram().getName() ); - grid.setSubtitle( i18n.getString( "from" ) + " " + format.formatDate( startDate ) + " " + i18n.getString( "to" ) - + " " + format.formatDate( endDate ) ); - - // --------------------------------------------------------------------- - // Headers - // --------------------------------------------------------------------- - - for ( DataElement dataElement : dataElements ) - { - grid.addHeader( new GridHeader( dataElement.getName(), false, false ) ); - } - - grid.addHeader( new GridHeader( i18n.getString( "operations" ), false, false ) ); - - // --------------------------------------------------------------------- - // Values - // --------------------------------------------------------------------- - - for ( ProgramStageInstance programStageInstance : programStageInstances ) - { - grid.addRow(); - - for ( DataElement dataElement : dataElements ) - { - PatientDataValue patientDataValue = patientDataValueService.getPatientDataValue( programStageInstance, - dataElement ); - - if ( patientDataValue != null ) - { - grid.addValue( patientDataValue.getValue() ); - } - else - { - grid.addValue( "" ); - } - } - - grid.addValue( programStageInstance.getId() ); - } - - return grid; - } - public List searchProgramStageInstances( ProgramStage programStage, Map searchingKeys, OrganisationUnit orgunit, Date startDate, Date endDate, int min, int max ) { @@ -333,10 +254,6 @@ grid.addHeader( new GridHeader( dataElement.getName(), false, false ) ); } - grid.addHeader( new GridHeader( i18n.getString( "operations" ), true, false ) ); - - grid.addHeader( new GridHeader( i18n.getString( "status" ), true, false ) ); - // --------------------------------------------------------------------- // Values // --------------------------------------------------------------------- @@ -366,10 +283,6 @@ grid.addValue( "" ); } } - - grid.addValue( programStageInstance.getId() ); - - grid.addValue( programStageInstance.isCompleted() ); } } === modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java' --- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java 2012-03-05 04:22:57 +0000 +++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java 2012-03-07 02:40:08 +0000 @@ -178,24 +178,6 @@ } @SuppressWarnings( "unchecked" ) - public List get( ProgramInstance programInstance, Date startDate, Date endDate, int min, - int max ) - { - return getCriteria( Restrictions.eq( "programInstance.id", programInstance.getId() ), - Restrictions.between( "executionDate", startDate, endDate ) ).setFirstResult( min ).setMaxResults( max ) - .list(); - } - - public int count( ProgramInstance programInstance, Date startDate, Date endDate ) - { - Number rs = (Number) getCriteria( Restrictions.eq( "programInstance.id", programInstance.getId() ), - Restrictions.between( "executionDate", startDate, endDate ) ).setProjection( Projections.rowCount() ) - .uniqueResult(); - - return rs != null ? rs.intValue() : 0; - } - - @SuppressWarnings( "unchecked" ) public List get( ProgramStage programStage, OrganisationUnit orgunit, Date startDate, Date endDate, int min, int max ) { === modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/resources/org/hisp/dhis/program/hibernate/ProgramStageDataElement.hbm.xml' --- dhis-2/dhis-services/dhis-service-patient/src/main/resources/org/hisp/dhis/program/hibernate/ProgramStageDataElement.hbm.xml 2012-01-15 02:14:29 +0000 +++ dhis-2/dhis-services/dhis-service-patient/src/main/resources/org/hisp/dhis/program/hibernate/ProgramStageDataElement.hbm.xml 2012-03-07 02:40:08 +0000 @@ -16,8 +16,6 @@ - - === removed file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateSingleEventReportAction.java' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateSingleEventReportAction.java 2012-01-15 02:14:29 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateSingleEventReportAction.java 1970-01-01 00:00:00 +0000 @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2004-2012, University of Oslo - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * * Neither the name of the HISP project nor the names of its contributors may - * be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.hisp.dhis.caseentry.action.report; - -import java.util.Collection; -import java.util.Date; - -import org.hisp.dhis.common.Grid; -import org.hisp.dhis.i18n.I18n; -import org.hisp.dhis.i18n.I18nFormat; -import org.hisp.dhis.paging.ActionPagingSupport; -import org.hisp.dhis.program.ProgramInstance; -import org.hisp.dhis.program.ProgramInstanceService; -import org.hisp.dhis.program.ProgramStageInstance; -import org.hisp.dhis.program.ProgramStageInstanceService; - -/** - * @author Chau Thu Tran - * - * @version $Id: GenerateSingleEventReportAction.java Jan 03, 2012 13:58:34 AM $ - */ - -public class GenerateSingleEventReportAction - extends ActionPagingSupport -{ - // ------------------------------------------------------------------------- - // Dependencies - // ------------------------------------------------------------------------- - - private ProgramInstanceService programInstanceService; - - public void setProgramInstanceService( ProgramInstanceService programInstanceService ) - { - this.programInstanceService = programInstanceService; - } - - private ProgramStageInstanceService programStageInstanceService; - - public void setProgramStageInstanceService( ProgramStageInstanceService programStageInstanceService ) - { - this.programStageInstanceService = programStageInstanceService; - } - - // ------------------------------------------------------------------------- - // Input/Output - // ------------------------------------------------------------------------- - - private Integer programInstanceId; - - public void setProgramInstanceId( Integer programInstanceId ) - { - this.programInstanceId = programInstanceId; - } - - private String startDate; - - public void setStartDate( String startDate ) - { - this.startDate = startDate; - } - - private String endDate; - - public void setEndDate( String endDate ) - { - this.endDate = endDate; - } - - private Collection programStageInstances; - - public Collection getProgramStageInstances() - { - return programStageInstances; - } - - private Grid grid; - - public Grid getGrid() - { - return grid; - } - - private Integer total; - - public Integer getTotal() - { - return total; - } - - private I18n i18n; - - public void setI18n( I18n i18n ) - { - this.i18n = i18n; - } - - private I18nFormat format; - - public void setFormat( I18nFormat format ) - { - this.format = format; - } - - // ------------------------------------------------------------------------- - // Implementation Action - // ------------------------------------------------------------------------- - - public String execute() - throws Exception - { - ProgramInstance programInstance = programInstanceService.getProgramInstance( programInstanceId ); - - Date startValue = format.parseDate( startDate ); - - Date endValue = format.parseDate( endDate ); - - total = programStageInstanceService.countProgramStageInstances( programInstance, startValue, endValue ); - - this.paging = createPaging( total ); - - grid = programStageInstanceService.getSingleEventReport( programInstance, startValue, endValue, paging.getStartPos(), - paging.getPageSize(), format, i18n ); - - return SUCCESS; - } -} === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/META-INF/dhis/beans.xml' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/META-INF/dhis/beans.xml 2012-03-05 08:41:21 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/META-INF/dhis/beans.xml 2012-03-07 02:40:08 +0000 @@ -253,14 +253,6 @@ ref="org.hisp.dhis.dataelement.DataElementCategoryService" /> - - - - - === 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-03-06 08:58:47 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-03-07 02:40:08 +0000 @@ -243,9 +243,6 @@ leftSide=Left Side rightSide=Right Side in_range_due_date_plus_or_minus=In range due date +/- -anonymous_event_report=Anonymous Event -anonymous_event_reports=Anonymous Event Reports -intro_anonymous_event_reports=Create reports based on anonymous events registered in system. Gives an overview of data for each event. activity_planning=Activity Planning back_to_main_menu=Back to main menu of=of === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml 2012-03-05 07:32:05 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml 2012-03-07 02:40:08 +0000 @@ -218,35 +218,6 @@ /content.vm /dhis-web-caseentry/records.vm - - - /content.vm - /dhis-web-caseentry/historyAnonymousEvents.vm - javascript/anonymousRegistration.js - ../dhis-web-caseentry/style/patient.css - - - - /main.vm - /dhis-web-caseentry/singleEventReportForm.vm - /dhis-web-caseentry/reportsMenu.vm - ../dhis-web-commons/ouwt/ouwt.js,javascript/singleEventReport.js - - - - /content.vm - /dhis-web-caseentry/historyAnonymousEvents.vm - ../dhis-web-caseentry/style/patient.css - - - - /content.vm - /dhis-web-caseentry/dataEntryForm.vm - === removed file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/historyAnonymousEvents.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/historyAnonymousEvents.vm 2012-01-15 02:14:29 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/historyAnonymousEvents.vm 1970-01-01 00:00:00 +0000 @@ -1,9 +0,0 @@ -
- #parse( "dhis-web-caseentry/htmlGrid.vm" ) -
- -
- #parse( "/dhis-web-commons/paging/paging.vm" ) -
- -
\ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/index.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/index.vm 2012-03-05 10:55:22 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/index.vm 2012-03-07 02:40:08 +0000 @@ -7,7 +7,6 @@ #introListImgItem( "multipledataEntrySelect.action" "multiple_name_based_data_entry" "dataentry" ) #introListImgItem( "anonymousRegistration.action" "anonymous_events" "dataentry" ) #introListImgItem( "reportSelect.action" "program_summary" "summaryreport" ) - #introListImgItem( "showSingleEventReportForm.action" "anonymous_event_reports" "summaryreport" ) #introListImgItem( "tabularReportSelect.action" "tabular_report" "summaryreport" ) #introListImgItem( "visitplan.action" "visit_plan" "visitplan" ) #introListImgItem( "caseAggregationForm.action" "case_aggregation" "caseaggregation" ) === removed file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEventReport.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEventReport.js 2012-03-05 07:32:05 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEventReport.js 1970-01-01 00:00:00 +0000 @@ -1,88 +0,0 @@ - -function organisationUnitSelected( orgUnits ) -{ - hideById('contentDiv'); - setFieldValue('startDate', ''); - setFieldValue('endDate', ''); - - $.getJSON( 'loadAnonymousPrograms.action',{} - , function( json ) - { - clearListById( 'programId' ); - addOptionById( 'programId', '', i18n_please_select ); - - var preSelectedProgramId = getFieldValue('selectedProgramId'); - for ( i in json.programInstances ) - { - if( preSelectedProgramId == json.programInstances[i].id ) - { - $('#programId').append(''); - } - else - { - $('#programId').append(''); - } - } - - if( json.programInstances.length > 0 ) - { - enable('generateBtn'); - } - else - { - disable('generateBtn'); - } - - } ); -} - -selection.setListenerFunction( organisationUnitSelected ); - -function loadGeneratedReport() -{ - showLoader(); - isAjax = true; - jQuery( "#contentDiv" ).load( "generateSingleEventReport.action", - { - programInstanceId: jQuery('select[id=programId] option:selected').attr('programInstanceId'), - startDate: getFieldValue('startDate'), - endDate: getFieldValue('endDate') - }, function() - { - hideLoader(); - hideById( 'message' ); - showById( 'contentDiv' ); - }); - - return false; -} - -function showDetails( programStageInstanceId ) -{ - $( '#viewRecordsDiv' ) - .load( 'viewAnonymousEvents.action', - { - programStageInstanceId: programStageInstanceId - } - ,function( ) - { - showById('entryFormContainer'); - jQuery("#entryFormContainer :input").attr("disabled", true); - jQuery("#entryFormContainer .ui-datepicker-trigger").each(function() - { - jQuery(this).hide(); - }); - - - }).dialog({ - title: i18n_reports, - maximize: true, - closable: true, - modal:false, - overlay:{background:'#000000', opacity:0.1}, - width: 800, - height: 400 - }); -} - -function entryFormContainerOnReady (){} \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/menu.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/menu.vm 2012-03-05 04:22:57 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/menu.vm 2012-03-07 02:40:08 +0000 @@ -14,7 +14,6 @@

$i18n.getString( "reports" ) 

=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportsMenu.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportsMenu.vm 2012-03-05 12:03:06 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportsMenu.vm 2012-03-07 02:40:08 +0000 @@ -2,7 +2,6 @@

$i18n.getString( "reports" ) 

=== removed file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleEventReportForm.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleEventReportForm.vm 2012-02-17 17:00:18 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleEventReportForm.vm 1970-01-01 00:00:00 +0000 @@ -1,70 +0,0 @@ - - -

$i18n.getString( "anonymous_event_reports" )

-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
- - -
- - -
- -
- -#parse( "dhis-web-commons/loader/loader.vm" ) - -
- - - \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/programstage/UpdateProgramStageAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/programstage/UpdateProgramStageAction.java 2012-01-15 02:14:29 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/programstage/UpdateProgramStageAction.java 2012-03-07 02:40:08 +0000 @@ -120,13 +120,6 @@ this.compulsories = compulsories; } - private List showOnReport = new ArrayList(); - - public void setShowOnReport( List showOnReport ) - { - this.showOnReport = showOnReport; - } - private int programId; public int getProgramId() @@ -170,21 +163,17 @@ ProgramStageDataElement programStageDataElement = programStageDataElementService.get( programStage, dataElement ); - - Boolean isShow = ( showOnReport == null ) ? false : showOnReport.get( i ); if ( programStageDataElement == null ) { programStageDataElement = new ProgramStageDataElement( programStage, dataElement, this.compulsories - .get( i ), isShow, new Integer( i ) ); + .get( i ), new Integer( i ) ); programStageDataElementService.addProgramStageDataElement( programStageDataElement ); } else { programStageDataElement.setCompulsory( this.compulsories.get( i ) ); - programStageDataElement.setShowOnReport( isShow ); - programStageDataElement.setSortOrder( new Integer( i ) ); programStageDataElementService.updateProgramStageDataElement( programStageDataElement ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js 2012-01-30 04:32:58 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js 2012-03-07 02:40:08 +0000 @@ -60,7 +60,6 @@ if( item.selected ){ html = "" + item.text + ""; html += ""; - html += ""; html += ""; selectedList.append( html ); jQuery( item ).remove(); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.js 2012-01-30 08:25:47 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.js 2012-03-07 02:40:08 +0000 @@ -9,10 +9,6 @@ compulsories = jQuery( "#compulsories" ); compulsories.empty(); - showOnReport = jQuery( "#showOnReport" ); - showOnReport.empty(); - - var hasDeShowReport = false; jQuery("#selectedList").find("tr").each( function( i, item ){ selectedDataElementsValidator.append( "" ); var compulsory = jQuery( item ).find( "input[name='compulsory']:first"); @@ -20,14 +16,6 @@ var checked = compulsory.attr('checked') ? true : false; compulsories.append( "" ); - - checked = isShow.attr('checked') ? true : false; - showOnReport.append( "" ); - if( checked ) - { - hasDeShowReport = true; - jQuery( "#checkShowOnReport" ).append( "" ); - } }); }); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programStageList.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programStageList.vm 2012-01-15 02:14:29 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programStageList.vm 2012-03-07 02:40:08 +0000 @@ -40,7 +40,7 @@ $encoder.htmlEncode( $association.description ) - $i18n.getString( + $i18n.getString( 'edit' ) #if( $association.program.singleEvent == 'false' ) $i18n.getString( #end === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageForm.vm 2012-02-16 16:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageForm.vm 2012-03-07 02:40:08 +0000 @@ -86,7 +86,6 @@ $i18n.getString( "selected_data_elements" ) - @@ -108,19 +107,13 @@ $i18n.getString( "dataelement" ) $i18n.getString( "compulsory" ) - #if( $programStage.program.anonymous == 'true' ) - $i18n.getString( "shown_on_reports" ) - #end #foreach ( $programStageDataElement in $programStageDataElements ) - + $encoder.htmlEncode( $programStageDataElement.dataElement.name ) - #if( $programStage.program.anonymous == 'true' ) - - #end #end