FlowReminderWindow.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * 流程节点催办时间设置窗口。
  3. * conf:参数如下:
  4. * actDefId:流程定义ID
  5. * nodeId:流程节点Id
  6. * dialogWidth:窗口宽度,默认值650
  7. * dialogWidth:窗口宽度,默认值400
  8. * @param conf
  9. */
  10. function FlowReminderWindow(conf)
  11. {
  12. // var url=__ctx + "/platform/bpm/taskReminder/edit.ht?actDefId="+conf.actDefId+"&nodeId=" + conf.nodeId;
  13. // var w = 1024;
  14. // var h = 550;
  15. // var x = screen.width/2 - w/2;
  16. // var y = screen.height/2 - h/2-10;
  17. // var winArgs="width="+w+",height="+h+",left="+x+",top="+y+",toolbar=no,menubar=no,resizable=no,location=no,status=no";
  18. // var rtn=window.open(url,"",winArgs);
  19. if(!conf) conf={};
  20. var url=__ctx + "/platform/bpm/taskReminder/edit.ht?actDefId="+conf.actDefId+"&nodeId=" + conf.nodeId;
  21. var dialogWidth=900;
  22. var dialogHeight=700;
  23. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:1,center:1},conf);
  24. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  25. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  26. if(conf.parentActDefId){
  27. url += "&parentActDefId="+conf.parentActDefId;
  28. }
  29. url=url.getNewUrl();
  30. /*var rtn=window.showModalDialog(url,"",winArgs);
  31. if (conf.callback) {
  32. conf.callback.call(this,rtn);
  33. }*/
  34. var that = this;
  35. /*KILLDIALOG*/
  36. DialogUtil.open({
  37. height:conf.dialogHeight,
  38. width: conf.dialogWidth,
  39. title : '流程节点',
  40. url: url,
  41. isResize: true,
  42. //自定义参数
  43. sucCall:function(rtn){
  44. if (conf.callback) {
  45. conf.callback.call(this,rtn);
  46. }
  47. }
  48. });
  49. }