Package org.blueoxygen.postila.performanceanalysis.accountingrules.globaltaxmanagement.entity

Examples of org.blueoxygen.postila.performanceanalysis.accountingrules.globaltaxmanagement.entity.TaxGroup


    }
    if(hasErrors()){
      return INPUT;
    }
   
    TaxGroup taxGroup;
    if(getTaxGroup().getId() == null || "".equalsIgnoreCase(getTaxGroup().getId())){
      taxGroup = new TaxGroup();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      taxGroup = (TaxGroup) manager.getById(TaxGroup.class, getTaxGroup().getId());
      logInfo = taxGroup.getLogInformation();
    }
   
    logInfo.setActiveFlag(getActive());
    logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    taxGroup.setLogInformation(logInfo);
    taxGroup.setName(getTaxGroup().getName());
    taxGroup.setDescription(getTaxGroup().getDescription());
    taxGroup.setComment(getTaxGroup().getComment());
    taxGroup.setSearchKey(getTaxGroup().getSearchKey());
   
    manager.save(taxGroup);
    setTaxGroup(taxGroup);
    return SUCCESS;
  }
View Full Code Here

TOP

Related Classes of org.blueoxygen.postila.performanceanalysis.accountingrules.globaltaxmanagement.entity.TaxGroup

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.