TableDetailDialog.js 934 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * 功能:自定义表明细对话框
  3. *
  4. * 参数:
  5. * conf:配置为一个JSON
  6. *
  7. * dialogWidth:对话框的宽度。
  8. * dialogHeight:对话框高度。
  9. *
  10. *
  11. */
  12. function TableDetailDialog(conf)
  13. {
  14. if(!conf) conf={};
  15. var url=__ctx + '/platform/form/bpmFormTable/get.ht?iswin=1&tableId='+ conf.tableId;
  16. var dialogWidth=700;
  17. var dialogHeight=540;
  18. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1,resize: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 +";resizable=" + conf.resize;
  21. url=url.getNewUrl();
  22. //window.showModalDialog(url,"",winArgs);
  23. /*KILLDIALOG*/
  24. DialogUtil.open({
  25. height:conf.dialogHeight,
  26. width: conf.dialogWidth,
  27. title : '自定义表明细',
  28. url: url,
  29. isResize: true,
  30. });
  31. }