excel-cgx.html
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>excel example</title>
<script type="text/javascript" src="generic/build/jquery-2.1.1.js"></script>
<style>
#app {
padding: 32px;
}
</style>
</head>
<body>
<input type="button" value=" 外面登陆" name="testLoginButton" id="testLoginButton" onclick="testLogin()"/>
<br>
<iframe id="testLogin" src="http://192.168.10.158:8099/CitectAnywhere/start.html" width="1000px" height="800px"></iframe>
<div id="app">
excel实验开始 <input type="button" value="excel模板解析"
onclick="parseExcel()" /> <input type="button" value="excel模板渲染"
onclick="parseDraw()" />
<table id="test" border="1" style="border-collapse: collapse;">
</table>
</div>
<script>
function testLogin(){
var $loginIframe = $("#testLogin").contents();
$loginIframe.find("#username").val(".\\MobileUser");
$loginIframe.find("#password").val("AVEVAis#1");
$loginIframe.find("button[type='submit']").click();
//alert($loginIframe.find("#username").val("liyy"));
}
$(function() {
alert("欢迎使用jquery");
})
function parseExcel() {
//alert("模板解析事件");
$.ajax({
type : "GET",
url : "/fmboot/sys/sysExcelParse/parse",
success : function(msg) {
$("#test").html(msg.result);
}
});
}
function parseDraw() {
alert("模板绘制");
}
</script>
</body>
</html>