Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Supplier


  /**
   * @param supplier
   */
  public void setSupplier(Supplier supplier) {
    Supplier oldSupplier = getSupplier();
    object.setSupplier(supplier);
    firePropertyChange(PROPERTY_SUPPLIER, oldSupplier, supplier);
  }
View Full Code Here


  /**
   * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
   */
  @Override
  public Supplier getNewObject() {
    return new Supplier();
  }
View Full Code Here

   * @param window
   *
   * @return leverand�r
   */
  public Supplier insertNewSupplier(WindowInterface window) {
    Supplier supplier = new Supplier();
    openEditView(supplier, false, window);
    return supplier;
  }
View Full Code Here

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(int rowIndex, int columnIndex) {
      Supplier supplier = (Supplier) getRow(rowIndex);
      switch (columnIndex) {
      case 0:
        return supplier.getSupplierName();
      case 1:
        return supplier.getPhone();
      case 2:
        return supplier.getSupplierDescription();
      case 3:
        return supplier.getSupplierType();
      case 4:
        return supplier.getInactive()==null||supplier.getInactive()==0?Boolean.FALSE:Boolean.TRUE;
      case 5:
        return supplier.getInactive()==null||supplier.getInactive()==0?"nei":"ja";
      default:
        throw new IllegalStateException("Unknown column");
      }

    }
View Full Code Here

  private Map<Supplier, List<Transportable>> createSupplierList(
      final List<Transportable> transportables) throws ProTransException {
    Map<Supplier, List<Transportable>> supplierList = new Hashtable<Supplier, List<Transportable>>();
    for (Transportable transportable : transportables) {
      Supplier supplier = getSupplierForTransportable(transportable);
      addOrderToSupplierList(supplierList, transportable, supplier);
    }
    return supplierList;
  }
View Full Code Here

    supplierList.put(supplier, transportableList);
  }

  private Supplier getSupplierForTransportable(
      final Transportable transportable) throws ProTransException {
    Supplier supplier = transportable.getTransport().getSupplier();
    if (supplier == null) {
      throw new ProTransException("Order " + transportable
          + " mangler transport�r");
    }
    return supplier;
View Full Code Here

    SupplierViewHandler supplierViewHandler = new SupplierViewHandler(
        login, managerRepository);

    final EditSupplierView editSupplierView = new EditSupplierView(false,
        new Supplier(), supplierViewHandler);

    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
        JDialog dialog = new JDialog();
        WindowInterface window = new JDialogAdapter(dialog);
View Full Code Here

  @After
  public void tearDown() throws Exception {
    dialogFixture.cleanUp();

    Supplier supplier = new Supplier();
    supplier.setSupplierName("test");
    List<Supplier> list = supplierManager.findByObject(supplier);
    if (list != null) {
      for (Supplier sup : list) {
        supplierManager.removeObject(sup);
      }
View Full Code Here

    dialogFixture.textBox("TextFieldSupplierDescription").enterText(
        "beskrivelse");
    dialogFixture.checkBox("CheckBoxInactive").check();
    dialogFixture.button("SaveSupplier").click();

    Supplier supplier = new Supplier();
    supplier.setSupplierName("test");
    List<Supplier> list = supplierManager.findByObject(supplier);

    assertNotNull(list);
    assertEquals(1, list.size());

    supplier = list.get(0);

    assertEquals("test", supplier.getSupplierName());
    assertEquals("Montering", supplier.getSupplierType()
        .getSupplierTypeName());
    assertEquals("1111111", supplier.getPhone());
    assertEquals("2222222", supplier.getFax());
    assertEquals("adresse", supplier.getAddress());
    assertEquals("1000", supplier.getPostalCode());
    assertEquals("poststed", supplier.getPostOffice());
    assertEquals("beskrivelse", supplier.getSupplierDescription());
    assertEquals(Integer.valueOf(1), supplier.getInactive());
  }
View Full Code Here

   * Setter selektert ordre
   *
   * @param assembly
   */
  private void setSelectedOrder(Assembly assembly) {
    Supplier supplier = assembly.getSupplier();

    Map<Integer, SupplierOrderViewHandler> tmpViewHandlers = assemblyViewHandlers
        .get(supplier);

    if (tmpViewHandlers != null) {
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.Supplier

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.