⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contact.java

📁 发泄网! 发泄网! 发泄网! 发泄网! 发泄网! 发泄网! 发泄网! 发泄网!
💻 JAVA
字号:
    /* CRMS, customer relationship management system    Copyright (C) 2003  Service To Youth Council    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    For further information contact the SYC ICT department on GPL@syc.net.au    98 Kermode Street    North Adelaide    South Australia    SA 5006     +61 (0)8 8367 0755    *//* * Contact.java * * Created on 26 March 2003, 04:02 */package crms.vo;import org.w3c.dom.*;import crms.util.*;import java.util.*;import java.text.SimpleDateFormat;import org.apache.log4j.Logger;/** * * @author  dmurphy */public class Contact {    static Logger logger = Logger.getLogger(Contact.class);        public static SimpleDateFormat df = new SimpleDateFormat("dd MMMM, yyyy");        // Placeholder contact to represent 'Myself' it list boxes etc.    public static Contact CONTACT_MYSELF = new Contact(0,0,"- Myself -","");        private String firstName = null;    private String lastName = null;    private int companyID = -1;    private String companyname = null;    private int contactID = -1;	private int locationID = -1;    private String notes = null;    private String contactType = null;    private String owner = null;    private Date deleteDate = null;    private Date hideDate = null;        // Now the additional meta-data	private String workOtherPhone = null;    private String workPhone = null;    private String workFax = null;    private String workMobile = null;    private String workAddress = null;    private String workSuburb = null;    private String workState = null;    private String workPostCode = null;    private String homePhone = null;    private String homeFax = null;    private String homeAddress = null;    private String homeSuburb = null;    private String homeState = null;    private String homePostCode = null;    private GenderCode gender = null;    private String birthDate = null;    private ContactIdentifiresTypeCode contactIdentifier = null;    private String email = null;    private String www = null;	private String position = null;	private String otherPhone = null;	private String title = null;	private String homecountry = null;	private String workcountry = null;        private boolean deleted = false;        /** Creates a new instance of Contact */    public Contact() {    }        public Contact( int contactID, int companyID, String firstName, String lastName) {        this.contactID = contactID;        this.companyID = companyID;        this.firstName = firstName;        this.lastName = lastName;    }        public void setFirstName(String firstName) {        this.firstName = firstName;    }        public String getFirstName() {        return firstName;    }        public void setLastName(String lastName) {        this.lastName = lastName;    }        public String getLastName() {        return lastName;    }        public void setCompanyID(int id) {        this.companyID = id;    }    public int getCompanyID() {        return companyID;    }        public void setLocationID(int id) {        this.locationID = id;    }    public int getLocationID() {        return locationID;    }        public void setContactID(int id) {        this.contactID = id;    }        public int getContactID() {       return contactID;    }        public void setTitle(String title) {        this.title = title;    }        public String getTitle() {        return title;    }    public void setNotes(String notes) {        this.notes = notes;    }        public String getNotes() {        return notes;    }        public void setContactType(String contactType) {        this.contactType = contactType;    }        public String getContactType() {        return contactType;    }        public void setOwner(String owner) {        this.owner = owner;    }        public String getOwner() {        return owner;    }        public void setDeleteDate(Date deleteDate) {        this.deleteDate = deleteDate;    }        public Date getDeleteDate() {        return deleteDate;    }        public void setHideDate(Date hideDate) {        this.hideDate = hideDate;    }        public Date getHideDate() {        return this.hideDate;    }    public void setPosition(String position) {        this.position = position;    }        public String getPosition() {        return position;    }	public void setWorkOtherPhone(String number) {		this.workOtherPhone = number;	}	public String getWorkOtherPhone() {		return this.workOtherPhone;	}        public void setWorkPhone(String number) {        this.workPhone = number;    }        public String getWorkPhone() {        return workPhone;    }	public void setWorkCountry(String country) {		this.workcountry = country;	}	public String getWorkCountry() {		return workcountry;	}    	public void setHomeCountry(String country) {		this.homecountry = country;	}	public String getHomeCountry() {		return homecountry;	}        public void setWorkFax(String number) {        this.workFax = number;    }        public String getWorkFax() {        return workFax;    }        public void setWorkMobile(String number) {        this.workMobile = number;    }        public String getWorkMobile() {        return workMobile;    }    public void setHomePhone(String number) {        this.homePhone = number;    }        public String getHomePhone() {        return homePhone;    }        public void setHomeFax(String number) {        this.homeFax = number;    }        public String getHomeFax() {        return homeFax;    }        public void setWorkAddress(String address) {        this.workAddress = address;    }        public String getWorkAddress() {        return workAddress;    }        public void setWorkSuburb(String suburb) {        this.workSuburb = suburb;    }        public String getWorkSuburb() {        return workSuburb;    }        public void setWorkState(String state) {        this.workState = state;    }        public String getWorkState() {        return workState;    }        public void setWorkPostCode(String postcode) {        this.workPostCode = postcode;    }        public String getWorkPostCode() {        return workPostCode;    }// Home        public void setHomeAddress(String address) {        this.homeAddress = address;    }        public String getHomeAddress() {        return homeAddress;    }        public void setHomeSuburb(String suburb) {        this.homeSuburb = suburb;    }        public String getHomeSuburb() {        return homeSuburb;    }        public void setHomeState(String state) {        this.homeState = state;    }        public String getHomeState() {        return homeState;    }        public void setHomePostCode(String postcode) {        this.homePostCode = postcode;    }        public String getHomePostCode() {        return homePostCode;    }    public void setGender(GenderCode gender) {        this.gender = gender;    }        public GenderCode getGender() {        return gender;    }        public void setBirthDate(String birthDate) {        this.birthDate = birthDate;    }        public String getBirthDate() {        return birthDate;    }        public void setDeleted(boolean deleted) {        this.deleted = deleted;       }        public boolean getDeleted() {        return deleted;       }    public String toString() {        return getFirstName() + " " + getLastName();    }    		/**		 * Geet the Contact identifier		 *		 * @return		 */		public ContactIdentifiresTypeCode getContactIdentifier() {			return contactIdentifier;		}		/**		 * Set the contact identifier		 *		 * @param code		 */		public void setContactIdentifier(ContactIdentifiresTypeCode code) {			contactIdentifier = code;		}		/**		 * @return		 */		public String getEmail() {			return email;		}		/**		 * @return		 */		public String getWWW() {			return www;		}		/**		 * @param string		 */		public void setEmail(String string) {			email = string;		}		/**		 * @param string		 */		public void setWWW(String string) {			www = string;		}		/**		 * @return		 */		public String getOtherPhone() {			return otherPhone;		}		/**		 * @param string		 */		public void setOtherPhone(String string) {			otherPhone = string;		}    public void setCompanyName(String new_name) {        this.companyname= new_name;    }    public String getCompanyName() {        return companyname;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -