-
-
|
@@ -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 @@
-
+
-
-
-
-
-
- $i18n.getString( "name" ) |
- $i18n.getString( "description" ) |
- $i18n.getString( "operations" ) |
-
-
+
+
+
+ $i18n.getString( "name" ) |
+ $i18n.getString( "description" ) |
+ $i18n.getString( "operations" ) |
+
+
+
#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
|