processViewer.html 3.4 KB

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