Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.BOInstance


      DOService findUserService = DOService
          .getService("do.bx.role.findbyuseridcontext");
      List listRoles = findUserService.invokeSelect(accountUid);
      if (listRoles != null) {
        for (Iterator roles = listRoles.iterator(); roles.hasNext();) {
          BOInstance boRole = (BOInstance) roles.next();
          OrgParterValue pv = new OrgParterValue(parter, boRole
              .getUid(), boRole.getName());
          allAuths.add(pv);
        }
      }
    }
  }
View Full Code Here


    DOService rfService = DOService
        .getService("do.bx.role.findbyuserid.xes.ids_xes");
    List rfList = rfService.invokeSelect(accountUid);

    for (Iterator it = rfList.iterator(); it.hasNext();) {
      BOInstance bi = (BOInstance) it.next();
      pureMenuUids.add(bi.getValue("whatuid"));
    }
    System.out.println("List::::::" + rfList);
   
   
   
View Full Code Here

    String[] recieveArray = recieveids.split(",");
    if (recieveArray != null && recieveArray.length > 0) {
      System.out.println("Msg Send Service:::" + msgInsert);
      System.out.println("Send Msg Error::::::::::::::");

      BOInstance aInstance = msgInsert.invokeUpdate();
      msgReadInsert.beginBatch();
      for (int i = 0; i < recieveArray.length; i++) {
        String recieveuid = recieveArray[i];
        if (recieveuid != null && recieveuid.trim().length() > 0) {
          map.put("recieveuid", recieveuid);
View Full Code Here

        }
        log
            .info("Select Data's ID::::::::::::::::::::::::"
                + keyHidden);

        BOInstance oldInstance = refreshBO.refreshContext(keyHidden);
        String newKeyValue = null;

        int i = 1;
        for (Iterator it = this.service.retrieveParaServiceLinks()
            .iterator(); it.hasNext();) {
View Full Code Here

    if (theService.getIsLog() == null
        || theService.getIsLog().intValue() == DOService.LOG_NO) {
      return;
    }

    BOInstance bi = theService.getBo().getInstance(uid);
    if (bi == null) {
      return;
    }
    SessionContext.getInstance().getThreadContext().put("old_instance",
        oldInstance);

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

      DOAction ca = ActionFactory.getAction(theService.getFilterClass());
      ca.setService(theService);
      if (bi != null) {
        ca.setInstance(bi);
      }
      try {
        ca.excute();
      } catch (ExedoException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      return;
    }

    String optionType = null;

    if (theService.getLogType() != null
        && !"".equals(theService.getLogType().trim())) {
      optionType = theService.getLogType();
    }

    switch (theService.getType().intValue()) {

    case DOService.TYPE_DELETE:
      optionType = "删除";
      break;
    case DOService.TYPE_INSERT:
      optionType = "新增";
      break;
    case DOService.TYPE_UPDATE_AUTO_PARA:
    case DOService.TYPE_UPDATE:

      optionType = "修改";
      break;
    }
    // insert into
    // do_log_data(objuid,table_name,col_name,who_uid,bo_uid,col_uid,oper_type,oper_data,
    // oper_time,oper_data_uid,oper_pane_uid,old_value,new_value)
    // values(?,?,?,?,?,?,?,?,?,?,?,?,?)

    DOService aLogService = DOService.getService("do_log_data_insert");
    BOInstance aLog = new BOInstance();
    aLog.putValue("TABLE_NAME", theService.getBo().getL10n());
    aLog.putValue("OPER_TYPE", optionType);
    aLog.putValue("OPER_DATA", bi.getName());
    aLog.putValue("oper_data_uid", bi.getUid());
    if (oldInstance != null) {
      aLog.putValue("old_value", oldInstance.getName() + "-------详细信息:"
          + oldInstance.toString());
    }

    try {
      aLogService.invokeUpdate(aLog);
View Full Code Here

    DOService updateService = DOService
        .getService("do_log_update_by_sessionid");

    if (updateService != null) {
      try {
        BOInstance aInstance = new BOInstance();
        aInstance.putValue("logoffTime", new Timestamp(System
            .currentTimeMillis()));
        aInstance.putValue("sessionid", se.getSession().getId());
        updateService.invokeUpdate(aInstance);
        // aInstance.invokeUpdate();
      } catch (ExedoException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
View Full Code Here

   
    MultiAccount ma = findAccount(userName,pwd);
    if(ma==null){
      return null;
    }
    BOInstance bi = new BOInstance();
    bi.fromObject(ma);
    return bi;
  }
View Full Code Here

    MultiAccount ma = MultiAccount.findAccount("jlf@jlf.com", "1");
   
    System.out.println("MultiAccount:::" + ma);
   
   
    BOInstance bi = MultiAccount.findAccountToBI("jlf@google.com", "2");
   
    System.out.println("BOInstance:::" + bi);

  //  System.out.println(ms);
View Full Code Here

 

    user.putValue("deptuid", user.getValue("dept_uid"));


    BOInstance biDept = null;
    if (aDeptBO != null) {
      biDept = aDeptBO.refreshContext(user.getValue("dept_uid"));
      System.out.println("登陆部门:::::::::;" + biDept);
      if (biDept != null) {
        user.putValue("deptobject", biDept);
        user.putValue("deptname", biDept.getName());
      }
    }
   
      List gradeCounts=null;
      DOService studentGrade = DOService.getService("tbstudent.browseGrade");
      gradeCounts=studentGrade.invokeSelect(user.getUid());
      String gradeInfor="";
      for (Iterator it =gradeCounts.iterator();it.hasNext();){
        BOInstance dData=(BOInstance) it.next();
        gradeInfor=dData.getValue("fdgrade");
      }
     
     
    System.out.println("gradeInfor::" + gradeInfor);
    user.putValue("grade_login", gradeInfor);
View Full Code Here

    DOService searchDepts = DOService.getService("do.bx.dept.list");
    HashMap allDepts = new HashMap();
    List depts = searchDepts.invokeSelect();
    if (depts != null) {
      for (Iterator it = depts.iterator(); it.hasNext();) {
        BOInstance deptBI = (BOInstance) it.next();
        allDepts.put(deptBI.getValue("code"), deptBI.getName());
      }
    }
    return allDepts;
  }
View Full Code Here

TOP

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

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.