Advertisement
psi_mmobile

Untitled

Sep 21st, 2020
1,110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.50 KB | None | 0 0
  1.     public void workCodeDialogListener(DialogEvent dialogEvent) {
  2.         DCIteratorBinding editPdTrfDayViewIterator = ADFUtils.findIterator("EditPdTrfDayView1Iterator");
  3.         DCIteratorBinding paidWorkCodeIterator = ADFUtils.findIterator("PaidWorkCodeView1Iterator");
  4.         if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok) {
  5.             if (null != editPdTrfDayViewIterator && null != paidWorkCodeIterator) {
  6.                 Row currentPdTrfRow = editPdTrfDayViewIterator.getCurrentRow();
  7.                 Row selectedPaidWorkCodeRow = paidWorkCodeIterator.getCurrentRow();
  8.                 if (null != currentPdTrfRow && null != selectedPaidWorkCodeRow) {
  9.                     /// MIGHT NEED TO ADD THIS ONE  currentPdTrfRow.setAttribute("WorkCodeStdId", selectedPaidWorkCodeRow.getAttribute("WorkCodeStdId"));
  10.  
  11.                     currentPdTrfRow.setAttribute("GraphicalSymbolName", selectedPaidWorkCodeRow.getAttribute("Name"));
  12.                     currentPdTrfRow.setAttribute("WorkCodeId", selectedPaidWorkCodeRow.getAttribute("WorkCodeId"));
  13.                     currentPdTrfRow.setAttribute("WorkCodeShort", selectedPaidWorkCodeRow.getAttribute("ShortCode"));
  14.                     currentPdTrfRow.setAttribute("WorkCodeName", selectedPaidWorkCodeRow.getAttribute("WorkCodeName"));
  15.                     if (null != selectedPaidWorkCodeRow.getAttribute("OmName")) {
  16.                         currentPdTrfRow.setAttribute("OmName1", selectedPaidWorkCodeRow.getAttribute("OmName"));
  17.                     }
  18.                     if (null != selectedPaidWorkCodeRow.getAttribute("OmShortName")) {
  19.                         currentPdTrfRow.setAttribute("OmShortName1",
  20.                                                      selectedPaidWorkCodeRow.getAttribute("OmShortName"));
  21.                     }
  22.                     if (null != selectedPaidWorkCodeRow.getAttribute("OperationModeId")) {
  23.                         currentPdTrfRow.setAttribute("OperationModeId",
  24.                                                      selectedPaidWorkCodeRow.getAttribute("OperationModeId"));
  25.                     }
  26.                     if (null != selectedPaidWorkCodeRow.getAttribute("CostPerHourCoeficient")) {
  27.                         currentPdTrfRow.setAttribute("CostPerHourCoeficient",
  28.                                                      selectedPaidWorkCodeRow.getAttribute("CostPerHourCoeficient"));
  29.                     }
  30.  
  31.                     changeValue();
  32.                 }
  33.             }
  34.             refreshTheMainTable();
  35.         }
  36.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement