Examples of DOPaneModel


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

Examples of com.exedosoft.plat.ui.DOPaneModel

    this.templateFile = "panel/DelegateSelect.ftl";
  }
 
  public Map<String, Object> putData(DOIModel doimodel){
   
    DOPaneModel pm = (DOPaneModel) doimodel;
    Map<String, Object> data = new HashMap<String, Object>();

    data.put("model", pm);
    data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
    data.put("webmodule", DOGlobals.URL);
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

    this.templateFile = "panel/MainPage.ftl";
  }
 
  public Map<String, Object> putData(DOIModel doimodel) {

    DOPaneModel pm = (DOPaneModel) doimodel;
   
    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", pm);
     
    StringBuffer sbItems = new StringBuffer();
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

    this.templateFile = "panel/DONKWordOpen.ftl";
  }
 
  public Map<String, Object> putData(DOIModel doimodel) {

    DOPaneModel pm = (DOPaneModel) doimodel;
   
    DOBO bo = pm.getCategory();
    BOInstance corrInstance = bo.getCorrInstance();
    String docName = corrInstance.getValue("docName");///字段名称,存储表示文档路径
   
    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", pm);
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

      // log.info("The Enter PaneModel'Name::::::::" + pm.getName());
      // log.info("The Enter PaneModel'childrens:::" +
      // pm.retrieveChildren());

      for (Iterator it = pm.retrieveChildren().iterator(); it.hasNext();) {
        DOPaneModel model = (DOPaneModel) it.next();

        // System.out.println("Current:::::::" +
        // System.currentTimeMillis());
        // System.out.println("Chilld PaneModel'name:::::::" +
        // model.getName());
        // System.out.println("Chilld PaneModel'Controller:::::::" +
        // model.getController().getViewJavaClass());

        buffer.append(model.getHtmlCode());
      }
    } else {

      // ////////////////锟饺达拷印锟剿碉拷锟斤拷息
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

            }
          }
           
          String paneName = e.getAttribute("paneName");
          if(paneName!=null  && !paneName.trim().equals("")){
            DOPaneModel aPM = DOPaneModel.getPaneModelByName(paneName);
            if(aPM!=null){
              ptNode.setPane(aPM);
            }
          }
         
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

public class TPaneTemplate extends DOViewTemplate {

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

    DOPaneModel pm = (DOPaneModel) doimodel;

    Map<String, Object> data = super.putData(doimodel);

    StringBuffer sbItems = new StringBuffer();
    List children = pm.retrieveChildren();
    boolean isMobile = false;

    try {
      if ("jquery_mobile".equals(DOGlobals.getInstance()
          .getSessoinContext().getUser().getValue("jslib"))) {
        isMobile = true;
        data.put("app_index", "/" + DOGlobals.URL + "/" + pm.getCategory().getPakage()
            .getApplication().getName()
            + "_mobile_pane.pml");
      }
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    if (isMobile && children != null && children.size() > 0) {
      DOBasePaneView.genePaneContext(sbItems,
          (DOPaneModel) children.get(0));
      // /直接把第一个作为总面板的替代
      data.put("model", children.get(0));
      String firstName = ((DOPaneModel) children.get(0)).getName();
      java.util.Iterator it = children.iterator();
      it.next();
      if (it.hasNext()) {
        StringBuffer footer = new StringBuffer();
        int i = 0;
        for (; it.hasNext();) {
          DOPaneModel onePm = (DOPaneModel) it.next();
          if (!(i == 0 && firstName.endsWith("_Condition") && onePm
              .getName().endsWith("_Result"))) {
            footer.append("<li><a href='/")
                .append(DOGlobals.URL)
                .append("/")
                .append(onePm.getName())
                .append(".pml' data-theme='b' data-icon='forward'>")
                .append(onePm.getTitle()).append("</a></li>\n");
          }
          i++;
        }
        if (footer.length() > 0) {
          data.put("footer", footer.toString());
        }
      }
      // ////需要追加,后面面板的链接
      // ///第一个很容易添加,如果多个,需要找parent 然后再查找兄弟

    } else {
      String firstName = pm.getName();

      DOPaneModel parent = pm.getParent();
      if (isMobile && parent != null) {
        StringBuffer footer = new StringBuffer();
        children = parent.retrieveChildren();
        int i = 0;
        int cur = children.size();
        String dataIcon = "forward";
        for (java.util.Iterator it = children.iterator(); it.hasNext();) {
          DOPaneModel onePm = (DOPaneModel) it.next();
          if (onePm.equals(pm)) {
            cur = i;
          }
          if (i < cur) {
            dataIcon = "back";
          } else if (i > cur) {
            dataIcon = "forward";
          }
          if (cur != i
              && (!(i == (cur + 1)
                  && firstName.endsWith("_Condition") && onePm
                  .getName().endsWith("_Result")))) {
            footer.append("<li><a href='/").append(DOGlobals.URL)
                .append("/").append(onePm.getName())
                .append(".pml' data-theme='b' data-icon='")
                .append(dataIcon).append("'>")
                .append(onePm.getTitle()).append("</a></li>\n");
          }
          i++;
        }
        if (footer.length() > 0) {
          data.put("footer", footer.toString());
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

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

    DOPaneModel pm = (DOPaneModel) doimodel;
    DOPaneModel conditionPane = pm.getHiddenPane();
    List items = pm.retrieveChildren();
    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", pm);
    if(conditionPane!=null && conditionPane.getGridModel()!=null)
    data.put("conditionGrid", conditionPane.getGridModel());
    data.put("items", items);
    return data;
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOPaneModel

  public String getHtmlCode(DOIModel doimodel) {

    String s = "";
    try {
      DOPaneModel pm = (DOPaneModel) doimodel;

      Map<String, Object> data = this.putData(doimodel);

      s = HtmlTemplateGenerator.getContentFromDBTemplate(pm
          .getController().getObjUid(), data);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return s;
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.