📄 boxpricemanager.java
字号:
package com.ktv.common;
import java.util.ArrayList;
import java.util.List;
import com.ktv.entity.boxType;;
public class boxPriceManager {
static List<boxType> boxlist=new ArrayList<boxType>(3);
static {
boxlist.add(new boxType("0","请选择包房的价格"));
boxlist.add(new boxType("minBox","20"));
boxlist.add(new boxType("smallBox","40"));
boxlist.add(new boxType("middleBox","60"));
boxlist.add(new boxType("bigBox","80"));
boxlist.add(new boxType("partyBox","100"));
boxlist.add(new boxType("vipBox","120"));
}
public List getboxType(String id){
List<boxType> list=new ArrayList<boxType>();
for (int i = 0; i < boxlist.size(); i++) {
boxType boxtype=(boxType) boxlist.get(i);
if(boxtype.getBoxTypeCode().equals(id)){
list.add(boxtype);
}
}
return list;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -