Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void workCodeDialogListener(DialogEvent dialogEvent) {
- DCIteratorBinding editPdTrfDayViewIterator = ADFUtils.findIterator("EditPdTrfDayView1Iterator");
- DCIteratorBinding paidWorkCodeIterator = ADFUtils.findIterator("PaidWorkCodeView1Iterator");
- if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok) {
- if (null != editPdTrfDayViewIterator && null != paidWorkCodeIterator) {
- Row currentPdTrfRow = editPdTrfDayViewIterator.getCurrentRow();
- Row selectedPaidWorkCodeRow = paidWorkCodeIterator.getCurrentRow();
- if (null != currentPdTrfRow && null != selectedPaidWorkCodeRow) {
- /// MIGHT NEED TO ADD THIS ONE currentPdTrfRow.setAttribute("WorkCodeStdId", selectedPaidWorkCodeRow.getAttribute("WorkCodeStdId"));
- currentPdTrfRow.setAttribute("GraphicalSymbolName", selectedPaidWorkCodeRow.getAttribute("Name"));
- currentPdTrfRow.setAttribute("WorkCodeId", selectedPaidWorkCodeRow.getAttribute("WorkCodeId"));
- currentPdTrfRow.setAttribute("WorkCodeShort", selectedPaidWorkCodeRow.getAttribute("ShortCode"));
- currentPdTrfRow.setAttribute("WorkCodeName", selectedPaidWorkCodeRow.getAttribute("WorkCodeName"));
- if (null != selectedPaidWorkCodeRow.getAttribute("OmName")) {
- currentPdTrfRow.setAttribute("OmName1", selectedPaidWorkCodeRow.getAttribute("OmName"));
- }
- if (null != selectedPaidWorkCodeRow.getAttribute("OmShortName")) {
- currentPdTrfRow.setAttribute("OmShortName1",
- selectedPaidWorkCodeRow.getAttribute("OmShortName"));
- }
- if (null != selectedPaidWorkCodeRow.getAttribute("OperationModeId")) {
- currentPdTrfRow.setAttribute("OperationModeId",
- selectedPaidWorkCodeRow.getAttribute("OperationModeId"));
- }
- if (null != selectedPaidWorkCodeRow.getAttribute("CostPerHourCoeficient")) {
- currentPdTrfRow.setAttribute("CostPerHourCoeficient",
- selectedPaidWorkCodeRow.getAttribute("CostPerHourCoeficient"));
- }
- changeValue();
- }
- }
- refreshTheMainTable();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement