Skip to content

Commit

Permalink
Approve Activity
Browse files Browse the repository at this point in the history
#12
- icon for refused absence at AbsenceViewHolder
- delete refused absence
- if fir equals 0 do not call approvePost only call approveFBPost
  • Loading branch information
eurosecom committed Apr 13, 2017
1 parent a95e504 commit 615d78e
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ public boolean onLongClick(View v) {
Toast.makeText(getActivity(), "Longclick " + absKey,Toast.LENGTH_SHORT).show();

abskeydel = absKey;
if( model.aprv.equals("2")) {
rozdiel=1;
}

if( rozdiel < 180000 ) {
getDialog(abskeydel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public void onClick(View v) {
if(savetofiri>0){
approvePost(abskeydel, 1, model);
}else{
approvePost(abskeydel, 1, model);
approveFBPost(abskeydel, 1, model);
}
}
});
Expand All @@ -419,7 +419,7 @@ public void onClick(View v) {
if(savetofiri>0){
approvePost(abskeydel, 0, model);
}else{
approvePost(abskeydel, 0, model);
approveFBPost(abskeydel, 0, model);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public void bindToAbsence(com.eusecom.attendance.models.Attendance attendance, V
if( attendance.aprv.equals("1")) {
Picasso.with(mContext).load(R.drawable.ic_check_circle_black_24dp).resize(120, 120).into(starView);
}
if( attendance.aprv.equals("2")) {
Picasso.with(mContext).load(R.drawable.ic_remove_circle_black_24dp).resize(120, 120).into(starView);
}

//convert unix epoch timestamp (seconds) to milliseconds
long timestampod = Long.parseLong(attendance.daod) * 1000L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public void bindToApprove(com.eusecom.attendance.models.Attendance attendance, V
if( attendance.aprv.equals("1")) {
Picasso.with(mContext).load(R.drawable.ic_check_circle_black_24dp).resize(120, 120).into(starView);
}
if( attendance.aprv.equals("2")) {
Picasso.with(mContext).load(R.drawable.ic_remove_circle_black_24dp).resize(120, 120).into(starView);
}


//convert unix epoch timestamp (seconds) to milliseconds
long timestampod = Long.parseLong(attendance.daod) * 1000L;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 615d78e

Please sign in to comment.