rationChoose.jsp
3.69 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?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>
</head>
<body>
<div class="easyui-panel" data-options="fit:true">
<div class="easyui-panel" style="padding: 10px;"
data-options="title:'查询条件', collapsible:true, width:'100%', height:'25%'">
<form id="search-form" action="" method="post">
<table class="search-table">
<tr>
<td>藏品代码:<input name="otcCode"
class="easyui-textbox search-input"></td>
<td>藏品名称:<input name="otcName"
class="easyui-textbox search-input"></td>
<td align="right">选择意见: <select name="aggreeStatus"
class="easyui-combobox search-input">
<option value="">全部</option>
<option value="0">同意</option>
<option value="1">未确认</option>
</select>
</td>
</tr>
<tr>
<td>会员编号:<input name="userId"
class="easyui-textbox search-input"></td>
<td > 姓名:<input name="clientName"
class="easyui-textbox search-input"></td>
<td >托管单号:<input name="applyNo"
class="easyui-textbox search-input"></td>
</tr>
<tr>
<td>申请起始日期:<input name="startDate" data-options="formatter:App.formatDate"
class="easyui-datetimebox search-input"></td>
<td>申请结束日期:<input name="endDate" data-options="formatter:App.formatDate"
class="easyui-datetimebox search-input"></td>
<td><a href="javascript:Choose.search();"
class="easyui-linkbutton search-button"
data-options="iconCls:'icon-search'">搜索</a>
<a href="javascript:Choose.exportChoose()" class="easyui-linkbutton search-button" data-options="iconCls:'icon-search'">导出</a>
</td>
</tr>
</table>
</form>
</div>
<div class="easyui-panel" data-options="height:'75%',title:'查询结果'">
<!-- DataGrid -->
<table id="data-grid" class="easyui-datagrid"
data-options="fitColumns:true, singleSelect:true, fit:true, pagination:true, idField: 'id',
rownumbers:true, toolbar:'#toolbar', selectOnCheck:true, pageSize:20,url:'/entrust/old/rationChoose' ">
<thead>
<tr>
<th data-options="field:'APPLY_NO'">托管单号</th>
<th data-options="field:'INNERCIRCULAT_NO'">内部流转号</th>
<th data-options="field:'OTC_CODE'">藏品代码</th>
<th data-options="field:'OTC_NAME'">藏品名称</th>
<th data-options="field:'FUND_ACCOUNT'">会员编号</th>
<th data-options="field:'CLIENT_NAME'">姓名</th>
<th data-options="field:'TELPHONE'">手机号</th>
<th data-options="field:'APPROVAL_COUNT'">通过数量</th>
<th data-options="field:'AGGREE_STATUS'">选择意见</th>
<th data-options="field:'AGGREE_DATE',formatter:Choose.formatDate">申请时间</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</body>
</html>
<script type="text/javascript" >
var Choose = function() {
return {
//查询
search : function() {
$('#data-grid').datagrid({
url : "/entrust/old/rationChoose",
queryParams : App.dataGridQueryParams('search-form')
});
},
formatDate : function(value, row, index) {
if(value!=undefined){
value=value.substring(0,4)+"-"+value.substring(4,6)+"-"+value.substring(6,8);
}
return value;
},
exportChoose : function() {
window.open('/entrust/old/exportChoose?' + $('#search-form').serialize());
}
}
}();
</script>