TaskCommentWindow.js 793 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * 设置流程常用语对话框。
  3. * conf参数属性:
  4. * activitiId:节点ID
  5. * defId:流程定义ID
  6. * @param conf
  7. */
  8. function TaskCommentWindow(conf)
  9. {
  10. if(!conf) conf={};
  11. var url=__ctx + "/platform/bpm/taskComment/edit.ht?taskId=" + conf.taskId;
  12. var dialogWidth=800;
  13. var dialogHeight=450;
  14. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  15. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  16. +"px;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. }