FlowOrgUserScopeWindow.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. FlowOrgUserScopeWindow * 流程节点中部门人员选择器的设置窗口。
  3. * conf:参数如下:
  4. * actDefId:流程定义ID
  5. * nodeId:流程节点Id
  6. * dialogWidth:窗口宽度,默认值650
  7. * dialogWidth:窗口宽度,默认值400
  8. * @param conf
  9. */
  10. function FlowOrgUserScopeWindow(conf)
  11. {
  12. if(!conf) conf={};
  13. var url=__ctx + "/platform/bpm/bpmNodeSet/flowScope.ht?actDefId="+conf.actDefId+"&nodeId=" + conf.nodeId+"&defId="+conf.defId+"&parentActDefId="+conf.parentActDefId;
  14. var dialogWidth=600;
  15. var dialogHeight=400;
  16. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:1,center:1},conf);
  17. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  18. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  19. if(conf.parentActDefId){
  20. url += "&parentActDefId="+conf.parentActDefId;
  21. }
  22. url=url.getNewUrl();
  23. var that = this;
  24. /*KILLDIALOG*/
  25. DialogUtil.open({
  26. height:conf.dialogHeight,
  27. width: conf.dialogWidth,
  28. title : '部门或人员选择器配置',
  29. url: url,
  30. isResize: true,
  31. //自定义参数
  32. sucCall:function(rtn){
  33. if (conf.callback) {
  34. conf.callback.call(this,rtn);
  35. }
  36. }
  37. });
  38. }