=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm 2013-03-05 04:09:58 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm 2013-03-05 05:09:03 +0000 @@ -9,63 +9,64 @@ #if( $programStageInstances && $programStageInstances.size()>0 ) -
- - - - - - - - - - - - - - #set( $mark = false ) - #foreach( $programStageInstance in $programStageInstances ) - #set($patient = $programStageInstance.programInstance.patient) - - - - -
#$i18n.getString('date_scheduled')$i18n.getString('full_name')$i18n.getString('phone_number')$i18n.getString( "program_stage" )
- #set( $nr = ( ( $paging.getCurrentPage() - 1 ) * $paging.pageSize ) + $velocityCount ) - $nr - - #if($!programStageInstance.executionDate) - $format.formatDate($!programStageInstance.executionDate) - #else - $format.formatDate($!programStageInstance.dueDate) - #end - - #set($value="") - #foreach( $identifierType in $identifierTypes) - #foreach( $identifier in $patient.identifiers) - #if($identifier.identifierType.id==$identifierType.id) - #set($value=$identifier.identifier) - #end + + + + + + + + + + + + + + + + #set( $mark = false ) + #foreach( $programStageInstance in $programStageInstances ) + #set($patient = $programStageInstance.programInstance.patient) + + + + + - - - - - - - #set( $mark = !$mark ) - #end - -
- #parse( "/dhis-web-commons/paging/paging.vm" ) -
+ #end + #if($value=="") + #set($value=$patient.getFullName()) + #end + + $value + + + + + + + + #set( $mark = !$mark ) + #end + +
#$i18n.getString('date_scheduled')$i18n.getString('full_name')$i18n.getString('phone_number')$i18n.getString( "program_stage" )
+ #set( $nr = ( ( $paging.getCurrentPage() - 1 ) * $paging.pageSize ) + $velocityCount ) + $nr + + #if($!programStageInstance.executionDate) + $format.formatDate($!programStageInstance.executionDate) + #else + $format.formatDate($!programStageInstance.dueDate) + #end + + #set($value="") + #foreach( $identifierType in $identifierTypes) + #foreach( $identifier in $patient.identifiers) + #if($identifier.identifierType.id==$identifierType.id) + #set($value=$identifier.identifier) #end #end - #if($value=="") - #set($value=$patient.getFullName()) - #end - - $value - $!patient.phoneNumber$programStageInstance.programStage.displayName
$!patient.phoneNumber$programStageInstance.programStage.displayName
+
+ #parse( "/dhis-web-commons/paging/paging.vm" )
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm 2013-03-04 14:05:33 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm 2013-03-05 05:09:03 +0000 @@ -66,8 +66,8 @@
@@ -94,7 +94,7 @@ - + @@ -102,8 +102,8 @@ - - + + === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2013-03-05 04:09:58 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2013-03-05 05:09:03 +0000 @@ -38,7 +38,7 @@ hideById('startDueDate'); hideById('endDueDate'); jQuery('#delete_endDueDate').remove(); - jQuery('#delete_endDueDate').remove(); + jQuery('#delete_startDueDate').remove(); jQuery('#startDueDate').datepicker("destroy"); jQuery('#endDueDate').datepicker("destroy"); } @@ -68,7 +68,7 @@ { showById('colorHelpLink'); showById('listPatientDiv'); - resize(); + setTableStyles(); hideLoader(); }); } @@ -114,6 +114,33 @@ }); } + +function statusEventOnChange() +{ + if( !byId('useCalendar').checked ) + { + var statusEvent = getFieldValue("statusEvent"); + + if( statusEvent == '1_2_3_4' + || statusEvent == '3_4' + || statusEvent == '2_3_4' ){ + enable('showEventSince'); + enable('showEventUpTo'); + setDateRange(); + } + else if( statusEvent == '3' ){ + disable('showEventSince'); + enable('showEventUpTo'); + setDateRange(); + } + else{ + enable('showEventSince'); + disable('showEventUpTo'); + setDateRange(); + } + } +} + function setDateRange() { var statusEvent = getFieldValue("statusEvent"); === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css 2013-03-04 14:05:33 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css 2013-03-05 05:09:03 +0000 @@ -504,7 +504,7 @@ } .gridTable th, .gridTable td { - line-height: 170%; + line-height: 200%; } /* Treepanel contextmenu */ @@ -527,22 +527,3 @@ .coordinates2{ width: 150px; } - - -.visit-schedule -{ - overflow-y: auto; - overflow-x:hidden; -} - -.visit-schedule table -{ - width:100%; -} - -.visit-schedule td -{ - padding-top:3px; - padding-bottom:3px; - border-bottom:1px solid #cad5e5; -}