Package org.blueoxygen.postila.materialmanagement.productattributes.entity

Examples of org.blueoxygen.postila.materialmanagement.productattributes.entity.AttributeSet


    }
    if(hasErrors()){
      return INPUT;
    }
   
    AttributeSet attributeSet;
    if(getAttributeSet().getId() == null || "".equalsIgnoreCase(getAttributeSet().getId())){
      attributeSet = new AttributeSet();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      attributeSet = (AttributeSet) manager.getById(AttributeSet.class, getAttributeSet().getId());
      logInfo = attributeSet.getLogInformation();
    }

    logInfo.setActiveFlag(getActive());
    logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    attributeSet.setLogInformation(logInfo);
    attributeSet.setName(getAttributeSet().getName());
    attributeSet.setDescription(getAttributeSet().getDescription());
    attributeSet.setLot(getAttributeSet().getLot());
    attributeSet.setInstanceAttribute(getAttributeSet().getInstanceAttribute());
    attributeSet.setMandatoryLot(getAttributeSet().getMandatoryLot());
    attributeSet.setLotControl(getLotControl());
    attributeSet.setLotCharStartOverwrite(getAttributeSet().getLotCharStartOverwrite());
    attributeSet.setLotCharEndOverwrite(getAttributeSet().getLotCharEndOverwrite());
    attributeSet.setSerialNo(getAttributeSet().getSerialNo());
    attributeSet.setMandatorySerialNo(getAttributeSet().getMandatorySerialNo());
    attributeSet.setSerialNoControl(getSerialNoControl());
    attributeSet.setSerialNoCharStartOverwrite(getAttributeSet().getSerialNoCharStartOverwrite());
    attributeSet.setSerialNoCharEndOverwrite(getAttributeSet().getSerialNoCharEndOverwrite());
    attributeSet.setGuaranteeDate(getAttributeSet().getGuaranteeDate());
    attributeSet.setMandatoryGuaranteeDate(getAttributeSet().getMandatoryGuaranteeDate());
    attributeSet.setMandatoryType(getAttributeSet().getMandatoryType());
   
    manager.save(attributeSet);
    setAttributeSet(attributeSet);
    return SUCCESS;
  }
View Full Code Here

TOP

Related Classes of org.blueoxygen.postila.materialmanagement.productattributes.entity.AttributeSet

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.