Ejemplo n.º 1
0
  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;
  }
 /**
  * @param dr
  * @throws BasicException
  */
 @Override
 public void readValues(DataRead dr) throws BasicException {
   m_sName = dr.getString(1);
   m_aPermissions = dr.getBytes(2);
 }