Advertisement
psi_mmobile

Untitled

Jun 28th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if (null != payrollFilterValue && payrollFilterValue.length() > 0) {
  2. if (!value && payrollFilterValue.indexOf(uicId + ",") > -1) {
  3. payrollFilterValue = payrollFilterValue.replace(uicId, "");
  4. if (payrollFilterValue.endsWith(",")) {
  5. payrollFilterValue= payrollFilterValue.substring(0, payrollFilterValue.length() - 1);
  6. }
  7. }
  8. if (value && payrollFilterValue.indexOf(uicId) == -1) {
  9. payrollFilterValue = payrollFilterValue + "," + uicId;
  10. }
  11. } else {
  12. if (value) {
  13. payrollFilterValue = uicId + ",";
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement