VarsWindow.js 921 B

12345678910111213141516171819202122232425262728293031
  1. function VarsWindow(conf)
  2. {
  3. if(!conf) conf={};
  4. var url=__ctx + "/platform/bpm/bpmDefVar/edit.ht?defId="+conf.defId +"&varId=" + conf.varId;
  5. var dialogWidth=500;
  6. var dialogHeight=300;
  7. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  8. var winArgs="dialogWidth="+conf.dialogWidth+"px;dialogHeight="+conf.dialogHeight
  9. +"px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  10. url=url.getNewUrl();
  11. /*var rtn=window.showModalDialog(url,"",winArgs);
  12. if(conf){
  13. location.reload();
  14. }*/
  15. /*KILLDIALOG*/
  16. DialogUtil.open({
  17. height:conf.dialogHeight,
  18. width: conf.dialogWidth,
  19. title : '添加/编辑流程变量',
  20. url: url,
  21. isResize: true,
  22. //自定义参数
  23. sucCall:function(rtn){
  24. if(conf){
  25. location.reload();
  26. }
  27. }
  28. });
  29. }