Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.DOBO


    String theValue = property.getValue();
   
   
    OrgParter userParter = OrgParter.getDefaultEmployee();

    DOBO userBO = userParter.getDoBO();

     
    BOInstance   bi = DOValueResultList.getAInstance(property,userBO, theValue);

View Full Code Here


   
  }

  public static void main(String[] args) throws ExedoException {
   
    DOBO boPane = DOBO.getDOBOByName("DO_UI_PaneModel");
    DOBO boGrid = DOBO.getDOBOByName("DO_UI_GridModel");
    DOBO boProperty = DOBO.getDOBOByName("DO_BO_Property");
    DOBO boService = DOBO.getDOBOByName("DO_Service");
    DOBO boController = DOBO.getDOBOByName("DO_UI_Controller");
   
    DOBO aBO = DOBO.getDOBOByName("do_bo");
   
    DOBO boPackage = DOBO.getDOBOByName("DO_BusiPackage");
    DOBO boDataSource = DOBO.getDOBOByName("DO_DataSource");

    DOBO boApplication = DOBO.getDOBOByName("DO_Application");
   
    DOBO boCodeMain = DOBO.getDOBOByName("DO_CODE_MAIN");
   
    DOBO boActionConfig = DOBO.getDOBOByName("DO_ActionConfig");
   
    DOBO boParameter = DOBO.getDOBOByName("DO_Parameter");
   
    DOBO boFormModel = DOBO.getDOBOByName("DO_UI_FormModel");
   
    PropertyManager pm = new PropertyManager();
   
    //relationPropertyUid
    pm.buildRelation("applicationUID", boApplication);
View Full Code Here

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

    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();
View Full Code Here

          fm.getRelationProperty().getColName());
    }

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

      DOBO corrBO = fm.getLinkBO();

      if (corrBO == null && fm.getLinkService() != null) {
        corrBO = fm.getLinkService().getBo();
      }
      if (theValue.indexOf(";") == -1) {
        BOInstance<?> bi = null;

        /**
         * 可变动态下拉列表, 根据连接的FORMMODEL,一般静态staticlist 确定使用的服务
         */
        if (isDyn) {
          DOFormModel linkFm = (DOFormModel) fm.getLinkForms().get(0);
          String theLinkValue = fm.getData().getValue(
              linkFm.getColName());

          if (theLinkValue != null) {

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

            for (Iterator it = list.iterator(); it.hasNext();) {
              String[] halfs = (String[]) it.next();

              if ((theLinkValue != null && theLinkValue
                  .equals(halfs[0]))) {
                DOService theCorrService = DOService
                    .getService(halfs[1]);
                if (theCorrService != null) {
                  corrBO = theCorrService.getBo();
                }
                break;
              }
            }
          }
          bi = getAInstance(null, corrBO, theValue);
        } else {
          bi = getAInstance(fm, corrBO, theValue);
        }

        // /
        // 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)) {
View Full Code Here

    if (category == null) {
      return;
    }

    // //需要用到的业务对象
    DOBO bo = DOBO.getDOBOByName("DO_BO");
    bo.refreshContext(category.getObjUid());

    List properties = category.retrieveProperties();
    if (properties.size() == 0) {
      return;
    }

    // 总面板面呈
    DODataSource dds = DODataSource.parseGlobals();
    DAOUtil.INSTANCE().currentDataSource(dds);
    Transaction t = dds.getTransaction();

    try {

      if (DOPaneModel.getPaneModelByName(mainPaneName) != null) {
        System.err.println("面板已经存在------------");
        return;
      }
      t.begin();

      /**
       * 生成总面板
       */
      DOPaneModel pmTotal = new DOPaneModel();
      pmTotal.setName(mainPaneName);
      pmTotal.setL10n(mainPaneName);
      pmTotal.setCategory(category);
      pmTotal.setController(paneOverFlow);

      DOService aService = DOService.getService("do_ui_panemodel_copy");
      DAOUtil.INSTANCE().store(pmTotal, aService);

      DOPaneModel pmResult = geneResult(properties);
      DOPaneModel pmCondition = geneCondition(properties, pmResult);

      aService = DOService.getService("DO_UI_PaneLinks_copy");
      DOPaneLinks link1 = new DOPaneLinks();
      link1.setParentPane(pmTotal);
      link1.setChildPane(pmCondition);
      link1.setOrderNum(5);
      DAOUtil.INSTANCE().store(link1, aService);

      DOPaneLinks link2 = new DOPaneLinks();
      link2.setParentPane(pmTotal);
      link2.setChildPane(pmResult);
      link2.setOrderNum(10);
      DAOUtil.INSTANCE().store(link2, aService);

      // //搞一下菜单

      DOPaneModel _opener_tab = DOPaneModel
          .getPaneModelByName("_opener_tab");

      String menuName = "";

      try {
        String bpUid = DOGlobals.getInstance().getSessoinContext()
            .getFormInstance().getValue("bpUid");
        BusiPackage dbp = BusiPackage.getPackageByID(bpUid);
        menuName = dbp.getApplication().getName();
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }

      DOMenuModel parentMenu = DOMenuModel.getMenuModelByName(menuName);
      DOBO boMenu = DOBO.getDOBOByName("DO_UI_MenuModel");
     
      if(parentMenu==null){
        DOMenuModel dmm  =  DOMenuModel.getMenuModelByName(menuName+"_root");
        if(dmm!=null){
          parentMenu = (DOMenuModel)dmm.retrieveChildren().get(0);
        }
      }
     
      if (parentMenu != null) {
        boMenu.refreshContext(parentMenu.getObjUid());
      }
      DOMenuModel dmm = new DOMenuModel();
      dmm.setName(geneATable);
      dmm.setL10n(geneATable);
      dmm.setLinkPane(pmTotal);
View Full Code Here

    BusiPackage bp = new BusiPackage();
    bp.setApplication(project);
    bp.setL10n(project.getL10n());
    bp.setName(project.getName());

    DOBO aBO = new DOBO();
    aBO.setType(DOBO.TYPE_BUSINESS);
    aBO.setName(project.getName() + "global.bo");
    aBO.setL10n(project.getL10n() + "全局业务对象");
   
    DODataSource dds = DODataSource.parseGlobals();
   
    Transaction t = dds.getTransaction();
   
    t.begin();
   
    try {
      // //////////保存业务包
      DAOUtil.INSTANCE().store(bp);

      // //保存业务对象
      aBO.setPakage(bp);
      DAOUtil.INSTANCE().store(aBO);

      /**
       * 存储应用的根面板
       */
 
View Full Code Here

    DOService.initParaValues();
   
    List list = new ArrayList();
    if(boUid!=null){
      DOBO bo = DOBO.getDOBOByID(boUid);
      list = bo.getDSeleAllService().invokeSelect();
    }

    this.setInstances(list);
    // TODO Auto-generated method stub
    return DEFAULT_FORWARD;
View Full Code Here

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

      String contextClassUid = formBI.getValue("contextClassUid");
      BOInstance bi = null;
      if (contextClassUid != null && !contextClassUid.trim().equals("")) {
        DOBO bo = DOBO.getDOBOByID(contextClassUid);
        bi = bo.refreshContext(contextInstanceUid);
      } else if (curService.getBo() != null) {
        log.info("RefreshContextInstance:::::::::" + contextInstanceUid);
        bi = curService.getBo().refreshContext(contextInstanceUid);
      }
    }
View Full Code Here

        }
      }
      // ////////////////////////////////////end 新增=====================

      // ////////////修改   begin==============================================
      DOBO refreshBO = aFm.getGridModel().getService().getBo();

      String[] ids = uiForm.getValueArray("id");
      if (ids != null && ids.length > 0) {

        PreparedStatement pstmt = con.prepareStatement(updateService
            .getTempSql());
        for (int ii = 0; ii < ids.length; ii++) {
          String idstr = ids[ii];
          System.out.println("one isstr::" + idstr);
          if (idstr != null) {
            String[] vals = idstr.split(";﹕#");
            HashMap<String, String> paras = new HashMap<String, String>();
            String id = "";
            if (vals != null && vals.length > 0) {
              id = vals[0];
              for (int j = 1; j < vals.length; j++) {
                String aKeyValue = vals[j];
                System.out.println("aKeyValue::::::" + aKeyValue);
                String[] arrayKV = aKeyValue.split("﹕﹕");
                String aValue = null;
                if(arrayKV.length > 1){
                   aValue = arrayKV[1];
                }
                paras.put(arrayKV[0],aValue);
              }
            }
           
            System.out.println("paras:::::" + paras);

            BOInstance oldInstance = refreshBO.refreshContext(id);
            String newKeyValue = null;
            int i = 1;
            for (Iterator it = updateService
                .retrieveParaServiceLinks().iterator(); it
                .hasNext();) {
View Full Code Here

public class DOBackTaskNoSave extends DOAbstractAction {

  private static final long serialVersionUID = -7288193881377838284L;

  public String excute() {
    DOBO ptNI = DOBO.getDOBOByName("do_wfi_nodeinstance");
    if (ptNI.getCorrInstance() == null) {
      this.setEchoValue(I18n.instance().get("当前工作流上下文丢失,请重新操作!"));
      return null;
    }
    NodeInstance ni = NodeInstance.getNodeInstanceByID(ptNI
        .getCorrInstance().getUid());
    try {
      ni.returnBack();
    } catch (WFException e) {
      this.setEchoValue(e.getMessage());
View Full Code Here

TOP

Related Classes of com.exedosoft.plat.bo.DOBO

Copyright © 2018 www.massapicom. 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.