activeReocrd.jsp
5.72 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?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/user/activeConfig.js?r=${random}"></script>
<style type="text/css">
.add-label{
text-align: right;
}
</style>
</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:'20%'">
<form id="search-form" action="" method="post">
<table class="search-table">
<tr>
<td>
活动名称:<input name="name" class="easyui-numberbox search-input">
</td>
<td>
活动类型:
<select name="type" class="easyui-combobox search-input">
<option value="0">新开户</option>
<option value="1">推荐开户</option>
<option value="2">会员升级</option>
<option value="3">每月配额</option>
<option value="4">持仓</option>
<option value="5">入金</option>
<option value="6">交易</option>
<option value="7">账户余额</option>
</select>
</td>
<td>
会员号:<input name="userId" class="easyui-numberbox search-input">
</td>
<td>
奖励方式:
<select name="giftType" class="easyui-combobox search-input">
<option value="1">未开始</option>
<option value="2">进行中</option>
<option value="3">已结束</option>
<option value="0">作废</option>
</select>
</td>
</tr>
<tr>
<td>
起始时间:<input name="startDate" class="easyui-numberbox search-input">
</td>
<td>
结束时间:<input name="endDate" class="easyui-numberbox search-input">
</td>
<td>
奖品状态:
<select name="issueStatus" class="easyui-combobox search-input">
<option value="0">未发放</option>
<option value="1">已发放</option>
<option value="2">发放失败</option>
</select>
</td>
<td><a href="javascript:ActiveConfig.search();" class="easyui-linkbutton search-button" data-options="iconCls:'icon-search'">搜索</a>
</td>
</tr>
</table>
</form>
</div>
<div class="easyui-panel" data-options="height:'80%',title:'查询结果'">
<div id="toolbar">
<a href="javascript:ActiveConfig.beforeAdd()" class="easyui-linkbutton">添加基本信息</a>
<a href="javascript:ActiveConfig.beforeUpdate()" class="easyui-linkbutton">修改基本信息</a>
<a href="javascript:ActiveConfig.beforeCancel()" class="easyui-linkbutton">添加详细规则</a>
<a href="javascript:ActiveConfig.sendEntrustMsg()" class="easyui-linkbutton">修改详细规则</a>
<a href="javascript:ActiveConfig.distribute()" class="easyui-linkbutton">发放预览</a>
<a href="javascript:ActiveConfig.sendRationMsg()" class="easyui-linkbutton">查看发放记录</a>
<a href="javascript:ActiveConfig.ration()" class="easyui-linkbutton">取消活动</a>
<a href="javascript:ActiveConfig.once()" class="easyui-linkbutton">老用户送礼</a>
</div>
<!-- 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">
<thead>
<tr>
<th data-options="field:'id', checkbox:true"></th>
<th data-options="field:'name'">活动名称</th>
<th data-options="field:'type'">活动类型</th>
<th data-options="field:'startDate'">活动开始时间</th>
<th data-options="field:'endDate'">活动结束时间</th>
<th data-options="field:'addition', formatter:ActiveConfig.formatStatus">规则</th>
<th data-options="field:'status'">活动状态</th>
<th data-options="field:'createBy'">操作人</th>
<th data-options="field:'createAt'">操作时间</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- - --><div id="rule-dialog" class="easyui-dialog" style="padding: 10px; width: 820px; height:400px;"
data-options="closed:true, title:'规则查看', onClose:ActiveConfig.clearDetail">
<div id="toolbar2">
<a href="javascript:ActiveConfig.beforeAdd()" class="easyui-linkbutton">开始发放</a>
<a href="javascript:ActiveConfig.beforeUpdate()" class="easyui-linkbutton">取消</a>
</div>
<table id="rule-grid" class="easyui-datagrid"
data-options="fitColumns:true, singleSelect:true, fit:true, pagination:true, idField: 'id',
rownumbers:true, toolbar:'#toolbar2', selectOnCheck:true, pageSize:20">
<thead>
<tr>
<th data-options="field:'id', checkbox:true"></th>
<th data-options="field:'name'">活动名称</th>
<th data-options="field:'type'">活动类型</th>
<th data-options="field:'user_id'">会员号</th>
<th data-options="field:'end_rule'">发生数值</th>
<th data-options="field:'gift_type'">奖励方式</th>
<th data-options="field:'gift_id'">奖品编号</th>
<th data-options="field:'gift_name'">奖品名称</th>
<th data-options="field:'gift_amount'">奖励数量</th>
<th data-options="field:'issue_status'">奖品状态</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</body>
</html>