Examples of DOPaneModel


Examples of com.exedosoft.plat.ui.DOPaneModel

    }

    // ///Mobile特殊代码点击链接的面板
    String linkPaneName = "#";
    List topForms = gm.getTopOutGridFormLinks();
    DOPaneModel browseModel = DOPaneModel.getPaneModelByName("pm_"
        + gm.getCategory().getName() + "_browse");
   
    DOFormModel lastModel = (DOFormModel)cols.get(cols.size() - 1);
    if("查看".equals(lastModel.getL10n())){
      if(lastModel.getLinkPaneModel()!=null){
        linkPaneName = lastModel.getLinkPaneModel().getName();
      }
    }
    List lastLinkForms = lastModel.getLinkForms();
    if(lastLinkForms!=null){
      for(Iterator it = lastLinkForms.iterator(); it.hasNext();){
        DOFormModel aFm = (DOFormModel)it.next();
        if("查看".equals(aFm.getL10n()) || "Browse".equals(aFm.getL10n()) ){
          if(aFm.getLinkPaneModel()!=null){
            linkPaneName = aFm.getLinkPaneModel().getName();
            break;
          }
        }
       
      }
    }
   
   
    if (linkPaneName.equals("#") && browseModel != null) {
      linkPaneName = browseModel.getName();
    }

    if (linkPaneName.equals("#")) {
      if (topForms != null && topForms.size() > 0) {
        DOFormModel aFm = (DOFormModel) topForms.get(0);
        if (aFm.getLinkPaneModel() != null) {
          linkPaneName = aFm.getLinkPaneModel().getName();
        }
      }
    }
   
    try{
      if(gm.getService().getBo().getMainPaneModel()!=null){
        linkPaneName = gm.getService().getBo().getMainPaneModel().getName();
       
      }
    }catch(Exception e){
     
    }
   
    // /////////////Mobile显示的列
    // ////下一步可以用户定义列
    // //DOGlobals.getInstance()
    // .getSessoinContext().getFormInstance().getValue(
    // "cols")
    List showCols = new ArrayList();
    List controCols = new ArrayList();
    if (cols.size() > 3) {
      splitCols(showCols, controCols, (DOFormModel)cols.get(0));
      splitCols(showCols, controCols, (DOFormModel)cols.get(1));
      splitCols(showCols, controCols, (DOFormModel)cols.get(cols.size() - 1));
      /////如果最后一列是控制列,则再显示一列
      if(controCols.size() >0 ){
        splitCols(showCols, controCols, (DOFormModel)cols.get(2));
      }
    } else {
      for(Iterator it = cols.iterator(); it.hasNext();){
        DOFormModel aFm = (DOFormModel)it.next();
        splitCols(showCols, controCols, aFm);
      }
    }
   
    List bottomForms =  gm.getBottomOutGridFormLinks();
    for(Iterator it = topForms.iterator(); it.hasNext();){
      DOFormModel aFm = (DOFormModel)it.next();
      if(!aFm.getController().getName().toLowerCase().contains("selected")){
        bottomForms.add(aFm);
      }
    }

    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", gm);
    data.put("showCols", showCols);
    data.put("controCols", controCols);
    data.put("bottomForms", bottomForms);
    data.put("linkPaneName", linkPaneName);
    data.put("data", getListData(gm, data));
    data.put("webmodule", DOGlobals.URL);
    data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
   
    if (gm.getContainerPane() != null) {
      data.put("pmlName", gm.getContainerPane().getName());
    }
    data.put("formName", "a" + gm.getObjUid());

    if (gm.getContainerPane() != null
        && gm.getContainerPane().getParent() != null) {

      // //自动判断条件面板
      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

Examples of com.exedosoft.plat.ui.DOPaneModel

      DOBO boFormLink = DOBO.getDOBOByName("DO_UI_FormLinks");
      DOBO boFormTarget = DOBO.getDOBOByName("DO_UI_FormTargets");

      // /还要复制子面板连接(子面板内部不复制)
      BOInstance biPane = boPane.getCorrInstance();
      DOPaneModel pm = DOPaneModel.getPaneModelByID(biPane.getUid());

      DOGridModel gm = pm.getGridModel();
      // //如果连接的是表格:::::暂时只实现这个
      if (gm != null) {

        // /////保存GridModel
        BOInstance biGrid = boGrid.getInstance(gm.getObjUid());
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) {
            formName = "a"
                + conditionPane.getDOGridModel().getObjUid();
          }
        }

      }
    }
    // //如果配置了查询条件面板(这里的含义是 拥有表单的面板)
    DOPaneModel hpm = null;
    if(gm.getContainerPane()!=null){
      hpm = gm.getContainerPane().getHiddenPane();
    }
    if (hpm != null) {
      if (hpm.getDOGridModel() != null) {
        formName = "a" + hpm.getDOGridModel().getObjUid();
      }
    }
    if(gm.getBottomOutGridFormLinks().size()>0){
      DOFormModel firstFm = (DOFormModel)gm.getBottomOutGridFormLinks().get(0);
      if(firstFm.isHidden()){
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) {
            formName = "a"
                + conditionPane.getDOGridModel().getObjUid();
          }
        }

      }

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

    }
    if(gm.getBottomOutGridFormLinks().size()>0){
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

   
    DOFormModel aFm = (DOFormModel)doimodel;
    BOInstance bi = aFm.getData();

    if(bi!=null && bi.getValue("paneuid")!=null){
      DOPaneModel paneModel = DOPaneModel.getPaneModelByID(bi.getValue("paneuid"));
      data.put("paneModel", paneModel);
    }else if(aFm.getLinkPaneModel()!=null){
      data.put("paneModel", aFm.getLinkPaneModel());
    }
    return data;
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);
        BOInstance data = property.getData();
        if (bi != null) {
          // ///////////////////////////////////采用弹出方式
          DOPaneModel theModel = property.getLinkPaneModel();
          if (theModel != null
              && theModel.getLinkType() != null
              && (theModel.getLinkType().intValue() == DOPaneModel.LINKTYPE_TREEMODEL)) {
            theModel = null;
          }
         
          if(bi.getName()!=null){
            return DOValueService.stardardOnlyPane(property,bi.getName()).toString();
          }else{
            return DOValueService.stardardOnlyPane(property,property.getValue()).toString();
          }
         
        }
      } 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 = property.getLinkPaneModel();
            if (theModel != null
                && theModel.getLinkType() != null
                && (theModel.getLinkType().intValue() == DOPaneModel.LINKTYPE_TREEMODEL)) {
              theModel = null;
            }
           
            if(bi.getName()!=null){
              return DOValueService.stardardOnlyPane(property,bi.getName()).toString();
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

        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 =")
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

    buffer.append(" title='").append(fm.getL10n().trim()).append("'");

    String theValue = fm.getValue();

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

    if (theValue != null) {
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.