提交 d4f8b274 编写于 作者: H huqi1980 提交者: GitHub

Merge pull request #24 from huqi1980/master

更新Web框架
o2.addReady(function(){
COMMON = {
"DOM":{},
"setContentPath": function(path){
COMMON.contentPath = path;
},
......@@ -21,6 +22,7 @@ o2.addReady(function(){
"Request": Request,
"typeOf": o2.typeOf
};
COMMON.DOM.addReady = o2.addReady;
MWF = o2;
MWF.getJSON = o2.JSON.get;
MWF.getJSONP = o2.JSON.getJsonp;
......
......@@ -86,7 +86,7 @@ o2.widget.JavascriptEditor = new Class({
//添加自动完成列表
o2.require("o2.xScript.Macro", function(){
var json = null;
o2.getJSON("/x_desktop/res/mwf4/package/widget/$JavascriptEditor/environment.json", function(data){ json = data; }, false);
o2.getJSON("/o2_core/o2/widget/$JavascriptEditor/environment.json", function(data){ json = data; }, false);
this.Macro = new o2.Macro.FormContext(json);
exports.addCompleter({
identifierRegexps: [
......
......@@ -6,10 +6,10 @@ o2.widget.ace = {
if (!window.ace){
var jsLoaded = false;
var cssLoaded = false;
COMMON.AjaxModule.loadDom("ace", function(){
COMMON.AjaxModule.loadDom("ace-tools", function(){
o2.load("ace", function(){
//COMMON.AjaxModule.loadDom("ace-tools", function(){
if (callback) callback();
}.bind(this))
//}.bind(this))
}.bind(this));
}else{
if (callback) callback();
......
......@@ -2,23 +2,16 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/app.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/app.js?v=2.0.0"></script>
<title>O2</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />-->
<!--<meta content="yes" name="apple-mobile-web-app-capable" />-->
<!--<meta content="black" name="apple-mobile-web-app-status-bar-style" />-->
<!--<meta content="telephone=no" name="format-detection" />-->
</head>
<body style="overflow: auto; margin:0px; height: 100%;">
<div id="appContent" style="overflow: hidden; height:100%; background-color:#EEE"></div>
......
......@@ -2,15 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/appmobile.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/appmobile.js?v=2.0.0"></script>
<title>OA办公系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -2,14 +2,13 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<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="res/framework/htmleditor/ckeditor451/ckeditor.js"></script>-->
<script src="res/common.js?v=1.1.7"></script>
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/cmsDocMobile.js?v=1.1.7"></script>
<script src="../o2_core/o2.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/cmsDocMobile.js?v=2.0.0"></script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
......
......@@ -2,14 +2,11 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="/x_desktop/res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="/x_desktop/res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="/x_desktop/res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="/x_desktop/res/common.js?v=1.1.7"></script>
<!--<script src="/x_desktop/res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="/x_desktop/res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<title>FORM PREVIEW</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......@@ -23,12 +20,8 @@
if (mode=="mobile") layout.mobile = true;
}
//layout.desktop = layout;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
MWF.require("MWF.xDesktop.Layout", function(){
......@@ -36,7 +29,7 @@
(function(){
layout.load = function(){
// if (this.isAuthentication()){
// if (this.isAuthentication()){
var preview = window.frameElement.retrieve("preview");
layout.desktop = window.frameElement.ownerDocument.window.layout.desktop;
......@@ -63,40 +56,9 @@
layout.appForm.load();
});
});
// }
// }
};
// 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.getServiceAddress = function(callback){
// var uri = "http://"+layout.config.center+"/x_program_center/jaxrs/distribute/assemble";
// MWF.restful("get", uri, null, function(json){
// this.serviceAddressList = json.data;
// if (callback) callback();
// }.bind(this));
// };
//
// MWF.getJSON("res/config/config.json", function(config){
// layout.config = config;
//
// layout.getServiceAddress(function(){
// layout.load();
// });
// });
layout.load();
})();
......
......@@ -2,13 +2,13 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script type="text/javascript" src="res/framework/dingding/dingtalk.js"></script>
<script src="res/js/ddsso.js?v=1.1.7"></script>
<script src="js/ddsso.js?v=2.0.0"></script>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -2,13 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/forum.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/forum.js?v=2.0.0"></script>
<title>Forum</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -2,14 +2,13 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/framework/htmleditor/ckeditor451/ckeditor.js"></script>
<script src="res/common.js?v=1.1.7"></script>
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/forumDocMobile.js?v=1.1.7"></script>
<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_lib/htmleditor/ckeditor/ckeditor.js"></script>
<script src="../o2_core/o2.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/forumDocMobile.js?v=2.0.0"></script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
......
......@@ -6,9 +6,9 @@
<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.js?v=1.0.6"></script>
<script src="../o2_core/compatible.js"></script>
<script src="js/x.js?v=1.1.7"></script>
<script src="../o2_core/o2.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/x.js?v=2.0.0"></script>
<title>O2</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
layout = window.layout || {};
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout["debugger"] = true;
layout.session = layout.session || {};
var uri = new URI(href);
var appNames = uri.getData("app");
var optionsStr = uri.getData("option");
var statusStr = uri.getData("status");
var options = (optionsStr) ? JSON.decode(optionsStr) : null;
var statusObj = (statusStr) ? JSON.decode(statusStr) : null;
layout.desktop = layout;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
//COMMON.AjaxModule.load("ie_adapter", function(){
COMMON.AjaxModule.load("mwf", function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
// MWF.require("MWF.widget.Mask", null, false);
// layout.mask = new MWF.widget.Mask({"style": "desktop"});
// layout.mask.load();
MWF.require("MWF.xDesktop.Layout", function(){
MWF.require("MWF.xDesktop.Authentication", null, false);
MWF.xDesktop.requireApp("Common", "", null, false);
(function(){
layout.requireApp = function(appNames, callback, clazzName){
o2.addReady(function(){
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout["debugger"] = true;
layout.session = layout.session || {};
var uri = new URI(href);
var appNames = uri.getData("app");
var optionsStr = uri.getData("option");
var statusStr = uri.getData("status");
var options = (optionsStr) ? JSON.decode(optionsStr) : null;
var statusObj = (statusStr) ? JSON.decode(statusStr) : null;
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
// MWF.require("MWF.widget.Mask", null, false);
// layout.mask = new MWF.widget.Mask({"style": "desktop"});
// layout.mask.load();
MWF.require("MWF.xDesktop.Layout", function(){
MWF.require("MWF.xDesktop.Authentication", null, false);
MWF.xDesktop.requireApp("Common", "", null, false);
(function(){
layout.requireApp = function(appNames, callback, clazzName){
var appPath = appNames.split(".");
var appName = appPath[appPath.length-1];
var appObject = "MWF.xApplication."+appNames;
var className = clazzName || "Main";
var appClass = appObject+"."+className;
var appLp = appObject+".lp."+MWF.language;
var baseObject = MWF.xApplication;
appPath.each(function(path, i){
if (i<(appPath.length-1)){
baseObject[path] = baseObject[path] || {};
}else {
baseObject[path] = baseObject[path] || {"options": Object.clone(MWF.xApplication.Common.options)};
}
baseObject = baseObject[path];
}.bind(this));
if (!baseObject.options) baseObject.options = Object.clone(MWF.xApplication.Common.options);
//MWF.xDesktop.requireApp(appNames, "lp."+MWF.language, null, false);
MWF.xDesktop.requireApp(appNames, "lp."+MWF.language, {
"onRequestFailure": function(){
MWF.xDesktop.requireApp(appNames, "lp.zh-cn", null, false);
}.bind(this),
"onSuccess": function(){}.bind(this)
}, false);
MWF.xDesktop.requireApp(appNames, clazzName, function(){
if (callback) callback(baseObject);
});
//
//MWF.require(appLp, null, false);
//MWF.require(appClass, function(){
// if (callback) callback(baseObject);
//});
};
layout.refreshApp = function(app){
var status = app.recordStatus();
var topWindow = window.opener;
if (topWindow){
topWindow.layout.desktop.openBrowserStatus = status;
var appName = topWindow.layout.desktop.openBrowserApp || appNames;
var m_status = status;
var option = topWindow.layout.desktop.openBrowserOption || options;
window.location.reload();
}else{
statusStr = JSON.encode(status);
var port = uri.get("port");
var url = uri.get("scheme")+"://"+uri.get("host")+((port) ? ":"+port+"/" : "")+uri.get("directory ")+"?app="+appNames+"&status="+statusStr;
window.location = url;
}
//layout.openApplication(null, appName, option||{}, m_status);
};
layout.openApplication = function(e, appNames, options, statusObj){
if (layout.app){
layout.desktop.openBrowserApp = appNames;
layout.desktop.openBrowserStatus = statusObj;
layout.desktop.openBrowserOption = options;
return window.open("app.html", "_blank");
}else{
var appPath = appNames.split(".");
var appName = appPath[appPath.length-1];
var appObject = "MWF.xApplication."+appNames;
var className = clazzName || "Main";
var appClass = appObject+"."+className;
var appLp = appObject+".lp."+MWF.language;
var baseObject = MWF.xApplication;
appPath.each(function(path, i){
if (i<(appPath.length-1)){
baseObject[path] = baseObject[path] || {};
}else {
baseObject[path] = baseObject[path] || {"options": Object.clone(MWF.xApplication.Common.options)};
}
baseObject = baseObject[path];
layout.requireApp(appNames, function(appNamespace){
this.createNewApplication(e, appNamespace, appName, options, statusObj);
}.bind(this));
}
};
layout.createNewApplication = function(e, appNamespace, appName, options, statusObj){
var app = new appNamespace["Main"](this, options);
app.desktop = layout;
app.inBrowser = true;
app.status = statusObj;
app.load(true);
var appId = appName;
if (options.appId){
appId = options.appId;
}else{
if (appNamespace.options.multitask) appId = appId+"-"+(new MWF.widget.UUID());
}
app.appId = appId;
layout.app = app;
};
layout.load = function(){
this.isAuthentication(function(){
//layout.desktop = layout;
MWF.require("MWF.xDesktop.MessageMobile", function(){
layout.message = new MWF.xDesktop.MessageMobile();
layout.message.load();
}.bind(this));
if (!baseObject.options) baseObject.options = Object.clone(MWF.xApplication.Common.options);
//MWF.xDesktop.requireApp(appNames, "lp."+MWF.language, null, false);
MWF.xDesktop.requireApp(appNames, "lp."+MWF.language, {
"onRequestFailure": function(){
MWF.xDesktop.requireApp(appNames, "lp.zh-cn", null, false);
}.bind(this),
"onSuccess": function(){}.bind(this)
}, false);
MWF.xDesktop.requireApp(appNames, clazzName, function(){
if (callback) callback(baseObject);
});
//
//MWF.require(appLp, null, false);
//MWF.require(appClass, function(){
// if (callback) callback(baseObject);
//});
};
layout.refreshApp = function(app){
var status = app.recordStatus();
layout.apps = [];
this.node = $("layout");
var topWindow = window.opener;
if (topWindow){
topWindow.layout.desktop.openBrowserStatus = status;
var appName = topWindow.layout.desktop.openBrowserApp || appNames;
var m_status = status;
var m_status = topWindow.layout.desktop.openBrowserStatus || statusObj;
var option = topWindow.layout.desktop.openBrowserOption || options;
window.location.reload();
}else{
statusStr = JSON.encode(status);
var port = uri.get("port");
var url = uri.get("scheme")+"://"+uri.get("host")+((port) ? ":"+port+"/" : "")+uri.get("directory ")+"?app="+appNames+"&status="+statusStr;
window.location = url;
}
//layout.openApplication(null, appName, option||{}, m_status);
};
layout.openApplication = function(e, appNames, options, statusObj){
if (layout.app){
layout.desktop.openBrowserApp = appNames;
layout.desktop.openBrowserStatus = statusObj;
layout.desktop.openBrowserOption = options;
return window.open("app.html", "_blank");
}else{
var appPath = appNames.split(".");
var appName = appPath[appPath.length-1];
layout.requireApp(appNames, function(appNamespace){
this.createNewApplication(e, appNamespace, appName, options, statusObj);
}.bind(this));
}
};
layout.createNewApplication = function(e, appNamespace, appName, options, statusObj){
var app = new appNamespace["Main"](this, options);
app.desktop = layout;
app.inBrowser = true;
app.status = statusObj;
app.load(true);
var appId = appName;
if (options.appId){
appId = options.appId;
layout.openApplication(null, appName, option||{}, m_status);
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserOption = null;
}else{
if (appNamespace.options.multitask) appId = appId+"-"+(new MWF.widget.UUID());
var appName = appNames;
var m_status = statusObj;
var option = options;
layout.openApplication(null, appName, option||{}, m_status);
}
app.appId = appId;
layout.app = app;
};
layout.load = function(){
this.isAuthentication(function(){
//layout.desktop = layout;
MWF.require("MWF.xDesktop.MessageMobile", function(){
layout.message = new MWF.xDesktop.MessageMobile();
layout.message.load();
}.bind(this));
layout.apps = [];
this.node = $("layout");
var topWindow = window.opener;
if (topWindow){
var appName = topWindow.layout.desktop.openBrowserApp || appNames;
var m_status = topWindow.layout.desktop.openBrowserStatus || statusObj;
var option = topWindow.layout.desktop.openBrowserOption || options;
layout.openApplication(null, appName, option||{}, m_status);
//topWindow.layout.desktop.openBrowserApp = null;
//topWindow.layout.desktop.openBrowserStatus = null;
//topWindow.layout.desktop.openBrowserOption = null;
}else{
var appName = appNames;
var m_status = statusObj;
var option = options;
layout.openApplication(null, appName, option||{}, m_status);
}
//layout.mask.hide();
}.bind(this));
};
layout.isAuthentication = function(callback){
this.authentication = new MWF.xDesktop.Authentication({
"onLogin": layout.load.bind(layout)
});
var returnValue = true;
this.authentication.isAuthenticated(function(json){
this.user = json.data;
this.session = {};
this.session.user = json.data;
if (callback) callback();
}.bind(this), function(){
// if (layout.config.loginPage && layout.config.loginPage.enable && layout.config.loginPage.portal){
// MWF.xDesktop.loadPortal(layout.config.loginPage.portal);
// //window.location = "portal.html?portal="+layout.config.loginPage.portal;
// }else{
// //this.getPublicStyleLoad(node);
// this.authentication.loadLogin(document.body);
// }
this.authentication.loadLogin(document.body);
//if (layout.mask) layout.mask.hide();
returnValue = false;
}.bind(this));
return returnValue;
};
//layout.mask.hide();
}.bind(this));
};
MWF.getJSON("res/config/config.json", function(config){
layout.config = config;
if (layout.config.app_protocol=="auto"){
layout.config.app_protocol = window.location.protocol;
}
MWF.xDesktop.getServiceAddress(layout.config, function(service, center){
layout.serviceAddressList = service;
layout.centerServer = center;
layout.load();
}.bind(this));
//layout.getServiceAddress(function(){
// layout.load();
//});
layout.isAuthentication = function(callback){
this.authentication = new MWF.xDesktop.Authentication({
"onLogin": layout.load.bind(layout)
});
var returnValue = true;
this.authentication.isAuthenticated(function(json){
this.user = json.data;
this.session = {};
this.session.user = json.data;
if (callback) callback();
}.bind(this), function(){
// if (layout.config.loginPage && layout.config.loginPage.enable && layout.config.loginPage.portal){
// MWF.xDesktop.loadPortal(layout.config.loginPage.portal);
// //window.location = "portal.html?portal="+layout.config.loginPage.portal;
// }else{
// //this.getPublicStyleLoad(node);
// this.authentication.loadLogin(document.body);
// }
this.authentication.loadLogin(document.body);
//if (layout.mask) layout.mask.hide();
returnValue = false;
}.bind(this));
return returnValue;
};
MWF.getJSON("res/config/config.json", function(config){
layout.config = config;
if (layout.config.app_protocol=="auto"){
layout.config.app_protocol = window.location.protocol;
}
MWF.xDesktop.getServiceAddress(layout.config, function(service, center){
layout.serviceAddressList = service;
layout.centerServer = center;
layout.load();
}.bind(this));
//layout.getServiceAddress(function(){
// layout.load();
//});
});
})();
})();
});
});
//}.bind(this));
});
});
\ No newline at end of file
layout = window.layout || {};
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout.mobile = true;
layout.desktop = layout;
layout.desktop.session = {};
var uri = new URI(href);
var appNames = uri.getData("app");
var optionsStr = (uri.getData("option"));
var statusStr = (uri.getData("status"));
var options = (optionsStr) ? JSON.decode(optionsStr) : null;
var statusObj = (statusStr) ? JSON.decode(statusStr) : null;
o2.addReady(function(){
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout.mobile = true;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
layout.desktop.session = {};
var uri = new URI(href);
var appNames = uri.getData("app");
var optionsStr = (uri.getData("option"));
var statusStr = (uri.getData("status"));
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
var options = (optionsStr) ? JSON.decode(optionsStr) : null;
var statusObj = (statusStr) ? JSON.decode(statusStr) : null;
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......
......@@ -6,12 +6,8 @@ layout.desktop = layout;
layout.session = layout.session || {};
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout.debugger = true;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -194,15 +190,15 @@ COMMON.DOM.addReady(function(){
}
this.control = data.control || {
"allowRead": true,
"allowPublishDocument": false,
"allowArchiveDocument" : false,
"allowRedraftDocument" : false,
"allowSave": false,
"allowPopularDocument": false,
"allowEditDocument": false,
"allowDeleteDocument": false
};
"allowRead": true,
"allowPublishDocument": false,
"allowArchiveDocument" : false,
"allowRedraftDocument" : false,
"allowSave": false,
"allowPopularDocument": false,
"allowEditDocument": false,
"allowDeleteDocument": false
};
};
layout.openDocument = function(){
if (this.form){
......
......@@ -5,19 +5,11 @@ var href = locate.href;
if (href.indexOf("debugger")!==-1) layout.debugger = true;
layout.desktop = layout;
layout.session = layout.session || {};
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
// MWF.require("MWF.widget.Mask", null, false);
// layout.mask = new MWF.widget.Mask({"style": "desktop"});
// layout.mask.load();
MWF.require("MWF.xDesktop.Layout", function(){
MWF.require("MWF.xDesktop.Authentication", null, false);
......
......@@ -5,12 +5,8 @@ layout.protocol = locate.protocol;
var href = locate.href;
layout.session = layout.session || {};
if (href.indexOf("debugger")!=-1) layout.debugger = true;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -140,7 +136,7 @@ COMMON.DOM.addReady(function(){
var id = urlParams.id;
//alert(sessionStorage.getItem( appName+id+"options").id)
//alert(sessionStorage.getItem( appName+id+"status").id)
var opt = sessionStorage[ appName+ (id ? id : "") +"options" ];
var opt = sessionStorage[ appName+ (id ? id : "") +"options" ];
if(opt){
option = JSON.parse(opt)
}else if(id){
......
......@@ -6,12 +6,8 @@ layout.protocol = locate.protocol;
var href = locate.href;
layout.session = layout.session || {};
if (href.indexOf("debugger")!=-1) layout.debugger = true;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......
layout = window.layout || {};
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout["debugger"] = true;
layout.session = layout.session || {};
//layout.session.user = {};
layout.desktop = layout;
var uri = new URI(href);
var appNames = "portal.Portal";
var id = uri.getData("id");
var page = uri.getData("page");
var statusObj = {"portalId": id, "pageId": page};
var options = null;
o2.addReady(function(){
layout.desktop = layout;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
//COMMON.AjaxModule.load("ie_adapter", function(){
COMMON.AjaxModule.load("mwf", function(){
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout["debugger"] = true;
layout.session = layout.session || {};
//layout.session.user = {};
layout.desktop = layout;
var uri = new URI(href);
var appNames = "portal.Portal";
var id = uri.getData("id");
var page = uri.getData("page");
var statusObj = {"portalId": id, "pageId": page};
var options = null;
// COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
// COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
//COMMON.AjaxModule.load("mwf", function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -189,5 +191,10 @@ COMMON.DOM.addReady(function(){
});
});
//});
//COMMON.setContentPath("/x_desktop");
//COMMON.AjaxModule.load("ie_adapter", function(){
//}.bind(this));
});
\ No newline at end of file
layout = window.layout || {};
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout.mobile = true;
layout.desktop = layout;
layout.session = layout.session || {};
var uri = new URI(href);
var appNames = "portal.Portal";
var id = uri.getData("id");
var page = uri.getData("page");
var statusObj = {"portalId": id, "pageId": page};
var options = null;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
o2.addReady(function(){
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
var locate = window.location;
layout.protocol = locate.protocol;
var href = locate.href;
if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout.mobile = true;
layout.session = layout.session || {};
var uri = new URI(href);
var appNames = "portal.Portal";
var id = uri.getData("id");
var page = uri.getData("page");
var statusObj = {"portalId": id, "pageId": page};
var options = null;
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......
......@@ -5,12 +5,8 @@ var href = locate.href;
if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout.desktop = layout;
layout.session = layout.session || {};
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -168,7 +164,7 @@ COMMON.DOM.addReady(function(){
return null;
};
layout.parseData = function(data){
// this.setTitle(this.options.title+"-"+data.work.title);
// this.setTitle(this.options.title+"-"+data.work.title);
this.activity = data.activity;
this.data = data.data;
......@@ -184,30 +180,30 @@ COMMON.DOM.addReady(function(){
this.form = JSON.decode(MWF.decodeJsonString(data.form.data));
};
layout.fireEvent = function(){},
layout.openWork = function(){
MWF.xDesktop.requireApp("process.Xform", "Form", function(){
this.options.readonly = true;
this.appForm = new MWF.APPForm(this.node, this.form, {"readonly": this.options.readonly});
this.appForm.businessData = {
"data": this.data,
"taskList": this.taskList,
"work": this.work,
"workCompleted": this.workCompleted,
"control": this.control,
"activity": this.activity,
"task": this.currentTask,
"workLogList": this.workLogList,
"attachmentList": this.attachmentList,
"inheritedAttachmentList": this.inheritedAttachmentList,
"status": {
"readonly": (this.options.readonly) ? true : false
}
};
this.appForm.workAction = this.action;
this.appForm.app = this;
this.appForm.load();
}.bind(this))
};
layout.openWork = function(){
MWF.xDesktop.requireApp("process.Xform", "Form", function(){
this.options.readonly = true;
this.appForm = new MWF.APPForm(this.node, this.form, {"readonly": this.options.readonly});
this.appForm.businessData = {
"data": this.data,
"taskList": this.taskList,
"work": this.work,
"workCompleted": this.workCompleted,
"control": this.control,
"activity": this.activity,
"task": this.currentTask,
"workLogList": this.workLogList,
"attachmentList": this.attachmentList,
"inheritedAttachmentList": this.inheritedAttachmentList,
"status": {
"readonly": (this.options.readonly) ? true : false
}
};
this.appForm.workAction = this.action;
this.appForm.app = this;
this.appForm.load();
}.bind(this))
};
layout.isAuthentication = function(){
layout.authentication = new MWF.xDesktop.Authentication({
......
......@@ -5,12 +5,8 @@ var href = locate.href;
if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout.desktop = layout;
layout.session = layout.session || {};
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -23,7 +19,7 @@ COMMON.DOM.addReady(function(){
(function(){
layout.load = function(){
var uri = href.toURI();
MWF.require("MWF.xDesktop.Actions.RestActions", function(){
var action = new MWF.xDesktop.Actions.RestActions("", "x_organization_assemble_authentication", "");
......
......@@ -8,12 +8,8 @@ layout.desktop = layout;
var parentWindow = window.opener;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -209,7 +205,7 @@ COMMON.DOM.addReady(function(){
return null;
};
layout.parseData = function(data){
// this.setTitle(this.options.title+"-"+data.work.title);
// this.setTitle(this.options.title+"-"+data.work.title);
this.activity = data.activity;
this.data = data.data;
......
......@@ -7,12 +7,8 @@ if (href.indexOf("debugger")!=-1) layout.debugger = true;
layout.mobile = true;
layout.desktop = layout;
layout.desktop.session = {};
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -178,7 +174,7 @@ COMMON.DOM.addReady(function(){
return null;
};
layout.parseData = function(data){
// this.setTitle(this.options.title+"-"+data.work.title);
// this.setTitle(this.options.title+"-"+data.work.title);
this.activity = data.activity;
this.data = data.data;
......
......@@ -7,12 +7,8 @@ layout.mobile = true;
layout.desktop = layout;
layout.desktop.session = {};
layout.session = layout.session || {};
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
......@@ -289,7 +285,7 @@ COMMON.DOM.addReady(function(){
return null;
};
layout.parseData = function(data){
// this.setTitle(this.options.title+"-"+data.work.title);
// this.setTitle(this.options.title+"-"+data.work.title);
this.activity = data.activity;
this.data = data.data;
......
......@@ -4,13 +4,13 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<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="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/common.js?v=1.1.7"></script>
<script src="../o2_core/o2.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script>
layout = window.layout || {};
......@@ -85,38 +85,22 @@
}.bind(this));
};
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.load("mwf", function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
MWF.require("MWF.xDesktop.Common", null, false);
MWF.require("MWF.xAction.RestActions", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
MWF.getJSON("res/config/config.json", function (config) {
layout.config = config;
MWF.xDesktop.getServiceAddress(config, function (service, center) {
layout.serviceAddressList = service;
layout.centerServer = center;
layout.load();
}.bind(this));
}.bind(this));
// MWF.require("MWF.xDesktop.Layout", function() {
// MWF.require("MWF.xDesktop.Authentication", null, false);
// MWF.getJSON("res/config/config.json", function (config) {
// layout.config = config;
// MWF.xDesktop.getServiceAddress(config, function (service, center) {
// layout.serviceAddressList = service;
// layout.centerServer = center;
// layout.load();
// }.bind(this));
// });
//
//
// });
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
o2.JSON.get("res/config/config.json", function (config) {
layout.config = config;
MWF.xDesktop.getServiceAddress(config, function (service, center) {
layout.serviceAddressList = service;
layout.centerServer = center;
layout.load();
}.bind(this));
}.bind(this));
});
});
</script>
</head>
......
......@@ -2,15 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0_all.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/portal.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/portal.js?v=2.0.0"></script>
<title>O2</title>
......
......@@ -2,15 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0_all.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/portalmobile.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/portalmobile.js?v=2.0.0"></script>
<title>O2</title>
......
......@@ -2,14 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="/x_desktop/res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="/x_desktop/res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="/x_desktop/res/css/mBoxTooltip.css" charset="UTF-8" />
<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="/x_desktop/res/common.js?v=1.1.7"></script>
<!--<script src="/x_desktop/res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="/x_desktop/res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0_all.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="../o2_core/o2.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<title>FORM PREVIEW</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......@@ -24,13 +22,8 @@
}
layout.session = window.frameElement.ownerDocument.window.layout.session || {};
//layout.desktop = layout;
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.getJSON("res/config/config.json", function(config){
layout.config = config;
if (layout.config.app_protocol=="auto"){
......
......@@ -2,15 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0_all.js"></script>
<script src="res/js/printWork.js?v=1.1.7"></script>
<script src="res/framework/Decimal.js"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/printWork.js?v=2.0.2"></script>
<title>WORK</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -2,26 +2,19 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="/x_desktop/res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="/x_desktop/res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="/x_desktop/res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="/x_desktop/res/common.js?v=1.1.7"></script>
<!--<script src="/x_desktop/res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="/x_desktop/res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<title>FORM PREVIEW</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script>
layout = window.layout || {};
COMMON.DOM.addReady(function(){
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Notice.js", null, false);
COMMON.AjaxModule.load("/x_desktop/res/framework/mootools/plugin/mBox.Tooltip.js", null, false);
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
o2.addReady(function(){
o2.load(["../o2_lib/mootools/plugin/mBox.Notice.js", "../o2_lib/mootools/plugin/mBox.Tooltip.js"], function(){
MWF.defaultPath = "/x_desktop"+MWF.defaultPath;
MWF.loadLP("zh-cn");
MWF.require("MWF.xDesktop.Layout", function(){
......
......@@ -2,15 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/weixinsso.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/weixinsso.js?v=2.0.0"></script>
<title>WORK</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -4,10 +4,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title></title>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/common.js?v=1.1.7"></script>
<script src="../o2_core/o2.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script>
function getServiceAddress(config, callback){
if (typeOf(config.center)=="object"){
......@@ -71,29 +69,8 @@
}.bind(this));
}
// function getServiceAddress(config, callback){
// var host = config.center.host || window.location.host;
// var port = config.center.port;
// var uri = "";
// if (!port || port=="80"){
// uri = "http://"+host+"/x_program_center/jaxrs/distribute/assemble/source/{source}";
// }else{
// uri = "http://"+host+":"+port+"/x_program_center/jaxrs/distribute/assemble/source/{source}";
// }
// var currenthost = window.location.hostname;
// uri = uri.replace(/{source}/g, currenthost);
// //var uri = "http://"+layout.config.center+"/x_program_center/jaxrs/distribute/assemble";
// MWF.restful("get", uri, null, function(json){
// var serviceAddressList = json.data;
// var addressObj = serviceAddressList["x_organization_assemble_authentication"];
// var address = "http://"+addressObj.host+(addressObj.port==80 ? "" : ":"+addressObj.port)+addressObj.context;
//
// if (callback) callback(address);
// }.bind(this));
// }
COMMON.setContentPath("/x_desktop");
COMMON.AjaxModule.load("mwf", function(){
MWF.getJSON("res/config/config.json", function(config){
o2.addReady(function(){
o2.JSON.get("res/config/config.json", function(config){
getServiceAddress(config, function(address){
var uri = new URI(window.location.toString());
var xtoken = uri.getData("xtoken");
......@@ -126,13 +103,8 @@
});
});
// MWF.require("MWF.process.RestActions", function(){
// layout.restActions = new MWF.process.RestActions(Properties.action);
// });
});
</script>
</head>
<body bgcolor="#faebd7" bgcolor="#ffc0cb">
......
......@@ -2,15 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/weixinsso.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/weixinsso.js?v=2.0.2"></script>
<title>WORK</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -2,15 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/work.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/work.js?v=2.0.0"></script>
<title>WORK</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -2,16 +2,13 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<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="res/framework/htmleditor/ckeditor451/ckeditor.js"></script>-->
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js?22"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/workmobile.js?v=1.1.7"></script>
<script src="../o2_core/o2.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/workmobile.js?v=2.0.0"></script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
......
......@@ -2,16 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<!--<script src="res/framework/htmleditor/ckeditor451/ckeditor.js"></script>-->
<script src="res/common.js?v=1.1.7"></script>
<!--<script src="res/framework/mootools/mootools-core-1.4.5-full-nocompat.js?22"></script>-->
<!--<script src="res/framework/mootools/mootools-more-1.4.0.1-all_2.js"></script>-->
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script src="res/framework/Decimal.js"></script>
<script src="res/js/workmobilewithaction.min.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/workmobilewithaction.js?v=2.0.0"></script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
......
......@@ -2,13 +2,13 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script type="text/javascript" src="http://g.alicdn.com/ilw/ding/0.7.3/scripts/dingtalk.js"></script>
<script src="res/js/zhengwuDingdingSso.js?v=1.1.7"></script>
<script src="js/zhengwuDingdingSso.js?v=2.0.0"></script>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
......@@ -2,13 +2,12 @@
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="res/css/style.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxNotice.css" charset="UTF-8" />
<link rel="stylesheet" href="res/css/mBoxTooltip.css" charset="UTF-8" />
<script src="res/common.js?v=1.1.7"></script>
<script src="res/framework/mootools/mootools-1.6.0.min.js"></script>
<script type="text/javascript" src="http://g.alicdn.com/ilw/ding/0.7.3/scripts/dingtalk.js"></script>
<script src="res/js/zhengwuDingdingSso.js?v=1.1.7"></script>
<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.js?v=2.0.0"></script>
<script src="../o2_core/compatible.js?v=2.0.0"></script>
<script src="js/zhengwuDingdingSso.js?v=2.0.0"></script>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册