Examples of DOFormModel


Examples of com.exedosoft.plat.ui.DOFormModel

    super();
  }

  public String getHtmlCode(DOIModel iModel) {

    DOFormModel property = (DOFormModel) iModel;

    List list = StringUtil.getStaticList(property.getInputConfig());

    return formSelectStr(property, list);
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

    // TODO Auto-generated constructor stub
  }

  public String getHtmlCode(DOIModel iModel) {

    DOFormModel property = (DOFormModel) iModel;

    StringBuffer href = new StringBuffer("window.open('")
    .append(DOGlobals.PRE_FULL_FOLDER)   
    .append("upload.jsp?colName=")
        .append(property.getFullColName());
   
    href.append("','','width=500,height=250,top=200,scrollbars=yes')");

    StringBuffer buffer = new StringBuffer();

    buffer.append("<input name=\"").append(property.getFullColName())
        .append("\" type=\"text\"").append(" id=\"").append(
            property.getFullColName())
            .append("\"");
   
    buffer.append(this.appendValidateConfig(property));
   

    
    if (property.getValue() != null
        && !property.getValue().trim().equals("")) {
      buffer.append(" value=\"").append(property.getValue()).append("\"");
    }
  //  if (isReadOnly(property)) {
      buffer.append(" readonly=\"readonly\" ");
  //  }
   
   
    //////增加装饰
    buffer.append(getDecoration(property));

    /////////end 增加装饰
    buffer.append(" title='")
    .append(property.getL10n())
    .append("'");
 
    buffer.append(" size=\"").append(getInputSize(property)).append("\"/>");

    buffer.append("<input type='button' value='上传'");

    buffer.append(" onclick=\"").append(href).append(" \"");
    buffer.append(" />\n");
   
    buffer.append("&nbsp;<input type='button' value='重置'");

    buffer.append(" onclick=\"").append("$('").append(property.getFullColName()).append("').value=''; ").append(" \"");
    buffer.append(" />\n");
   
    if (property.isNotNull()) {
      buffer.append("&nbsp;<font color='red'>*</font>");
    }
   

    return buffer.toString();
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

public class DOFCKEditor extends DOBaseForm {

  public String getHtmlCode(DOIModel property) {

    DOFormModel fm = (DOFormModel) property;

    StringBuffer buffer = new StringBuffer();
//    buffer.append("  <script type='text/javascript'>");
//    buffer.append("var sBasePath = '/")
//    .append(DOGlobals.URL)
//    .append("/FCKeditor/';");
//   
//    buffer.append(" var oFCKeditor = new FCKeditor( '")
//    .append(fm.getFullColName())
//    .append("' ) ;");
//   
//    buffer.append("oFCKeditor.BasePath  = sBasePath ; oFCKeditor.Height  = 300 ;");
//   
//    buffer.append("oFCKeditor.Value  = '")
//    .append(StringUtil.unFilterXss(fm.getValue()))
//    .append("' ;oFCKeditor.Create() ;");
//    buffer.append("</script>");
//   
   

    buffer.append("<input type='hidden' id='")
    .append(fm.getFullColName()).append("' name='")
    .append(fm.getFullColName())
    .append("' value='")
    .append(StringUtil.unFilterXss(fm.getValue()))
    .append("'/>")
   
    buffer.append("<input type='hidden' id='")
    .append(fm.getFullColName())
    .append("___Config' ");
        buffer.append("  style='DISPLAY: none' type=hidden>");

   
    buffer.append("<IFRAME id='").append(fm.getFullColName())
    .append("___Frame' style='BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; PADDING-LEFT: 0px; BACKGROUND-IMAGE: none; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: 0px; WIDTH: 100%; PADDING-TOP: 0px; BORDER-BOTTOM: 0px; HEIGHT: 300px; BACKGROUND-COLOR: transparent' src='/")
    .append(DOGlobals.URL)
    .append("/FCKeditor/editor/fckeditor.html?InstanceName=")
    .append(fm.getFullColName())
    .append("&amp;Toolbar=Default' frameBorder=0 width='100%' scrolling=no height=300></IFRAME>");
   
   
    //    buffer.append("<div id='exedo_fckeditor'>\n");
//   
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

public class DOValueStaticListHidden extends DOStaticList {

  public String getHtmlCode(DOIModel aModel) {

    DOFormModel property = (DOFormModel) aModel;
   
    StringBuffer buffer = new StringBuffer();
    buffer.append("<input name=\"").append(property.getFullColName())
        .append("\" type=\"hidden\"");
    if (property.getValue() != null
        && !property.getValue().trim().equals("")) {
      buffer.append(" value=\"").append(property.getValue()).append(
          "\"");
    }
    buffer.append("/>").append(getStaticListValue(property));
    return buffer.toString();
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

public class DOValueHtmlXss implements DOIView {

  public String getHtmlCode(DOIModel aModel) {

    DOFormModel fm = (DOFormModel) aModel;
    if (fm.getValue() != null && !fm.getValue().trim().equals("")) {
      StringBuffer sb=new StringBuffer();
      sb.append("<div style=").append("\"WIDTH:100%; HEIGHT: 631px; BACKGROUND-COLOR: #FFFFFF; overflow-y:scroll; SCROLLBAR-FACE-COLOR: #c2d3fc; SCROLLBAR-HIGHLIGHT-COLOR: #c2d3fc; SCROLLBAR-SHADOW-COLOR: BLACK; SCROLLBAR-3DLIGHT-COLOR: #c2d3fc; SCROLLBAR-ARROW-COLOR:#000000; SCROLLBAR-TRACK-COLOR: FFFFFF; SCROLLBAR-DARKSHADOW-COLOR: EAECEC\"").append(">").append(StringUtil.unFilterXss(fm.getValue())).append("</div>");
      return sb.toString();
    } else {
      return "&nbsp;";
    }
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

    super();
  }

  public String getHtmlCode(DOIModel iModel) {

    DOFormModel property = (DOFormModel) iModel;

    StringBuffer buffer = new StringBuffer();

    if (property.getLinkService() != null) {
      for (Iterator it = property.getLinkService().invokeSelect()
          .iterator(); it.hasNext();) {

        BOInstance instance = (BOInstance) it.next();

        buffer.append("<input name=\"").append(
            property.getFullColName());

        buffer.append("\" value=\"").append(instance.getUid());

        buffer.append("\"  type=\"checkbox\"");

        buffer.append(getDecoration(property));

        if (DOStaticList.isChecked(instance.getUid(), property
            .getValue())) {
          buffer.append(" checked ");
        }
         if (isReadOnly(property)) {
           buffer.append(" DISABLED  ");
         }
        buffer.append("/>");
        //buffer.append(instance.getAjaxLink("_opener", null));
        buffer.append(instance.getName());

      }
    } else if(property.getInputConfig()!=null){

      List list = StringUtil.getStaticList(property.getInputConfig());
      for (Iterator it = list.iterator(); it.hasNext();) {
        String[] half = (String[]) it.next();
        buffer.append("<input name=\"").append(
            property.getFullColName());

        buffer.append("\" value=\"").append(half[0]);

        buffer.append("\"  type=\"checkbox\"");
        buffer.append(getDecoration(property));

        if (DOStaticList.isChecked(half[0], property.getValue())) {
          buffer.append(" checked ");
        }
        // if (isReadOnly(property)) {
        // buffer.append(" disable ");
        // }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

    Map<String, Object> data = new HashMap<String, Object>();
    data.put("model", doimodel);
    data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
    data.put("webmodule", DOGlobals.URL);

    DOFormModel aFm = (DOFormModel) doimodel;
    BOInstance bi = aFm.getData();
    if (bi != null && bi.getValue("contextPiUid") != null) {

      ProcessInstance pi = ProcessInstance.getProcessInstance(bi
          .getValue("contextPiUid"));
      if(pi==null){
        pi = ProcessInstance.getHisProcessInstance(bi.getValue("contextPiUid"));
      }
     
      if (pi!=null && pi.getProcessTemplate() != null
          && pi.getProcessTemplate().getDoBO() != null
          && pi.getProcessTemplate().getDoBO().getMainPaneModel() != null) {
        String instanceUid = bi.getValue("instance_uid");
        if(instanceUid!=null){
          data.put("busiBOName", pi.getProcessTemplate().getDoBO().getName());
          data.put("instance_uid", instanceUid);
        }
        data.put("paneModel", pi.getProcessTemplate().getDoBO()
            .getMainPaneModel());
      }
    } else if (aFm.getLinkPaneModel() != null) {
      data.put("paneModel", aFm.getLinkPaneModel());
    }
    return data;
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

public class DatePicker extends DOBaseForm {

  @Override
  public String getHtmlCode(DOIModel aModel) {

    DOFormModel property = (DOFormModel) aModel;

    StringBuffer buffer = new StringBuffer();

    buffer.append("<input ").append(" id='")
        .append(property.getFullColID()).append("' name='").append(
            property.getFullColName()).append("'");

    buffer.append(this.appendValidateConfig(property));

    buffer.append(getDecoration(property));

    buffer.append(" title='").append(property.getL10n()).append("'");

    if (property.getValue() != null) {
      String dataValue = property.getValue();
//      if (!isValidDate(dataValue)) {
//        if (dataValue.indexOf(" ") != -1) {
//          dataValue = dataValue.split(" ")[0];
//        }
//      }
      buffer.append(" value='").append(dataValue).append("'");
    }

    buffer.append(" onClick=\"WdatePicker(");

    if (property.getInputConstraint() != null) {
      buffer.append(property.getInputConstraint());
    } else {
      buffer.append("{dateFmt:'yyyy-M-d'}");
    }

    buffer.append(")\" ");

    buffer.append(" size=\"").append(getInputSize(property)).append("\"/>");

    if (property.isNotNull()) {
      buffer.append("&nbsp;<font color='red'>*</font>");
    }

    return buffer.toString();
  }
View Full Code Here

Examples of com.exedosoft.plat.ui.DOFormModel

public class DOPopWindow extends DOBaseForm {

  public String getHtmlCode(DOIModel iModel) {

    DOFormModel property = (DOFormModel) iModel;

    StringBuffer buffer = new StringBuffer();

    String widgetID = "a" + UUIDHex.getInstance().generate();

    buffer
        .append("<div dojoType='DropdownPopWindow' id='")
        .append(widgetID)
        .append("' href='")
        .append(property.getLinkPaneModel().getFullCorrHref(null, null))
        .append("&dropDownID=").append(widgetID);

    buffer.append("' aHiddenName='").append(property.getFullColName());

    if (property.getValue() != null
        && !property.getValue().trim().equals("")) {

      DOBO doBO = null;
      if (property.getLinkBO() != null) {
        doBO = property.getLinkBO();
      } else if (property.getLinkService() != null) {
        doBO = property.getLinkService().getBo();
      }

      BOInstance bi = DOValueResultList.getAInstance(property, doBO,
          property.getValue());

      System.out.println("BOInstance===========" + bi);

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

Examples of com.exedosoft.plat.ui.DOFormModel

public class DatePickerBetween extends DOBaseForm {

  @Override
  public String getHtmlCode(DOIModel aModel) {
    DOFormModel property = (DOFormModel) aModel;

    StringBuffer buffer = new StringBuffer();

    getAInputTimeStr(property, buffer, "");
    buffer.append("&nbsp; 至  &nbsp;");
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.