ProcessUrgeDialog.js 922 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * 功能:流程运行对话框
  3. *
  4. * 参数:
  5. * conf:配置为一个JSON
  6. *
  7. * dialogWidth:对话框的宽度。
  8. * dialogHeight:对话框高度。
  9. *
  10. * actDefId:流程定义ID。
  11. *
  12. */
  13. function ProcessUrgeDialog(conf)
  14. {
  15. if(!conf) conf={};
  16. var url=__ctx + '/platform/bpm/processRun/urgeOwner.ht?actInstId=' + conf.actInstId;
  17. var dialogWidth=450;
  18. var dialogHeight=300;
  19. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1,reload:true},conf);
  20. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  21. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  22. url=url.getNewUrl();
  23. //window.showModalDialog(url,"",winArgs);
  24. /*KILLDIALOG*/
  25. DialogUtil.open({
  26. height:conf.dialogHeight,
  27. width: conf.dialogWidth,
  28. title : '流程运行',
  29. url: url,
  30. isResize: true,
  31. });
  32. }