Package com.rakaizsys.eims.model.finance

Examples of com.rakaizsys.eims.model.finance.BillItem


        "Notes" });
  }

  @Override
  public Object getValueAt(int row, int col) {
    BillItem billItem = (BillItem) dbObjects.get(row);
    switch (col) {
    case 0:
      return billItem.getId();
    case 1:
      return billItem.getItem();
    case 2:
      return billItem.getPrice();
    case 3:
      return billItem.getQuantity();
    case 4:
      return billItem.getTotal();
    case 5:
      return billItem.getNotes();
    default:
      return null;
    }
  }
View Full Code Here


          .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

TOP

Related Classes of com.rakaizsys.eims.model.finance.BillItem

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.