Newer
Older
alarm / WebRoot / common / layout / device-query-dialog.jsp
zhout on 2 Mar 2022 1 KB first commit
<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" content="ie=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="${ctx}/s/jquery-easyui-1.3.2/themes/bootstrap/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/s/jquery-easyui-1.3.2/themes/icon.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/s/jquery-easyui-1.3.2/themes/frm.css" />
</head>
<body style="text-align: center;">
<%-- 设备查询 --%>
<div id="device-query-dialog">
	<div style="margin-top:15px; font-size:13px;">
	    <div style="float:left;">设&nbsp;&nbsp;备&nbsp;&nbsp;名: <input type="text" id="deviceQueryKeyText" /></div>
		<div style="float:left; margin-top:10px;">设备类型: <input type="text" id="deviceTypeText" /></div>
		<div style="margin-top:10px;"> 
		    <a href="#" iconCls="icon-search" class="easyui-linkbutton" onclick="callDeviceQuery()">查询</a>
		</div>
	</div>
</div>
</body>
</html>
<script src="${ctx}/s/jquery-easyui-1.3.2/jquery-1.8.0.min.js"
	type="text/javascript"></script>
<script type="text/javascript"
	src="${ctx}/s/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
<script type="text/javascript">
/*
	var gridData = window.top.document.getElementById("deviceQuery").value;
	gridData = eval("(" + gridData + ")");
	$("#deviceTypeText").combobox({
	    data:gridData,   
	    valueField:'id',    
	    textField:'text',
	    panelHeight:100
	});
	*/
	
	$("#deviceTypeText").combobox({
		url : "/alarm/alarm/device-type!queryType.do",
		width : 155,
		panelHeight : 90,
		valueField : 'id',
		textField : 'typeName'
	});
	
	function callDeviceQuery() {
		parent.deviceQuery($("#deviceQueryKeyText").val(), $("#deviceTypeText").combobox("getValue"));
		var index = parent.layer.getFrameIndex(window.name);
		parent.layer.close(index);
	}
</script>