public String getName(Object info) {

    StringBuffer name = new StringBuffer();

    if (getCustomerId() != null) {
      name.append(m_Customer.toString());
      name.append(" - ");
    }

    if (info == null) {
      if (m_iTicketId == 0) {
        name.append(
            "("
                + m_dateformat.format(m_dDate)
                + " "
                + Long.toString(m_dDate.getTime() % 1000)
                + ")");
      } else {
        name.append(Integer.toString(m_iTicketId));
      }
    } else {
      name.append(info.toString());
    }

    return name.toString();
  }
 public String getCustomerId() {
   if (m_Customer == null) {
     return null;
   } else {
     return m_Customer.getId();
   }
 }
 public String printCustomer() {
   return m_Customer == null ? "" : m_Customer.getName();
 }
Example #4
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;
    }