← Back to team overview

dhis-mobile-devs team mailing list archive

[Branch ~dhis-mobile-devs/dhis-mobile/lwuit-tracking] Rev 139: after hit search button, give error when selected program doesn't belong to selected org unit

 

------------------------------------------------------------
revno: 139
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: lwuit-tracking
timestamp: Sun 2013-09-08 18:43:54 +0700
message:
  after hit search button, give error when selected program doesn't belong to selected org unit
modified:
  build.properties
  src/org/hisp/dhis/mobile/connection/task/FindPatientTask.java
  src/org/hisp/dhis/mobile/model/ProgramStage.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.properties'
--- build.properties	2013-09-07 13:31:02 +0000
+++ build.properties	2013-09-08 11:43:54 +0000
@@ -0,0 +1,16 @@
+# MTJ Build Properties
+S40_5th_Edition_SDK_Feature_Pack_1.includes=src\
+,res\
+
+S40_5th_Edition_SDK_Feature_Pack_1.excludes=\
+
+S40_5th_Edition_SDK_Feature_Pack_1_Lite.includes=src\
+,res\
+
+S40_5th_Edition_SDK_Feature_Pack_1_Lite.excludes=\
+
+DefaultColorPhone.includes=src\
+,res\
+
+DefaultColorPhone.excludes=\
+

=== modified file 'src/org/hisp/dhis/mobile/connection/task/FindPatientTask.java'
--- src/org/hisp/dhis/mobile/connection/task/FindPatientTask.java	2013-09-07 13:31:02 +0000
+++ src/org/hisp/dhis/mobile/connection/task/FindPatientTask.java	2013-09-08 11:43:54 +0000
@@ -98,6 +98,12 @@
                 nameBasedMIDlet.getNoMatchingView().getMainForm().show();
             }
 
+            else if ( e.getMessage().equalsIgnoreCase( "NO_PROGRAM_BELONG_ORGUNIT" ) )
+            {
+                nameBasedMIDlet.getAlertBoxView( "Program not belong to Org Unit", "Warning" ).showView();
+                nameBasedMIDlet.getFindBeneficiaryView().showView();
+            }
+            
             else
             {
                 message = e.getMessage();

=== modified file 'src/org/hisp/dhis/mobile/model/ProgramStage.java'
--- src/org/hisp/dhis/mobile/model/ProgramStage.java	2013-09-07 12:59:05 +0000
+++ src/org/hisp/dhis/mobile/model/ProgramStage.java	2013-09-08 11:43:54 +0000
@@ -140,7 +140,6 @@
     public void deSerialize( DataInputStream din )
         throws IOException
     {
-
         super.deSerialize( din );
         this.setReportDate( din.readUTF() );
         this.setReportDateDescription( din.readUTF() );