| | |
| | | }
|
| | | }
|
| | |
|
| | | public boolean hasMoreVisitorRegisters() {
|
| | | boolean hasMore = false;
|
| | | String sql = "select count(*) from register where is_synchron = 'N' and visitor_or_attender='visitor'";
|
| | | Cursor c = MainActivity.getInstance().db.rawQuery(sql, new String[]{});
|
| | | if (c.moveToFirst()) {
|
| | | hasMore = c.getInt(0) > 0;
|
| | | }
|
| | | return hasMore;
|
| | | }
|
| | |
|
| | | public boolean hasMoreAttenderRegisters() {
|
| | | boolean hasMore = false;
|
| | | String sql = "select count(*) from register where is_synchron = 'N' and visitor_or_attender='attender'";
|
| | | Cursor c = MainActivity.getInstance().db.rawQuery(sql, new String[]{});
|
| | | if (c.moveToFirst()) {
|
| | | hasMore = c.getInt(0) > 0;
|
| | | }
|
| | | return hasMore;
|
| | | }
|
| | | }
|