BpmNodeButtonWindow.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * 设置操作按钮对话框。
  3. * conf参数属性:
  4. * actDefId: act流程定义ID
  5. * nodeId:节点ID
  6. * defId:流程定义ID
  7. * @param conf
  8. */
  9. function BpmNodeButtonWindow(conf)
  10. {
  11. if(!conf) conf={};
  12. var url=__ctx + "/platform/bpm/bpmNodeButton/getByNode.ht?buttonFlag=false&nodeId=" + conf.nodeId +"&defId=" + conf.defId;
  13. var dialogWidth=800;
  14. var dialogHeight=380;
  15. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:1,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. url=url.getNewUrl();
  19. /*var rtn=window.showModalDialog(url,"",winArgs);
  20. if (conf.callback) {
  21. conf.callback.call(this,rtn);
  22. }*/
  23. var that =this;
  24. /*KILLDIALOG*/
  25. //TODO jsp居然没有window.
  26. DialogUtil.open({
  27. height:conf.dialogHeight,
  28. width: conf.dialogWidth,
  29. title : '设置操作按钮',
  30. url: url,
  31. isResize: true,
  32. //自定义参数
  33. sucCall:function(rtn){
  34. if (conf.callback) {
  35. conf.callback.call(that,rtn);
  36. }
  37. }
  38. });
  39. }