wordDcFjsduReport.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <title>金水云信息平台</title>
  6. </head>
  7. <body>
  8. <script type="text/javascript" th:src="${jqSrc}"></script>
  9. <script type="text/javascript" th:src="${poSrc}" id="po_js_main" ></script>
  10. <div style="width:1100px;height:800px;" th:utext="${pageoffice}"> </div>
  11. <script type="text/javascript" th:inline="javascript">
  12. function AfterDocumentOpened() {
  13. document.getElementById("PageOfficeCtrl1").SetEnableFileCommand(3, false); // 禁止保存
  14. }
  15. function newCreate() {
  16. var nginxPath = [[${nginxPath}]];
  17. var rgstrId = [[${rgstrId}]];
  18. $.ajax({
  19. type : "POST", //提交方式
  20. url : nginxPath + "/pageoffice/fjsdu/newCreate",//路径
  21. data : {
  22. "rgstrId" : rgstrId
  23. },//数据,这里使用的是Json格式进行传输
  24. success : function(result) {//返回数据根据结果进行相应的处理
  25. alert(result)
  26. }
  27. });
  28. }
  29. function SaveOK() {
  30. }
  31. function PrintFile(){
  32. document.getElementById("PageOfficeCtrl1").ShowDialog(4);
  33. }
  34. function IsFullScreen(){
  35. document.getElementById("PageOfficeCtrl1").FullScreen = !document.getElementById("PageOfficeCtrl1").FullScreen;
  36. }
  37. function CloseFile(){
  38. window.external.close();
  39. }
  40. function BeforeBrowserClosed(){
  41. // if (document.getElementById("PageOfficeCtrl1").IsDirty){
  42. // if(confirm("提示:文档已被修改,是否继续关闭放弃保存 ?"))
  43. // {
  44. // return true;
  45. // }else{
  46. // return false;
  47. // }
  48. // }
  49. }
  50. // 隐藏/显示 标题栏
  51. function Button1_onclick() {
  52. var bVisible = document.getElementById("PageOfficeCtrl1").Titlebar;
  53. document.getElementById("PageOfficeCtrl1").Titlebar = !bVisible;
  54. }
  55. // 隐藏/显示 菜单栏
  56. function Button2_onclick() {
  57. var bVisible = document.getElementById("PageOfficeCtrl1").Menubar;
  58. document.getElementById("PageOfficeCtrl1").Menubar = !bVisible;
  59. }
  60. // 隐藏/显示 自定义工具栏
  61. function Button3_onclick() {
  62. var bVisible = document.getElementById("PageOfficeCtrl1").CustomToolbar;
  63. document.getElementById("PageOfficeCtrl1").CustomToolbar = !bVisible;
  64. }
  65. // 隐藏/显示 Office工具栏
  66. function Button4_onclick() {
  67. var bVisible = document.getElementById("PageOfficeCtrl1").OfficeToolbars;
  68. document.getElementById("PageOfficeCtrl1").OfficeToolbars = !bVisible;
  69. }
  70. // 保存首页图片
  71. function SaveFirstAsImg() {
  72. document.getElementById("PageOfficeCtrl1").WebSaveAsImage();
  73. if (document.getElementById("PageOfficeCtrl1").CustomSaveResult == "ok") {
  74. document.getElementById("PageOfficeCtrl1").Alert("首页保存成功!");
  75. document.getElementById("img1").src = "images/test.jpg";
  76. document.getElementById("img1").style.width = "200px";
  77. document.getElementById("img1").style.height = "290px";
  78. }
  79. }
  80. </script>
  81. </body>
  82. </html>