+
-
-
-
-
-
|
-
-
-
-
-
-
- |
=== 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-04-29 07:41:04 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programValidation.js 2011-07-07 08:03:22 +0000
@@ -8,7 +8,11 @@
if( isSingle || getFieldValue('rightSide') == '1==1')
{
- hideById('rightSideDiv');
+ hideById('rightLabel');
+ hideById('rightStage');
+ hideById('rightSideDE');
+ hideById('rightSide');
+ hideById('rightStageDescriptionFieldset');
setFieldValue('rightSide','1==1');
}
});
@@ -49,11 +53,24 @@
// Insert items data-element
//-----------------------------------------------------------------
-function insertDataElement( element, target )
+function insertDataElement( element, target, decriptionDiv )
{
byId(target).value += " " + element.options[element.selectedIndex].value + " ";
+
+ getValidationDescription( decriptionDiv, target );
}
+function getValidationDescription( decriptionDiv, sideDiv )
+{
+ $.post("getCaseAggregationDescription.action",
+ {
+ condition: getFieldValue( sideDiv )
+ },
+ function (data)
+ {
+ byId( decriptionDiv ).innerHTML = data;
+ },'html');
+}
//------------------------------------------------------------------------------
// Get DataElements of Program-Stage into left-side
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programValidationList.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programValidationList.vm 2011-04-29 07:41:04 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programValidationList.vm 2011-07-07 08:03:22 +0000
@@ -8,7 +8,7 @@
|
$validation.description |
-
+ |
@@ -45,8 +45,8 @@
-
-
+
+
|
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/responseProgramValidation.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/responseProgramValidation.vm 2011-04-29 07:41:04 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/responseProgramValidation.vm 2011-07-07 08:03:22 +0000
@@ -4,5 +4,5 @@
$encoder.htmlEncode($validation.description)
$encoder.htmlEncode($validation.leftSide)
$encoder.htmlEncode($validation.rightSide)
- $encoder.htmlEncode($validation.rightSide.name)
+ $encoder.htmlEncode($validation.program.name)
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramValidationForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramValidationForm.vm 2011-04-29 07:41:04 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramValidationForm.vm 2011-07-07 08:03:22 +0000
@@ -24,43 +24,62 @@