- 注册时间
- 2012-4-20
- 最后登录
- 2012-5-29
- 阅读权限
- 10
- 积分
- 117
- 精华
- 0
- 帖子
- 33
|
- function onButtomselectEmployeeText(e) {
- var buttonEdit = e.sender;
- mini.openTop({
- url: "/Employee/Selectd",
- title: "选择员工",
- width: 465,
- height: 450,
- onload: function () { },
- ondestory: function (action) {
- alert('');
- if (action == "ok") {
- var iframe = this.getIFrameEl();
- var data = iframe.contentWindow.GetData();
- data = mini.clone(data);
- buttonEdit.setValue(data.text);
- buttonEdit.setText(data.text);
- }
- }
- });
- }
复制代码- mini.parse(); var grid = mini.get("datagrid1"); grid.load();
- function GetData() {
- var rows = grid.getSelected();
- var data = {};
- data.id = rows.ID;
- data.text = rows.FullName;
- return data;
- }
- function onSelectionChanged(e) {
- var action = "ok";
- CloseWindow(action);
- }
复制代码
未更新前 可用,更新后,触发不到 "ondestory" 事件. |
|