/**
   * @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);
  }
예제 #2
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;
  }