function onmultideptselect(sender) {
var btnEdit = this;
mini.open({
url: "/Portal_New/Pop/MultiDeptSelect",
title: "部门多选",
width: 250,
height: 500,
onload: function () {
var iframe = this.getIFrameEl();
if (iframe.contentWindow.setData)
iframe.contentWindow.setData(data);
},
ondestroy: function (action) {
if (action != null && action.Action == "ok") {
var data = action.Rows;
var ids = "";
var names = "";
if (data) {
for (var i = 0; i < data.length; i++) {
if (i == data.length - 1) {
ids += data[i]["FullId"];
names += data[i]["FullName"];
}
else {
ids += data[i]["FullId"] + ",";
names += data[i]["FullName"] + ",";
}
}
}
if (btnEdit.DeptId)
setPopCtrlValue(btnEdit.DeptId, ids)
if (btnEdit.DeptName)
setPopCtrlValue(btnEdit.DeptName, names)
}