You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stringmessage = "Dear " + nameCustomer + ",\nPlease accept this message as a soft reminder for the pending fees of this month."+ "\nThanks,\nBodyZone Gym.";
359
+
Stringmessage = "Dear " + nameCustomer + ",\nPlease accept this message as a soft reminder for the pending fees of this month."+ "\nThanks,\nBody Fitness Zone.";
360
360
if (phoneNumber.length() > 0 && message.length() > 0) {
Stringquery_active = "SELECT name,mobile FROM customer WHERE activestat=1";
98
+
Cursorc=mydb.rawQuery(query_active, null);
99
+
while(c.moveToNext()) {
100
+
StringnameCustomer = c.getString(0);
101
+
StringphoneNumber = c.getString(1);
102
+
Stringmessage = null;
103
+
if (fromField.getText().toString().equals(toField.getText().toString())){
104
+
message = "Dear " + nameCustomer + ",\nDue to " + reasonField.getText().toString() +", gym will be closed on " + fromField.getText().toString() + ".\nSorry for the inconvenience :(\nThanks,\nBody Fitness Zone";
105
+
}
106
+
else{
107
+
message = "Dear " + nameCustomer + ",\nDue to " + reasonField.getText().toString() +", gym will be closed from " + fromField.getText().toString() + " to " + toField.getText().toString() + ".\nSorry for the inconvenience :(\nThanks,\nBody Fitness Zone";
108
+
}
109
+
if (phoneNumber.length() > 0 && message.length() > 0) {
0 commit comments