SetRelationWindow.js 885 B

12345678910111213141516171819202122232425262728293031323334
  1. function SetRelationWindow(conf)
  2. {
  3. if(!conf) conf={};
  4. var url=__ctx + "/platform/form/bpmFormTable/setRelation.ht?tableId="+conf.tableId+"&dsName=" + conf.dsName;
  5. var dialogWidth=600;
  6. var dialogHeight=350;
  7. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1,reload:true},conf);
  8. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  9. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  10. url=url.getNewUrl();
  11. /*var rtn=window.showModalDialog(url,"",winArgs);
  12. if(conf.reload){
  13. location.reload();
  14. }*/
  15. /*KILLDIALOG*/
  16. DialogUtil.open({
  17. height:conf.dialogHeight,
  18. width: conf.dialogWidth,
  19. title : '',
  20. url: url,
  21. isResize: true,
  22. //自定义参数
  23. sucCall:function(rtn){
  24. if(conf.reload){
  25. location.reload();
  26. }
  27. }
  28. });
  29. }