← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1267: Work in progress on follow-up.

 

------------------------------------------------------------
revno: 1267
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2009-12-23 08:54:15 +0100
message:
  Work in progress on follow-up.
added:
  dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/followup/
  dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/followup/GetDataValuesMarkedForFollowupAction.java
  dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/followupForm.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== added directory 'dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/followup'
=== added file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/followup/GetDataValuesMarkedForFollowupAction.java'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/followup/GetDataValuesMarkedForFollowupAction.java	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/followup/GetDataValuesMarkedForFollowupAction.java	2009-12-23 07:54:15 +0000
@@ -0,0 +1,33 @@
+package org.hisp.dhis.validationrule.action.followup;
+
+import java.util.Collection;
+
+import org.hisp.dhis.datavalue.DataValueService;
+import org.hisp.dhis.datavalue.DeflatedDataValue;
+
+import com.opensymphony.xwork2.Action;
+
+public class GetDataValuesMarkedForFollowupAction
+    implements Action
+{
+    private DataValueService dataValueService;
+
+    public void setDataValueService( DataValueService dataValueService )
+    {
+        this.dataValueService = dataValueService;
+    }
+    
+    private Collection<DeflatedDataValue> dataValues;
+    
+    public Collection<DeflatedDataValue> getDataValues()
+    {
+        return dataValues;
+    }
+
+    public String execute()
+    {
+        dataValues = dataValueService.getDataValuesMarkedForFollowup();
+        
+        return SUCCESS;
+    }
+}

=== added file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/followupForm.vm'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/followupForm.vm	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/followupForm.vm	2009-12-23 07:54:15 +0000
@@ -0,0 +1,6 @@
+
+<h3>$i18n.getString( "follow_up" )</h3>
+
+#foreach ( $dataValue in $dataValues )
+	Hey!
+#end
\ No newline at end of file