=== 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-05-31 07:17:15 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml 2012-06-05 08:47:35 +0000
@@ -177,6 +177,7 @@
/main.vm
/dhis-web-caseentry/multiDataEntrySelect.vm
/dhis-web-caseentry/dataEntryMenu.vm
+ style/patient.css
../dhis-web-commons/ouwt/ouwt.js,javascript/commons.js,
javascript/form.js,javascript/multiDataEntry.js
F_NAME_BASED_DATA_ENTRY
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm 2012-03-09 01:56:35 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm 2012-06-05 08:47:35 +0000
@@ -3,50 +3,24 @@
-
- #if( $sortPatientAttribute )
-
- #end
- #foreach( $programStage in $program.programStages )
-
- #end
-
-
- # |
- #if( $sortPatientAttribute )
- $encoder.htmlEncode( $sortPatientAttribute.name ) |
- #end
- $i18n.getString( "full_name" ) |
- #foreach( $programStage in $program.programStages )
- $encoder.htmlEncode( $programStage.name ) |
- #end
-
-
#set( $mark = false )
#foreach( $patient in $patientListByOrgUnit )
#set( $programInstance = $programInstanceMap.get( $patient ) )
-
-
- #set( $nr = ( ( $paging.getCurrentPage() - 1 ) * $paging.pageSize ) + $velocityCount )
- $nr
- |
- #if( $sortPatientAttribute )
- $!patientAttributeValueMap.get( $patient.id ).value |
- #end
- $patient.getFullName() |
- #foreach( $programStageInstance in $programStageInstanceMap.get( $programInstance ) )
- #if( $programStageInstance.executionDate )
-
- $format.formatDate( $programStageInstance.executionDate )
- |
- #else
-
- $format.formatDate( $programStageInstance.dueDate )
- |
- #end
- #end
-
+
+
+
+ |
+ #foreach( $programStageInstance in $programInstance.programStageInstances )
+
+
+ |
+
+
+
+ |
+ #end
+
#if( $mark )
#set( $mark = false )
#else
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/multiDataEntry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/multiDataEntry.js 2012-03-05 07:32:05 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/multiDataEntry.js 2012-06-05 08:47:35 +0000
@@ -29,29 +29,37 @@
selection.setListenerFunction( multiDataEntryOrgunitSelected );
-function selectProgram()
+function selectProgram( programId, programName )
{
setInnerHTML('listPatient', '');
- if( getFieldValue('programId') == 0 )
- {
- hideById('listPatient');
- return;
- }
-
contentDiv = 'listPatient';
showLoader();
jQuery('#listPatient').load("getDataRecords.action",
{
- programId:getFieldValue('programId'),
- sortPatientAttributeId: getFieldValue('patientAttributeId')
+ programId:programId,
+ sortPatientAttributeId:0
},
function()
{
+ hideById('programDiv');
+
+ setFieldValue('programId', programId);
+ setInnerHTML('programName', programName);
+ showById('programName');
+
+ showById('btnBack');
showById("listPatient");
hideLoader();
});
}
+function backButtonOnClick()
+{
+ hideById("listPatient");
+ hideById('btnBack');
+ hideById('programName');
+ showById('programDiv');
+}
function viewPrgramStageRecords( programStageInstanceId )
{
$('#contentDataRecord').dialog('destroy').remove();
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/multiDataEntrySelect.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/multiDataEntrySelect.vm 2012-05-30 07:10:46 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/multiDataEntrySelect.vm 2012-06-05 08:47:35 +0000
@@ -1,37 +1,21 @@
$i18n.getString( "multiple_name_based" ) #openHelp('multi_name_based_data_entry')
+
+
+
+
#parse( "dhis-web-commons/loader/loader.vm" )
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/report.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/report.vm 2012-06-04 10:03:56 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/report.vm 2012-06-05 08:47:35 +0000
@@ -10,14 +10,14 @@
#foreach( $programInstance in $programInstances )
-
+
|
#foreach( $programStageInstance in $programInstance.programStageInstances )
|
-
+
|
#end
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/dataEntry.css'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/dataEntry.css 2012-05-31 07:17:15 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/dataEntry.css 2012-06-05 08:47:35 +0000
@@ -103,4 +103,4 @@
font-size: .7.5em !important;
}
-.ui-autocomplete { height: 100px; overflow-y: scroll; overflow-x: hidden;}
\ No newline at end of file
+.ui-autocomplete { height: 100px; overflow-y: scroll; overflow-x: hidden;}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/patient.css'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/patient.css 2012-05-24 05:21:12 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/patient.css 2012-06-05 08:47:35 +0000
@@ -74,3 +74,26 @@
{
border: 1px solid #3f5d8e;
}
+
+
+.stage-object
+{
+ width: 100px;
+ height: 40px;
+ white-space: normal;
+ border:2px solid;
+ background-color:#ffffff;
+ cursor:pointer;
+}
+
+.patient-object
+{
+ width: 100px;
+ height: 40px;
+ white-space: normal;
+ border:2px solid;
+ border-color:#bbbbbb;
+ background-color:#cccccc
+ cursor:pointer;
+}
+
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/report.css'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/report.css 2012-05-30 06:36:41 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/report.css 2012-06-05 08:47:35 +0000
@@ -58,7 +58,7 @@
display: block;
}
-.buttonInfo
+.stage-object
{
width: 100px;
height: 40px;
@@ -66,4 +66,15 @@
border:2px solid;
background-color:#ffffff;
cursor:pointer;
+}
+
+.patient-object
+{
+ width: 100px;
+ height: 40px;
+ white-space: normal;
+ border:2px solid;
+ border-color:#bbbbbb;
+ background-color:#cccccc
+ cursor:pointer;
}
\ No newline at end of file
|