Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.CostTypeManager.findByName()


    CostTypeManager costTypeManager = (CostTypeManager) ModelUtil
        .getBean(CostTypeManager.MANAGER_NAME);

    bind(CostType.class).annotatedWith(Names.named("kostnadTypeTakstoler"))
        .toInstance(costTypeManager.findByName("Takstoler"));

    CostUnitManager costUnitManager = (CostUnitManager) ModelUtil
        .getBean(CostUnitManager.MANAGER_NAME);

    bind(CostUnit.class)
View Full Code Here


    if (costsList.size() == 0 && addInternalCost) {
      CostTypeManager costTypeManager = (CostTypeManager) ModelUtil
          .getBean("costTypeManager");
      CostUnitManager costUnitManager = (CostUnitManager) ModelUtil
          .getBean("costUnitManager");
      CostType costTypeDev = costTypeManager.findByName("Avvik");
      CostUnit costUnitInternal = costUnitManager.findByName("Intern");
      OrderCost defaultOrderCost = new OrderCost();
      defaultOrderCost.setCostAmount(BigDecimal.valueOf(500));
      defaultOrderCost.setCostType(costTypeDev);
      defaultOrderCost.setCostUnit(costUnitInternal);
View Full Code Here

    CostType costType;
    CostUnit costUnitInternal = costUnitManager.findByName("Intern");
    OrderCost orderCost;
    List<CostType> containsCostTypes = getCostTypes();
    for (String costName : defaultCosts) {
      costType = costTypeManager.findByName(costName);

      if (costType == null) {
        throw new ProTransException("Kan ikke finne kostnadstype "
            + costName);
      }
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.