Advertisement
psi_mmobile

Untitled

Jul 28th, 2021
837
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.55 KB | None | 0 0
  1. v popupFetchListener
  2.         DCIteratorBinding wbsTaskIterator = ADFUtils.findIterator("WbsTaskView1Iterator");
  3.         if (null != wbsTaskIterator) {
  4.             Row currentWbsTask = wbsTaskIterator.getCurrentRow();
  5.             if (null != currentWbsTask) {
  6.                 Integer objectCodeId = null;
  7.                 objectCodeId = (Integer)currentWbsTask.getAttribute("ObjectCodeId");
  8.                 if (null == objectCodeId) {
  9.                     currentWbsTask.setAttribute("ObjectCodeId", 1);
  10.                 }
  11.             }
  12.         }
  13.  
  14. v dialogListener za NO
  15.  
  16.         if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.no)) {
  17.             try {
  18.                 DCIteratorBinding wbsTaskIterator = ADFUtils.findIterator("WbsTaskView1Iterator");
  19.                 if (null != wbsTaskIterator) {
  20.                     Row currentWbsTask = wbsTaskIterator.getCurrentRow();
  21.                     if (null != currentWbsTask) {
  22.                         Integer objectCodeId = null;
  23.                         objectCodeId = (Integer)currentWbsTask.getAttribute("ObjectCodeId");
  24.                         if (1 == objectCodeId) {
  25.                             currentWbsTask.setAttribute("ObjectCodeId", null);
  26.                         }
  27.                     }
  28.                 }
  29.             } catch (Exception e) {
  30.                 log.error("Error while setting object code in wbs task management!", e);
  31.                 BuildixxUtils.addErrorMessage(JSFUtils.resolveExpressionAsString("Error while setting object code in wbs task management!"));
  32.             }
  33.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement