{
field: 'Delete', title: '操作', 60, formatter: function (value, row, index) {
var jrow = [];
jrow.push(row)
var btn = '<a class="editcls fa fa-pencil" onclick="editMyRow(' + JSON.stringify(row).replace(/"/g, '"') + ')" href="javascript:void(0)">编辑</a>';
return btn;
}
}
function editMyRow(jrow) {
if (jrow != null) {
$("#modalwindow").html("<iframe width='100%' height='99%' scrolling='yes' frameborder='0' src='/Cost/Cost_SpTaximeter/Edit?id=" + jrow.Id + "'></iframe>");
$("#modalwindow").window({ title: '编辑', 700, height: 430, iconCls: 'fa fa-pencil' }).window('open');
} else { $.messageBoxWxc('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}