FlowRightDialog.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * 流程分配权限。
  3. *
  4. * @param defId 流程定义ID
  5. * @param type 流程类型(0,流程定义ID,1,分类类型)
  6. * @param defKey 流程定义key
  7. */
  8. function FlowRightDialog(id,type,defKey,isParent){
  9. var url=__ctx +"/platform/bpm/bpmDefRight/list.ht?id=" + id +"&type=" +type;
  10. if(typeof defKey!='undefined'&&defKey!=''){
  11. url+="&defKey=" +defKey;
  12. }
  13. if(typeof isParent!='undefined'){
  14. url+="&isParent=" +isParent;
  15. }
  16. var winArgs="dialogWidth:650px;dialogHeight:390px;help:0;status:0;scroll:1;center:1;resizable:1";
  17. url=url.getNewUrl();
  18. //var rtn=window.showModalDialog(url,"",winArgs);
  19. /*KILLDIALOG*/
  20. DialogUtil.open({
  21. height:conf.dialogHeight,
  22. width: conf.dialogWidth,
  23. title : '',
  24. url: url,
  25. isResize: true,
  26. });
  27. };
  28. /**
  29. * 业务数据浏览模板权限分配
  30. * @param id 模板ID
  31. * @param type 分类搜索类型(0-->模板ID;1-->表单类型)
  32. */
  33. function FlowTemplateDialog(id,type){
  34. var url=__ctx +"/platform/form/bpmTableTemprights/list.ht?id=" + id+"&type=" +type;
  35. var winArgs="dialogWidth:650px;dialogHeight:390px;help:0;status:0;scroll:0;center:1;resizable:1";
  36. url=url.getNewUrl();
  37. //var rtn=window.showModalDialog(url,"",winArgs);
  38. /*KILLDIALOG*/
  39. DialogUtil.open({
  40. height:conf.dialogHeight,
  41. width: conf.dialogWidth,
  42. title : '',
  43. url: url,
  44. isResize: true,
  45. });
  46. }