1234567891011121314151617181920212223242526272829303132333435 |
- function PersonScriptDialog(conf)
- {
- var dialogWidth=730;
- var dialogHeight=560;
-
- conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
- var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
- +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
- if(!conf.isSingle)conf.isSingle=false;
- var url=__ctx + '/platform/system/personScript/dialog.ht';
- url=url.getNewUrl();
-
- /*var rtn=window.showModalDialog(url,conf.data,winArgs);
-
- if(conf.callback)
- {
- if(rtn && rtn.id){
- conf.callback.call(this,rtn);
- }
- }*/
- var that = this;
- DialogUtil.open({
- height:conf.dialogHeight,
- width: conf.dialogWidth,
- title : '脚本窗口',
- url: url,
- isResize: true,
- //自定义参数
- data: conf.data,
- sucCall:function(rtn){
- conf.callback.call(that,rtn);
- }
- });
- }
|