Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.CostUnitManager


    costTypeList = new ArrayListModel();
    costUnitList = new ArrayListModel();
    supplierList = new ArrayListModel();
    CostTypeManager costTypeManager = (CostTypeManager) ModelUtil
        .getBean("costTypeManager");
    CostUnitManager costUnitManager = (CostUnitManager) ModelUtil
        .getBean("costUnitManager");

    List<CostType> list = costTypeManager.findAll();

    if (list != null) {
      costTypeList.addAll(list);
    }

    List<CostUnit> listUnit = costUnitManager.findAll();

    if (listUnit != null) {
      costUnitList.addAll(listUnit);
    }
View Full Code Here


        .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)
        .annotatedWith(Names.named("kostnadEnhetTakstoler"))
        .toInstance(costUnitManager.findByName("Intern"));

    bind(TransportCostManager.class).toInstance(
        (TransportCostManager) ModelUtil
            .getBean(TransportCostManager.MANAGER_NAME));
View Full Code Here

        .getBufferedValue(ICostableModel.PROPERTY_COSTS)));

    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

   * @throws ProTransException
   */
  private void checkDefaultDeviationCosts() throws ProTransException {
    CostTypeManager costTypeManager = (CostTypeManager) ModelUtil
        .getBean("costTypeManager");
    CostUnitManager costUnitManager = (CostUnitManager) ModelUtil
        .getBean("costUnitManager");
    List<String> defaultCosts = ApplicationParamUtil
        .getDefaultDeviationCosts();

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

View Full Code Here

TOP

Related Classes of no.ugland.utransprod.service.CostUnitManager

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.