Package ControlLayer

Examples of ControlLayer.ControlProduct


    textField_4.setText("");
    textField_6.setText("");
  }
 
  public void createProduct(ActionEvent e){
    ControlProduct ctrProd=new ControlProduct();
    //int id=Integer.valueOf(textField_14.getText());
    String name=textField_15.getText();
    double purchasePrice=Double.valueOf(textField_16.getText());
    double salePrice=Double.valueOf(textField_17.getText());
     double rentPrice=Double.valueOf(textField_18.getText());
     String countryOfOrigin=textField_20.getText();
     int minStock=Integer.valueOf(textField_19.getText());
     String suplier=textField_21.getText();
     ctrProd.createProduct(name, purchasePrice, salePrice, rentPrice, countryOfOrigin, minStock, suplier);
     //textField_14.setText("");
     textField_16.setText("");
     textField_17.setText("");
     textField_18.setText("");
        textField_19.setText("");
View Full Code Here


       textField_21.setText("");
    
  }
 
  public void searchProduct(ActionEvent e){
    ControlProduct ctrProd=new ControlProduct();
    String name=textField_15.getText();
    Product prod= ctrProd.findProduct(name, false);
    textField_15.setText(prod.getName());
    textField_16.setText(String.valueOf(prod.getPurchasePrice()));
    textField_17.setText(String.valueOf(prod.getSalesPrice()));
    textField_18.setText(String.valueOf(prod.getRentPrice()));
    textField_19.setText(String.valueOf(prod.getMinStock()));
View Full Code Here

TOP

Related Classes of ControlLayer.ControlProduct

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.