Advertisement
psi_mmobile

Untitled

Mar 31st, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. private void modifyLock(String isLocked) {
  2. DCIteratorBinding iter = ADFUtils.findIterator(MAIN_TABLE_ITERATOR);
  3. ViewObject vo = iter.getViewObject();
  4. RowSetIterator rowIter = vo.createRowSetIterator(null);
  5. Object userValidationStatus = getUserValidationStatus();
  6. while (rowIter.hasNext()) {
  7. Row row = rowIter.next();
  8. log.debug("unlock " + row.getAttribute("PdTrfDayId"));
  9. row.setAttribute("IsLocked", isLocked);
  10. if (UserBean.getCurrent().getOperationCenterId() == 102020) {
  11. row.setAttribute("ValidationStatusId", userValidationStatus);
  12. }
  13. }
  14. rowIter.closeRowSetIterator();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement