← Back to team overview

dhis-mobile-devs team mailing list archive

[Branch ~dhis-mobile-devs/dhis-mobile/lwuit-tracking] Rev 145: fix bug

 

------------------------------------------------------------
revno: 145
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: lwuit-tracking
timestamp: Tue 2013-09-10 21:55:58 +0700
message:
  fix bug
modified:
  build.xml
  src/org/hisp/dhis/mobile/model/Patient.java


--
lp:~dhis-mobile-devs/dhis-mobile/lwuit-tracking
https://code.launchpad.net/~dhis-mobile-devs/dhis-mobile/lwuit-tracking

Your team DHIS mobile developers is subscribed to branch lp:~dhis-mobile-devs/dhis-mobile/lwuit-tracking.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis-mobile-devs/dhis-mobile/lwuit-tracking/+edit-subscription
=== modified file 'build.xml'
--- build.xml	2013-09-10 11:33:54 +0000
+++ build.xml	2013-09-10 14:55:58 +0000
@@ -36,9 +36,9 @@
 	<!-- Server URL -->
 	<property name="server.url" value="http://localhost:9999"; />
 	<!-- User Name -->
-	<property name="username" value="mobile" />
+	<property name="username" value="system" />
 	<!-- Password -->
-	<property name="password" value="district" />
+	<property name="password" value="District123" />
 	<!-- Server Phone Number -->
 	<property name="server.phonenumber" value="+8494485878" />
 	<!-- Default Locale -->

=== modified file 'src/org/hisp/dhis/mobile/model/Patient.java'
--- src/org/hisp/dhis/mobile/model/Patient.java	2013-09-10 11:33:54 +0000
+++ src/org/hisp/dhis/mobile/model/Patient.java	2013-09-10 14:55:58 +0000
@@ -659,5 +659,19 @@
         {
             dout.writeInt( 0 );
         }
+        
+        // Write Completed Programs
+        if ( completedPrograms != null )
+        {
+            dout.writeInt( completedPrograms.size() );
+            for ( int i = 0; i < completedPrograms.size(); i++ )
+            {
+                ((Program) completedPrograms.elementAt( i )).serialize( dout );
+            }
+        }
+        else
+        {
+            dout.writeInt( 0 );
+        }
     }
 }
\ No newline at end of file