=== modified file 'local/in/dhis-mobile/dhis-web-mobile/src/main/java/org/hisp/dhis/mobile/action/DraftPageAction.java'
--- local/in/dhis-mobile/dhis-web-mobile/src/main/java/org/hisp/dhis/mobile/action/DraftPageAction.java 2011-04-15 11:41:30 +0000
+++ local/in/dhis-mobile/dhis-web-mobile/src/main/java/org/hisp/dhis/mobile/action/DraftPageAction.java 2013-03-21 07:43:31 +0000
@@ -88,6 +88,7 @@
pendingMsgList.addAll( sendSMSService.getAllSendSMS() );
}
+ System.out.println(pendingMsgList.size());
return SUCCESS;
}
=== added file 'local/in/dhis-mobile/dhis-web-mobile/src/main/java/org/hisp/dhis/mobile/action/TestSMSDataAction.java'
--- local/in/dhis-mobile/dhis-web-mobile/src/main/java/org/hisp/dhis/mobile/action/TestSMSDataAction.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/dhis-web-mobile/src/main/java/org/hisp/dhis/mobile/action/TestSMSDataAction.java 2013-03-21 07:43:31 +0000
@@ -0,0 +1,50 @@
+package org.hisp.dhis.mobile.action;
+
+import java.util.Date;
+
+import org.hisp.dhis.mobile.api.MobileImportService;
+
+import com.opensymphony.xwork2.Action;
+
+public class TestSMSDataAction implements Action
+{
+ // -------------------------------------------------------------------------
+ // Dependencies
+ // -------------------------------------------------------------------------
+
+ private MobileImportService mobileImportService;
+
+ public void setMobileImportService( MobileImportService mobileImportService )
+ {
+ this.mobileImportService = mobileImportService;
+ }
+
+ // -------------------------------------------------------------------------
+ // Parameters
+ // -------------------------------------------------------------------------
+
+ private String smsdata;
+
+ public void setSmsdata( String smsdata )
+ {
+ this.smsdata = smsdata;
+ }
+
+ // -------------------------------------------------------------------------
+ // Action Implementation
+ // -------------------------------------------------------------------------
+
+ public String execute() throws Exception
+ {
+ if (smsdata.startsWith("SN")){
+ mobileImportService.registerPatientData( smsdata, "+9999888811", new Date() );
+ }
+ else{
+ mobileImportService.registerDataByUID(smsdata, "+9999888811", new Date());
+ }
+
+
+ return SUCCESS;
+ }
+
+}
=== modified file 'local/in/dhis-mobile/dhis-web-mobile/src/main/resources/META-INF/dhis/beans.xml'
--- local/in/dhis-mobile/dhis-web-mobile/src/main/resources/META-INF/dhis/beans.xml 2013-03-14 08:01:14 +0000
+++ local/in/dhis-mobile/dhis-web-mobile/src/main/resources/META-INF/dhis/beans.xml 2013-03-21 07:43:31 +0000
@@ -79,11 +79,11 @@
scope="prototype">