DateTimeUtils.convertStringToDateTime()//把字符串转化为date
DateUtil.getDateTime()//把date转化为字符串
调用showProcessWait()和closeProcessWait()两个方法不用传参数了!以前传参数的也可以
orcal varchar2最大设置4000
可以做定时刷新的。
可以用这个new Ext.util.TaskRunner()
getHboxGrid=function(obj,[height],[frame])
调用此方法解决grid水平滚动条问题,obj是要显示的grid对象,height是高度可以不传,默认是500;frame是frame属性可以不传默认是false
Ext.ux.EditorGrid扩展了可编辑grid组件;
使用方法和Ext.ux.Grid相似,里面增加了insertType属性,addRecord和removeRecord方法。
insertType属性:增加记录时插入位置,值可以是top或bottom。
addRecord方法:增加一条记录。
removeRecord方法:删除一条记录。
如有其他需求可以共同完善其功能。
源码在/inc/extends/ExtUx.js中
sortInfo:{field: 'seqber',direction: 'ASC' }]
开发人员注意了。。。不要使用jdk1.6的keyMap()方法。。。IBM Websphere 也不认识这个新方法。
开发人员注意 : 关于配置文件。。分各模块。。分别是。uni-bd.xml uni-cs.xml uni-es.xml uni-fm.xml
if(object=='add'){
var baacode=Main.jsonRpcClient._call('codeMakerService.createBusiAareCode');
busiareaCode.setValue(baacode)
}
列表中有下拉框的例子
// create reusable renderer
Ext.util.Format.comboRenderer = function(combo){
return function(value){
var record = combo.findRecord(combo.valueField, value);
return record ? record.get(combo.displayField) : combo.valueNotFoundText;
}
}
// create the combo instance
var combo = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
store: new Ext.data.ArrayStore({
id: 0,
fields: [
'myId',
'displayText'
],
data: [[1, 'item1'], [2, 'item2']]
}),
valueField: 'myId',
displayField: 'displayText'
});
// snippet of column model used within grid
var cm = new Ext.grid.ColumnModel([{
...
},{
header: "Some Header",
dataIndex: 'whatever',
width: 130,
editor: combo, // specify reference to combo instance
renderer: Ext.util.Format.comboRenderer(combo) // pass combo instance to reusable renderer
},
...
]);
查询条件是日期 则指定 ValueType:'T'
new Ext.grid.RowNumberer(),
DateUtil.getDateTime()//把date转化为字符串
调用showProcessWait()和closeProcessWait()两个方法不用传参数了!以前传参数的也可以
orcal varchar2最大设置4000
可以做定时刷新的。
可以用这个new Ext.util.TaskRunner()
getHboxGrid=function(obj,[height],[frame])
调用此方法解决grid水平滚动条问题,obj是要显示的grid对象,height是高度可以不传,默认是500;frame是frame属性可以不传默认是false
Ext.ux.EditorGrid扩展了可编辑grid组件;
使用方法和Ext.ux.Grid相似,里面增加了insertType属性,addRecord和removeRecord方法。
insertType属性:增加记录时插入位置,值可以是top或bottom。
addRecord方法:增加一条记录。
removeRecord方法:删除一条记录。
如有其他需求可以共同完善其功能。
源码在/inc/extends/ExtUx.js中
sortInfo:{field: 'seqber',direction: 'ASC' }]
开发人员注意了。。。不要使用jdk1.6的keyMap()方法。。。IBM Websphere 也不认识这个新方法。
开发人员注意 : 关于配置文件。。分各模块。。分别是。uni-bd.xml uni-cs.xml uni-es.xml uni-fm.xml
if(object=='add'){
var baacode=Main.jsonRpcClient._call('codeMakerService.createBusiAareCode');
busiareaCode.setValue(baacode)
}
列表中有下拉框的例子
// create reusable renderer
Ext.util.Format.comboRenderer = function(combo){
return function(value){
var record = combo.findRecord(combo.valueField, value);
return record ? record.get(combo.displayField) : combo.valueNotFoundText;
}
}
// create the combo instance
var combo = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
store: new Ext.data.ArrayStore({
id: 0,
fields: [
'myId',
'displayText'
],
data: [[1, 'item1'], [2, 'item2']]
}),
valueField: 'myId',
displayField: 'displayText'
});
// snippet of column model used within grid
var cm = new Ext.grid.ColumnModel([{
...
},{
header: "Some Header",
dataIndex: 'whatever',
width: 130,
editor: combo, // specify reference to combo instance
renderer: Ext.util.Format.comboRenderer(combo) // pass combo instance to reusable renderer
},
...
]);
查询条件是日期 则指定 ValueType:'T'
new Ext.grid.RowNumberer(),