EasyUi dataGrid JavaBean


1.datagridで返されるデータに導入タイプがある場合は、datagridのcolumのformateで取得できます.
$('#extendLogDatagrid').datagrid({
			url:'loadListDatas_ExchangeLogAction.action',
			rownumbers: true,
			fitColumns: true,
			pagination:true,
			pageSize: 20,
			striped:false,
			sortName:'operation_time',
			sortOrder:'desc',
			columns:[[ 
				{field:'doc_name',title:' ',width:100,align:'center',sortable:true}, 
				{field:'operation_time',title:' ',width:100,align:'center',sortable:true,order:'desc',formatter: function(value,row){
		        	return getFormatDateByLong(Number(value),'yyyy-MM-dd hh:mm:ss');
		        },width:100,align:'center'},
		        {field:'operation_man',title:' ',width:100,align:'center',formatter: function(value,row){
					return (value==null?"":value.name);
        			}
				},
// 				{field:'qrcode',title:' ',width:100,align:'center'},
				{field:'doc_secretlevel',title:' ',width:100,formatter: function(value,row){
					return value.name;
	        		}
				},
				{field:'boxIp',title:' Ip ',width:100,align:'center',sortable:true},
				{field:'opState',title:' ',width:100,align:'center',sortable:true,formatter: function(value,row){
					var htmlStr ='';
						if(value==" "){
// 							htmlStr ='<font  color="red">'+value+'</font>';
							htmlStr ="<a  class=\"form_pickup\">"+value+"</a>";
						}else if(value==" "){
							htmlStr ="<a  class=\"form_storage\">"+value+"</a>";
						}
						return htmlStr;
	        		}
				}
			]] ,
			onLoadSuccess:function(index,field,value){
				$('.form_pickup').linkbutton({ 
					iconCls: 'icon-log_get',
					plain:true
				}); 
				$('.form_storage').linkbutton({
					iconCls: 'icon-log_put',
					plain:true
				});
		  	}
		});