processViewer.html 3.0 KB

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