123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <link rel="stylesheet" type="text/css" href="css/style.css" charset="UTF-8" />
- <link rel="stylesheet" href="css/mBoxNotice.css" charset="UTF-8" />
- <link rel="stylesheet" href="css/mBoxTooltip.css" charset="UTF-8" />
- <script src="../o2_core/o2.min.js"></script>
- <script src="../o2_lib/Decimal.js"></script>
- <title>FORM PREVIEW</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <script>
- layout = window.layout || {};
- o2.addReady(function(){
- o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], {"sequence": true}, function(){
- //MWF.defaultPath = "../x_desktop"+MWF.defaultPath;
- MWF.loadLP("zh-cn");
- MWF.require("MWF.xDesktop.Layout", function(){
- MWF.require("MWF.xDesktop.Authentication", null, false);
- (function(){
- layout.load = function(){
- if (this.isAuthentication()){
- this.processData = window.frameElement.retrieve("processData");
- MWF.require("MWF.widget.MWFRaphael", null, false);
- MWFRaphael.load(function(){
- this.paperNode = $("layout");
- this.paper = Raphael(this.paperNode, "100%", "99%");
- this.paper.container = this.paperNode;
- MWF.require("MWF.xApplication.process.ProcessDesigner.Process", function(){
- this.process = new MWF.APPPD.Process(this.paper, this.processData, this, {"style":"flat", "isView": true});
- this.process.load();
- }.bind(this));
- }.bind(this));
- }
- };
- layout.authentication = new MWF.xDesktop.Authentication({
- "onLogin": layout.load.bind(layout)
- });
- layout.isAuthentication = function(){
- var returnValue = true;
- this.authentication.isAuthenticated(function(json){
- this.user = json.data;
- }.bind(this), function(){
- this.authentication.loadLogin(this.node);
- returnValue = false;
- }.bind(this));
- return returnValue;
- };
- layout.load();
- })();
- });
- });
- });
- </script>
- </head>
- <body style="overflow: auto; margin: 0px;">
- <div id="layout" class="layout" style="overflow: auto; height:100%">
- </div>
- </body>
- </html>
|