Package org.blueoxygen.postila.materialmanagement.materialmanagementrules.entity

Examples of org.blueoxygen.postila.materialmanagement.materialmanagementrules.entity.Locator


    }
    if(hasErrors()){
      return INPUT;
    }
   
    Locator locator;
    if(getLocator().getId() == null || "".equalsIgnoreCase(getLocator().getId())){
      locator = new Locator();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      locator = (Locator) manager.getById(ProductCategory.class, getLocator().getId());
      logInfo = locator.getLogInformation();
    }
    logInfo.setActiveFlag(getActive());
    logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    locator.setLogInformation(logInfo);
    locator.setRelativePriority(getLocator().getRelativePriority());
    locator.setAisle(getLocator().getAisle());
    locator.setBin(getLocator().getBin());
    locator.setLevel(getLocator().getBin());
   

    manager.save(locator);
    setLocator(getLocator());
    return SUCCESS;
View Full Code Here

TOP

Related Classes of org.blueoxygen.postila.materialmanagement.materialmanagementrules.entity.Locator

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.