function onButtonEdit(e) {
var btnEdit = this;
var grid = e.sender;
var record = e.record;
mini.open({
url : "${ctx}/model/ref.action",
title : "选择列表",
width : 600,
height : 550,
ondestroy : function(action) {
// if (action == "close") return false;
if (action == "ok") {
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
data = mini.clone(data); // 必须
if (data) {
btnEdit.setValue(data.name);
grid.updateRow(record,{"productId":data.name})
}
}