processViewer.html 3.1 KB

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