=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml 2011-03-29 02:51:56 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/struts.xml 2011-03-30 04:59:34 +0000 @@ -774,7 +774,8 @@ class="org.hisp.dhis.patient.action.programstage.GetProgramStageListAction"> /main.vm /dhis-web-maintenance-patient/programStageList.vm - /dhis-web-maintenance-patient/patientAndProgramMenu.vm + /dhis-web-maintenance-patient/patientAndProgramMenu.vm + javascript/programStage.js $i18n.getString( "define_program_associations" ) +

$i18n.getString( "patient_orgunit_registration" )

=== 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 2010-10-22 07:50:47 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programList.vm 2011-03-30 04:59:34 +0000 @@ -1,51 +1,33 @@

$i18n.getString( "program_management" )

+
- - +
- + + + +
+ + - - - - - - - - - - + + - + - + #foreach( $program in $programs ) - - - - - - - - - - - @@ -53,8 +35,7 @@ #end - -
$i18n.getString( "name" )$i18n.getString( "operations" )$i18n.getString( "operations" )
$encoder.htmlEncode( $program.name ) + $i18n.getString( - $i18n.getString( - $i18n.getString( - $i18n.getString( - $i18n.getString( - $i18n.getString(
+
@@ -64,19 +45,26 @@



-


-


-


+


+


+


+


+ === 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 2011-03-23 02:10:08 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programStageList.vm 2011-03-30 04:59:34 +0000 @@ -19,19 +19,18 @@ - +
- - - - - - - - - - + + + + + + + + + #foreach( $association in $associations ) @@ -40,17 +39,8 @@ - - - - - - @@ -86,64 +76,4 @@ var i18n_updating_program_stage_failed = '$encoder.jsEscape( $i18n.getString( "updating_program_stage_failed" ), "'")'; var i18n_none = '$encoder.jsEscape( $i18n.getString( "none" ), "'")'; -function getStageByProgram( programId ) -{ - window.location = "programStage.action?id=" + programId; -} - -function addProgramStage() -{ - var programId = document.getElementById('id').value; - - if( programId == "null" || programId == "" ) - { - showWarningMessage( i18n_please_select_program ); - } - else - { - window.location.href="showAddProgramStageForm.action?id=" + programId; - } -} - - - -function showSortProgramStage() -{ - var programId = document.getElementById('id').value; - - if( programId == "null" || programId == "" ) - { - showWarningMessage( i18n_please_select_program ); - } - else - { - window.location.href="showSortProgramStageForm.action?id=" + programId; - } -} - -// ----------------------------------------------------------------------------- -// View details -// ----------------------------------------------------------------------------- - -function showProgramStageDetails( programStageId ) -{ - var request = new Request(); - request.setResponseTypeXML( 'programStage' ); - request.setCallbackSuccess( programStageReceived ); - request.send( 'getProgramStage.action?id=' + programStageId ); -} - -function programStageReceived( programStageElement ) -{ - setInnerHTML( 'idField', getElementValue( programStageElement, 'id' ) ); - setInnerHTML( 'nameField', getElementValue( programStageElement, 'name' ) ); - setInnerHTML( 'descriptionField', getElementValue( programStageElement, 'description' ) ); - setInnerHTML( 'stageInProgramField', getElementValue( programStageElement, 'stageInProgram' ) ); - setInnerHTML( 'minDaysFromStartField', getElementValue( programStageElement, 'minDaysFromStart' ) ); - setInnerHTML( 'dataElementCountField', getElementValue( programStageElement, 'dataElementCount' ) ); - - showDetails(); -} - - === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/responseProgram.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/responseProgram.vm 2010-10-20 09:27:52 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/responseProgram.vm 2011-03-30 04:59:34 +0000 @@ -2,5 +2,7 @@ "id":"$program.id", "name":"$!encoder.jsEncode( ${program.name} )", "description": "$!encoder.jsEncode( ${program.description} )", - "programStageCount": "$program.programStages.size()" + "programStageCount": "$program.programStages.size()", + "minDay": "$program.minDaysAllowedInputData", + "maxDay": "$program.maxDaysAllowedInputData" } \ No newline at end of file
$i18n.getString( "name" )$i18n.getString( "description" )$i18n.getString( "operations" )
$i18n.getString( "name" )$i18n.getString( "description" )$i18n.getString( "operations" )
$i18n.getString( - $i18n.getString( - $i18n.getString( - $i18n.getString(