📄 contactidentifirestypecode.java
字号:
/* CRMS, customer relationship management systemCopyright (C) 2003 Service To Youth Council This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details. You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information contact the SYC ICT department on GPL@syc.net.au98 Kermode StreetNorth AdelaideSouth AustraliaSA 5006 +61 (0)8 8367 0755*//* * CompanySizeCode.java * * Created on 19 Oct 2003 */package crms.util;/** * @author lubo * */public class ContactIdentifiresTypeCode extends crms.util.AbstractCode { public static final ContactIdentifiresTypeCode EMPLOYEE = new ContactIdentifiresTypeCode("Employee", "Employee"); public static final ContactIdentifiresTypeCode CONTRACTOR = new ContactIdentifiresTypeCode("Contractor", "Contractor"); public static final ContactIdentifiresTypeCode CONSULTANT = new ContactIdentifiresTypeCode("Consultant", "Consultant"); public static final ContactIdentifiresTypeCode ADVISOR = new ContactIdentifiresTypeCode("Advisor", "Advisor"); public static final ContactIdentifiresTypeCode MIDDLE_MANAGEMENT = new ContactIdentifiresTypeCode("Management", "Management"); public static final ContactIdentifiresTypeCode SENIOR_MANAGEMENT = new ContactIdentifiresTypeCode("Senior Management", "Senior Management"); public static final ContactIdentifiresTypeCode CEO_MD = new ContactIdentifiresTypeCode("CEO / Managing Director", "CEO / Managing Director"); public static final ContactIdentifiresTypeCode OWNER = new ContactIdentifiresTypeCode("Owner", "Owner"); public static final ContactIdentifiresTypeCode PARTNER = new ContactIdentifiresTypeCode("Partner", "Partner"); public static final ContactIdentifiresTypeCode OTHER = new ContactIdentifiresTypeCode("Other", "Other"); public ContactIdentifiresTypeCode() { } /** Creates a new instance of CompanySizeCode */ public ContactIdentifiresTypeCode(String code, String name) { super(code, name); } public static ContactIdentifiresTypeCode getForCode(String code) { if (code.trim().equals(OWNER.getCode())) { return OWNER; } else if (code.trim().equals(CEO_MD.getCode())) { return CEO_MD; } else if (code.trim().equals(SENIOR_MANAGEMENT.getCode())) { return SENIOR_MANAGEMENT; } else if (code.trim().equals(MIDDLE_MANAGEMENT.getCode())) { return MIDDLE_MANAGEMENT; } else if (code.trim().equals(OTHER.getCode())) { return OTHER; } else if (code.trim().equals(CONTRACTOR.getCode())) { return CONTRACTOR; } else if (code.trim().equals(CONSULTANT.getCode())) { return CONSULTANT; } else if (code.trim().equals(PARTNER.getCode())) { return PARTNER; } else if (code.trim().equals(ADVISOR.getCode())) { return ADVISOR; } else if (code.trim().equals(EMPLOYEE.getCode())) { return EMPLOYEE; } return null; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -