📄 b09ba6fe399d001b14c3fa48fd947afa
字号:
package com.tangjun.web.vo;
import java.util.List;
import javax.faces.model.SelectItem;
import com.tangjun.model.exception.MyException;
import com.tangjun.web.pojo.CDType;
public class CDTypeBean extends CDTypeBaseBean
{
private CDType cdType;
private SelectItem[] items;
public CDType getCdType()
{
return cdType;
}
public void setCdType(CDType cdType)
{
this.cdType = cdType;
}
public CDType findById(Integer id)
{
try
{
return this.getCdTypeService().findById(id);
}
catch(MyException e)
{
e.printStackTrace();
return null;
}
}
public SelectItem[] getTypes()
{
try
{
List temp=getCdTypeService().findAllTypes();
items=new SelectItem[temp.size()];
for(int i=0;i<temp.size())
= CDTypeBean.
return items;
}
catch(MyException e)
{
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -