- 浏览: 47814 次
- 性别:
- 来自: 成都
最新评论
-
leichaojava2010java:
那个store, colnum 怎参数我不太明白希望楼主给我 ...
ext js动态加载checkbox的值及取值方法 -
xiaoyi3317:
...
代码规范 -
fantasybei:
-_-!!,会做么?
焖大虾
文章列表
listeners:{
'blur' : function(){
var str = Ext.get('roleListaddname').dom.value;
var roleName = str.indexOf('_')+1;
var su ...
function getComboBoxMpCsnList(){
var comboBoxCsnList= new Ext.form.ComboBox({
fieldLabel: '状态',
mode:'local',
id:'mpCsnListState',
triggerAction:'all',
blankText:'全部',
emptyText:'全部',
triggerAction: 'all',
...
- 2009-09-22 09:37
- 浏览 982
- 评论(0)
var mpCsncm = new Ext.grid.ColumnModel([
{header: '节点名称',width: 150,sortable: false,dataIndex: 'name'}]);
var mpCsnstore = new Ext.data.Store({
proxy : new Ext.data.DWRProxy({
fn : mpCsnAction.pageMpCsns
}),
reader : new Ext.data.JsonReader({
remoteSort : true,
root : 'pageResults',
...
- 2009-09-22 09:36
- 浏览 866
- 评论(0)
Properties props = new Properties();
props.load(new FileInputStream("db.properties")); //相对src的路径
String s = props.getProperty(key);
- 2009-09-09 12:26
- 浏览 835
- 评论(0)
/**
* 根据ID删除记录
*
* @param id
*/
public void removeByIdForAnnotation(Serializable id) {
T o = get(id);
if (o.getClass().isAnnotationPresent(Undeletable.class)) {
Undeletable anno = (Undeletable) o.getClass().getAnnotation(
Undeletable.class);
try {
Method method = o.getCla ...
- 2009-07-23 16:32
- 浏览 743
- 评论(0)
/**
* 取得Entity的Criteria.
*/
public Criteria getEntityCriteria() {
return getHibernateTemplate().getSessionFactory().getCurrentSession()
.createCriteria(getEntityClass());
}
@SuppressWarnings("unchecked")
public T get(Serializable id) {
T o = (T) getHibernateTemplate().get(g ...
- 2009-07-23 16:30
- 浏览 931
- 评论(0)
wo de sheng huo
@Service("entityDao")
public class AbstractHibernateDao<T> extends HibernateDaoSupport implements
EntityDao<T> {
protected Log logger = LogFactory.getLog(getClass());
public static int COUNT_MODE = 1;
public static int SCROLL_MODE = 2;
public static int ...
- 2009-07-23 16:27
- 浏览 636
- 评论(0)