Examples of CostTypeManager


Examples of no.ugland.utransprod.service.CostTypeManager

    managerRepository=aManagerRepository;
 
    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);
    }
View Full Code Here

Examples of no.ugland.utransprod.service.CostTypeManager

            .getBean(ArticleTypeAttributeManager.MANAGER_NAME));
    bind(PostShipmentManager.class).toInstance(
        (PostShipmentManager) ModelUtil
            .getBean(PostShipmentManager.MANAGER_NAME));

    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

Examples of no.ugland.utransprod.service.CostTypeManager

    userTypeAccess.setWindowAccess(windowAccess);
    userTypeAccesses.add(userTypeAccess);
    userType.setUserTypeAccesses(userTypeAccesses);
    when(login.getUserType()).thenReturn(userType);

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

    final OverviewView<CostType, CostTypeModel> viewer = new OverviewView<CostType, CostTypeModel>(
        new CostTypeViewHandler(login, costTypeManager));
View Full Code Here

Examples of no.ugland.utransprod.service.CostTypeManager

    costsList.clear();
    costsList.addAll(Util.cloneCosts((Collection) presentationModel
        .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

Examples of no.ugland.utransprod.service.CostTypeManager

   * Sjekker om alle default kostander er med, dersom ikke blir disse lagt til
   *
   * @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);

      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.