Package ControlLayer

Examples of ControlLayer.ControlCustomer


 
 
 
 
  public void CreateCustomer(ActionEvent eve) throws Exception{
    ControlCustomer ctrCust=new ControlCustomer();
    String cpr=textField.getText();
    String fname = textField_1.getText();
        String lname = textField_2.getText();
    String address=textField_3.getText();
    int zipCode= Integer.valueOf(textField_4.getText());
    String phoneNumber=textField_6.getText();
    ctrCust.insertCustomer(cpr, fname,lname, address,zipCode, phoneNumber);
    textField_1.setText("");
    textField_2.setText("");
    textField_3.setText("");
    textField_4.setText("");
    textField_6.setText("");
View Full Code Here


    textField_6.setText("");
  }
 
 
  public void searchCustomer(ActionEvent eve){
    ControlCustomer ctrCust=new ControlCustomer();
    String cpr=textField.getText();
    Customer cust=ctrCust.findCustomer(cpr);
    textField_1.setText(cust.getFirsTName());
    textField_2.setText(cust.getLastName());
    textField_3.setText(cust.getAddress());
    textField_4.setText(Integer.toString(cust.getCity().getZipCode()));
    textField_5.setText(cust.getCity().getCity());
View Full Code Here

    textField_6.setText(cust.getPhoneNumber());
   
  }
 
  public void updateCustomer(ActionEvent eve){
    ControlCustomer ctrCust=new ControlCustomer();
    String cpr=textField.getText();
    String firstName=textField_1.getText();
    String lastName=textField_2.getText();
    String address=textField_3.getText();
    int zipcode=Integer.valueOf(textField_4.getText());
    String phoneNumber=textField_6.getText();
    ctrCust.updateCustomer(cpr, firstName, lastName, address, zipcode, phoneNumber);
    textField_1.setText("");
    textField_2.setText("");
    textField_3.setText("");
    textField_4.setText("");
    textField_6.setText("");
View Full Code Here

    textField_4.setText("");
    textField_6.setText("");
  }
 
  public void deleteCustomer(ActionEvent eve){
    ControlCustomer ctrCust=new ControlCustomer();
    String cpr=textField.getText();
    ctrCust.deleteCustomer(cpr);
    textField.setText("");
    textField_1.setText("");
    textField_2.setText("");
    textField_3.setText("");
    textField_4.setText("");
View Full Code Here

TOP

Related Classes of ControlLayer.ControlCustomer

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.