PersonScriptDialog.js 909 B

1234567891011121314151617181920212223242526272829303132333435
  1. function PersonScriptDialog(conf)
  2. {
  3. var dialogWidth=730;
  4. var dialogHeight=560;
  5. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  6. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  7. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  8. if(!conf.isSingle)conf.isSingle=false;
  9. var url=__ctx + '/platform/system/personScript/dialog.ht';
  10. url=url.getNewUrl();
  11. /*var rtn=window.showModalDialog(url,conf.data,winArgs);
  12. if(conf.callback)
  13. {
  14. if(rtn && rtn.id){
  15. conf.callback.call(this,rtn);
  16. }
  17. }*/
  18. var that = this;
  19. DialogUtil.open({
  20. height:conf.dialogHeight,
  21. width: conf.dialogWidth,
  22. title : '脚本窗口',
  23. url: url,
  24. isResize: true,
  25. //自定义参数
  26. data: conf.data,
  27. sucCall:function(rtn){
  28. conf.callback.call(that,rtn);
  29. }
  30. });
  31. }