日期:2014-05-17 浏览次数:20741 次
var myStore = new Ext.data.JsonStore({ autoLoad: true, proxy: new Ext.data.HttpProxy({ url: 'PttGetData.asmx/qryCancelableById', headers: { 'Content-type': 'application/json' } }), root: 'd', fields: ['TermId', { name: 'MsgTime' }, 'CardId', 'SimNo', 'ShiftSN', 'CmdType', 'CmdMsg', 'IsSucc', 'T_isRec', 'T_IsCommit', { name: 'SendTime'}, { name: 'RecvTime'}, { name: 'CommitTime'}] });
var grid = new Ext.grid.GridPanel({ store: myStore, columns: [ { header: "信息收发时间", dataIndex: 'MsgTime' }, { header: "终端号", dataIndex: 'TermId', sortable: true }, { header: "车牌号", dataIndex: 'CardId', sortable: true }, { header: "终端sim卡号", dataIndex: 'SimNo', sortable: true }, { header: "作业流水号/航次号/班次号", dataIndex: 'ShiftSN', sortable: true }, { header: "命令类型", dataIndex: 'CmdType', sortable: true }, { header: "命令信息内容", dataIndex: 'CmdMsg', sortable: true }, { header: "收发是否成功", dataIndex: 'IsSucc', sortable: true }, { header: "终端是否收到", dataIndex: 'T_isRec', sortable: true }, { header: "终端是否人工确认", dataIndex: 'T_IsCommit', sortable: true }, { header: "下发时间", dataIndex: 'SendTime', sortable: true }, { header: "接收时间", dataIndex: 'RecvTime', sortable: true }, { header: "人工确认时间", dataIndex: 'CommitTime', sortable: true } ], sm: new Ext.grid.RowSelectionModel({ singleSelect: true }), viewConfig: { forceFit: true }, height: 210, width: 1024, split: true, region: 'north' });
var str="new " + record.substr(1, record.length - 2); return eval("(" +str+")").toLocaleString();
------解决方案--------------------
EXT 日期转化
http://blog.csdn.net/liu_moyan/archive/2009/12/17/5023536.aspx
------解决方案--------------------
function rendeDate(record) {
return eval("new " + record.substr(1, record.length - 2)).toLocaleString()+")");
}
------解决方案--------------------