コード例 #1
0
ファイル: DataLogicSales.java プロジェクト: ialopezg/openpos
    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;
    }
コード例 #2
0
  /**
   * @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);
  }
コード例 #3
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;
  }