Examples of Order


Examples of net.helipilot50.stocktrade.model.Order

    // ------------
    public OrderWindow() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();
        this.setNewOrderGrid(new Order());

        //self.CustomerName = new;
        //self.StockNamelist = new;

    }
View Full Code Here

Examples of net.virtuemart.www.VM_Order.Order

        }
    }

    public boolean getOrderStatus (String oid) throws RemoteException {
        OrderRequest para = new OrderRequest(wsLogin, oid, "2010-01-01 00:00:00", "2110-01-01 00:00:00");
        Order ord = orderProxy.getOrder(para);

        try {
            return ord.getOrder_status().equals("S");
        } catch (java.lang.NullPointerException npe) {
            return true;
        }
    }
View Full Code Here

Examples of net.virtuemart.www.externalsales.Order

    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Order)) {
            return false;
        }
        Order other = (Order) obj;
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true &&
                ((this.businessPartner == null && other.getBusinessPartner() == null) ||
                (this.businessPartner != null &&
                this.businessPartner.equals(other.getBusinessPartner()))) &&
                ((this.lines == null && other.getLines() == null) ||
                (this.lines != null &&
                java.util.Arrays.equals(this.lines, other.getLines()))) &&
                ((this.orderId == null && other.getOrderId() == null) ||
                (this.orderId != null &&
                this.orderId.equals(other.getOrderId()))) &&
                ((this.payment == null && other.getPayment() == null) ||
                (this.payment != null &&
                java.util.Arrays.equals(this.payment, other.getPayment()))) &&
                this.state == other.getState();
        __equalsCalc = null;
        return _equals;
    }
View Full Code Here

Examples of no.ugland.utransprod.model.Order

    }
  }

  private void setOrderReady(Produceable object) throws ProTransException {
    if (object.getProductAreaGroupName().equalsIgnoreCase("Takstol")) {
      Order order = managerRepository.getOrderManager().findByOrderNr(
          object.getOrderNr());
      if (isAllProduced(object)) {
        order.setOrderReady(Util.getCurrentDate());
      } else {
        order.setOrderReady(null);
      }
      managerRepository.getOrderManager().saveOrder(order);
    }
  }
View Full Code Here

Examples of org.akka.essentials.java.future.example.messages.Order

  @Override
  public void onReceive(Object message) throws Exception {
    if (message instanceof Integer) {
      Integer userId = (Integer) message;
      // ideally we will get list of orders for given user id
      Order order = new Order(Integer.valueOf(123), Float.valueOf(345),
          Integer.valueOf(5));
      getSender().tell(order);
    }
  }
View Full Code Here

Examples of org.apache.axiom.om.impl.builder.test.jaxb.Order

        items.add(item);
        item = new OrderItem();
        item.setPartId("O85-554-66");
        item.setQuantity(1);
        items.add(item);
        Order order = new Order();
        order.setCustomerId("73107481");
        order.setItems(items);
       
        Marshaller marshaller = JAXBContext.newInstance(Order.class).createMarshaller();
        StringWriter out = new StringWriter();
        marshaller.marshal(order, out);
       
View Full Code Here

Examples of org.apache.axiom.om.impl.builder.test.xmlbeans.OrderDocument.Order

public class SAXOMBuilderXMLBeansTest {
    @Test
    public void test() throws Exception {
        OrderDocument document = OrderDocument.Factory.newInstance();
        Order order = document.addNewOrder();
        order.setCustomerId("73107481");
        Item item = order.addNewItem();
        item.setPartId("P85-137-19");
        item.setQuantity(2);
        item = order.addNewItem();
        item.setPartId("O85-554-66");
        item.setQuantity(1);
       
        StringWriter out = new StringWriter();
        document.save(out);
View Full Code Here

Examples of org.apache.beehive.samples.petstore.model.Order

        _isCheckOut = checkOut;
    }

    // todo: format validation for e-mail, zip, credit card, date
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        Order order = getOrder();
        ActionErrors errors = new ActionErrors();
        Account account = order.getAccount();

        addErrorIfStringEmpty(errors, "creditCart", "order.error.creditCard.required", order.getCreditCard());
        addErrorIfStringEmpty(errors, "expirationDate", "order.error.expirationDate.required", order.getExprDate());
        addErrorIfStringEmpty(errors, "cardType", "order.error.cardType.required", order.getCardType());

        Address billing = order.getBillingAddress();
        addErrorIfStringEmpty(errors, "billToFirstName", "order.error.billToFirstName.required", billing.getFirstName());
        addErrorIfStringEmpty(errors, "billToLastName", "order.error.billToLastName.required", billing.getLastName());
        addErrorIfStringEmpty(errors, "billToAddress1", "order.error.billToAddress1.required", billing.getAddr1());
        addErrorIfStringEmpty(errors, "billToCity", "order.error.billToCity.required", billing.getCity());
        addErrorIfStringEmpty(errors, "billToState", "order.error.billToState.required", billing.getState());
        addErrorIfStringEmpty(errors, "billToZip", "order.error.billToZip.required", billing.getZip());
        addErrorIfStringEmpty(errors, "billToCountry", "order.error.billToCountry.required", billing.getCountry());

        if(isShippingAddressRequired()) {
            Address shipping = order.getShippingAddress();
            addErrorIfStringEmpty(errors, "shipToFirstName", "order.error.shipToFirstName.required", shipping.getFirstName());
            addErrorIfStringEmpty(errors, "shipToLastName", "order.error.shipToLastName.required", shipping.getLastName());
            addErrorIfStringEmpty(errors, "shipToAddress1", "order.error.shipToAddress1.required", shipping.getAddr1());
            addErrorIfStringEmpty(errors, "shipToCity", "order.error.shipToCity.required", shipping.getCity());
            addErrorIfStringEmpty(errors, "shipToState", "order.error.shipToState.required", shipping.getState());
            addErrorIfStringEmpty(errors, "shipToZip", "order.error.shipToZip.required", shipping.getZip());
            addErrorIfStringEmpty(errors, "shipToCountry", "order.error.shipToCountry.required", shipping.getCountry());
        }

        // sets the ship address the same as the bill-to address
        if(!isShippingAddressRequired() && errors.size() > 0) {
            order.setShippingAddressIsBillingAddress(true);
        }

        return errors;
    }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.model.complex.generateheader.Order

    }

    private List<Map<String, Object>> generateModel() {
        Map<String, Object> model = new HashMap<String, Object>();

        Order order = new Order();
        order.setOrderNr(10);
        order.setAmount(new BigDecimal("150"));
        order.setOrderType("BUY");
        order.setInstrumentType("Share");
        order.setCurrency("USD");

        Calendar calendar = new GregorianCalendar();
        calendar.set(2009, 0, 14);
        order.setOrderDate(calendar.getTime());

        Client client = new Client();
        client.setClientNr("A1");
        client.setFirstName("Julia");
        client.setLastName("Roberts");

        order.setClient(client);

        Security security = new Security();
        security.setInstrumentCode("ISIN");
        security.setInstrumentNumber("LU123456789");

        order.setSecurity(security);

        model.put(order.getClass().getName(), order);
        model.put(client.getClass().getName(), client);
        model.put(security.getClass().getName(), security);

        models.add(0, model);
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.model.complex.twoclassesandonelink.Order

    }

    private List<Map<String, Object>> generateModel() {
        Map<String, Object> model = new HashMap<String, Object>();

        Order order = new Order();
        order.setOrderNr(10);
        order.setAmount(new BigDecimal("150"));
        order.setOrderType("BUY");
        order.setInstrumentType("Share");
        order.setCurrency("USD");

        Calendar calendar = new GregorianCalendar();
        calendar.set(2009, 0, 14);
        order.setOrderDate(calendar.getTime());

        Client client = new Client();
        client.setClientNr("A1");
        client.setFirstName("Julia");
        client.setLastName("Roberts");

        order.setClient(client);

        Security security = new Security();
        security.setInstrumentCode("ISIN");
        security.setInstrumentNumber("LU123456789");

        order.setSecurity(security);

        model.put(order.getClass().getName(), order);
        model.put(client.getClass().getName(), client);
        model.put(security.getClass().getName(), security);

        models.add(0, model);
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.