axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-axis/java/samples/bidbuy rfq.java v3.java vInterface.java
Date Thu, 10 May 2001 18:00:38 GMT
dug         01/05/10 11:00:37

  Modified:    java/samples/bidbuy rfq.java v3.java vInterface.java
  Log:
  Minor updates to the rfq program
  
  Revision  Changes    Path
  1.3       +5 -1      xml-axis/java/samples/bidbuy/rfq.java
  
  Index: rfq.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/bidbuy/rfq.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- rfq.java	2001/05/09 22:52:00	1.2
  +++ rfq.java	2001/05/10 18:00:26	1.3
  @@ -532,10 +532,14 @@
         String url = null ;
         int total = tableModel.getRowCount();
         String name = (String) buyList.getSelectedItem();
  +      double price = 0 ;
         for ( int i = 0 ; i < total ; i++ ) {
           String val = (String) tableModel.getValueAt(i, NAME_COLUMN) ;
  +        Double dval ;
           if ( val.equals(name) ) {
             url = (String) tableModel.getValueAt(i, URL_COLUMN);
  +          dval = (Double) tableModel.getValueAt(i, QUOTE_COLUMN);
  +          price = dval.doubleValue();
             break ;
           }
         }
  @@ -545,7 +549,7 @@
         int numItems = Integer.parseInt((String) tNumItems.getSelectedItem());
         String value = null ;
   
  -      value = vv.buy( url, quantity, numItems );
  +      value = vv.buy( url, quantity, numItems, price );
   
         JOptionPane.showMessageDialog(this, value, "Receipt",
                                       JOptionPane.INFORMATION_MESSAGE );
  
  
  
  1.3       +2 -2      xml-axis/java/samples/bidbuy/v3.java
  
  Index: v3.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/bidbuy/v3.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- v3.java	2001/05/10 00:46:27	1.2
  +++ v3.java	2001/05/10 18:00:28	1.3
  @@ -170,7 +170,7 @@
       }
     }
   
  -  public String buy(String serverURL, int quantity, int numItems) 
  +  public String buy(String serverURL, int quantity, int numItems, double price) 
         throws Exception 
     {
       try {
  @@ -209,7 +209,7 @@
         
         
         for ( i = 0 ; i < numItems ; i++ )
  -        lineItems[i] = new LineItem("Widget"+i, quantity, new BigDecimal(100));
  +        lineItems[i] = new LineItem("Widget"+i,quantity,new BigDecimal(price));
   
         PurchaseOrder  po = new PurchaseOrder( "PO1", 
                                                new Date(),
  
  
  
  1.3       +2 -1      xml-axis/java/samples/bidbuy/vInterface.java
  
  Index: vInterface.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/bidbuy/vInterface.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- vInterface.java	2001/05/10 00:46:27	1.2
  +++ vInterface.java	2001/05/10 18:00:30	1.3
  @@ -15,5 +15,6 @@
     public Vector lookupAsString(String registryURL) throws Exception ;
     public double requestForQuote(String serverURL) throws Exception ;
     public String simpleBuy(String serverURL, int quantity ) throws Exception ;
  -  public String buy(String serverURL, int quantity, int numItems) throws Exception;
  +  public String buy(String serverURL, int quantity, int numItems, double price)
  +    throws Exception;
   }
  
  
  

Mime
View raw message