public void onDataLoad_pageroleds(DataLoadEvent dataLoadEvent) {
   String pk =
       (String) AppLifeCycleContext.current().getApplicationContext().getAppAttribute("pk_page");
   Dataset ds = dataLoadEvent.getSource();
   if (pk != null) ds.setLastCondition("pk_page='" + pk + "'");
   CmdInvoker.invoke(new UifDatasetLoadCmd(ds.getId()));
 }
 public void pluginmain_plugin(Map<Object, Object> keys) {
   TranslatedRow tr = (TranslatedRow) keys.get("gridRow");
   //	  String[] rowKeys = tr.getKeys();
   String pk = (String) tr.getValue("pk_portalpage");
   LfwWidget widget = getCurrentWidget();
   Dataset pageUserDs = widget.getViewModels().getDataset("pageuserds");
   Dataset pageRoleDs = widget.getViewModels().getDataset("pageroleds");
   Dataset pageDeptDs = widget.getViewModels().getDataset("pagedeptds");
   AppLifeCycleContext.current().getApplicationContext().addAppAttribute("pk_page", pk);
   //	  pk = (String)
   // AppLifeCycleContext.current().getApplicationContext().getAppAttribute("pk_page");
   if (pk != null) {
     pageUserDs.setLastCondition("pk_page='" + pk + "'");
     pageRoleDs.setLastCondition("pk_page='" + pk + "'");
     pageDeptDs.setLastCondition("pk_page='" + pk + "'");
   }
   CmdInvoker.invoke(new UifDatasetLoadCmd(pageUserDs.getId()));
   CmdInvoker.invoke(new UifDatasetLoadCmd(pageRoleDs.getId()));
   CmdInvoker.invoke(new UifDatasetLoadCmd(pageDeptDs.getId()));
 }
Пример #3
0
 public void onDataLoad_ds_appsNode(DataLoadEvent dataLoadEvent) {
   Dataset ds = dataLoadEvent.getSource();
   CmdInvoker.invoke(
       new UifDatasetLoadCmd(ds.getId()) {
         protected String postProcessQueryVO(SuperVO vo, Dataset ds) {
           String values =
               ds.getReqParameters().getParameterValue(DatasetConstant.QUERY_PARAM_VALUES);
           String pk_module = values;
           String where = " pk_appscategory = '" + pk_module + "'";
           return where;
         }
       });
 }
  public void afterActivedTabItemChange(TabEvent tabEvent) {
    UITabComp tab = tabEvent.getSource();
    //	  System.out.println("*************" + tab.getCurrentItem());
    LfwWidget widget = getCurrentWidget();
    Dataset pageUserDs = widget.getViewModels().getDataset("pageuserds");
    Dataset pageRoleDs = widget.getViewModels().getDataset("pageroleds");
    Dataset pageDeptDs = widget.getViewModels().getDataset("pagedeptds");
    String pk =
        (String) AppLifeCycleContext.current().getApplicationContext().getAppAttribute("pk_page");
    //	  System.out.println("*********" + pk);
    if (pk != null) {
      pageUserDs.setLastCondition("pk_page='" + pk + "'");
      pageRoleDs.setLastCondition("pk_page='" + pk + "'");
      pageDeptDs.setLastCondition("pk_page='" + pk + "'");
    }

    if (tab.getCurrentItem().equals("0")) {
      CmdInvoker.invoke(new UifDatasetLoadCmd(pageRoleDs.getId()));
    } else if (tab.getCurrentItem().equals("1")) {
      CmdInvoker.invoke(new UifDatasetLoadCmd(pageUserDs.getId()));
    } else if (tab.getCurrentItem().equals("2")) {
      CmdInvoker.invoke(new UifDatasetLoadCmd(pageDeptDs.getId()));
    }
  }
Пример #5
0
 public void onDataLoad_ds_appscategory(DataLoadEvent dataLoadEvent) {
   Dataset ds = dataLoadEvent.getSource();
   CmdInvoker.invoke(new UifDatasetLoadCmd(ds.getId()));
 }