FlowEventWindow.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * 设置流程事件脚本对话框。
  3. * conf参数属性:
  4. * actDefId: act流程定义ID
  5. * activitiId:节点ID
  6. * defId:流程定义ID
  7. * @param conf
  8. */
  9. function FlowEventWindow(conf)
  10. {
  11. if(!conf) conf={};
  12. var url=__ctx + "/platform/bpm/bpmNodeScript/edit.ht?type="+conf.type+"&actDefId=" + conf.actDefId+"&nodeId=" + conf.activitiId +"&defId=" + conf.defId;
  13. var dialogWidth=800;
  14. var dialogHeight=600;
  15. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  16. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  17. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  18. if(conf.parentActDefId){
  19. url += "&parentActDefId="+conf.parentActDefId;
  20. }
  21. url=url.getNewUrl();
  22. /*var rtn = window.showModalDialog(url,"",winArgs);
  23. if (conf.callback) {
  24. conf.callback.call(this,rtn);
  25. }*/
  26. /*KILLDIALOG*/
  27. DialogUtil.open({
  28. height:conf.dialogHeight,
  29. width: conf.dialogWidth,
  30. title : '设置流程事件脚本',
  31. url: url,
  32. isResize: true,
  33. });
  34. }