在填报报表里面 怎样给已经设置为文本控件的单元格 添加一个双击调用二级窗口的事件
双击单元格的时候 能够调用二级窗口 (附双击控件弹二级窗口代码)
var self=this;
$("input:eq(5)").dblclick(function(){/*input:eq(3),*/
window.form=contentPane.parameterEl;//将二级窗口的值取到控件上
var abbr=form.getWidgetByName("c").getValue();//将主界面控件值传到二级窗口控件上
var $iframe = $("");
$iframe.attr("src", "${servletURL}?reportlet=/doc/Parameter/erp_bm.cpt&op=write&abbr="+abbr);//调用弹窗的地址以及所要传递的数据
var o = {
title : "请选择部门",
width : 460, //460
height: 350 //350
};
FR.showDialog(o.title, o.width, o.height, $iframe,o);});