Examples of DOPaneModel


Examples of com.exedosoft.plat.ui.DOPaneModel

      geneSaveButtonForm(aService, aName, gridM);
    }

    // 对每个Grid赋給一个Pane

    DOPaneModel pane = new DOPaneModel();
    pane.setCategory(aService.getBo());
    pane.setName("pane_" + aService.getName() + aName);

    // ///下一步考虑 是不是名称采用和Servie 一致
    pane.setTitle(aService.getName() + "paneModel" + aName);
    pane.setL10n(aService.getName() + "paneModel" + aName);
    pane.setLinkType(Integer.valueOf(DOPaneModel.LINKTYPE_GRIDMODEL));
    pane.setLinkUID(gridM.getObjUid());
    if (aService.getName().endsWith(".browse")) {
      pane.setController(paneOverFlow);
    } else {
      pane.setController(contentPane);
    }
    DAOUtil.INSTANCE().store(pane);
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

   

    String theValue = fm.getValue();
   

    DOPaneModel cPaneModel = null;
   
    System.out.println("================");
    System.out.println("readonly========" + isReadOnly(fm));
    System.out.println("readonly========" + isReadOnly(fm));
    System.out.println("================");
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

         * 如果是初始化上下文环境,执行到这儿就返回。
         */
        return;
      }

      DOPaneModel containerPaneModel = null;
      if (containerPaneUid != null) {
        containerPaneModel = DOPaneModel
            .getPaneModelByID(containerPaneUid);
        treeModel.setContainerPane(containerPaneModel);

View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

        if (value != null) { // ////////修改的情况

          // ////////////////////add by weikx at 20070806
          // 只要修改的情况输出标签就可以了
          DOPaneModel cPaneModel = null;
          if (property.getGridModel() != null) {
            cPaneModel = property.getGridModel().getContainerPane();
          }

          if (cPaneModel != null
              && cPaneModel.getIsCache() != null
              && cPaneModel.getIsCache().intValue() == DOPaneModel.CACHE_DYN) {// ///当面板采用动态缓存

            String instanceName = "ins_"
                + StringUtil.get_Name(property.getGridModel()
                    .getService().getName());
            buffer.append("<% String theValue =").append(
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

   

    String theValue = fm.getValue();

    DOPaneModel cPaneModel = null;
    if (fm.getGridModel() != null) {
      cPaneModel = fm.getGridModel().getContainerPane();
    }

View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

        // System.out.println("BOINSTANCE++++++++++++++++++++++++++++++++++++++"
        // + bi);

        if (bi != null) {
          // ///////////////////////////////////采用弹出方式
          DOPaneModel theModel = fm.getLinkPaneModel();
          if (theModel != null
              && theModel.getLinkType() != null
              && (theModel.getLinkType().intValue() == DOPaneModel.LINKTYPE_TREEMODEL)) {
            theModel = null;
          }
          return this.getAjaxLink(bi, theModel, "_opener", fm
              .getEscapeDOClickJs());// /property.getContainerPaneName()
        }
      } else {
        String[] strs = theValue.split(";");
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < strs.length; i++) {
          String aInsUid = strs[i];
          BOInstance bi = corrBO.getInstance(aInsUid);
          if (bi != null) {
            DOPaneModel theModel = fm.getLinkPaneModel();
            if (theModel != null
                && theModel.getLinkType() != null
                && (theModel.getLinkType().intValue() == DOPaneModel.LINKTYPE_TREEMODEL)) {
              theModel = null;
            }
            buffer.append(
                this.getAjaxLink(bi, theModel, "_opener", fm
                    .getDoClickJs()))// property.getContainerPaneName()
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

      DAOUtil.INSTANCE().store(aBO);

      /**
       * 存储应用的根面板
       */
      DOPaneModel pmRoot = new DOPaneModel();
      pmRoot.setCategory(aBO);
      pmRoot.setName("pane_" + project.getName());
      pmRoot.setL10n("根面板" + project.getL10n());
      pmRoot.setTitle(project.getDescription());
      pmRoot.setLayOutType(Integer.valueOf(DOPaneModel.LAYOUT_VERTICAL));

      // //////////////ccLayOutPane
      pmRoot.setController(ccLayOutPane);

      DAOUtil.INSTANCE().store(pmRoot);

      // ///////业务对象发布为一个应用
    //  project.setDobo(aBO);
      DAOUtil.INSTANCE().store(project);

      /**
       * 从pane_mainMenuBar copy信息数据
       */
      DOPaneModel fromPmTop = DOPaneModel
          .getPaneModelByName("BaseAnoleHeader");
      /**
       * 建立新的头面板
       */
      DOPaneModel pmTop = new DOPaneModel();

      pmTop.setController(fromPmTop.getController());
      pmTop.setLayOutType(fromPmTop.getLayOutType());
      pmTop.setLinkType(fromPmTop.getLinkType());
      pmTop.setLinkUID(fromPmTop.getLinkUID());
      pmTop.setLayoutAlign("top");
      pmTop.setCategory(aBO);

      pmTop.setTargetPane(fromPmTop.getTargetPane());
      pmTop.setL10n(project.getL10n() + "头面板");
      pmTop.setName(project.getName() + "header_pane");
      DAOUtil.INSTANCE().store(pmTop);

      /**
       * 建立主面板和头面板的关联关系
       */
      DOPaneLinks pmTopLink = new DOPaneLinks();
      pmTopLink.setParentPane(pmRoot);
      pmTopLink.setChildPane(pmTop);
      pmTopLink.setOrderNum(new Integer(5));
      DAOUtil.INSTANCE().store(pmTopLink);

      /**
       * 创建下方的面板
       */
      DOPaneModel pmBottom = new DOPaneModel();
      pmBottom.setCategory(aBO);
      pmBottom.setL10n(project.getL10n() + "工作区域面板");
      pmBottom.setName(project.getName() + "main_pane");
      pmBottom.setLayOutType(Integer
          .valueOf(DOPaneModel.LAYOUT_HORIZONTAL));
      // ///////splitPane

      pmBottom.setController(ccSplitePane);
      pmBottom.setLayoutAlign("client");
      DAOUtil.INSTANCE().store(pmBottom);
      /**
       * 建立主面板和工作区域面板的关联
       */

      DOPaneLinks pmBottomLink = new DOPaneLinks();
      pmBottomLink.setParentPane(pmRoot);
      pmBottomLink.setChildPane(pmBottom);
      pmBottomLink.setOrderNum(new Integer(10));
      DAOUtil.INSTANCE().store(pmBottomLink);

      /**
       * 创建左边索引面板
       */

      DOPaneModel fromPmLeft = DOPaneModel
          .getPaneModelByName("pane_zf_left_xp");
      DOPaneModel pmLeft = new DOPaneModel();

     

      pmLeft.setController(fromPmLeft.getController());
      pmLeft.setLayOutType(fromPmLeft.getLayOutType());
      pmLeft.setLinkType(fromPmLeft.getLinkType());
      pmLeft.setLinkUID(fromPmLeft.getLinkUID());
      pmLeft.setLayoutAlign(fromPmLeft.getLayoutAlign());
      pmLeft.setCategory(aBO);

      pmLeft.setTargetPane(fromPmLeft.getTargetPane());
      pmLeft.setL10n(project.getL10n() + "左边索引面板");
      pmLeft.setName(project.getName() + "leftindex_pane");

      pmLeft.setController(ccTreePane);
     
      DAOUtil.INSTANCE().store(pmLeft);
     

      DOPaneLinks pmLeftLink = new DOPaneLinks();
      pmLeftLink.setParentPane(pmBottom);// //bottomPane为父亲
      pmLeftLink.setChildPane(pmLeft);
      pmLeftLink.setOrderNum(new Integer(15));
      DAOUtil.INSTANCE().store(pmLeftLink);

      DOPaneModel pmContent = new DOPaneModel();// ///主内容显示区。
      pmContent.setCategory(aBO);
      pmContent.setName(project.getName() + "_MainContent");
      pmContent.setL10n(project.getL10n() + "基本内容显示");


      pmContent.setController(cContentPane);
      DAOUtil.INSTANCE().store(pmContent);

      DOPaneLinks pmContentLink = new DOPaneLinks();
      pmContentLink.setParentPane(pmBottom);// //bottomPane为父亲
      pmContentLink.setChildPane(pmContent);
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

      geneSaveButtonForm(aService, aName, gridM);
    }

    // 对每个Grid赋給一个Pane

    DOPaneModel pane = new DOPaneModel();
    pane.setCategory(aService.getBo());
    pane.setName("pane_" + aService.getName() + aName);

    // ///下一步考虑 是不是名称采用和Servie 一致
    pane.setTitle(aService.getName() + "paneModel" + aName);
    pane.setL10n(aService.getName() + "paneModel" + aName);
    pane.setLinkType(Integer.valueOf(DOPaneModel.LINKTYPE_GRIDMODEL));
    pane.setLinkUID(gridM.getObjUid());
    if (aService.getName().endsWith(".browse")) {
      pane.setController(paneOverFlow);
    } else {
      pane.setController(paneC);
    }
    DAOUtil.INSTANCE().store(pane);
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

  }
 
  public static void main(String[] args){

    DOPaneModel pm = DOPaneModel.getPaneModelByID("0220575e5565477a9f9f4ead5af20212");
    System.out.println("PaneModel::" + pm.getGridModel());
   
   
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

      // //自动判断条件面板
      List children = gm.getContainerPane().getParent()
          .retrieveChildren();

      if (children != null && children.size() == 2) {
        DOPaneModel conditionPane = (DOPaneModel) children.get(0);
        DOPaneModel resultModel = (DOPaneModel) children.get(1);
        if (conditionPane != null) {
          if (conditionPane.getDOGridModel() != null) {
            String formName = "a"
                + conditionPane.getDOGridModel().getObjUid();
            data.put("formName", formName);
          }
        }

      }

      // //如果配置了隐藏面板(这里的含义是 拥有表单的面板)
      DOPaneModel hpm = gm.getContainerPane().getHiddenPane();
      if (hpm != null) {
        if (hpm.getDOGridModel() != null) {
          String formName = "a" + hpm.getDOGridModel().getObjUid();
          data.put("formName", formName);
        }
      }

    }
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.