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


  /**
   * Initierere komboboks for ansatte
   */
  void initEmployeeCombo() {
    Supplier supplier = (Supplier) transportPresentationModel
        .getBufferedValue(TransportModel.PROPERTY_SUPPLIER);

    if (supplier != null) {
      SupplierManager supplierManager = (SupplierManager) ModelUtil
          .getBean("supplierManager");
      supplierManager.lazyLoad(supplier, new LazyLoadEnum[][] { {
          LazyLoadEnum.EMPLOYEES, LazyLoadEnum.NONE } });
      transportEmployeeList.clear();
      if (supplier.getActiveEmployees() != null) {
        transportEmployeeList.addAll(supplier.getActiveEmployees());
      }
    }
  }
View Full Code Here

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

     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      SupplierViewHandler supplierViewHandler = new SupplierViewHandler(
          login, managerRepository);
      Supplier supplier = supplierViewHandler.insertNewSupplier(window);
      presentationModel.setValue(OrderCostModel.PROPERTY_SUPPLIER,
          supplier);
    }
View Full Code Here

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

  /**
   * @param assemblyTeam
   */
  public void setSupplier(final Supplier aSupplier) {
    Supplier oldSupplier = getSupplier();
    if (assembly == null) {
      assembly = new Assembly();
      assembly.setAssemblyYear(Calendar.getInstance().get(Calendar.YEAR));
    }
    assembly.setSupplier(aSupplier);
View Full Code Here

   * @see no.ugland.utransprod.gui.model.AbstractModel#getBufferedObjectModel(com.jgoodies.binding.PresentationModel)
   */
  @Override
  public SupplierModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    SupplierModel supplierModel = new SupplierModel(new Supplier());
    supplierModel.setSupplierId((Integer) presentationModel
        .getBufferedValue(PROPERTY_SUPPLIER_ID));
    supplierModel.setSupplierName((String) presentationModel
        .getBufferedValue(PROPERTY_SUPPLIER_NAME));
    supplierModel.setSupplierDescription((String) presentationModel
View Full Code Here

    /**
     * @see java.awt.event.ItemListener#itemStateChanged(java.awt.event.ItemEvent)
     */
    public void itemStateChanged(ItemEvent itemEvent) {
      if (itemEvent.getStateChange() == ItemEvent.SELECTED) {
        Supplier supplier = (Supplier) itemEvent.getItem();
        presentationModel.setBufferedValue(
            ExternalOrderModel.PROPERTY_PHONE_NR, supplier
                .getPhone());
        presentationModel.setBufferedValue(
            ExternalOrderModel.PROPERTY_FAX_NR, supplier.getFax());
      }

    }
View Full Code Here

    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      Supplier supplier = (Supplier) objectSelectionList
          .getElementAt(table
              .convertRowIndexToModel(objectSelectionList
                  .getSelectionIndex()));
      EmployeeViewHandler employeeViewHandler = new EmployeeViewHandler(
          supplier, userType, managerRepository.getEmployeeManager(),
View Full Code Here

    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      Supplier supplier = ((SupplierModel) presentationModel.getBean())
          .getObject();

      List<ProductAreaGroup> groups = Util.getProductAreaGroupList();

      ProductAreaGroup selectedGroup = (ProductAreaGroup) JOptionPane
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.