FlowApprovalItemWindow.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * 设置流程常用语对话框。
  3. * conf参数属性:
  4. * activitiId:节点ID
  5. * defId:流程定义ID
  6. * @param conf
  7. */
  8. function FlowApprovalItemWindow(conf)
  9. {
  10. if(!conf) conf={};
  11. var url=__ctx + "/platform/bpm/taskApprovalItems/edit.ht?nodeId=" + conf.activitiId +"&defId=" + conf.defId
  12. +"&actDefId="+conf.actDefId;
  13. var dialogWidth=600;
  14. var dialogHeight=300;
  15. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  16. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  17. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  18. url=url.getNewUrl();
  19. /*var rtn=window.showModalDialog(url,"",winArgs);
  20. if (conf.callback) {
  21. conf.callback.call(this,rtn);
  22. }*/
  23. var that=this;
  24. /*KILLDIALOG*/
  25. DialogUtil.open({
  26. height:conf.dialogHeight,
  27. width: conf.dialogWidth,
  28. title : '设置流程常用语',
  29. url: url,
  30. isResize: true,
  31. //自定义参数
  32. sucCall:function(rtn){
  33. if (conf.callback) {
  34. conf.callback.call(that,rtn);
  35. }
  36. }
  37. });
  38. }