=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/PatientDashboardAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/PatientDashboardAction.java 2012-11-23 03:02:35 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/PatientDashboardAction.java 2012-12-18 05:41:39 +0000
@@ -70,7 +70,7 @@
private PatientAuditService patientAuditService;
private CurrentUserService currentUserService;
-
+
// -------------------------------------------------------------------------
// Input && Output
// -------------------------------------------------------------------------
@@ -165,6 +165,13 @@
this.patientId = patientId;
}
+ private String visitor;
+
+ public String getVisitor()
+ {
+ return visitor;
+ }
+
// -------------------------------------------------------------------------
// Action implementation
// -------------------------------------------------------------------------
@@ -209,7 +216,7 @@
long currentTime = new Date().getTime();
long dateOnly = (currentTime / millisInDay) * millisInDay;
Date date = new Date( dateOnly );
- String visitor = currentUserService.getCurrentUsername();
+ visitor = currentUserService.getCurrentUsername();
PatientAudit patientAudit = patientAuditService.getPatientAudit( patient, visitor, date );
if ( patientAudit == null )
{
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm 2012-12-12 10:41:32 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm 2012-12-18 05:41:39 +0000
@@ -28,6 +28,28 @@
+
#if( $customDataEntryFormCode )
#parse( "/dhis-web-caseentry/customDataEntryForm.vm" )
#elseif( $sections && $sections.size() > 0 )
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-12-10 12:54:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-12-18 05:41:39 +0000
@@ -1670,6 +1670,14 @@
});
}
+function keypressOnComent(event, field, programStageInstanceId )
+{
+ var key = getKeyCode( event );
+ if ( key==13 ){ // Enter
+ addComment( field, programStageInstanceId );
+ }
+}
+
function addComment( field, programStageInstanceId )
{
field.style.backgroundColor = SAVING_COLOR;
@@ -1689,10 +1697,14 @@
var programStageName = jQuery("#ps_" + programStageInstanceId).attr('programStageName');
var date = new Date();
var currentTime = date.getHours() + ":" + date.getMinutes();
- jQuery('#commentTB').prepend("
" + getFieldValue("currentDate") + " " + currentTime + " | "
- + "" + programStageName + " | "
- + "" + getFieldValue('currentUsername') + " | "
- + "" + commentText + " |
");
+ var content = "
" + getCurrentDate("currentDate") + " " + currentTime + " | "
+ if(programStageName!=undefined)
+ {
+ content += "" + programStageName + " | "
+ }
+ content += "" + getFieldValue('currentUsername') + " | "
+ content += "" + commentText + " |
";
+ jQuery('#commentTB').prepend(content);
field.value="";
showSuccessMessage( i18n_comment_added );
field.style.backgroundColor = SUCCESS_COLOR;
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2012-12-10 12:54:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2012-12-18 05:41:39 +0000
@@ -192,14 +192,6 @@
// Post Comments/Send Message
// --------------------------------------------------------------------
-function keypressOnComent(event, field, programStageInstanceId )
-{
- var key = getKeyCode( event );
- if ( key==13 ){ // Enter
- addComment( field, programStageInstanceId );
- }
-}
-
function keypressOnMessage(event, field, programStageInstanceId )
{
var key = getKeyCode( event );
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2012-12-10 12:54:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2012-12-18 05:41:39 +0000
@@ -4,6 +4,7 @@
»
$i18n.getString( 'history' )
+
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingList.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingList.vm 2012-12-10 12:54:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingList.vm 2012-12-18 05:41:39 +0000
@@ -15,7 +15,7 @@
$i18n.getString( "full_name" ): |
- $encoder.htmlEncode($programStageInstance.programInstance.patient.getFullName()) ( $programStageInstance.programInstance.patient.gender )) |
+ $encoder.htmlEncode($programStageInstance.programInstance.patient.getFullName()) ( $programStageInstance.programInstance.patient.gender ) |
$i18n.getString( "date_of_birth" ): |