Package org.pau.assetmanager.entities

Examples of org.pau.assetmanager.entities.MovementExpensesAnnotation


  @Command
  public void saveAnnotation(@BindingParam("annotation") Annotation annotation) {
    if (annotation.getId() != null) { 
      if(annotation instanceof MovementExpensesAnnotation){
        MovementExpensesAnnotation movementExpensesAnnotation = (MovementExpensesAnnotation) annotation;
        DaoFunction.mergeFunction().apply(movementExpensesAnnotation.getMovementIncomeAnnotation());
      }
      DaoFunction.mergeFunction().apply(annotation);
      HistoricalStocksValuesDownloader.updateStocksHistoricalValuesAsync();
      BindUtils.postGlobalCommand(null, null, "updateReportAnnotations",
          null);
View Full Code Here


      @ContextParam(ContextType.TRIGGER_EVENT) InputEvent event) {
    if (annotation.getId() != null) {
      String concept = event.getValue();
      annotation.setConcept(concept);
      if(annotation instanceof MovementExpensesAnnotation){
        MovementExpensesAnnotation movementExpensesAnnotation = (MovementExpensesAnnotation) annotation;
        DaoFunction.mergeFunction().apply(movementExpensesAnnotation.getMovementIncomeAnnotation());
      }
      DaoFunction.mergeFunction().apply(annotation);
      HistoricalStocksValuesDownloader.updateStocksHistoricalValuesAsync();
      BindUtils.postGlobalCommand(null, null, "updateReportAnnotations",
          null);
View Full Code Here

      addDefaultValuesToAnnotation(
          movementIncomeAnnotation, destinationBook, currentYear,
          annotationsFilter);
      movementIncomeAnnotation = (MovementIncomeAnnotation) addAnnotation(movementIncomeAnnotation);

      MovementExpensesAnnotation movementExpensesAnnotation = new MovementExpensesAnnotation();
      movementExpensesAnnotation
          .setMovementIncomeAnnotation(movementIncomeAnnotation);
      addDefaultValuesToAnnotation(
          movementExpensesAnnotation, bookSelection.getSelectedBook(), currentYear,
          annotationsFilter);
      addAnnotation(movementExpensesAnnotation);
View Full Code Here

  @NotifyChange({ "annotations" })
  @Command
  public void deleteMovementAnnotation(
      @ContextParam(ContextType.TRIGGER_EVENT) Event event) {
    MovementExpensesAnnotation movementExpensesAnnotation = (MovementExpensesAnnotation) event
        .getData();
    AnnotationsBusiness.deleteAnnotation(movementExpensesAnnotation);
    AnnotationsBusiness.deleteAnnotation(movementExpensesAnnotation
        .getMovementIncomeAnnotation());
    BindUtils
        .postGlobalCommand(null, null, "updateReportAnnotations", null);
  }
View Full Code Here

TOP

Related Classes of org.pau.assetmanager.entities.MovementExpensesAnnotation

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.