excel-cgx.html 1.4 KB
<!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 : "/skboot/sys/sysExcelParse/parse",
				success : function(msg) {
					$("#test").html(msg.result);
				}
			});
		}
		function parseDraw() {
			alert("模板绘制");
		}
	</script>
</body>
</html>