trade.jsp 2.6 KB
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<jsp:include page="${ctx }/WEB-INF/view/meta.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/resource/js/trade/trade.js?r=${random}"></script>
<script type="text/javascript" src="${ctx }/resource/js/jquery.cookie.js"></script>
</head>
<body>

     <div class="easyui-panel" >
		<div class="easyui-panel" data-options="title:'查询结果'">
			<!-- DataGrid -->
			<table id="data-grid" class="easyui-datagrid" style="height:520px;"   
				data-options="fitColumns:true, singleSelect:true, url:'/trade/exchaneInfo'">
				<thead>
					<tr>
					    <th data-options="field:'id', checkbox:true"></th>
						<th	data-options="field:'mch_code'">藏品代码</th>
						<th	data-options="field:'mch_name'">藏品名称</th>
						<th data-options="field:'mclose_price',formatter:trade.mclosePrice">昨收盘</th>
						<th data-options="field:'open_price',formatter:trade.openPrice">今开盘</th>
						<th data-options="field:'last_price',formatter:trade.lastPrice">最新价</th>
						<th	data-options="field:'trend',formatter:trade.trend">涨跌幅</th>
						<th data-options="field:'business_amount',formatter:trade.businessAmount">成交量</th>
						<th	data-options="field:'business_balance',formatter:trade.businessBalance">成交金额(万)</th>
						<th data-options="field:'high_price',formatter:trade.highPrice">最高价</th>
						<th data-options="field:'low_price',formatter:trade.lowPrice">最低价</th>
						<th data-options="field:'',formatter:trade.otcInfo">查看委托单详情</th>
					</tr>
				</thead>
				<tbody></tbody>
			</table>
		</div>

	</div>

	
	<div id="otc-dialog" class="easyui-dialog" style="padding:5px; width: 400px; height:400px;"
		data-options="closed:true, title:'委托单详情', onClose:trade.closeInterval">
	     <!-- DataGrid -->
		<table id="info-grid" class="easyui-datagrid" 
			data-options="fitColumns:true, singleSelect:true">
			<thead>
				<tr>
				    <th data-options="field:'id', checkbox:true"></th>
					<th	data-options="field:'OTC_CODE'">藏品代码</th>
					<th	data-options="field:'OTC_NAME'">藏品名称</th>
					<th data-options="field:'ENTRUST_NUM'">委托数量</th>
					<th data-options="field:'ENTRUST_PRICE'">委托价格</th>
					<th data-options="field:'OTC_PROP',formatter:trade.otcProp">委比</th>
				</tr>
			</thead>
			<tbody></tbody>
		</table>
	</div>
</body>
</html>