BpmNodeSetWindows.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. function BpmNodeSqlWindow(conf){
  2. DialogUtil.open({
  3. height:600,
  4. width: 800,
  5. title : '节点sql设置',
  6. url: __ctx+"/platform/bpm/bpmNodeSql/edit.ht?nodeId="+conf.nodeId+"&actdefId="+conf.actDefId,
  7. isResize: true
  8. });
  9. }
  10. function FlowSetWindow(conf)
  11. {
  12. if(!conf) conf={};
  13. var url=__ctx+ "/platform/bpm/bpmDefinition/subFlowDetail.ht?defId="+conf.defId+"&actDefId=" + conf.actDefId +"&nodeId=" +conf.nodeId;
  14. url=url.getNewUrl();
  15. var rtn=window.open(url);
  16. }
  17. /**
  18. * 通知方式
  19. {actDefId:actDefId,nodeId:activitiId,activityName:activityName}
  20. * @param conf
  21. */
  22. InformTypeWindow=function(conf){
  23. if(!conf) conf={};
  24. var url=__ctx + "/platform/bpm/bpmDefinition/informType.ht?actDefId=" + conf.actDefId+"&nodeId=" + conf.nodeId;
  25. var dialogWidth=400;
  26. var dialogHeight=230;
  27. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  28. var winArgs="dialogWidth:"+conf.dialogWidth+"px;dialogHeight:"+conf.dialogHeight
  29. +"px;help:" + conf.help +";status:" + conf.status +";scroll:" + conf.scroll +";center:" +conf.center;
  30. if(conf.parentActDefId){
  31. url += "&parentActDefId="+conf.parentActDefId;
  32. }
  33. url=url.getNewUrl();
  34. /*var rtn=window.showModalDialog(url,"",winArgs);
  35. if (conf.callback) {
  36. conf.callback.call(this,rtn);
  37. }*/
  38. var that=this;
  39. /*KILLDIALOG*/
  40. DialogUtil.open({
  41. height:conf.dialogHeight,
  42. width: conf.dialogWidth,
  43. title : '通知方式',
  44. url: url,
  45. isResize: true,
  46. //自定义参数
  47. sucCall:function(rtn){
  48. if (conf.callback) {
  49. conf.callback.call(that,rtn);
  50. }
  51. }
  52. });
  53. };
  54. /**
  55. * webService设置。 conf参数属性: actDefId: act流程定义ID nodeId:流程节点ID
  56. *
  57. * @param conf
  58. */
  59. function FlowWebServiceWindow(conf) {
  60. if (!conf)
  61. conf = {};
  62. var url = __ctx + "/platform/bpm/bpmNodeWebService/edit.ht?actDefId="
  63. + conf.actDefId + "&nodeId=" + conf.nodeId+"&defId="+conf.defId;
  64. url = url.getNewUrl();
  65. jQuery.openFullWindow(url);
  66. }
  67. function TriggerNewFlowWindow(conf){
  68. DialogUtil.open({
  69. height:680,
  70. width: 720,
  71. title : '流程关联触发配置',
  72. url : __ctx + "/platform/bpm/bpmNewFlowTrigger/edit.ht?flowKey=" + conf.defKey + "&nodeId=" + conf.nodeId+ "&actDefId=" + conf.actDefId,
  73. isResize: true
  74. });
  75. }
  76. function BpmNodeSqlWindow(conf){
  77. DialogUtil.open({
  78. height:640,
  79. width: 720,
  80. title : '节点sql设置',
  81. url: __ctx+"/platform/bpm/bpmNodeSql/edit.ht?nodeId="+conf.nodeId+"&actdefId="+conf.actDefId,
  82. isResize: true
  83. });
  84. }
  85. function NodeMsgTempWindow(conf){
  86. DialogUtil.open({
  87. height:800,
  88. width: 1000,
  89. title : '节点消息模板',
  90. url: __ctx+"/platform/bpm/nodeMsgTemplate/edit.ht?defId="+conf.defId+"&nodeId="+conf.nodeId+"&parentDefId="+conf.parentDefId,
  91. isResize: true
  92. });
  93. }