Examples of DOPaneModel


Examples of com.exedosoft.plat.ui.DOPaneModel

    data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
    data.put("webmodule", DOGlobals.URL);
    data.put("model", btn);

    DOGridModel grid = btn.getGridModel();// 我的父节点,表格
    DOPaneModel panel = grid.getContainerPane();// 获得表格的上级,内容面板
    List children = panel.getParent().retrieveChildren();// 内容面板的上级,主面板,从主面板中获得“条件面板”和“结果面板”
    if (children != null && children.size() == 2) {
      if (grid.getName().toLowerCase().indexOf("conditionpanel") != -1) {// 判断我位于“条件面板”
        // 如果“导出”按钮处在“条件表单”中,需要获得“结果列表”中的“服务”的ID
        DOPaneModel result = (DOPaneModel) children.get(1);// 结果面板
        if (result != null) {
          if (result.getDOGridModel() != null) {
            data.put("serviceID", result.getDOGridModel()
                .getService().getObjUid());// 服务的ID
          }
        }
      }

      if (grid.getName().toLowerCase().indexOf("resultpanel") != -1) {// 判断我是否位于“结果面板”
        // 如果“导出”按钮处在“结果列表”中,需要获得“条件表单”中的form的ID
        DOPaneModel condition = (DOPaneModel) children.get(0);
        if (condition != null) {
          if (condition.getDOGridModel() != null) {
            data.put("formID", "a"+condition
                .getDOGridModel().getObjUid());// FORM的ID
          }
        }
      }
    }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

    this.templateFile = "panel/TabPanel.ftl";
  }

  public Map<String, Object> putData(DOIModel doimodel) {

    DOPaneModel pm = (DOPaneModel) doimodel;
    List items = pm.retrieveChildren();
    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", pm);
    data.put("items", items);
    return data;
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

  public Map<String, Object> putData(DOIModel doimodel) {
   
   
    System.out.println("111111111111111111111111111111111111111111");

    DOPaneModel pm = (DOPaneModel) doimodel;
    String resPath = "";
   
    if(pm.getResource()!=null){
      resPath = pm.getResource().getResourcePath()
    }
   
    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", pm);
    data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

   
    return data;
  }
 
  public static void main(String[] args){
    DOPaneModel aPm = DOPaneModel.getPaneModelByID("402881e93107a32d013107a4f5920002");
   
    System.out.println(aPm.getHtmlCode());
   
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

    this.templateFile = "panel/TabPanelCache.ftl";
  }

  public Map<String, Object> putData(DOIModel doimodel) {

    DOPaneModel pm = (DOPaneModel) doimodel;
    List items = pm.retrieveChildren();
    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", pm);
    data.put("items", items);
    return data;
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

    String cn = null;
    if(sn != null && !sn.trim().equals("")){
      cn = LDAPPeopleUtil.getLDAPCNBySN(sn);
    }
   
    DOPaneModel cPaneModel = null;
    if (fm.getGridModel() != null) {
      cPaneModel = fm.getGridModel().getContainerPane();
    }

    if (cn != null) {
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

      formM.setNameColspan(Integer.valueOf(0));
      formM.setIsOutGridAction(DOFormModel.OUTGRID_BOTTOM);

      formM.setAlign("center");

      DOPaneModel pm = DOPaneModel.getPaneModelByName("PM_"
          + newService.getBo().getName() + "_subflowAndInsert");
      formM.setGridModel(gridM);
      formM.setOrderNum(Integer.valueOf(1000));
      formM.setController(formServiceUf);
      formM.setLinkPaneModel(pm);
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

      //////////////////////////////////////////end Business
     
     
     
     
      DOPaneModel pmParentInsert = DOPaneModel.getPaneModelByName("pane_"+ parentBO.getName()+".list.insert");
      DOPaneModel pmChildList = DOPaneModel.getPaneModelByName("pane_"+ curBO.getName()+".list");
     
      pmChildList.setTargetPane(pmChildList);
      DAOUtil.INSTANCE().store(pmChildList);
     
      DOController ccSplitePane = DOController.getControllerByName(LayOutSplitPane.class.getName());
      DOPaneModel pm = new DOPaneModel();
      pm.setName(curBO.getName()+"And"+parentBO.getName()+"LinkPane");
      pm.setL10n(curBO.getName()+"And"+parentBO.getName()+"LinkPane");
      pm.setController(ccSplitePane);
      pm.setLinkType(Integer.valueOf(DOPaneModel.LAYOUT_VERTICAL));
      pm.setCategory(pmParentInsert.getCategory());
     
      DAOUtil.INSTANCE().store(pm);
      //pane_test.dept.list.insert
      DOGridModel childListGrid  = DOGridModel.getGridModelByName("grid_" + curBO.getName()+".list");
      log.info("get the chidlListGrid" + childListGrid.getName());
      childListGrid.setService(aService);
      childListGrid.setIsCheckBox(Integer.valueOf(1));
      DAOUtil.INSTANCE().store(childListGrid);
     
      //pane_test.dept.list.insert

      DOServiceRedirect sr = DOServiceRedirect.getServiceRedirect(sInsert.getObjUid());
      sr.setPaneModel(pmChildList);
      DAOUtil.INSTANCE().store(sr);

     
      DOPaneLinks dpl1 = new DOPaneLinks();
      dpl1.setParentPane(pm);
      dpl1.setChildPane(pmParentInsert);
      dpl1.setOrderNum(Integer.valueOf(5));
      DAOUtil.INSTANCE().store(dpl1);
     
      DOPaneLinks dpl2 = new DOPaneLinks();
      dpl2.setParentPane(pm);
      dpl2.setChildPane(pmChildList);
      dpl2.setOrderNum(Integer.valueOf(10));
      DAOUtil.INSTANCE().store(dpl2);
     
     
      DOService parentInsert =  DOService.getService(parentBO.getName()
          + ".insert");
     
      DOService parentUpdate =  DOService.getService(parentBO.getName()
          + ".update");

      DOPaneModel pmParentUpdate = DOPaneModel.getPaneModelByName("pane_"+ parentBO.getName()+".browse.update");
     
      pmParentUpdate.setTargetPane(pmParentInsert);
      DAOUtil.INSTANCE().store(pmParentUpdate);
     
      DOServiceRedirect srParent = DOServiceRedirect.getServiceRedirect(parentInsert.getObjUid());
      srParent.setPaneModel(pmParentUpdate);
      DAOUtil.INSTANCE().store(srParent);
     
     
      DOServiceRedirect srParentU = DOServiceRedirect.getServiceRedirect(parentUpdate.getObjUid());
      srParentU.setPaneModel(pmParentUpdate);
      DAOUtil.INSTANCE().store(srParentU);
     
     
      DOGridModel parentUpdateGrid  = DOGridModel.getGridModelByName("grid_" + parentBO.getName()+".browse.update");
     
     
      DOController formSaveButton = DOController.getControllerByName(TService.class.getName());
      DOPaneModel pmChildInsert = DOPaneModel.getPaneModelByName("pane_"+ curBO.getName()+".list.insert");

      DOFormModel fm = new DOFormModel();
      fm.setController(formSaveButton);
      fm.setL10n("Insert Child");
      fm.setLinkPaneModel(pmChildInsert);
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

 
    DOBO bo = DOBO.getDOBOByName("DO_UI_PaneModel");
    BOInstance bi = bo.getCorrInstance();
    if(bi!=null){
      DOPaneModel pm = DOPaneModel.getPaneModelByID(bi.getUid());
      this.setEchoValue(pm.getHtmlCode());
    }
    return DEFAULT_FORWARD;

  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

    DOBO bo = DOBO.getDOBOByName("DO_UI_PaneModel");
    DOBO boGrid = DOBO.getDOBOByName("DO_UI_GridModel");
    BOInstance biPane = bo.getCorrInstance();
    if (biPane != null) {
      DOPaneModel pm = DOPaneModel.getPaneModelByID(biPane.getUid());
      // 面板
      sb.append("<pane><li>").append(StringUtil.filter(biPane.toJSONString())).append("</li></pane>");

      DOService servPaneLinks = DOService
          .getService("DO_UI_PaneLinks_findbyparentPaneUid");
      sb.append("\n<pane_links>");
      List list = servPaneLinks.invokeSelect(biPane.getUid());
      appendLi(sb, list);
      sb.append("</pane_links>");

      // /面板下面的表格
      DOGridModel gm = pm.getGridModel();
      if (gm != null) {
        BOInstance biGrid = boGrid.getInstance(gm.getObjUid());
        sb.append("<grid>").append(biGrid.toJSONString()).append(
            "</grid>");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.