Advertisement
psi_mmobile

Untitled

Oct 7th, 2022
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.83 KB | None | 0 0
  1.     public void createChildRuleset() {
  2.         DCIteratorBinding mainRuleSetIterator = ADFUtils.findIterator("AdminOcDayAggregListView1Iterator");
  3.         if (null != mainRuleSetIterator) {
  4.             Row selectedRuleSet = mainRuleSetIterator.getCurrentRow();
  5.             if (null != selectedRuleSet) {
  6.                 Integer selectedRuleSetIndex = mainRuleSetIterator.getCurrentRowIndexInRange();
  7.                 RowSetIterator mainRuleSetRSI = mainRuleSetIterator.getRowSetIterator();
  8.                 Row childRuleSet = mainRuleSetRSI.createRow();
  9.                 childRuleSet.setAttribute("OcPoiCategoryId", selectedRuleSet.getAttribute("OcPoiCategoryId"));
  10.                 childRuleSet.setAttribute("OcPoiCategoryName", selectedRuleSet.getAttribute("OcPoiCategoryName"));
  11.                 childRuleSet.setAttribute("VoVehicleCategoryId", selectedRuleSet.getAttribute("VoVehicleCategoryId"));
  12.                 childRuleSet.setAttribute("VoVehicleCategoryName",
  13.                                           selectedRuleSet.getAttribute("VoVehicleCategoryName"));
  14.                 childRuleSet.setAttribute("VoPersonCategoryId", selectedRuleSet.getAttribute("VoPersonCategoryId"));
  15.                 childRuleSet.setAttribute("VoPersonCategoryName",
  16.                                           selectedRuleSet.getAttribute("VoPersonCategoryName"));
  17.                 childRuleSet.setAttribute("ParentOcDayAggregId", selectedRuleSet.getAttribute("OcDayAggregId"));
  18.                 childRuleSet.setAttribute("VehicleOwnerId", selectedRuleSet.getAttribute("VehicleOwnerId"));
  19.                 childRuleSet.setAttribute("VehicleOwnerName", selectedRuleSet.getAttribute("VehicleOwnerName"));
  20.                 childRuleSet.setAttribute("OperationCenterId", selectedRuleSet.getAttribute("OperationCenterId"));
  21.                 childRuleSet.setAttribute("OperationCenterName", selectedRuleSet.getAttribute("OperationCenterName"));
  22.                 childRuleSet.setAttribute("DefaultAdminStatusId",
  23.                                           selectedRuleSet.getAttribute("DefaultAdminStatusId"));
  24.                 childRuleSet.setAttribute("DefaultAdminStatusName",
  25.                                           selectedRuleSet.getAttribute("DefaultAdminStatusName"));
  26.                 childRuleSet.setAttribute("OcCalendarId", selectedRuleSet.getAttribute("OcCalendarId"));
  27.                 childRuleSet.setAttribute("OcCalendarName", selectedRuleSet.getAttribute("OcCalendarName"));
  28.                 childRuleSet.setAttribute("DefaultWorkCodeId", selectedRuleSet.getAttribute("DefaultWorkCodeId"));
  29.                 childRuleSet.setAttribute("WorkCodeName", selectedRuleSet.getAttribute("WorkCodeName"));
  30.                 childRuleSet.setAttribute("StartDate", selectedRuleSet.getAttribute("StartDate"));
  31.                 childRuleSet.setAttribute("WorkAreaPoiId", selectedRuleSet.getAttribute("WorkAreaPoiId"));
  32.                 childRuleSet.setAttribute("WorkAreaPoiName", selectedRuleSet.getAttribute("WorkAreaPoiName"));
  33.                 childRuleSet.setAttribute("StopAreaPoiId", selectedRuleSet.getAttribute("StopAreaPoiId"));
  34.                 childRuleSet.setAttribute("StopAreaPoiName", selectedRuleSet.getAttribute("StopAreaPoiName"));
  35.                 childRuleSet.setAttribute("WorkPeriodPoiId", selectedRuleSet.getAttribute("WorkPeriodPoiId"));
  36.                 childRuleSet.setAttribute("WorkPeriodPoiName", selectedRuleSet.getAttribute("WorkPeriodPoiName"));
  37.                 childRuleSet.setAttribute("ShortWorkPeriodPoiId",
  38.                                           selectedRuleSet.getAttribute("ShortWorkPeriodPoiId"));
  39.                 childRuleSet.setAttribute("ShortWorkPeriodPoiName",
  40.                                           selectedRuleSet.getAttribute("ShortWorkPeriodPoiName"));
  41.                 childRuleSet.setAttribute("PrivateStopAreaPoiId",
  42.                                           selectedRuleSet.getAttribute("PrivateStopAreaPoiId"));
  43.                 childRuleSet.setAttribute("PrivateStopAreaPoiName",
  44.                                           selectedRuleSet.getAttribute("PrivateStopAreaPoiName"));
  45.                 childRuleSet.setAttribute("WorkPeriodOutBhPoiName",
  46.                                           selectedRuleSet.getAttribute("WorkPeriodOutBhPoiName"));
  47.                 childRuleSet.setAttribute("IsActive", selectedRuleSet.getAttribute("IsActive"));
  48.                 childRuleSet.setAttribute("EraseModifiedData", selectedRuleSet.getAttribute("EraseModifiedData"));
  49.                 childRuleSet.setAttribute("LimitToVdPoiDay", selectedRuleSet.getAttribute("LimitToVdPoiDay"));
  50.                 mainRuleSetRSI.insertRowAtRangeIndex(selectedRuleSetIndex + 1, childRuleSet);
  51.                 //                mainRuleSetRSI.insertRow(childRuleSet);
  52.                 AdfFacesContext.getCurrentInstance().addPartialTarget(JSFUtils.findComponentInRoot("t1"));
  53.             }
  54.         }
  55.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement