📄 call.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 *//* * Call.java * * Created on 27 March 2003, 01:07 */package crms.vo;import crms.util.XMLUtil;import org.w3c.dom.*;import java.util.Date;import java.text.*;/** * * @author dmurphy */public class Call { ///////////////////////////////////////////////////////////////////////// // Call flags, the values should NEVER be altered, only use higher bit values // special notification methods /** Indicate the call should be emailed to the user */ public final static int CALL_FLAG_EMAIL = 0x0001; /** Track whether the email was sent */ public final static int CALL_FLAG_EMAIL_SENT = 0x0002; /** Indicate the call should be SMS'd to the user */ public final static int CALL_FLAG_SMS = 0x0004; /** Track whether the SMS was sent */ public final static int CALL_FLAG_SMS_SENT = 0x0008; /** Message has "Will call back" set */ public final static int CALL_FLAG_CALLBACK = 0x0010; /** Message has "Please call back" set */ public final static int CALL_FLAG_PLEASECALL = 0x0020; /** Message has "Urgent" set */ public final static int CALL_FLAG_URGENT = 0x0040; private int flags = 0; private int callID = -1; private int contactID = -1; private int companyID = -1; private String creator = null; private String note = null; private String number = null; private String owner = null; private boolean ownerHasRead = false; private String fromFirstName = null; private String fromLastName = null; private boolean deleted = false; private Date date = null; public static SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy HH:mm"); // utility objects that store the actual data and not just ID's (to save additional queries to the server) private Company company = null; private StaffMember owner_obj = null; private Permission permission = null; /** Creates a new instance of Call */ public Call() { } public void setCallID(int id) { this.callID = id; } public int getCallID() { return callID; } public void setContactID(int id) { this.contactID = id; } public int getContactID() { return contactID; } public void setCreator(String creator) { this.creator = creator; } public String getCreator() { return creator; } public void setNote(String note) { this.note = note; } public String getNote() { return note; } public void setNumber(String number) { this.number = number; } public String getNumber() { return number; } public void setOwner(String owner) { this.owner = owner; } public String getOwner() { return owner; } public void setOwnerHasRead(boolean hasRead) { this.ownerHasRead = hasRead; } public boolean getOwnerHasRead() { return ownerHasRead; } public void setDate(Date date) { this.date = date; } public Date getDate() { return date; } public void setFromFirstName(String name) { fromFirstName = name; } public String getFromFirstName() { return fromFirstName; } public void setFromLastName(String name) { fromLastName = name; } public String getFromLastName() { return fromLastName; } public void setDeleted(boolean deleted) { this.deleted = deleted; } public boolean getDeleted() { return deleted; } public int getCompanyID() { return companyID; } public void setCompanyID(int companyID) { this.companyID = companyID; } public Company getCompany() { return company; } public void setCompany(Company company) { this.company = company; } public StaffMember getOwnerObj() { return owner_obj; } public void setOwnerObj(StaffMember owner) { owner_obj = owner; } public void setPermission(Permission p) { permission = p; } public Permission getPermission() { return permission; } public void setFlags(int new_flags) { flags = new_flags; } public int getFlags() { return flags; } /** Returns the current status of a flag * @param flag The flag to query */ public boolean checkFlag(int flag) { return (flags & flag) == flag; } /** Change a flag associated to this call. * * @param flag The flag bit to modify * @param set When true it will set the bit, otherwise unset it */ public void changeFlag(int flag, boolean set) { if (set == true) { flags |= flag; } else { flags &= ~flag; } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -