Examples of Budget


Examples of com.google.api.adwords.v201309.cm.Budget

      campaign.setBiddingStrategyConfiguration(biddingConfig);

      BudgetServiceInterface budgetService = user.getService(AdWordsService.V201309.BUDGET_SERVICE);

      // Create budget.
      Budget budget = new Budget();
      budget.setName("Interplanetary Budget #" + System.currentTimeMillis());
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);

      // Add budget.
      BudgetOperation budgetOperation = new BudgetOperation();
      budgetOperation.setOperand(budget);
      budgetOperation.setOperator(Operator.ADD);
      BudgetReturnValue budgetReturnValue =
          budgetService.mutate(new BudgetOperation[] {budgetOperation});

      // Set the budget to the campaign.
      Budget createdBudget = new Budget();
      createdBudget.setBudgetId(budgetReturnValue.getValue(0).getBudgetId());
      campaign.setBudget(createdBudget);

      // Set the campaign network options to Search and Search Network.
      NetworkSetting networkSetting = new NetworkSetting();
      networkSetting.setTargetContentNetwork(false);
View Full Code Here

Examples of es.upm.fi.sos.t3.shoppingcart.Budget

  ) throws NotValidSessionError {
    if (!checkSession()) {
      throw new NotValidSessionError();
    }
    Budget resultado = new Budget();
    resultado.setBudget(presupuesto);
    return resultado;

  }
View Full Code Here

Examples of net.sourceforge.wampum.finance.entities.Budget

          return new Integer(year);
        else if (col == 2) {
          Double amount = new Double(0.0);
          boolean found = false;
          int count = 0;
          Budget budget = null;
          while (!found && count<budgetList.size()) {
            budget = (Budget)budgetList.get(count);
            if (budget.getYear().intValue() == year && budget.getMonth().intValue() == month) {
              amount = budget.getAmount();
            }
            count++;
          }
          return amount;
        }
        else if (col == 3) {
          Double amount = new Double(0.0);
          boolean found = false;
          int count = 0;
          while (!found && count<balanceList.size()) {
            double[] record = (double[])balanceList.get(count);
            if (year == record[0] && month == record[1]) {
              amount = new Double(record[2]);
              found = true;
            }
            count++;
          }
          return amount;
        }
        else if (col == 4) {
          Double[] retVal = new Double[2];
          retVal[0] = (Double)getValueAt(row, 2);
          retVal[1] = (Double)getValueAt(row, 3);
          return retVal;
        }
        else
          return null;
      }
     
      public void setValueAt(Object value, int row, int column) {
        Integer month = (Integer)getValueAt(row, 0);
        Integer year = (Integer)getValueAt(row, 1);
        Budget budget = null;
        boolean found = false;
        int count = 0;
        while (!found && count < budgetList.size()) {
          budget = (Budget)budgetList.get(count);
          if (budget.getYear().intValue() == year.intValue() &&
              budget.getMonth().intValue() == month.intValue()) {
            found = true;
          }
          count++;
        }
        if (!found) {
          budget = new Budget();
          budget.setAccountID(currentAccount);
          budget.setYear(year);
          budget.setMonth(month);
          budget.setActive(new Boolean(true));
          budgetList.add(budget);
        }
        budget.setAmount((Double)value);
       
        BudgetDAO budgetDAO = (BudgetDAO)daoFactory.getDAO("budget");
        budgetDAO.store(budget, false);
      }
     
View Full Code Here

Examples of no.ugland.utransprod.model.Budget

   */
  @Override
  public ProductionBudgetModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    ProductionBudgetModel productionBudgetModel = new ProductionBudgetModel(
        new Budget());
    productionBudgetModel.setBudgetId((Integer) presentationModel
        .getBufferedValue(PROPERTY_BUDGET_ID));
    productionBudgetModel.setBudgetYear((Integer) presentationModel
        .getBufferedValue(PROPERTY_BUDGET_YEAR));
    productionBudgetModel.setBudgetWeek((Integer) presentationModel
View Full Code Here

Examples of no.ugland.utransprod.model.Budget

  }

  private void setBudgetValues(Map<String, SalesmanGoal> salesmanGoals,
      Periode periode) {
    for (SalesmanGoal goal : salesmanGoals.values()) {
      Budget budget = budgetManager.findByYearAndSalesman(periode
          .getYear(), goal.getSalesman(), goal.getProductArea(),
          BudgetType.SALESMAN);
      goal.setBudgetValue(budget.getBudgetValue());
      goal.setBudgetValueOffer(budget.getBudgetValueOffer());
    }

  }
View Full Code Here

Examples of no.ugland.utransprod.model.Budget

    presentationModelTransportSum = new PresentationModel(
        new TransportSumVModel(new TransportSumV(Integer.valueOf(0),
            BigDecimal.valueOf(0), null)));

    presentationModelBudget = new PresentationModel(
        new ProductionBudgetModel(new Budget(null, null, null,
            BigDecimal.valueOf(0), null, null)));

    initProductAreaGroup();
    setTransportSum();
View Full Code Here

Examples of no.ugland.utransprod.model.Budget

            yearWeek.getWeek(), group);

    presentationModelTransportSum.setBean(new TransportSumVModel(sum));

    YearWeek yearWeekMinusOne = Util.addWeek(yearWeek, -1);
    Budget productionBudget = managerRepository.getBudgetManager()
        .findByYearAndWeekPrProductAreaGroup(
            yearWeekMinusOne.getYear(), yearWeekMinusOne.getWeek(),
            group, BudgetType.PRODUCTION);

    presentationModelBudget.setBean(new ProductionBudgetModel(
View Full Code Here

Examples of no.ugland.utransprod.model.Budget

    return salesStatistic;
  }

  private SalesStatistic setSalesBudget(Integer year, Integer week,
      ProductArea productArea, SalesStatistic salesStatistic) {
    Budget salesBudget = budgetManager.findByYearAndWeek(year, week,
        productArea, BudgetType.SALE);
    salesStatistic.setSalesBudget(salesBudget.getBudgetValue());
    Periode periode = new Periode(year, 1, week);
    salesBudget = budgetManager.findSumPrProductAreaAndPeriode(periode,
        productArea, BudgetType.SALE);
    salesStatistic.setAccumulatedSaleBudget(salesBudget.getBudgetValue());
    return salesStatistic;
  }
View Full Code Here

Examples of no.ugland.utransprod.model.Budget

        }
    }

    private void importBudget(final int row, final ExcelUtil excelUtil, final Integer year,
            final ProductArea productArea, BudgetType budgetType) throws ProTransException {
      Budget budget = budgetType.validateAndGetBudget(excelUtil,row,year,productArea,(BudgetDAO)dao,applicationUserDAO);
        saveObject(budget);
    }
View Full Code Here

Examples of no.ugland.utransprod.model.Budget

  /**
   * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
   */
  @Override
  public Budget getNewObject() {
    return new Budget();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.