mysqlhibernate3springmvcextjs4 2
中的model
ext.define('tw.model.globalstatisticsmodel',{
extend : 'ext.data.model',
fields: [
{name: 'id', type: 'int',sorttype :'aesc'},
{name: 'failuretime',type: 'date'},
{name: 'failureaddress', type: 'string'},
{name: 'repairtime', type: 'string'},
{name: 'maintenanceman', type: 'string'},
{name: 'completion', type: 'string'},
{name: 'failurecontent', type: 'string'}
]
});
中的store
ext.define('tw.store.globalstatisticsstore',{
extend:'ext.data.store',
model:'tw.model.globalstatisticsmodel',
pagesize: 17,
proxy:{
type:'ajax',
url: 'gdgl/getmanagers',
reader: {
type: 'json',
root: 'workorders'
},
writer:{
type: 'json'
}
},
autoload: true
});
然后是ext的view
ext.define('tw.view.gdgl.globalstatisticsview',{
extend : 'ext.grid.panel',
xtype : 'globalstatisticsview',
store:'globalstatisticsstore',
seltype : 'checkboxmodel',
forcefit:false,
columns: [{
text: 'id',
dataindex: 'id',
width:50,
editor: {
readonly:true
}
}, {
// text: '故障时间',
header:'故障时间',
dataindex: 'failuretime',
width:180,
renderer : ext.util.format.daterenderer('y-m-d h:i:s'),
editor: {
allowblank: false
}
}, {
text: '故障地点',
dataindex: 'failureaddress',
width:200,
editor: {
allowblank: false
}
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号