📄 feetype.java
字号:
package com.gctech.sms.core;
import java.util.Map;
import java.util.TreeMap;
import java.util.Collection;
/**
* <p>Title: 资费类型</p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: gctech</p>
* @author 王红宝
* @version $Id: FeeType.java,v 1.1.1.1 2004/04/21 09:30:41 wanghb Exp $
*/
public class FeeType {
private String name;
private String value;
public static final FeeType FEE_FREE = new FeeType("00", "免费");
public static final FeeType FEE_BY_ITEM = new FeeType("01", "按条收费");
public static final FeeType FEE_MONTH = new FeeType("02", "包月");
public static final FeeType FEE_LIMIT = new FeeType("03", "封顶");
public static final FeeType FEE_MONTH_MONEY = new FeeType("04", "包月扣费请求");
public static final FeeType FREE_RECORD = new FeeType("05", "话单");
static Map all = new TreeMap();
static {
all.put("00", FEE_FREE);
all.put("01", FEE_BY_ITEM);
all.put("02", FEE_MONTH);
all.put("03", FEE_LIMIT);
all.put("04", FEE_MONTH_MONEY);
all.put("05", FREE_RECORD);
}
public static Collection getAll(){
return all.values();
}
public static String valueToName(String value){
FeeType type = (FeeType)all.get(value);
return type.getName();
}
public FeeType(String value, String name) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -