Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.DOService


  }

  public String getHtmlCode(DOIModel aModel) {

    DOFormModel fModel = (DOFormModel) aModel;
    DOService linkService = fModel.getLinkService();
    if (linkService == null) {
      return " ";
    }
    if (linkService.getBo().getValueCol() == null) {
      return " ";
    }
 
    StringBuffer buffer = new StringBuffer();
    int i = 0;
    for (Iterator it = linkService.invokeSelect().iterator(); it.hasNext();) {
      BOInstance bi = (BOInstance<?>) it.next();
      buffer.append(bi.getThisLink());
      buffer.append(";");
      if(i  > 5){
        buffer.append("<br>");
View Full Code Here


   * @param args
   * @throws ExedoException
   */
  public static void main(String[] args) throws ExedoException {
    // TODO Auto-generated method stub
    DOService insertLoginLog = DOService.getService("do_log_insert");
    Map map = new HashMap();
    map.put("userName", "tttt");
    map.put("sessionid", "aaaaaaaaaaa");
    insertLoginLog.invokeUpdate(map);

  }
View Full Code Here

       this.setEchoValue("两次输入的新密码不一致");
       return NO_FORWARD;
      
    }
    //
    DOService findUser = DOService.getService("student.findByuserNameAndPassWord");
    String userName = DOGlobals.getInstance().getSessoinContext().getUser().getName();
   
    List users =  findUser.invokeSelect(userName,StringUtil.MD5(old_password));
   
    if(users==null || users.size()==0){
      this.setEchoValue("您输入的的旧密码不正确");
      return NO_FORWARD;
    }else{
     
      DOService updatePassword = DOService.getService("do.bx.user.update.passowrd");
      updatePassword.invokeUpdate(StringUtil.MD5(new_password1),DOGlobals.getInstance().getSessoinContext().getUser().getUid());
    }
 
    return DEFAULT_FORWARD;
  }
View Full Code Here

    }
    if(!new_password1.equals(new_password2)){
       this.setEchoValue(I18n.instance().get("两次输入的新密码不一致"));
       return NO_FORWARD;
    }
    DOService updatePassword = DOService.getService("tbemployee.change.password.by.fdloginid");
    updatePassword.invokeUpdate(StringUtil.MD5(new_password1),userid);
    return DEFAULT_FORWARD;
  }
View Full Code Here

    if (ptUid == null && ptUid == null) {
      this.setEchoValue(I18n.instance().get("流程模板没有定义!"));
      return NO_FORWARD;
    }

    DOService insertService = DOService.getService(instance.getName()
        + "_insert");
    if (insertService != null) {

      // //////////////////做insert 服务的copy
      DOActionConfig ac = DOActionConfig
          .getActionConfig(com.exedosoft.plat.action.wf.DOStartWf.class
              .getCanonicalName());

      DOBO thisBO = DOBO.getDOBOByID(instance.getUid());

      DOService selectService = DOService.getService("DO_Service_Browse");

      BOInstance biService = selectService.getInstance(insertService
          .getObjUid());

      BOInstance biNewService = CopyServiceDeep.copyService(biService,
          insertService);

      DOService newService = DOService.getServiceByID(biNewService
          .getUid());

      newService.setName(instance.getName() + "_subflow");
      newService.setL10n(thisBO.getL10n() + "提交流程");
      newService.setActionConfig(ac);

      DAOUtil.INSTANCE().store(newService);
      // //////////////////做insert 服务的copy

      // //创建面板
      DOService aBrowseService = DOService.getService(instance.getName()
          + "_browse");

      DOGridModel gridM = GeneUICompByTableJquery.genePaneAndGrid(
          aBrowseService, gridSupportMore, thisBO.getName()
              + "_subflowAndinsert", "提交工作流");
      DOFormModel formM = new DOFormModel();
      formM.setL10n("提交流程");

      formM.setLinkService(newService);
      formM.setIsNewLine(1);
      formM.setNameColspan(Integer.valueOf(0));
      formM.setIsOutGridAction(DOFormModel.OUTGRID_BOTTOM);

      formM.setAlign("center");

      DOPaneModel pm = DOPaneModel.getPaneModelByName("PM_"
          + newService.getBo().getName() + "_subflowAndInsert");
      formM.setGridModel(gridM);
      formM.setOrderNum(Integer.valueOf(1000));
      formM.setController(formServiceUf);
      formM.setLinkPaneModel(pm);
      formM.setTargetPaneModel(pm);
      DAOUtil.INSTANCE().store(formM);
     
     
      DOService ptUpdateSimple = DOService.getService("do_pt_processtemplate_update_simple");
      ProcessTemplate  pt  = ProcessTemplate.getPTByID(ptUid);
      if(pt!=null){
        pt.setDoBO(thisBO);
        pt.setPane(pm);
        DAOUtil.INSTANCE().store(pt,ptUpdateSimple);
View Full Code Here

  public static void main(String[] args) {
   
    CacheFactory.getCacheData().fromSerialObject();

    DOService ptUpdateSimple = DOService.getService("do_pt_processtemplate_update_simple");
   
    System.out.println(ptUpdateSimple);

  }
View Full Code Here

    DOBO bo = DOBO.getDOBOByName("DO_Service");
    DOBO boPara = DOBO.getDOBOByName("DO_Parameter");
    DOBO boRule = DOBO.getDOBOByName("DO_Rule");
    BOInstance biService = bo.getCorrInstance();
    if (biService != null) {
      DOService pm = DOService.getService(biService.getUid());

      // 业务对象下面的服务
      sb.append("\n<service><li>").append(StringUtil.filter(biService.toJSONString())).append(
          "</li></service>");

      // 服务下面的参数
      DOService servParaService = DOService
          .getService("DO_Parameter_Service_findbyserviceUid");
      sb.append("\n<parameter_service>");
      List paraServices = servParaService
          .invokeSelect(biService.getUid());
      appendLi(sb, paraServices);
      sb.append("</parameter_service>");
     
      List paras = new ArrayList();
      for(Iterator it = paraServices.iterator(); it.hasNext();){
        BOInstance biParaService = (BOInstance)it.next();
        BOInstance biPara = boPara.getInstance(biParaService.getValue("parameterUid"));
        paras.add(biPara);
      }
      sb.append("\n<parameter>");
      appendLi(sb, paras);
      sb.append("</parameter>");
     

      // 服务下面的规则
      DOService servRuleService = DOService
          .getService("DO_Service_Rule_findbyserviceuid");
      sb.append("\n<rule_service>");
      List ruleServices = servRuleService
          .invokeSelect(biService.getUid());
      appendLi(sb, ruleServices);
      sb.append("</rule_service>");
     
      List rules = new ArrayList();
View Full Code Here

  public static void main(String[] args) {

   
    CacheFactory.getCacheData().fromSerialObject();

    DOService aService = DOService.getService("DO_BO_Property_findbybouid_keyiscolName");
   
    System.out.println(aService);
    if(aService!=null){
    List l = aService.invokeSelect("2c90b186301b0aac01301b0aac390000");
   
    System.out.println(l);
    }

View Full Code Here

      StringBuffer aServiceSql = new StringBuffer("select * from ");
      aServiceSql.append(bo.getCorrInstance().getValue("sqlStr")).append(
          " where ").append(prop.getColName()).append(" = ?");
      log.info(" The Service Sql is ::" + aServiceSql);
      DOService aService = new DOService();
      aService.setBo(curBO);
      aService.setMainSql(aServiceSql.toString());
      aService.setName(parentBO.getName() + "have" + curBO.getName());
      aService.setL10n(parentBO.getL10n() + "拥有的" + curBO.getL10n());
      DAOUtil.INSTANCE().store(aService);

      DOParameterService dps = new DOParameterService();
      dps.setDop(keyPara);
      dps.setDos(aService);
      dps.setOrderNum(new Integer(5));
      DAOUtil.INSTANCE().store(dps);

      DOService sInsert = DOService.getService(curBO.getName()
          + ".insert");
      log.info("Find the insert Service::" + sInsert.getName());
      DOParameterService paraInsert = DOParameterService
          .getDOParaService(propPara.getObjUid(), sInsert.getObjUid());
      if (paraInsert != null) {
        paraInsert.setDop(keyPara);
        DAOUtil.INSTANCE().store(paraInsert);
      }

      DOService sUpdate = DOService.getService(curBO.getName()
          + ".update");
      log.info("Find the update Service::" + sUpdate.getName());
      DOParameterService paraUpdate = DOParameterService
          .getDOParaService(propPara.getObjUid(), sUpdate.getObjUid());
      if (paraUpdate != null) {
        paraUpdate.setDop(keyPara);
        DAOUtil.INSTANCE().store(paraUpdate);
      }
     
   
      //////////////////////////////////////////end Business
     
     
     
     
      DOPaneModel pmParentInsert = DOPaneModel.getPaneModelByName("pane_"+ parentBO.getName()+".list.insert");
      DOPaneModel pmChildList = DOPaneModel.getPaneModelByName("pane_"+ curBO.getName()+".list");
     
      pmChildList.setTargetPane(pmChildList);
      DAOUtil.INSTANCE().store(pmChildList);
     
      DOController ccSplitePane = DOController.getControllerByName(LayOutSplitPane.class.getName());
      DOPaneModel pm = new DOPaneModel();
      pm.setName(curBO.getName()+"And"+parentBO.getName()+"LinkPane");
      pm.setL10n(curBO.getName()+"And"+parentBO.getName()+"LinkPane");
      pm.setController(ccSplitePane);
      pm.setLinkType(Integer.valueOf(DOPaneModel.LAYOUT_VERTICAL));
      pm.setCategory(pmParentInsert.getCategory());
     
      DAOUtil.INSTANCE().store(pm);
      //pane_test.dept.list.insert
      DOGridModel childListGrid  = DOGridModel.getGridModelByName("grid_" + curBO.getName()+".list");
      log.info("get the chidlListGrid" + childListGrid.getName());
      childListGrid.setService(aService);
      childListGrid.setIsCheckBox(Integer.valueOf(1));
      DAOUtil.INSTANCE().store(childListGrid);
     
      //pane_test.dept.list.insert

      DOServiceRedirect sr = DOServiceRedirect.getServiceRedirect(sInsert.getObjUid());
      sr.setPaneModel(pmChildList);
      DAOUtil.INSTANCE().store(sr);

     
      DOPaneLinks dpl1 = new DOPaneLinks();
      dpl1.setParentPane(pm);
      dpl1.setChildPane(pmParentInsert);
      dpl1.setOrderNum(Integer.valueOf(5));
      DAOUtil.INSTANCE().store(dpl1);
     
      DOPaneLinks dpl2 = new DOPaneLinks();
      dpl2.setParentPane(pm);
      dpl2.setChildPane(pmChildList);
      dpl2.setOrderNum(Integer.valueOf(10));
      DAOUtil.INSTANCE().store(dpl2);
     
     
      DOService parentInsert =  DOService.getService(parentBO.getName()
          + ".insert");
     
      DOService parentUpdate =  DOService.getService(parentBO.getName()
          + ".update");

      DOPaneModel pmParentUpdate = DOPaneModel.getPaneModelByName("pane_"+ parentBO.getName()+".browse.update");
     
      pmParentUpdate.setTargetPane(pmParentInsert);
      DAOUtil.INSTANCE().store(pmParentUpdate);
     
      DOServiceRedirect srParent = DOServiceRedirect.getServiceRedirect(parentInsert.getObjUid());
      srParent.setPaneModel(pmParentUpdate);
      DAOUtil.INSTANCE().store(srParent);
     
     
      DOServiceRedirect srParentU = DOServiceRedirect.getServiceRedirect(parentUpdate.getObjUid());
      srParentU.setPaneModel(pmParentUpdate);
      DAOUtil.INSTANCE().store(srParentU);
     
     
      DOGridModel parentUpdateGrid  = DOGridModel.getGridModelByName("grid_" + parentBO.getName()+".browse.update");
     
     
      DOController formSaveButton = DOController.getControllerByName(TService.class.getName());
      DOPaneModel pmChildInsert = DOPaneModel.getPaneModelByName("pane_"+ curBO.getName()+".list.insert");

      DOFormModel fm = new DOFormModel();
      fm.setController(formSaveButton);
      fm.setL10n("Insert Child");
      fm.setLinkPaneModel(pmChildInsert);
      fm.setIsOutGridAction(Integer.valueOf(DOFormModel.OUTGRID_BOTTOM));
     
      fm.setController(formSaveButton);
      fm.setGridModel(parentUpdateGrid);
      fm.setOrderNum(new Integer(2000));
      DAOUtil.INSTANCE().store(fm);
     
     
     
      DOActionConfig ac = DOActionConfig.getActionConfig("deleteallaction");
      DOService sDelete = DOService.getService(curBO.getName()
          + ".delete");
      sDelete.setActionConfig(ac);
      DAOUtil.INSTANCE().store(sDelete);
     
      DOServiceRedirect srChildDelete = DOServiceRedirect.getServiceRedirect(sDelete.getObjUid());
      srChildDelete.setPaneModel(pmChildList);
      DAOUtil.INSTANCE().store(srChildDelete);
       
      DOController deletecontroller = DOController.getControllerByName("deletecontroller");

View Full Code Here

    StringBuilder sb = new StringBuilder("<export>");
    DOBO bo = DOBO.getDOBOByName("DO_UI_Controller");

    BOInstance biController = bo.getCorrInstance();
    if (biController != null) {
      DOService pm = DOService.getService(biController.getUid());
      sb.append("\n<controller><li>").append(StringUtil.filter(biController.toJSONString())).append(
          "</li></controller>");
    }
    sb.append("</export>");
    this.setEchoValue(sb.toString());
View Full Code Here

TOP

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

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.