Examples of CustomerService


Examples of com.rakaizsys.eims.model.customer.CustomerService

      TemplateTableModel model = (TemplateTableModel) tableServices
          .getModel();
      SQLMapHolder.sqlMap.startTransaction();
      SQLMapHolder.sqlMap.insert("insertBill", bill);
      for (DBObject serv : model.getDbObjects()) {
        CustomerService service = (CustomerService) serv;
        BillItem billItem = new BillItem();
        billItem.setBill(bill);
        billItem.setQuantity(1);
        billItem.setPrice(service.getTotalCost());
        billItem.setItem(service.getService().getItem());
        bill.getBillItems().add(billItem);
        SQLMapHolder.sqlMap.insert("insertBillItem", billItem);
      }
      SQLMapHolder.sqlMap.commitTransaction();
      Map params = new HashMap(1);
View Full Code Here

Examples of com.rakaizsys.eims.model.customer.CustomerService

    setColumns(COLUMNS);
  }

  @Override
  public Object getValueAt(int row, int col) {
    CustomerService customerService = (CustomerService) dbObjects.get(row);
    switch (col) {
    case 0 : return null;
    case 1:
      return customerService.getId();
    case 2:
      return customerService.getName();
    case 3:
      return customerService.getCustomer();
    case 4:
      return customerService.getService();
    case 5:
      return customerService.getServiceDate();
    case 6:
      return customerService.getPrice();
    case 7:
      return customerService.getCharge();
    case 8:
      return customerService.getFees();
    case 9:
      return customerService.getNotes();
    default:
      return null;
    }
  }
View Full Code Here

Examples of com.rakaizsys.eims.model.customer.CustomerService

    return true;
  }

  @Override
  public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
    CustomerService customerService = (CustomerService) dbObjects
        .get(rowIndex);
    switch (columnIndex) {
    case 4:
      Service service = (Service) aValue;
      customerService.setService(service);
      fireTableDataChanged();
      break;
    case 5 : customerService.setServiceDate((Date)aValue);
    break;
    case 6:
      customerService.setPrice(Double.parseDouble(aValue.toString()));
      break;
    case 7:
      customerService.setCharge(Double.parseDouble(aValue.toString()));
      break;
    case 8:
      customerService.setFees(Double.parseDouble(aValue.toString()));
      break;
    case 9:
      customerService.setNotes((String) aValue);
      break;
    case 0:
      if ("Delete".equals(aValue) && rowIndex > 0)
        removeDBObject(customerService);
      else if ("Add".equals(aValue))
        addDBObject(new CustomerService());
    default:
      break;
    }
  }
View Full Code Here

Examples of httpsdemo.common.CustomerService

         *  username,password,configFile) variant, where configFile can be null if you're
         *  not using certificates.
         */
        System.out.println("\n");
        System.out.println("Sending HTTPS POST request to add customer");
        CustomerService proxy = JAXRSClientFactory.create(BASE_SERVICE_URL, CustomerService.class,
              CLIENT_CONFIG_FILE);
        customer = new Customer();
        customer.setName("Jack");
        resp = wc.post(customer);
       
View Full Code Here

Examples of httpsdemo.common.CustomerService

         *  Note: if need to use basic authentication, use the JAXRSClientFactory.create(baseAddress,
         *  username,password,configFile) variant, where configFile can be null if you're
         *  not using certificates.
         */
        System.out.println("\n\nSending HTTPS POST request to add customer");
        CustomerService proxy = JAXRSClientFactory.create(BASE_SERVICE_URL, CustomerService.class,
              CLIENT_CONFIG_FILE);
        customer = new Customer();
        customer.setName("Jack");
        resp = wc.post(customer);
       
View Full Code Here

Examples of org.apache.camel.component.cxf.jaxrs.testbean.CustomerService

        SpringJAXRSClientFactoryBean cfb = (SpringJAXRSClientFactoryBean) ctx.getBean("rsClient1");
        assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:9000/router");
        assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient1");
        assertEquals("Get a wrong password", cfb.getPassword(), "passwd");
        assertEquals("Get a wrong user name", cfb.getUsername(), "username");
        CustomerService customerService = cfb.create(CustomerService.class);
        assertNotNull("The customer service should not be null", customerService);
        assertEquals("Got the wrong schemalocations size", 1, cfb.getSchemaLocations().size());
        assertEquals("Got the wrong schemalocation", "classpath:wsdl/Message.xsd", cfb.getSchemaLocations().get(0));
    }
View Full Code Here

Examples of org.apache.camel.component.cxf.jaxrs.testbean.CustomerService

        SpringJAXRSClientFactoryBean cfb = (SpringJAXRSClientFactoryBean) ctx.getBean("rsClient1");
        assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:9000/router");
        assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient1");
        assertEquals("Get a wrong password", cfb.getPassword(), "passwd");
        assertEquals("Get a wrong user name", cfb.getUsername(), "username");
        CustomerService customerService = cfb.create(CustomerService.class);
        assertNotNull("The customer service should not be null", customerService);
    }
View Full Code Here

Examples of org.apache.camel.component.cxf.jaxrs.testbean.CustomerService

        SpringJAXRSClientFactoryBean cfb = ctx.getBean("rsClient1", SpringJAXRSClientFactoryBean.class);
        assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:" + port + "/CxfRsClientFactoryBeanTest/router");
        assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient1");
        assertEquals("Get a wrong password", cfb.getPassword(), "passwd");
        assertEquals("Get a wrong user name", cfb.getUsername(), "username");
        CustomerService customerService = cfb.create(CustomerService.class);
        assertNotNull("The customer service should not be null", customerService);
        assertEquals("Got the wrong schemalocations size", 1, cfb.getSchemaLocations().size());
        assertEquals("Got the wrong schemalocation", "classpath:wsdl/Message.xsd", cfb.getSchemaLocations().get(0));
        assertEquals("Got the wrong loggingFeatureEnabled", true, cfb.isLoggingFeatureEnabled());
        assertEquals("Got the wrong loggingSizeLimit", 200, cfb.getLoggingSizeLimit());
View Full Code Here

Examples of org.apache.camel.component.cxf.jaxrs.testbean.CustomerService

        SpringJAXRSClientFactoryBean cfb = (SpringJAXRSClientFactoryBean) ctx.getBean("rsClient1");
        assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:" + port + "/CxfRsClientFactoryBeanTest/router");
        assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient1");
        assertEquals("Get a wrong password", cfb.getPassword(), "passwd");
        assertEquals("Get a wrong user name", cfb.getUsername(), "username");
        CustomerService customerService = cfb.create(CustomerService.class);
        assertNotNull("The customer service should not be null", customerService);
        assertEquals("Got the wrong schemalocations size", 1, cfb.getSchemaLocations().size());
        assertEquals("Got the wrong schemalocation", "classpath:wsdl/Message.xsd", cfb.getSchemaLocations().get(0));
    }
View Full Code Here

Examples of org.apache.camel.component.cxf.jaxrs.testbean.CustomerService

        SpringJAXRSClientFactoryBean cfb = (SpringJAXRSClientFactoryBean) ctx.getBean("rsClient1");
        assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:9000/router");
        assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient1");
        assertEquals("Get a wrong password", cfb.getPassword(), "passwd");
        assertEquals("Get a wrong user name", cfb.getUsername(), "username");
        CustomerService customerService = cfb.create(CustomerService.class);
        assertNotNull("The customer service should not be null", customerService);
        assertEquals("Got the wrong schemalocations size", 1, cfb.getSchemaLocations().size());
        assertEquals("Got the wrong schemalocation", "classpath:wsdl/Message.xsd", cfb.getSchemaLocations().get(0));
    }
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.