nexacro实现自定义弹窗
1、先在一个独立的form中自定义好弹窗样式及内容
2、在想使用弹窗的界面中,找到要触发弹窗的事件中进行引入该弹窗form的url路径
this.Button00_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo)
{ // 点击弹出添加表单
var nLeft = system.clientToScreenX(this, 10);// 将基于组件客户端的坐标转换为基于屏幕的坐标
var nTop = system.clientToScreenY(this, 10);
var objChild = new ChildFrame("popDept", "absolute", nLeft, nTop, 300, 400);
objChild.set_formurl("Popup::pop_customerInformation.xfdl");
objChild.set_openalign("center middle");
objChild.set_dragmovetype("all");
objChild.showModal(this.getOwnerFrame()
, {}
, this
, "fn_callback_pop");
};
// Dept Popup Callback
this.fn_callback_pop = function(sPopupId, sReturn)
{
if(sReturn == undefined){
sReturn = "";
}
if(sPopupId == "popDept")
{
if(sReturn.length > 0){
var arrRtn = sReturn.split("|");
this.div_search.form.edt_dept_cd.set_value(arrRtn[0]);
this.div_search.form.edt_dept_nm.set_value(arrRtn[1]);
}
}
}