/**
  * @param dr
  * @throws BasicException
  */
 @Override
 public void readValues(DataRead dr) throws BasicException {
   m_parentNode = dr.getString(1);
   m_treeNode = dr.getString(2);
   m_class = dr.getString(3);
   m_description = dr.getString(4);
 }
 @Override
 public void readValues(DataRead dr) throws BasicException {
   m_sName = dr.getString(1);
   m_dTicket = dr.getDouble(2).doubleValue();
   m_transactionID = dr.getString(3);
   m_notes = dr.getString(4);
   m_dTotal = m_dTicket;
 }
  /**
   * @param dr
   * @throws BasicException
   */
  @Override
  public void readValues(DataRead dr) throws BasicException {

    ticketid = dr.getInt(1);
    tickettype = dr.getInt(2);
    date = dr.getTimestamp(3);
    name = dr.getString(4);
    customer = dr.getString(5);
    total = (dr.getObject(6) == null) ? 0.0 : dr.getDouble(6);
  }
  public void readValues(DataRead dr) throws BasicException {
    m_sId = dr.getString(1);
    tickettype = dr.getInt(2).intValue();
    m_iTicketId = dr.getInt(3).intValue();
    m_dDate = dr.getTimestamp(4);
    m_sActiveCash = dr.getString(5);
    try {
      byte[] img = dr.getBytes(6);
      if (img != null) {
        attributes.loadFromXML(new ByteArrayInputStream(img));
      }
    } catch (IOException e) {
    }
    m_User = new UserInfo(dr.getString(7), dr.getString(8));
    m_Customer = new CustomerInfoExt(dr.getString(9));
    m_iTicketNCF = dr.getInt(10).intValue(); // NCF
    m_aLines = new ArrayList<TicketLineInfo>();

    payments = new ArrayList<PaymentInfo>();
    taxes = null;
  }
 public void readValues(DataRead dr) throws BasicException {
   m_sID = dr.getString(1);
   m_sName = dr.getString(2);
   m_sAddress = dr.getString(3);
 }
 public void readValues(DataRead dr) throws BasicException {
   m_PaymentType = dr.getString(1);
   m_PaymentValue = dr.getDouble(2);
 }
 public void readValues(DataRead dr) throws BasicException {
   m_SalesTaxName = dr.getString(1);
   m_SalesTaxes = dr.getDouble(2);
 }
 /**
  * @param dr
  * @throws BasicException
  */
 @Override
 public void readValues(DataRead dr) throws BasicException {
   m_sName = dr.getString(1);
   m_aPermissions = dr.getBytes(2);
 }
Example #9
0
    public Object readValues(DataRead dr) throws BasicException {
      CustomerInfoExt c = new CustomerInfoExt(dr.getString(1));
      c.setTaxid(dr.getString(2));
      c.setSearchkey(dr.getString(3));
      c.setName(dr.getString(4));
      c.setCard(dr.getString(5));
      c.setTaxCustomerID(dr.getString(6));
      c.setNotes(dr.getString(7));
      c.setMaxdebt(dr.getDouble(8));
      c.setVisible(dr.getBoolean(9).booleanValue());
      c.setCurdate(dr.getTimestamp(10));
      c.setCurdebt(dr.getDouble(11));
      c.setFirstname(dr.getString(12));
      c.setLastname(dr.getString(13));
      c.setEmail(dr.getString(14));
      c.setPhone(dr.getString(15));
      c.setPhone2(dr.getString(16));
      c.setFax(dr.getString(17));
      c.setAddress(dr.getString(18));
      c.setAddress2(dr.getString(19));
      c.setPostal(dr.getString(20));
      c.setCity(dr.getString(21));
      c.setRegion(dr.getString(22));
      c.setCountry(dr.getString(23));

      return c;
    }