BpmTaskExeAssignDialog.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * 功能:流程转办对话框
  3. *
  4. * @param conf:配置为一个JSON
  5. *
  6. * dialogWidth:对话框的宽度。
  7. * dialogHeight:对话框高度。
  8. *
  9. * taskId:任务ID。
  10. * taskName 任务名称
  11. */
  12. function BpmTaskExeAssignDialog(conf)
  13. {
  14. if(!conf) conf={};
  15. var url=__ctx + '/platform/bpm/bpmTaskExe/assign.ht?taskId=' + conf.taskId+"&taskName="+conf.taskName+"&userId="+conf.userId;
  16. var dialogWidth=800;
  17. var dialogHeight=500;
  18. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:1,center:1},conf);
  19. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  20. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  21. url=url.getNewUrl();
  22. /*var rtn=window.showModalDialog(url,"",winArgs);
  23. if (conf.callback) {
  24. conf.callback.call(this,rtn);
  25. }*/
  26. var that =this;
  27. /*KILLDIALOG*/
  28. DialogUtil.open({
  29. height:conf.dialogHeight,
  30. width: conf.dialogWidth,
  31. title : '流程转办对话框',
  32. url: url,
  33. isResize: true,
  34. //自定义参数
  35. sucCall:function(rtn){
  36. if (conf.callback) {
  37. conf.callback.call(that,rtn);
  38. }
  39. }
  40. });
  41. }