processViewer.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  5. <link rel="stylesheet" type="text/css" href="/x_desktop/res/css/style.css" charset="UTF-8" />
  6. <link rel="stylesheet" href="/x_desktop/res/css/mBoxNotice.css" charset="UTF-8" />
  7. <link rel="stylesheet" href="/x_desktop/res/css/mBoxTooltip.css" charset="UTF-8" />
  8. <script src="/x_desktop/res/common.js?v=1.1.7"></script>
  9. <!--<script src="/x_desktop/res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
  10. <!--<script src="/x_desktop/res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
  11. <script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
  12. <script src="res/framework/Decimal.js"></script>
  13. <title>FORM PREVIEW</title>
  14. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  15. <script>
  16. layout = window.layout || {};
  17. COMMON.DOM.addReady(function(){
  18. COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
  19. COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
  20. COMMON.setContentPath("/x_desktop");
  21. COMMON.AjaxModule.load("mwf", function(){
  22. MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
  23. MWF.loadLP("zh-cn");
  24. MWF.require("MWF.xDesktop.Layout", function(){
  25. MWF.require("MWF.xDesktop.Authentication", null, false);
  26. (function(){
  27. layout.load = function(){
  28. if (this.isAuthentication()){
  29. this.processData = window.frameElement.retrieve("processData");
  30. MWF.require("MWF.widget.MWFRaphael", null, false);
  31. MWFRaphael.load(function(){
  32. this.paperNode = $("layout");
  33. this.paper = Raphael(this.paperNode, "100%", "99%");
  34. this.paper.container = this.paperNode;
  35. MWF.require("MWF.xApplication.process.ProcessDesigner.Process", function(){
  36. this.process = new MWF.APPPD.Process(this.paper, this.processData, this, {"style":"flat", "isView": true});
  37. this.process.load();
  38. }.bind(this));
  39. }.bind(this));
  40. }
  41. };
  42. layout.authentication = new MWF.xDesktop.Authentication({
  43. "onLogin": layout.load.bind(layout)
  44. });
  45. layout.isAuthentication = function(){
  46. var returnValue = true;
  47. this.authentication.isAuthenticated(function(json){
  48. this.user = json.data;
  49. }.bind(this), function(){
  50. this.authentication.loadLogin(this.node);
  51. returnValue = false;
  52. }.bind(this));
  53. return returnValue;
  54. };
  55. layout.load();
  56. })();
  57. });
  58. });
  59. });
  60. </script>
  61. </head>
  62. <body style="overflow: auto; margin: 0px;">
  63. <div id="layout" style="overflow: auto; height:100%">
  64. </div>
  65. </body>
  66. </html>