Package org.blueoxygen.cimande

Examples of org.blueoxygen.cimande.LogInformation


    }
   
    PositionCategory positionCategory;
    if(getPositionCategory().getId() == null || "".equalsIgnoreCase(getPositionCategory().getId())){
      positionCategory = new PositionCategory();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      positionCategory = (PositionCategory) manager.getById(PositionCategory.class, getPositionCategory().getId());
      logInfo = positionCategory.getLogInformation();
View Full Code Here


      addActionError("Description cannot be empty");
    }
    if(hasErrors()){
      return INPUT;
    }
    LogInformation log = new LogInformation();
    if(getReqn().getId() != null){
      if(getReqn().getId().equalsIgnoreCase("")){
        log.setCreateBy(session.getCurrentUser().getId());
        log.setCreateDate(new Timestamp(System.currentTimeMillis()));
      } else {
        log = getReqn().getLogInformation();
      }
    } else {
      log.setCreateBy(session.getCurrentUser().getId());
      log.setCreateDate(new Timestamp(System.currentTimeMillis()));
    }
    log.setActiveFlag(LogInformation.ACTIVE);
    log.setLastUpdateBy(session.getCurrentUser().getId());
    log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
   
//    getReq().setRequester(getReqInput().getRequester());
    getReqn().setDescription(getReqInput().getDescription());
    getReqn().setTitle(getReqInput().getTitle());
View Full Code Here

      addActionError("Name cannot be empty");
    }
    if(hasErrors()){
      return INPUT;
    }
    LogInformation log = new LogInformation();
    if(getWarehouse().getId() != null){
      if(getWarehouse().getId().equalsIgnoreCase("")){
        log.setCreateBy(session.getCurrentUser().getId());
        log.setCreateDate(new Timestamp(System.currentTimeMillis()));
      } else {
        log = getWarehouse().getLogInformation();
      }
    } else {
      log.setCreateBy(session.getCurrentUser().getId());
      log.setCreateDate(new Timestamp(System.currentTimeMillis()));
    }
    log.setActiveFlag(LogInformation.ACTIVE);
    log.setLastUpdateBy(session.getCurrentUser().getId());
    log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    getWarehouse().setName(getWhInput().getName());
    getWarehouse().setDescription(getWhInput().getDescription());
    getWarehouse().setLogInformation(log);
   
View Full Code Here

    private void save() {
        if(!txtName.getText().equalsIgnoreCase("")) {
            sess.getTransaction().begin();

            LogInformation log = new LogInformation();
            if(category == null || category.getId() == null){
                log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                log.setCreateBy(token.getUser().getId());
            } else {
                log = category.getLogInformation();
            }

            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
            log.setLastUpdateBy(token.getUser().getId());
            log.setActiveFlag(1);

            category.setName(txtName.getText());
            category.setDescription(txtrDesc.getText());
            category.setLogInformation(log);
View Full Code Here

      addActionError("Please select a requisition first");
    }
    if(hasActionErrors()){
      return INPUT;
    }
    LogInformation logInfo = new LogInformation();
    if(getId().equalsIgnoreCase("")){
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
      logInfo.setCreateBy(session.getCurrentUser().getId());
    } else {
      temp = (RequisitionItem)manager.getById(RequisitionItem.class, getId());
      logInfo = temp.getLogInformation();
    }
   
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
    logInfo.setLastUpdateBy(session.getCurrentUser().getId());
    logInfo.setActiveFlag(1);
    reqn = (Requisition)manager.getById(Requisition.class, reqId);
    item = (Item)manager.getById(Item.class, getItemId());
    temp.setReq(reqn);
    temp.setItem(item);
    temp.setQuantity(reqItem.getQuantity());
View Full Code Here

    businessPartner.setZipCode(getZipCode());
    businessPartner.setCountry(getCountry());
    businessPartner.setDescription(getDescription());
    businessPartner.setCategory(getCategory());
   
    logInfo = new LogInformation();
    logInfo.setCreateBy(sess.getCurrentUser().getId());
    logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    logInfo.setActiveFlag(1);
    businessPartner.setLogInformation(logInfo);
   
View Full Code Here

      addActionError("Description cannot be empty");
    }
    if(hasErrors()){
      return INPUT;
    }
    LogInformation log = new LogInformation();
    if(getPo().getId() != null){
      if(getPo().getId().equalsIgnoreCase("")){
        log.setCreateBy(session.getCurrentUser().getId());
        log.setCreateDate(new Timestamp(System.currentTimeMillis()));
      } else {
        log = getPo().getLogInformation();
      }
    } else {
      log.setCreateBy(session.getCurrentUser().getId());
      log.setCreateDate(new Timestamp(System.currentTimeMillis()));
    }
    log.setActiveFlag(LogInformation.ACTIVE);
    log.setLastUpdateBy(session.getCurrentUser().getId());
    log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    BusinessPartner bp = new BusinessPartner();
    if(!getBpId().equalsIgnoreCase("")){
      bp = (BusinessPartner) manager.getById(BusinessPartner.class, getBpId());
    } else {
View Full Code Here

      setItemType(null);
    }
    if(hasErrors()){
      return INPUT;
    }
    LogInformation log = new LogInformation();
    if(getItem().getId() != null){
      if(getItem().getId().equalsIgnoreCase("")){
        log.setCreateBy(session.getCurrentUser().getId());
        log.setCreateDate(new Timestamp(System.currentTimeMillis()));
      } else {
        log = getItem().getLogInformation();
      }
    } else {
      log.setCreateBy(session.getCurrentUser().getId());
      log.setCreateDate(new Timestamp(System.currentTimeMillis()));
    }
    log.setActiveFlag(LogInformation.ACTIVE);
    log.setLastUpdateBy(session.getCurrentUser().getId());
    log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    getItem().setCode(getItInput().getCode());
    getItem().setDescription(getItInput().getDescription());
    getItem().setName(getItInput().getName());
    getItem().setPrice(getItInput().getPrice());
View Full Code Here

  private void save() {
    if(!txtName.getText().equalsIgnoreCase("")) {
            sess.getTransaction().begin();

            LogInformation log = new LogInformation();
            if(uom == null || uom.getId() == null){
                log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                log.setCreateBy(token.getUser().getId());
            } else {
                log = uom.getLogInformation();
            }

            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
            log.setLastUpdateBy(token.getUser().getId());
            log.setActiveFlag(1);

            uom.setName(txtName.getText());
            uom.setDescription(txtrDesc.getText());
            uom.setLogInformation(log);
View Full Code Here

      addActionError("Select a parent for the droplist");
    }
    if(hasErrors()){
      return INPUT;
    }
    LogInformation log = new LogInformation();
    if(getDroplist().getId() != null){
      if(getDroplist().getId().equalsIgnoreCase("")){
        log.setCreateBy(session.getCurrentUser().getId());
        log.setCreateDate(new Timestamp(System.currentTimeMillis()));
      } else {
        log = getDroplist().getLogInformation();
      }
    } else {
      log.setCreateBy(session.getCurrentUser().getId());
      log.setCreateDate(new Timestamp(System.currentTimeMillis()));
    }
    log.setActiveFlag(1);
    log.setLastUpdateBy(session.getCurrentUser().getId());
    log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    getDroplist().setName(getDlInput().getName());
    getDroplist().setDescription(getDlInput().getDescription());
    getDroplist().setStatusFlag(getDlInput().getStatusFlag());
    getDroplist().setParent(getParent());
View Full Code Here

TOP

Related Classes of org.blueoxygen.cimande.LogInformation

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.