public interface SelectItemService extends IBaseService<SelectItem>
Modifier and Type | Method and Description |
---|---|
SelectItem |
getItemByName(java.lang.String pid,
java.lang.String name) |
SelectItem |
getItemByValue(java.lang.String pid,
java.lang.String value) |
java.util.List<SelectItem> |
getItemList(java.lang.String pid)
用于DWR方法获取下拉框,getItemList方法有重载无法区分,所以新命名该方法
|
net.sf.json.JSONObject |
getItemObject(java.lang.String pid)
获取该下拉框的JSON格式,用于Ext.grid的数据转译显示
|
java.lang.String |
getNameById(java.lang.String itemId) |
java.util.List<SelectItem> |
getSelectItemByPid(java.lang.String pid)
返回所有显示类型的下拉框
|
java.util.List<SelectItem> |
getSelectItemByPid(java.lang.String pid,
java.lang.Integer visible)
获取下拉选择项
|
boolean |
hasChildItem(java.lang.String id) |
boolean |
hasItemValue(java.lang.String pid)
确定指定类型的下拉框是否有value属性值,如果有则需用getNameByValue获取
|
int |
importSelectItem(java.lang.String pid,
java.lang.String cid,
java.lang.String data)
将data的数据导入为下拉框,数组格式为:Name[|Value],...
JSON格式:[{name:$name,value:$value,visible:$visible},{....] |
invalidLabelCascade, recreateLabelCascade
executeUpdate, executeUpdate, getById, getById, getByQuery, getByWhere, getByWhere, getByWhere, getCounts, getCounts, getJdbcDao, getJdbcTemplate, getList, getListByWhere, getListByWhere, getListForQuery, getListForQuery, getNewItem, getPageList, getPageList, getPageListForQuery, remove, removeById, removeByObject, save, saveOrUpdate, saveOrUpdateByObject, updateLabelByOldLabel
java.util.List<SelectItem> getItemList(java.lang.String pid)
pid
- as Stringjava.util.List<SelectItem> getSelectItemByPid(java.lang.String pid)
pid
- java.util.List<SelectItem> getSelectItemByPid(java.lang.String pid, java.lang.Integer visible)
pid
- as Integervisible
- as Integer //1表示显示,0表示不黒,null表示所有boolean hasChildItem(java.lang.String id)
net.sf.json.JSONObject getItemObject(java.lang.String pid)
pid
- as intjava.lang.String getNameById(java.lang.String itemId)
boolean hasItemValue(java.lang.String pid)
pid
- as intSelectItem getItemByValue(java.lang.String pid, java.lang.String value)
SelectItem getItemByName(java.lang.String pid, java.lang.String name)
int importSelectItem(java.lang.String pid, java.lang.String cid, java.lang.String data)
pid
- as String 可以为空cid
- as String 分类ID,如果pid不为空则从pid中获取,否则必须有值data
- as StringCopyright © 2019 by Sucang.cn