|
|
@ -30,6 +30,8 @@ import net.mrbin99.laravelechoandroid.EchoCallback; |
|
|
|
import org.json.JSONException; |
|
|
|
import org.json.JSONException; |
|
|
|
import org.json.JSONObject; |
|
|
|
import org.json.JSONObject; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.regex.Pattern; |
|
|
|
|
|
|
|
|
|
|
|
public class MainActivity extends AppCompatActivity implements CallableInterface { |
|
|
|
public class MainActivity extends AppCompatActivity implements CallableInterface { |
|
|
|
public static final String TAG = "CST-DBG"; |
|
|
|
public static final String TAG = "CST-DBG"; |
|
|
|
//Set value to get temp value-RefNum
|
|
|
|
//Set value to get temp value-RefNum
|
|
|
@ -398,13 +400,21 @@ public class MainActivity extends AppCompatActivity implements CallableInterface |
|
|
|
|
|
|
|
|
|
|
|
// Verify Name...
|
|
|
|
// Verify Name...
|
|
|
|
String firstName = this.eventLogDetailed.getFirstName().trim().toUpperCase(); |
|
|
|
String firstName = this.eventLogDetailed.getFirstName().trim().toUpperCase(); |
|
|
|
String lastName = this.eventLogDetailed.getLastName().trim().toUpperCase(); |
|
|
|
String[] firstNames = firstName.split(Pattern.quote(" ")); |
|
|
|
|
|
|
|
for (String s : firstNames) { |
|
|
|
if (!name.contains(firstName)) { |
|
|
|
if (!name.contains(s)) { |
|
|
|
match = false; |
|
|
|
match = false; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (!name.contains(lastName)) { |
|
|
|
|
|
|
|
|
|
|
|
String lastNames = this.eventLogDetailed.getLastName().trim().toUpperCase(); |
|
|
|
|
|
|
|
String[] lastName = lastNames.split(Pattern.quote(" ")); |
|
|
|
|
|
|
|
for (String s : lastName) { |
|
|
|
|
|
|
|
if (!name.contains(s)) { |
|
|
|
match = false; |
|
|
|
match = false; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return match; |
|
|
|
return match; |
|
|
|