processViewer.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  5. <link rel="stylesheet" type="text/css" href="css/style.css" charset="UTF-8" />
  6. <link rel="stylesheet" type="text/css" href="css/v10/root.css" charset="UTF-8" />
  7. <link rel="stylesheet" type="text/css" href="css/v10/style.css" id="oo-css-skin" charset="UTF-8" />
  8. <link rel="stylesheet" href="css/mBoxNotice.css" charset="UTF-8" />
  9. <link rel="stylesheet" href="css/mBoxTooltip.css" charset="UTF-8" />
  10. <script src="../o2_core/o2.min.js"></script>
  11. <script src="../o2_lib/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. o2.addReady(function(){
  17. o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], {"sequence": true}, function(){
  18. //MWF.defaultPath = "../x_desktop"+MWF.defaultPath;
  19. MWF.loadLP("zh-cn");
  20. MWF.require("MWF.xDesktop.Layout", function(){
  21. MWF.require("MWF.xDesktop.Authentication", null, false);
  22. (function(){
  23. layout.load = function(){
  24. if (this.isAuthentication()){
  25. this.processData = window.frameElement.retrieve("processData");
  26. MWF.require("MWF.widget.MWFRaphael", null, false);
  27. MWFRaphael.load(function(){
  28. this.paperNode = $("layout");
  29. this.paper = Raphael(this.paperNode, "100%", "99%");
  30. this.paper.container = this.paperNode;
  31. MWF.require("MWF.xApplication.process.ProcessDesigner.Process", function(){
  32. this.process = new MWF.APPPD.Process(this.paper, this.processData, this, {"style":"flat", "isView": true});
  33. this.process.load();
  34. }.bind(this));
  35. }.bind(this));
  36. }
  37. };
  38. layout.authentication = new MWF.xDesktop.Authentication({
  39. "onLogin": layout.load.bind(layout)
  40. });
  41. layout.isAuthentication = function(){
  42. var returnValue = true;
  43. this.authentication.isAuthenticated(function(json){
  44. this.user = json.data;
  45. }.bind(this), function(){
  46. this.authentication.loadLogin(this.node);
  47. returnValue = false;
  48. }.bind(this));
  49. return returnValue;
  50. };
  51. layout.load();
  52. })();
  53. });
  54. });
  55. });
  56. </script>
  57. </head>
  58. <body style="overflow: auto; margin: 0px;">
  59. <div id="layout" class="layout" style="overflow: auto; height:100%">
  60. </div>
  61. </body>
  62. </html>