Skip to content
Snippets Groups Projects
Commit 85809121 authored by Saran Kumar's avatar Saran Kumar
Browse files

Saran

parent 2c337721
Branches
No related tags found
No related merge requests found
...@@ -59,9 +59,9 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On ...@@ -59,9 +59,9 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
recievedBranch, recievedBranch,
currentdate, currentdate,
currentdatesend, currentdatesend,
startperiod=null, startperiod="",
endperiod=null, endperiod="",
reason=null; reason="";
private int PICK_IMAGE_REQUEST = 1, private int PICK_IMAGE_REQUEST = 1,
CAMERA_REQUEST = 2, CAMERA_REQUEST = 2,
startyear = calendar.get(Calendar.YEAR), startyear = calendar.get(Calendar.YEAR),
...@@ -178,25 +178,25 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On ...@@ -178,25 +178,25 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
reason = odapplyreason.getText().toString(); reason = odapplyreason.getText().toString();
startperiod = odapplystartperiod.getText().toString(); startperiod = odapplystartperiod.getText().toString();
endperiod = odapplyendperiod.getText().toString(); endperiod = odapplyendperiod.getText().toString();
if(setleavetype.equals("-Select Leave Type-")){ if(sendstartdate==null){
Toast.makeText(this,"Please Select the Leave Type", Toast.LENGTH_SHORT).show();
}
else if(sendstartdate==null){
Toast.makeText(this, "Please Select the Start Date", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Please Select the Start Date", Toast.LENGTH_SHORT).show();
} }
else if(sendenddate==null){ else if(sendenddate==null){
Toast.makeText(this, "Please Select the End Date", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Please Select the End Date", Toast.LENGTH_SHORT).show();
} }
else if(startperiod==null){ else if(startperiod.equals("")){
Toast.makeText(this, "Please Select the Start Period", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Please Select the Start Period", Toast.LENGTH_SHORT).show();
} }
else if(endperiod==null){ else if(endperiod.equals("")){
Toast.makeText(this, "Please Select the End Period", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Please Select the End Period", Toast.LENGTH_SHORT).show();
} }
else if (reason==null){ else if (reason.equals("")){
Toast.makeText(this, "Please give a reason", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Please give a reason", Toast.LENGTH_SHORT).show();
} }
if(bitmap==null){ else if(setleavetype.equals("-Select Leave Type-")){
Toast.makeText(this,"Please Select the Leave Type", Toast.LENGTH_SHORT).show();
}
else if(bitmap==null){
Toast.makeText(this, "Please Select an Image", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Please Select an Image", Toast.LENGTH_SHORT).show();
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment