<%// 同步提交新窗口打开通用按钮 %>
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'${button.icon!}',plain:true" onclick="eova_btn_${button.id}()">${button.name!}</a>
<script type="text/javascript">
	var eova_btn_${button.id} = function(){
		var $widget = $('#${gridId}');
        var rows = $.getWidgetSelections($widget);
        if (rows.length == "0") {
        	$.slideMsg($.I18N('请选择一行数据'));
            return;
        }
	    
        var json = JSON.stringify(rows);

	    var form = $('<form target="_blank" method="POST" action="${button.uri}"></form>');
	    var input = $('<input type="hidden" name="rows" />');  
	    input.attr('value', json);
	    form.append(input);
	    $(document.body).append(form);	    
	    form.submit();
	    form.remove();
	};
</script>