//列表 跳轉 查看頁面
function hrefRender(value, cellmeta, record, rowIndex, columnIndex, store){
var uuid = record.get("uuid");
return '<a href="'+contextPath+'/messageCenterManagerAction.do?method=getObj&view=view&uuid='+uuid+'">'+value+'</a>';
}
//建立時間
function dateRender(value, cellmeta, record, rowIndex, columnIndex, store){
if(value && 'NaN' != value){
return value.substring(0,10);
}else{
return '';
}
}
//日期處理
function dateRender(value, cellmeta, record, rowIndex, columnIndex, store){
try{
var a = value.substring(0,10);
return Date.parseDate(a,"Y-m-d").format('Y-m-d');
}
catch(e){
return '';
}
}
//日期處理
function dateRender(value, cellmeta, record, rowIndex, columnIndex, store){
try{
var a = value.substring(0,10);
return Date.parseDate(a,"Y-m-d").format('Y年m月d日');
}
catch(e){
return '';
}
}
{header: "程度", width: 60, dataIndex: 'urgentName',sortable: false},
store.on('load',function (store,records,options){
for(var i=0;i<records.length;i++){
var record= store.getAt(i);
aacc(record);
}
});
function aacc(re){
if(re.data['urgentId']!=''){
Ext.Ajax.request({
url:contextPath+'/sendUpdate.do?method=ajxUrgentName&uuid='+re.data['urgentId'],
method:'POST',
callback:function(options,success,response){
var data = response.responseXML;
var urgentName='';
if($(data).text()!=''){
urgentName = $(data).find("urgentName").text();
re.set('urgentName',urgentName);
}
}
}
);
}
}